diff --git a/Source/UI/Lists/UIDropDownBox.cpp b/Source/UI/Lists/UIDropDownBox.cpp index 1c0f59241..49a63fb8b 100644 --- a/Source/UI/Lists/UIDropDownBox.cpp +++ b/Source/UI/Lists/UIDropDownBox.cpp @@ -87,15 +87,3 @@ void UIWindowMgr::ShowDropDown(UIWindow* owner, UIWindow* child, int x, int y) { popup->Show(1); } -// OFFSET: 0x00A8C750 -// FUNCTION: fn_17133 -bool UIWindowMgr::CloseDropDown() { - CUIDropDownBox* popup = static_cast(this->dropDownBoxWnd); - if (!popup || popup->geometry.visible == 0) { - return false; - } - - popup->Detach(); - popup->Show(0); - return true; -} diff --git a/Source/UI/Window/UIWindowMgr.cpp b/Source/UI/Window/UIWindowMgr.cpp index 903d7c34b..bfc55ecf0 100644 --- a/Source/UI/Window/UIWindowMgr.cpp +++ b/Source/UI/Window/UIWindowMgr.cpp @@ -2153,6 +2153,18 @@ void UIWindowMgr::CloseMiniPartyWindow(int id) { RefreshPartyWindows(&g_session); } +// OFFSET: 0x00A8C750 +// FUNCTION: fn_17133 +bool UIWindowMgr::CloseDropDown() { + if (!this->dropDownBoxWnd || this->dropDownBoxWnd->geometry.visible == 0) { + return false; + } + + static_cast(this->dropDownBoxWnd)->Detach(); + this->dropDownBoxWnd->Show(0); + return true; +} + // OFFSET: 0x00A8CA20 // FUNCTION: fn_17139 bool UIWindowMgr::ProcessEnterKey() {