1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00
Commit Graph

27649 Commits

Author SHA1 Message Date
OpenRCT2 git bot
37735ff9aa Merge Localisation/master into OpenRCT2/develop 2025-02-01 21:16:30 +01:00
OpenRCT2 git bot
827504c874 Merge Localisation/master into OpenRCT2/develop 2025-02-01 04:02:11 +00:00
Aaron van Geffen
0049345f33 Cleanup the Climate file (#23755)
* Rename kClimateTransitions, kClimateWeatherData, kClimateWeatherGloom

* Rename WeatherTransition::DistributionSize to RandomBias

* Rename WeatherTransition type to WeatherPattern

* Rename WeatherState type to WeatherTrait and take internally

* Rename ThunderStatus type, kMaxThunderInstances constant
2025-01-31 23:27:37 +01:00
Michael Steenbeek
3c03fa308d Improve warning if language files cannot be loaded on Android 2025-01-31 23:24:50 +01:00
OpenRCT2 git bot
6f9d317edf Merge Localisation/master into OpenRCT2/develop 2025-01-31 04:02:22 +00:00
Michael Steenbeek
cfb28cd511 Turn Rotate View dropdown into two buttons
Co-authored-by: Gymnasiast <gymnasiast@users.noreply.github.com>
Co-authored-by: MasterTomNL <tomvanderlek@gmail.com>
2025-01-30 23:02:36 +01:00
Lura Skye
859a7f8c72 Fix crash placing rides without special elements. (#23739) 2025-01-29 14:47:13 +00:00
OpenRCT2 git bot
b6be456241 Merge Localisation/master into OpenRCT2/develop 2025-01-29 04:02:07 +00:00
Aaron van Geffen
17e1fab0f2 Fix hats/balloons/umbrellas not showing in guest notifications (#23728) 2025-01-28 16:31:33 +01:00
Michael Steenbeek
eeee934a47 Fix #23724: Maze Construction window buttons are not working (#23731) 2025-01-27 23:51:19 +01:00
Aaron van Geffen
24f4aa20d8 Reorganise special elements in construction window (#23660)
* Move kSpecialElementsDropdownOrder out of header file

* Move track pieces per Spacek's suggestions

* Show elements in multiple columns when appropriate

* Add separators between sections

* Split columns around a separator when possible

Co-authored-by: spacek531 <spacek531@comcast.net>
2025-01-27 22:38:43 +01:00
Aaron van Geffen
b850bf8786 Add changelog entry 2025-01-27 22:01:46 +01:00
Aaron van Geffen
9a8abf2b74 Dropdown: allow specifying number of rows per column (#23713)
* Dropdown: allow specifying number of rows per column

* Dropdown: fix indentation for kColoursDropdownOrder

* Dropdown: minor header cleanup
2025-01-27 21:49:24 +01:00
J. Neuschäfer
4bc13f2678 Platform.h: Reject big-endian systems (#23684)
Several tests fail on big-endian, indicating that the code isn't prepared
for such systems, but it wouldn't be obvious from just compiling OpenRCT2.
Make it obvious by checking it on Platform.h. Example output:

/home/user/src/OpenRCT2/src/openrct2-ui/../openrct2/platform/Platform.h:34:35: error: static assertion failed: OpenRCT2 is known to be broken on big endian. Proceed with caution!
   34 | static_assert(std::endian::native == std::endian::little,
      |               ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
ninja: job failed
2025-01-27 19:37:42 +01:00
Aaron van Geffen
aeca38d131 Prevent drawing peep accessories whilst drowning (#23729) 2025-01-27 19:24:33 +01:00
matheusvb3
a4d8eb3417 Update Ubuntu Docker image for clang-tidy-check (#23727) 2025-01-27 18:32:59 +01:00
spacek531
f1148e310e Build image repository from object images (#23640) 2025-01-27 08:25:22 +00:00
Michael Steenbeek
5b5d91abb0 Fix #23221: Track designs are saved with an incorrect ‘air’ time statistic
Co-authored-by: UnknownShadow200 <UnknownShadow200@users.noreply.github.com>
2025-01-25 23:11:18 +01:00
Michael Steenbeek
a8beae2ef3 Merge pull request #23704 from Gymnasiast/refactor/mini-golf-gotos
Remove the last gotos
2025-01-25 22:05:03 +01:00
Matt
2aba954631 Merge pull request #23708 from ZehMatt/fix-23707
Fix #23707: Crash when plugins use a custom tool
2025-01-25 22:17:44 +02:00
ζeh Matt
a80702c61f Fix #23707: Crash when plugins use a custom tool 2025-01-25 21:42:53 +02:00
Matt
fa0e7342ec Fix #23701: Potential crash when using mouse wheel on some widgets 2025-01-25 15:33:14 +01:00
Gymnasiast
5769e9237f Move Loc6DCA9A to own function 2025-01-25 15:05:33 +01:00
Gymnasiast
4b13f45eec Move Loc6DC462 to own function 2025-01-25 14:40:23 +01:00
Gymnasiast
3ad19f71ee Make Loc6DCA9A a loop 2025-01-25 14:21:24 +01:00
Gymnasiast
774240d081 Make Loc6DC462 a loop 2025-01-25 13:59:37 +01:00
Aaron van Geffen
cf448753c1 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
2025-01-25 13:46:08 +01:00
Aaron van Geffen
da0a772e4d Offset dropdown text labels and separators (#23700)
* Centre dropdown separators optically and add margins

* Offset dropdown item text slightly to add a slight margin
2025-01-25 13:43:01 +01:00
Michael Steenbeek
a3d5b4e0c3 Change FIXED_XDP from macros to constexprs 2025-01-25 13:42:22 +01:00
Matt
67024cec2d Merge pull request #23694 from AaronVanGeffen/viewport-struct
Move Viewport struct to Viewport.h
2025-01-25 00:37:46 +02:00
Aaron van Geffen
c8da126c95 Move Viewport struct to Viewport.h 2025-01-24 22:44:21 +01:00
Matt
e3929c1ca9 Merge pull request #23687 from ZehMatt/fix-23686
Fix #23686: Shortcut window crashing and missing widgets
2025-01-23 11:37:32 +02:00
ζeh Matt
fe950f75d1 Add some assertions 2025-01-23 11:05:20 +02:00
ζeh Matt
e17799fb68 Fix #23686: Shortcut window crashing and missing widgets 2025-01-23 11:01:43 +02:00
ζeh Matt
9138fba9cf Prevent out of bounds access, prevents assert on debug builds 2025-01-23 11:00:30 +02:00
Michael Steenbeek
f70d202cf0 Create buttons for vertical drops in construction window (#23665) 2025-01-22 19:22:03 +01:00
Michael Steenbeek
b0c99fcb6c Refactor more constants to kConstant notation 2025-01-22 16:16:55 +00:00
Matt
b9486b9eb7 Merge pull request #23680 from ZehMatt/fix-widget-access
Fix widget access
2025-01-22 13:06:13 +02:00
ζeh Matt
87be9f0f6e Use correct widgets instance for Banner window 2025-01-22 11:48:06 +02:00
ζeh Matt
a288d0b912 Fix marketing campaign accessing the widget declaration not instance 2025-01-22 11:41:24 +02:00
Michał Janiszewski
a002834f39 Merge pull request #23515 from ethanaobrien/develop
Fix emscripten (webassembly) support
2025-01-21 17:14:03 +01:00
spacek531
4b3a342e81 Remove screaming snake case constant TRACK_BLOCK_2 (#23657) 2025-01-21 11:54:11 +01:00
Matt
ad5c469316 Merge pull request #23670 from ZehMatt/fix-23655
Fix #23655: Crash with invalid widget index
2025-01-21 12:51:21 +02:00
ζeh Matt
e454f27518 Fix #23655: Crash with invalid widget index 2025-01-21 12:00:24 +02:00
Ethan O'Brien
a34e5f840d Use kStringIdNone on emscripten buttons 2025-01-20 08:31:12 -06:00
Ethan O'Brien
0310084c04 Merge branch 'develop' into develop 2025-01-20 08:28:57 -06:00
spacek531
5bec62c540 Beautify TrackData.cpp 2025-01-20 15:26:31 +01:00
Ethan O'Brien
2195abd80a Add ccall to exported runtime methods 2025-01-20 08:06:06 -06:00
Michał Janiszewski
0eca0198dd Emscripten: handle missing assets 2025-01-20 11:33:19 +01:00
Michał Janiszewski
b576d896c6 Upload CI assets from correct path 2025-01-20 11:33:19 +01:00