mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +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:
@@ -1455,7 +1455,7 @@ void Guest::CheckCantFindRide()
|
||||
|
||||
GuestHeadingToRideId = RideId::GetNull();
|
||||
|
||||
auto* windowMgr = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
WindowBase* w = windowMgr->FindByNumber(WindowClass::Peep, Id);
|
||||
|
||||
if (w != nullptr)
|
||||
@@ -3145,7 +3145,7 @@ static void PeepLeavePark(Guest* peep)
|
||||
|
||||
peep->InsertNewThought(PeepThoughtType::GoHome);
|
||||
|
||||
auto* windowMgr = GetContext()->GetUiContext()->GetWindowManager();
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
WindowBase* w = windowMgr->FindByNumber(WindowClass::Peep, peep->Id);
|
||||
if (w != nullptr)
|
||||
w->OnPrepareDraw();
|
||||
|
||||
Reference in New Issue
Block a user