Decompile 2 functions in Source/UI/AdventureGuide/UIAdventureGuide.cpp, Source/UI/AdventureGuide/UIAdventureGuide.h, ...
Batch #5396 by willerthal: 0 byte-identical, 2 confirmed by peer review. - fn_14316 AdventureGuide::CUIIntro::BindContents: logic confirmed by peer review - fn_14362 AdventureGuide::CUIQuestInfo::SetViewerLines: logic confirmed by peer review Peer-reviewed-by: Yommy, bigodeira, tayoba, 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:
parent
3cd37e7d47
commit
11b250004f
5 changed files with 55 additions and 0 deletions
|
|
@ -1,10 +1,13 @@
|
|||
#include "Contents/AdventureGuideMgr.h"
|
||||
#include "Contents/MessageTable.h"
|
||||
#include "Contents/RenewQuestMgr.h"
|
||||
#include "UI/AdventureGuide/UIAdventureGuide.h"
|
||||
#include "UI/Lists/UIListBoxTemplate.h"
|
||||
#include "Render/Renderer.h"
|
||||
#include "UI/Lists/UIVScrollBar.h"
|
||||
#include "UI/Text/UIStaticTextControl.h"
|
||||
#include "UI/Text/UITextViewerControl.h"
|
||||
#include "Utility/Text/FormatString.h"
|
||||
|
||||
template void CUIListBoxEx<AdventureGuide::CUIMonsterInfo, AdventureGuide::CMonsterData>::UpdateScrollBar();
|
||||
template void CUIListBox<AdventureGuide::CUITab>::UpdateScrollBar();
|
||||
|
|
@ -235,6 +238,50 @@ void CUITab::Slot16() {
|
|||
void CUITabInfo::Slot16() {
|
||||
}
|
||||
|
||||
// OFFSET: 0x009DC0F0
|
||||
// FUNCTION: fn_14316
|
||||
void CUIIntro::BindContents(CUITabInfo* item, const Guide_Intro::Contents& contents) {
|
||||
item->unknown_00E8->SetText(contents.first.c_str(), contents.first.size());
|
||||
item->unknown_00EC->SetText(contents.second.c_str(), contents.second.size());
|
||||
}
|
||||
|
||||
// OFFSET: 0x009DFAD0
|
||||
// FUNCTION: fn_14359
|
||||
void CUIQuestInfo::SetStatusLines(bool first, bool second, bool third) {
|
||||
CUITextViewer* viewer = reinterpret_cast<CUITextViewer*>(this->unknown_00F4);
|
||||
viewer->Clear();
|
||||
if (first == true) {
|
||||
viewer->SetTextColor(0xC86464u);
|
||||
viewer->AddLine(FormatOwnedString(LookupMessage(0xFC2)));
|
||||
} else {
|
||||
viewer->SetTextColor(0x6464C8u);
|
||||
viewer->AddLine(FormatOwnedString(LookupMessage(0xFC3)));
|
||||
}
|
||||
if (second == true) {
|
||||
viewer->SetTextColor(0xC86464u);
|
||||
viewer->AddLine(FormatOwnedString(LookupMessage(0xFC4)));
|
||||
} else {
|
||||
viewer->SetTextColor(0x6464C8u);
|
||||
viewer->AddLine(FormatOwnedString(LookupMessage(0xFC5)));
|
||||
}
|
||||
if (third == true) {
|
||||
viewer->SetTextColor(0xC86464u);
|
||||
viewer->AddLine(FormatOwnedString(LookupMessage(0xFC6)));
|
||||
} else {
|
||||
viewer->SetTextColor(0x6464C8u);
|
||||
viewer->AddLine(FormatOwnedString(LookupMessage(0xFC7)));
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x009E07B0
|
||||
// FUNCTION: fn_14362
|
||||
void CUIQuestInfo::SetViewerLines(const std::vector<std::string>& lines) {
|
||||
reinterpret_cast<CUITextViewer*>(this->unknown_00F0)->Clear();
|
||||
for (const std::string& line : lines) {
|
||||
reinterpret_cast<CUITextViewer*>(this->unknown_00F0)->AddLine(line);
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x009DDA40
|
||||
// FUNCTION: fn_14347
|
||||
void CUIIntro::Slot54(int, int) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue