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) {