Decompile 10 functions in Source/UI/Acceptance/UIChooseSellBuyWnd.cpp, Source/UI/Buttons/UITextButton.cpp, ...
Batch #13208 by KWDev: 10 byte-identical, 0 confirmed by peer review. - fn_16126 CUIListBoxEx<ProbabilityTable::CUIItem,ProbabilityTable::CItemData>::SelectItem: byte-identical - fn_16445 CUIListBoxEx<RenewQuestUI::CUIQuestItem,unsigned long>::SelectItem: byte-identical - fn_11452 UIINT64BarGraph::Slot28: byte-identical - fn_11984 UIWhisperWnd::UIWhisperWnd: byte-identical - fn_10174 UIRune_Info::Slot15: byte-identical - fn_10369 UIBasicStylingWnd::SendMsg: byte-identical - fn_12149 UINpcTextEditDialogWnd::InsertSkillTag: byte-identical - fn_16786 CUISelectPackageItemBox::Slot16: byte-identical - fn_16785 SelectPackageItemBox::CUIItemInfo::Slot16: byte-identical - fn_14993 EnchantUI::CUIUpgradeRandom::Slot16: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
ffb4f333c3
commit
316f105357
9 changed files with 34 additions and 17 deletions
|
|
@ -417,7 +417,7 @@ void CUIListBoxEx<ProbabilityTable::CUIItem, ProbabilityTable::CItemData>::Selec
|
|||
return;
|
||||
}
|
||||
for (ProbabilityTable::CUIItem* other : this->items) {
|
||||
if (other != item) {
|
||||
if (item != other) {
|
||||
other->SetSelected(0);
|
||||
}
|
||||
}
|
||||
|
|
@ -432,7 +432,13 @@ void CUIListBoxEx<ProbabilityTable::CUIItem, ProbabilityTable::CItemData>::Selec
|
|||
this->selected = selectedItem->index;
|
||||
if (this->onSelect && static_cast<int>(this->selected) >= 0 && this->selected < this->data.size()) {
|
||||
auto node = this->data.begin();
|
||||
std::advance(node, static_cast<int>(this->selected));
|
||||
int count = static_cast<int>(this->selected);
|
||||
if (count > 0) {
|
||||
do {
|
||||
++node;
|
||||
--count;
|
||||
} while (count > 0);
|
||||
}
|
||||
this->onSelect(selectedItem, *node);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue