Decompile 3 functions in Source/Contents/AdventureGuide/AdventureGuideMgr.h, Source/Contents/AdventureGuide/AdventureGuideMgr.cpp, ...
Batch #16787 by eAthena: 0 byte-identical, 3 confirmed by peer review. - fn_05222 CAdventureGuideMgr::CAdventureGuideMgr: logic confirmed by peer review (already on main) - fn_05227 CAdventureGuideMgr::~CAdventureGuideMgr: logic confirmed by peer review (already on main) - fn_14331 AdventureGuide::CUIIntro::OnInit: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, br4yan Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
d6a947d22d
commit
b0e5e5c7b3
3 changed files with 13 additions and 11 deletions
|
|
@ -619,18 +619,17 @@ void CUIQuest::Paint() {
|
|||
// OFFSET: 0x009DCFF0
|
||||
// FUNCTION: fn_14331
|
||||
void CUIIntro::OnInit() {
|
||||
const std::string& title = g_adventureGuideMgr->introTitle;
|
||||
const std::map<int, AdventureGuideText>& texts = g_adventureGuideMgr->introTexts;
|
||||
if (texts.empty()) {
|
||||
const AdventureGuideIntroPage& intro = g_adventureGuideMgr->introPage;
|
||||
if (intro.texts.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const auto& [id, text] : texts) {
|
||||
for (const auto& [id, text] : intro.texts) {
|
||||
this->contents->data.emplace_back(text.first, text.second);
|
||||
}
|
||||
|
||||
this->contents->UpdateScrollBar();
|
||||
this->image->SetImage(title);
|
||||
this->image->SetImage(intro.title);
|
||||
this->contents->scrollBar->SetHidden(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue