Compare commits

...

3 Commits

Author SHA1 Message Date
Tristan 'Natrist' Cormier
1fb0c84aff
Merge c12a79d6e6 into 06186d1251 2026-02-19 12:48:15 -05:00
fallenoak
06186d1251
feat(ui): call CGCamera::SetupWorldProjection from CGWorldFrame::OnWorldUpdate
Some checks failed
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Has been cancelled
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Has been cancelled
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Has been cancelled
2026-02-19 06:56:43 -06:00
Tristan Cormier
c12a79d6e6 feat(console): add CONSOLELINE::Backspace 2025-12-08 09:17:54 -05:00
3 changed files with 25 additions and 0 deletions

View File

@ -84,6 +84,26 @@ CONSOLELINE::~CONSOLELINE() {
} }
} }
void CONSOLELINE::Backspace() {
if (this->inputpos > this->inputstart) {
if (this->chars <= this->inputpos) {
this->buffer[this->inputpos - 1] = '\0';
}
else {
memcpy(
&this->buffer[this->inputpos - 1],
&this->buffer[this->inputpos],
this->chars - this->inputpos + 1
);
}
this->inputpos--;
this->chars--;
SetInputString(this->buffer);
}
}
void DrawBackground() { void DrawBackground() {
uint16_t indices[] = { uint16_t indices[] = {
0, 1, 2, 3 0, 1, 2, 3

View File

@ -19,6 +19,7 @@ class CONSOLELINE : public TSLinkedNode<CONSOLELINE> {
// Member functions // Member functions
~CONSOLELINE(); ~CONSOLELINE();
void Backspace();
}; };
void ConsoleScreenAnimate(float elapsedSec); void ConsoleScreenAnimate(float elapsedSec);

View File

@ -91,4 +91,8 @@ void CGWorldFrame::OnWorldRender() {
void CGWorldFrame::OnWorldUpdate() { void CGWorldFrame::OnWorldUpdate() {
// TODO // TODO
this->m_camera->SetupWorldProjection(this->m_screenRect);
// TODO
} }