mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Move WindowCreate and WindowFocusOrCreate into WindowManager (#23643)
* Move WindowBringToFront into WindowManager * Move WindowCreate and WindowFocusOrCreate into WindowManager * Cut back on Context/UiContext includes
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <openrct2/core/String.hpp>
|
||||
#include <openrct2/interface/Chat.h>
|
||||
#include <openrct2/network/network.h>
|
||||
#include <openrct2/ui/WindowManager.h>
|
||||
#include <openrct2/windows/Intent.h>
|
||||
|
||||
namespace OpenRCT2::Ui::Windows
|
||||
@@ -283,7 +284,8 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
WindowBase* ServerStartOpen()
|
||||
{
|
||||
return WindowFocusOrCreate<ServerStartWindow>(WindowClass::ServerStart, WW, WH, WF_CENTRE_SCREEN);
|
||||
auto* windowMgr = GetWindowManager();
|
||||
return windowMgr->FocusOrCreate<ServerStartWindow>(WindowClass::ServerStart, WW, WH, WF_CENTRE_SCREEN);
|
||||
}
|
||||
} // namespace OpenRCT2::Ui::Windows
|
||||
|
||||
|
||||
Reference in New Issue
Block a user