Decompile fn_17216 (ToggleGameSettingsTab4)

Batch #6642 by vinnyamancio: 0 byte-identical, 1 confirmed by peer review.

- fn_17216 ToggleGameSettingsTab4: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, superintelligence, SapitoSucio
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-31 01:29:23 +00:00
commit 5fdce3cf20
2 changed files with 24 additions and 0 deletions

View file

@ -1278,6 +1278,12 @@ void CUIGameSettingsUI::sub_A421E0() {
this->m_applyButton->Show(visible);
}
// OFFSET: 0x00A41E10
// FUNCTION: fn_45466
void CUIGameSettingsUI::SelectTab4() {
this->m_tab->Select(static_cast<CUITabButton*>(this->m_tab->FindChildById(4)));
}
// OFFSET: 0x00A41E50
// FUNCTION: fn_16004
void sub_A41E50(int option) {
@ -1358,3 +1364,20 @@ void GameSettingsUI::CUIGroupTextureDetailLevel::Slot16() {
const char* text = LookupMessage(0x145);
this->m_title->SetText(text, std::strlen(text));
}
// OFFSET: 0x00AA2760
// FUNCTION: fn_17216
void ToggleGameSettingsTab4() {
UIWindow* window = g_windowMgr.LookupWindow(0x271E);
if (!window) {
window = g_windowMgr.EnsureWindow(0x271E);
}
CUIGameSettingsUI* settings = static_cast<CUIGameSettingsUI*>(window);
if (settings->IsTab4Selected()) {
g_windowMgr.CloseWindow(0x271E);
return;
}
settings->SelectTab4();
}

View file

@ -247,6 +247,7 @@ public:
void sub_A421E0();
void sub_A433D0(UIWindow* window);
bool IsTab4Selected();
void SelectTab4();
void sub_A43380();
void sub_A43390();
void sub_A433A0();