Decompile fn_14331 (AdventureGuide::CUIIntro::Slot16)

Batch #4121 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_14331 AdventureGuide::CUIIntro::Slot16: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, superintelligence, tayoba
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-30 01:07:23 +00:00
commit 18d38810bc
3 changed files with 28 additions and 2 deletions

View file

@ -34,6 +34,24 @@ void CUIQuest::Paint() {
this->ClearSurface(0xFFFF00FF);
}
// OFFSET: 0x009DCFF0
// FUNCTION: fn_14331
void CUIIntro::Slot16() {
const std::string& title = g_adventureGuideMgr->unknown_0014;
const std::map<int, AdventureGuideText>& texts = g_adventureGuideMgr->unknown_002C;
if (texts.empty()) {
return;
}
for (const auto& text : texts) {
this->contents->data.emplace_back(text.second.first, text.second.second);
}
this->contents->UpdateScrollBar();
this->image->SetImage(title);
this->contents->scrollBar->SetHidden(1);
}
// OFFSET: 0x009DD1C0
// FUNCTION: fn_14333
void CUIItem::Slot16() {