Decompile fn_14372 (CUIListBoxItemSelector::SetHighlightedEntry)

Batch #8899 by pedrao: 0 byte-identical, 1 confirmed by peer review.

- fn_14372 CUIListBoxItemSelector::SetHighlightedEntry: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, gordaoprogramas, dori
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-31 22:48:29 +00:00
commit 6920643e8e

View file

@ -37,6 +37,7 @@ const char* g_uiInfoTempPath = "savedata\\UIInfo.temp";
class CUIListBoxItemSelector {
public:
void SetHighlighted(CUIListItem* const& item);
void SetHighlightedEntry(CUIListItem* const& item);
private:
/* 0000 */ void* unknown_0000;
@ -51,6 +52,14 @@ void CUIListBoxItemSelector::SetHighlighted(CUIListItem* const& item) {
}
}
// OFFSET: 0x009E0AD0
// FUNCTION: fn_14372
void CUIListBoxItemSelector::SetHighlightedEntry(CUIListItem* const& item) {
for (CUIListItem* entry : this->listBox->items) {
entry->SetHighlighted(entry == item);
}
}
// OFFSET: 0x009EF520
// FUNCTION: fn_14635
CBitmapRes* CUIControl::LoadBitmapResource(const std::string& name, bool resolveSkin) {