mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +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:
@@ -26,6 +26,7 @@
|
||||
#include <openrct2/localisation/Formatter.h>
|
||||
#include <openrct2/management/Finance.h>
|
||||
#include <openrct2/sprites.h>
|
||||
#include <openrct2/ui/WindowManager.h>
|
||||
#include <openrct2/world/Climate.h>
|
||||
#include <openrct2/world/Park.h>
|
||||
|
||||
@@ -1254,6 +1255,8 @@ namespace OpenRCT2::Ui::Windows
|
||||
|
||||
WindowBase* EditorScenarioOptionsOpen()
|
||||
{
|
||||
return WindowFocusOrCreate<EditorScenarioOptionsWindow>(WindowClass::EditorScenarioOptions, 280, 148, WF_NO_SCROLLING);
|
||||
auto* windowMgr = GetWindowManager();
|
||||
return windowMgr->FocusOrCreate<EditorScenarioOptionsWindow>(
|
||||
WindowClass::EditorScenarioOptions, 280, 148, WF_NO_SCROLLING);
|
||||
}
|
||||
} // namespace OpenRCT2::Ui::Windows
|
||||
|
||||
Reference in New Issue
Block a user