mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
Move WindowInvalidate and WidgetInvalidate families into WindowManager (#23692)
* Move WindowInvalidate and WidgetInvalidate families into WindowManager * Use InvalidateWidget shorthand in more places * Cut back on UiContext includes * Cut back on Window.h includes * Remove outdated parameter comments
This commit is contained in:
@@ -1344,7 +1344,9 @@ static void ConsoleCommandForceDate([[maybe_unused]] InteractiveConsole& console
|
||||
|
||||
auto setDateAction = ParkSetDateAction(year - 1, month - 1, day - 1);
|
||||
GameActions::Execute(&setDateAction);
|
||||
WindowInvalidateByClass(WindowClass::BottomToolbar);
|
||||
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
windowMgr->InvalidateByClass(WindowClass::BottomToolbar);
|
||||
}
|
||||
|
||||
static void ConsoleCommandLoadPark([[maybe_unused]] InteractiveConsole& console, [[maybe_unused]] const arguments_t& argv)
|
||||
|
||||
Reference in New Issue
Block a user