From 6920643e8e813f75c3450dfd71deefd37943f036 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 31 Oct 2026 22:48:29 +0000 Subject: [PATCH] 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). --- Source/UI/Window/UIControl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/UI/Window/UIControl.cpp b/Source/UI/Window/UIControl.cpp index a8741b5a..d2ab3534 100644 --- a/Source/UI/Window/UIControl.cpp +++ b/Source/UI/Window/UIControl.cpp @@ -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) {