Compare commits

...

8 Commits

Author SHA1 Message Date
Tristan 'Natrist' Cormier
06a6a427fc
Merge e391f966bb into f1b8f495b6 2026-01-25 19:54:14 -05:00
fallenoak
f1b8f495b6
feat(ui): delete regions in CSimpleFrame dtor
Some checks are pending
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) Waiting to run
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) Waiting to run
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) Waiting to run
2026-01-25 15:05:10 -06:00
fallenoak
c2eedc1d47
feat(ui): clean up draw layers and batches in CSimpleFrame dtor 2026-01-25 14:50:16 -06:00
fallenoak
daba2a1ffd
feat(ui): delete title region in CSimpleFrame dtor 2026-01-25 14:40:28 -06:00
fallenoak
cded0d86e7
feat(ui): clear top pointer in CSimpleFrame dtor 2026-01-25 14:37:15 -06:00
fallenoak
4e9ea8f5a1
feat(ui): delete frames in CSimpleTop dtor 2026-01-25 13:40:19 -06:00
fallenoak
23be35bed2
feat(ui): delete strata in CSimpleTop dtor 2026-01-25 12:45:10 -06:00
Tristan Cormier
e391f966bb feat(glue): implement Script_TerminationWithoutNoticeAccepted 2026-01-11 16:57:43 -05:00
3 changed files with 38 additions and 3 deletions

View File

@ -198,7 +198,14 @@ int32_t Script_ShowTerminationWithoutNoticeNotice(lua_State* L) {
} }
int32_t Script_TerminationWithoutNoticeAccepted(lua_State* L) { int32_t Script_TerminationWithoutNoticeAccepted(lua_State* L) {
WHOA_UNIMPLEMENTED(0); if (CGlueMgr::m_acceptedTerminationWithoutNotice) {
lua_pushnumber(L, 1.0);
}
else {
lua_pushnil(L);
}
return 1;
} }
int32_t Script_AcceptTerminationWithoutNotice(lua_State* L) { int32_t Script_AcceptTerminationWithoutNotice(lua_State* L) {

View File

@ -64,11 +64,27 @@ CSimpleFrame::CSimpleFrame(CSimpleFrame* parent) : CScriptRegion() {
} }
CSimpleFrame::~CSimpleFrame() { CSimpleFrame::~CSimpleFrame() {
// TODO
this->m_intAC = 3; this->m_intAC = 3;
this->m_top->UnregisterFrame(this); this->m_top->UnregisterFrame(this);
this->m_top = nullptr;
if (this->m_titleRegion) {
delete this->m_titleRegion;
}
for (int32_t layer = 0; layer < NUM_SIMPLEFRAME_DRAWLAYERS; layer++) {
this->m_drawlayers[layer].UnlinkAll();
if (this->m_batch[layer]) {
delete this->m_batch[layer];
}
}
while (auto region = this->m_regions.Head()) {
this->m_regions.UnlinkNode(region);
delete region;
}
// TODO // TODO
} }

View File

@ -400,6 +400,18 @@ CSimpleTop::CSimpleTop() : CLayoutFrame() {
CSimpleTop::~CSimpleTop() { CSimpleTop::~CSimpleTop() {
// TODO // TODO
while (auto frame = this->m_frames.Head()) {
this->m_frames.UnlinkNode(frame);
delete frame;
}
for (auto& strata : this->m_strata) {
delete strata;
strata = nullptr;
}
// TODO
this->DisableEvents(); this->DisableEvents();
HandleClose(this->m_screenLayer); HandleClose(this->m_screenLayer);