mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 12:33:17 +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:
@@ -325,7 +325,7 @@ namespace OpenRCT2::Editor
|
||||
return;
|
||||
}
|
||||
|
||||
auto* windowMgr = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
|
||||
switch (GetGameState().EditorStep)
|
||||
{
|
||||
@@ -382,7 +382,7 @@ namespace OpenRCT2::Editor
|
||||
|
||||
static void FinaliseMainView()
|
||||
{
|
||||
auto windowManager = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto windowManager = Ui::GetWindowManager();
|
||||
auto& gameState = GetGameState();
|
||||
windowManager->SetMainView(gameState.SavedView, gameState.SavedViewZoom, gameState.SavedViewRotation);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user