Commit Graph
30469 Commits
Author SHA1 Message Date
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
Harry Hopkinson 8a0507708f Remove openrct2-ui/title includes 2026-08-11 22:18:05 +01:00
Harry Hopkinson e75c1dde15 Remove openrct2-ui/scripting includes 2026-08-11 22:16:10 +01:00
Gymnasiast be98df4081 Make BannerElement.h adhere to code style 2026-08-11 22:19:46 +02:00
Gymnasiast ac2515d483 Make TileElement.h adhere to code style 2026-08-11 22:17:52 +02:00
spacek531 bdbe9013cc Rename track motion functions and name globals 2026-08-11 19:30:26 +02:00
Harry Hopkinson 2c8891ca8b Remove openrct2-ui/ride includes 2026-08-11 17:17:41 +01:00
Harry Hopkinson a80faffd5c Remove openrct2-ui/ includes 2026-08-11 17:01:15 +01:00
Michael Steenbeek d9c423b1d6 Merge pull request #26907 from Harry-Hopkinson/start-removing-ui-includes
Start to remove includes in src/openrct2-ui
2026-08-11 17:15:09 +02:00
Harry Hopkinson d6863ccf99 Remove openrct2-ui/interface includes 2026-08-11 10:16:19 +01:00
Harry Hopkinson e6be313f1d Remove openrct2-ui/input includes 2026-08-10 23:38:43 +01:00
Harry Hopkinson 5ca2c1845c Remove openrct2-ui/drawing includes 2026-08-10 23:38:43 +01:00
Amonoman 4e576a04ad Fix forced portrait orientation on Android app launch (#26873)
* Fix forced portrait orientation on app launch

MainActivity had no android:screenOrientation set and GameActivity
used a fixed landscape value, so the app opened in portrait and the
device rotation lock could pin it there. SDLActivity also called
setRequestedOrientation() at runtime with a value computed from the
window width and height at creation time, which fought the manifest
setting and the system rotation lock.

Set android:screenOrientation to sensorLandscape on MainActivity and
GameActivity, and remove the runtime setRequestedOrientation() call
in SDLActivity so the manifest setting is respected and the system
rotation lock works as expected.

* Remove unused orientation logic from SDLActivity
2026-08-10 20:26:50 +02:00
Max a187bc9550 Close #26827: Add map resize hook to scripting API (#26828) 2026-08-09 20:55:24 +02:00
Michael Steenbeek bd935d75c9 Merge pull request #26899 from Gymnasiast/more-renames
Make CarEntry.h adhere to code style
2026-08-09 18:13:33 +02:00