Commit Graph
30483 Commits
Author SHA1 Message Date
Stephan Spengler c34fee484a Fix result.position.z of WallPlaceAction (#26441) 2026-08-20 08:53:50 +02:00
Tulio Leao 911afdbd6e Fix changelog broken by #26954 (#26956) 2026-08-19 22:03:57 -03:00
RayKoopa d1ea87512f Fix land paint price not updating when holding Ctrl (#26954) 2026-08-20 00:06:17 +02:00
Sjoerd de Bruin 3768b08999 Request user attention when the save prompt blocks quitting (#26933)
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.
2026-08-19 17:42:09 +00:00
Harry Hopkinson 6b2fb43861 Move interface types from Location.hpp to ScreenCoords.hpp (#26945) 2026-08-19 19:20:50 +02:00
Sjoerd de Bruin ac926d5550 Fix #23872: Set load/save folder for parks loaded outside the game (#26927)
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.
2026-08-19 17:39:46 +02:00
Marino Rottier e25c301668 feat: add PathNavigator (#26412)
* 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.
2026-08-19 23:49:45 +10:00
OpenRCT2 git bot ad578a121d Merge Localisation/master into OpenRCT2/develop 2026-08-19 04:27:47 +00:00
Sjoerd de Bruin 8de0f10777 Fix #25496: guest pickup button does not grey out when guest state changes (#26926)
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.
2026-08-18 17:35:22 +02:00
Harry Hopkinson 840f1c4f91 Move includes in scripting files inside ENABLE_SCRIPTING (#26950) 2026-08-18 17:24:49 +02:00
OpenRCT2 git bot bb0215abb0 Merge Localisation/master into OpenRCT2/develop 2026-08-18 04:25:20 +00:00
Michael Steenbeek a74f7437b9 Rename symbols of Peep (#26949) 2026-08-17 23:42:30 +02:00
Aaron van Geffen f5f4b522c7 Replace some bottomToolbar invalidation with date/parkInfoPanel (#26948) 2026-08-17 22:25:25 +02:00
Michael Steenbeek b5c1570b78 Rename members of smaller entities (#26946) 2026-08-17 22:10:51 +02:00
OpenRCT2 git bot ab3065fbe1 Merge Localisation/master into OpenRCT2/develop 2026-08-17 04:17:15 +00:00
Aaron van Geffen 8dab2cce07 Split off ParkInfoPanel and DateInfoPanel from GameBottomToolbar (#26919)
* 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
2026-08-16 19:50:44 +02:00
autofire372 8ebe3965a2 Re-include unistd.h in Platform.Linux.cpp (#26940)
It turns out Arch, at least, still needs this.
2026-08-16 14:31:49 +00:00
Michael Steenbeek af352f18ef Create functions to get a random colour (#26939) 2026-08-16 14:46:53 +02:00
Basssiiie 8ebb607fc4 Fix #21632: Crash when loading custom image larger than 300 by 300 pixels (#26934)
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.
2026-08-16 10:58:51 +00:00
Aaron van Geffen 182efeea9a Fix title windows not flashing when already open (#26935) 2026-08-16 10:01:40 +00:00
Aaron van Geffen 3d90510a63 Shrink and reposition top toolbar, allowing rain to be drawn (#26936) 2026-08-16 09:25:32 +00:00
Michael Steenbeek 11da390704 Merge pull request #26920 from Gymnasiast/refactor/ownership-flags
Make enum class+FlagHolder for ownership flags and normalise them
2026-08-15 00:03:06 +02:00
Gymnasiast 26c10680d5 Move two map ownership functions out of Map.h 2026-08-14 22:12:16 +02:00
Gymnasiast d2783e0564 Rename some ‘OwnershipFlag’s 2026-08-14 22:12:16 +02:00
Gymnasiast db53fd3f7f Introduce SurfaceElement::hasOwnership() 2026-08-14 22:12:16 +02:00
Gymnasiast 11547e998a Make enum class+FlagHolder for ownership flags and normalise them 2026-08-14 21:52:24 +02:00
Sjoerd de Bruin 27a9d4b3d5 Fix #26903: no permission for making a ride visible or invisible (#26911)
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.
2026-08-14 06:23:07 +00:00
Aaron van Geffen 95b54aa4f3 Fix bottom toolbar button invalidation (#26921) 2026-08-13 19:24:24 +00:00
Michael Steenbeek 3937aaa967 Merge pull request #26917 from Gymnasiast/refactor/more-enums
Refactor some tile element-related enums into enum class (+ FlagHolder)
2026-08-13 17:04:26 +02:00
OpenRCT2 git bot cef7dd164b Merge Localisation/master into OpenRCT2/develop 2026-08-13 04:34:00 +00:00
Gymnasiast df06376780 Move indestructible cheat check to caller 2026-08-12 23:03:26 +02:00
Gymnasiast 1eacb1eec8 Fix formatting for MazeConstruction.cpp 2026-08-12 18:42:23 +02:00
Gymnasiast 5af73fa31b Create enum class+FlagHolder for TrackTileElementFlag 2026-08-12 18:42:23 +02:00
Gymnasiast 4d7866e3ad Create enum class+FlagHolder for SmallSceneryElementFlag 2026-08-12 18:42:23 +02:00
Gymnasiast 1bf29b9afe Create enum class+FlagHolder for FootpathElementFlag 2026-08-12 18:42:23 +02:00
Gymnasiast b854b8d2f6 Create enum class+FlagHolder for LargeSceneryElementFlag 2026-08-12 18:42:23 +02:00
Gymnasiast 4ebed48631 Create enum class+FlagHolder for EntranceElementFlag 2026-08-12 18:42:23 +02:00
Gymnasiast 7b1b014fce Create enum class for EntranceSequence 2026-08-12 18:42:22 +02:00
Aaron van Geffen bc68828c7d Improve save field alignment in file browser window (#26916)
* 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.
2026-08-12 17:10:44 +02:00
Gymnasiast d943171fae Create enum class for EntranceType 2026-08-12 16:16:07 +02:00
Michael Steenbeek 34e8149e93 Merge pull request #26915 from Harry-Hopkinson/remove-final-openrct2-ui-includes
Finish removing openrct2-ui includes
2026-08-12 15:35:17 +02:00
Michael Steenbeek e501376aa3 Merge pull request #26914 from Gymnasiast/refactor/tile-element-code-style
Refactor code style of tile elements
2026-08-12 15:28:24 +02:00
Gymnasiast 631804fd13 Make WallElement members adhere to code style 2026-08-12 15:17:55 +02:00
Gymnasiast 84f1946db8 Make TrackElement members adhere to code style 2026-08-12 15:17:50 +02:00
Gymnasiast 25865dce31 Make SurfaceElement members adhere to code style 2026-08-12 15:17:44 +02:00
Gymnasiast d3c54532ca Make SmallSceneryElement members adhere to code style 2026-08-12 15:17:39 +02:00
Gymnasiast 2f9db0a5d4 Make PathElement members adhere to code style 2026-08-12 15:17:34 +02:00
Gymnasiast 95025ba916 Make LargeSceneryElement members adhere to code style 2026-08-12 15:17:29 +02:00
Gymnasiast 4af2e9d1fd Make EntranceElement members adhere to code style 2026-08-12 15:17:23 +02:00
Harry Hopkinson b95d24bb68 Remove openrct2-ui/windows includes 2026-08-11 22:57:19 +01:00