Decompile 2 functions in Source/UI/Quest/UIRenewQuestUI.cpp
Batch #10667 by cremane: 0 byte-identical, 2 confirmed by peer review. - fn_16497 CQuestItemSelector::SetHighlighted: logic confirmed by peer review - fn_16632 CUIRenewQuestUI::SendMsg: logic confirmed by peer review Peer-reviewed-by: Tanke, dori, StrawberrysherbetIX 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
df5be96872
commit
dbf4839b84
1 changed files with 8 additions and 4 deletions
|
|
@ -809,8 +809,9 @@ private:
|
|||
// OFFSET: 0x00A64DE0
|
||||
// FUNCTION: fn_16497
|
||||
void CQuestItemSelector::SetHighlighted(CUIListItem* const& item) {
|
||||
CUIListItem* highlighted = item;
|
||||
for (RenewQuestUI::CUIQuestItem* entry : this->listBox->items) {
|
||||
entry->SetHighlighted(static_cast<CUIListItem*>(entry) == item);
|
||||
entry->SetHighlighted(static_cast<CUIListItem*>(entry) == highlighted);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1099,18 +1100,21 @@ void RenewQuestUI::CUIQuestItem::SetSelected(bool selected) {
|
|||
// OFFSET: 0x00A67D40
|
||||
// FUNCTION: fn_16632
|
||||
int CUIRenewQuestUI::SendMsg(UIWindow* sender, int message, std::intptr_t a, std::intptr_t b, std::intptr_t c, std::intptr_t d) {
|
||||
if (message == 6) {
|
||||
switch (message) {
|
||||
case 6:
|
||||
if (a == 0xD5) {
|
||||
const bool checked = b != 0;
|
||||
this->checkBox->checked = checked;
|
||||
this->checkBox->Invalidate();
|
||||
this->RecordValues(6, 0xD5, checked, 0, 0);
|
||||
this->RecordValues(6, a, b != 0, 0, 0);
|
||||
if (UIWindow* window = g_windowMgr.LookupWindow(0xCC)) {
|
||||
window->Show(checked);
|
||||
}
|
||||
}
|
||||
} else if (message == 0x16) {
|
||||
break;
|
||||
case 0x16:
|
||||
this->tab->SelectIndex(static_cast<int>(std::log2(static_cast<double>(a))));
|
||||
break;
|
||||
}
|
||||
|
||||
return CUIFrameWnd::SendMsg(sender, message, a, b, c, d);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue