Quitting OpenRCT2 from outside the game, e.g. from the dock or the taskbar, from another application, or on session logout, leaves the window in the background, so the save prompt opens behind whatever the user is actually looking at with nothing to indicate that the game is waiting on an answer.
SavePromptOpen() now asks the UI context for attention when an OS quit request opens the prompt while the window is unfocused. The other prompt modes follow a click in the game, so they cannot arrive unfocused. SDL maps this to a bouncing dock icon on macOS, a highlighted taskbar button on Windows, the urgency hint on X11 and a serial-less xdg-activation request on Wayland.
A park loaded through a file association or the command line never passes the load/save window, so that window kept opening in the folder from a previous session.
* feat: add PathNavigator
* separate PathConnection from PathNavigator
* add PathNavigationOptions for PathNavigator
* make PathNavigationOptions positive instead of double-negative
* [skip ci] fix typo
* [skip ci] revert formatting
* align branch with develop after merge
* Address PR feedback
* Adapt PathNavigator to lowerCamelCase renames in develop
Upstream renamed TileElementType members and PathElement/BannerElement
accessors to lowerCamelCase (#26608, #26626 and follow-ups).
* Name PathNavigator/PathConnection Register and New
Use the same names as every other scripting engine class for these two
functions, so they don't read as doing something different.
The button's state was only checked when the window was opened, a tab was switched or the window was resized, so it kept its old appearance while the window sat open. It is now checked on redraw, like the staff window does.
* Split off DateInfoPanel and ParkInfoPanel from GameBottomToolbar
* Replace gToolbarDirtyFlags (BottomToolbarDirtyFlag) with window invalidation
* Rename kGuestCountFormats{,Singular}
* Resize new panels along GUI
* Rename functions to match code style
* Remove some now-unnecessary widget resizing
* Rename panel widget indices to remove position
Fixes#21632: a few crashes that can occur when loading a custom image via plugins.
- Catch `std::exception` instead of `std::runtime_error` because the 300x300 check throws a [`std::invalid_argument`](https://github.com/OpenRCT2/OpenRCT2/blob/11da390704950cd30f1275c392140480908183a0/src/openrct2/drawing/ImageImporter.cpp#L34) exception and `std::exception` is the base class of both (`std::runtime_error` is not).
- Replaced a few asserts with `std::runtime_error`s as well, because the test script supplied in the issue was tripping over those as well.
Now instead of crashing the game or throwing an assert, they log nice readable errors to the console for plugin developers.
The setRideVisibility command was missing from the permission table, so canPerformCommand() could not map it and denied it for every client.
Filed under the cheat permission, as the button is only shown when the arbitrary ride type changes cheat is enabled.
* Improve save field alignment in file browser window
* Adjust kButtonFaceHeight to match actual usage
* Keep marketing campaign buttons overlapping
The buttons themselves were already defined as 14px high, but now the constant has changed as well.