rodecomp/Source/UI/Quest/UIOngoingQuestInfo.cpp
ragnarok-clanker 349c7356e2 Decompile 8 functions in Source/UI/ProbabilityTable/UIProbabilityTable.cpp, Source/UI/ProbabilityTable/UIProbabilityTable.h, ...
Batch #3838 by youko: 7 byte-identical, 1 confirmed by peer review.

- fn_16120 CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::Paint: byte-identical
- fn_16195 CUIProbabilityTable::OnButtonClick: byte-identical
- fn_16198 CUIProbabilityTable::OnPrepareItem: byte-identical
- fn_16200 ProbabilityTable::CUIItem::Paint: byte-identical
- fn_16202 ProbabilityTable::CUIItem::Slot16: logic confirmed by peer review
- fn_16204 ProbabilityTable::CUIItem::Slot25: byte-identical
- fn_16205 CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::UpdateScrollBar: byte-identical
- fn_16223 CUIListBoxEx<OngoingQuestInfo::CUIRewardItem,OngoingQuestInfo::CRewardItemData>::ClearItems: byte-identical

Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/UI/ProbabilityTable/UIProbabilityTable.cpp
2026-10-29 23:37:31 +00:00

81 lines
1.6 KiB
C++

#include "UI/Quest/UIOngoingQuestInfo.h"
// OFFSET: 0x00A4FDE0
// FUNCTION: fn_16223
template <>
void CUIListBoxEx<OngoingQuestInfo::CUIRewardItem, OngoingQuestInfo::CRewardItemData>::ClearItems() {
for (OngoingQuestInfo::CUIRewardItem* item : this->items) {
this->RemoveChild(item, 1);
}
this->items.clear();
this->selected = static_cast<unsigned int>(-1);
}
// OFFSET: 0x00A4FE70
// OFFSET: 0x00A55650
// FUNCTION: fn_16300
void CUIOngoingQuestInfo::OnFirstAction() {
}
namespace OngoingQuestInfo {
// OFFSET: 0x00A55710
// FUNCTION: fn_16301
void CUIRewards::OnPrepareItem(CUIRewardItem*, const CRewardItemData&) {
}
// OFFSET: 0x00A55860
// FUNCTION: fn_16303
void CUIContents::Paint() {
this->ClearSurface(0xFFFF00FF);
}
// OFFSET: 0x00A55870
// FUNCTION: fn_16304
void CUIRewardItem::Paint() {
this->ClearSurface(0xFFFF00FF);
}
// OFFSET: 0x00A55880
// FUNCTION: fn_16305
void CUIRewards::Paint() {
this->ClearSurface(0xFFFF00FF);
}
// OFFSET: 0x00A55890
// FUNCTION: fn_16306
void CUIScrollWindow::Paint() {
this->ClearSurface(0xFFFF00FF);
}
// OFFSET: 0x00A558A0
// FUNCTION: fn_16307
void CUIContents::Slot16() {
}
// OFFSET: 0x00A55940
// FUNCTION: fn_16309
void CUIRewardItem::Slot16() {
}
// OFFSET: 0x00A55B50
// FUNCTION: fn_16312
void CUIScrollWindow::Slot35(int value) {
this->scrollBar->Slot35(value);
}
// OFFSET: 0x00A55F20
// FUNCTION: fn_16316
void CUIScrollWindow::OnScroll(int position) {
int y = -position;
for (UIWindow* child : this->m_children) {
if (child != this->scrollBar) {
child->Move(child->geometry.x, y);
y = child->geometry.y + child->geometry.height;
}
}
}
}