mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-20 06:12:57 +01:00
Move WindowClose family into WindowManager (#23646)
* Replace WindowClose() calls with Close method calls where possible * Move WindowClose family into WindowManager * Remove UpdateSceneryGroupIndexes hack
This commit is contained in:
@@ -423,18 +423,21 @@ namespace OpenRCT2
|
||||
}
|
||||
else
|
||||
{
|
||||
WindowClose(*this);
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
windowMgr->Close(*this);
|
||||
}
|
||||
}
|
||||
|
||||
void Window::CloseOthers()
|
||||
{
|
||||
WindowCloseAllExceptNumberAndClass(number, classification);
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
windowMgr->CloseAllExceptNumberAndClass(number, classification);
|
||||
}
|
||||
|
||||
void Window::CloseOthersOfThisClass()
|
||||
{
|
||||
WindowCloseByClass(classification);
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
windowMgr->CloseByClass(classification);
|
||||
}
|
||||
|
||||
CloseWindowModifier Window::GetCloseModifier()
|
||||
@@ -597,7 +600,8 @@ namespace OpenRCT2::Ui::Windows
|
||||
_currentTextBox.widget_index = callWidget;
|
||||
_textBoxFrameNo = 0;
|
||||
|
||||
WindowCloseByClass(WindowClass::Textinput);
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
windowMgr->CloseByClass(WindowClass::Textinput);
|
||||
|
||||
_textBoxInput = existingText;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user