Decompile fn_14353 (AdventureGuide::CUITab::SetSelected)

Batch #9688 by Toshiro: 0 byte-identical, 1 confirmed by peer review.

- fn_14353 AdventureGuide::CUITab::SetSelected: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Romain, dori
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-11-01 18:16:29 +00:00
commit d0656a7ed3
2 changed files with 7 additions and 1 deletions

View file

@ -845,7 +845,8 @@ void CUIQuest::Slot54(int type, int id) {
// FUNCTION: fn_14353
void CUITab::SetSelected(bool selected) {
CUIListItem::SetSelected(selected);
const bool expand = selected && this->subTabs && !this->subTabs->geometry.visible;
volatile bool selectedState = selected;
const bool expand = selectedState && this->subTabs && !this->subTabs->geometry.visible;
if (this->subTabs) {
this->subTabs->Show(expand);
}
@ -2017,6 +2018,8 @@ AdventureGuide::CUISubTab* CUIListBox<AdventureGuide::CUISubTab>::CreateItem() {
return item;
}
// OFFSET: 0x009DB4B0
namespace AdventureGuide {
// OFFSET: 0x009DB720