1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 21:43:06 +01:00
Commit Graph

18244 Commits

Author SHA1 Message Date
Sam Atkins
2b4579bd93 Use labels for OptionsWindow text
This lets us show tooltips for them. Most of the FooDraw() methods are
now empty and have been deleted.
2022-02-17 23:09:39 +01:00
Ted John
007a33404e Close plugin's windows gracefully when stopped
When a plugin is stopped, close all windows created by that plugin.
Ensure the close event on the window can not open a new window if the plugin is being stopped.
2022-02-17 20:18:30 +00:00
Ted John
105009f3f8 Fix #16591: Plugins: setInterval and setTimeout is not disposed... 2022-02-17 20:18:16 +00:00
Karst
d0c019d222 Fix #16674: Double support on B&M left inline-twist (up to down) 2022-02-17 19:22:24 +01:00
ζeh Matt
6af14a1e69 Remove SPRITE_INDEX_NULL 2022-02-17 18:44:50 +02:00
ζeh Matt
0a67426799 Add MAX_ENTITIES check in PeepPickupAction 2022-02-17 18:40:18 +02:00
Duncan
ad86544c83 Merge pull request #16668 from IntelOrca/fix/plugin-pressed-tab
Fix pressed tab for plugin windows
2022-02-17 16:13:41 +00:00
ζeh Matt
cd261fc7b2 Use DukValue for scripted entity id_get 2022-02-16 19:51:50 +02:00
ζeh Matt
512348a81d Fix Clang format 2022-02-16 19:49:25 +02:00
ζeh Matt
02b816e38a Bump up scripting API version 2022-02-16 19:42:09 +02:00
ζeh Matt
e46338a2f1 Fix scripting API returning 0 instead of null. 2022-02-16 19:41:59 +02:00
ζeh Matt
61751d551b Push right amount of vehicles for vehicles_get 2022-02-16 19:38:20 +02:00
ζeh Matt
aa3ad0424d Add <=, >= operators for TIdentifier 2022-02-16 18:56:43 +02:00
ζeh Matt
52047805db Use correct type for EntityId and fix issues 2022-02-16 18:56:43 +02:00
ζeh Matt
c1bd0ff047 Fix serializer traits 2022-02-16 18:56:43 +02:00
ζeh Matt
ff1eb583fc Make clang-format happy 2022-02-16 18:56:43 +02:00
ζeh Matt
d7f5003943 Introduce EntityId and refactor everything 2022-02-16 18:56:39 +02:00
Ted John
6c3a417af3 Merge pull request #16259 from IntelOrca/refactor/rectangle-maps
Refactor map size to allow for rectangle maps.
2022-02-15 19:08:37 +00:00
Michael Steenbeek
ffe67ff33e Merge pull request #16642 from Gymnasiast/refactor/dropdown
Create Dropdown::Item and use it for gDropdownItems
2022-02-15 18:50:26 +01:00
Ted John
b5127089e2 Fix pressed tab for plugin windows 2022-02-15 10:37:18 +00:00
Ted John
44294119c9 More code review changes 2022-02-14 23:20:19 +00:00
Ted John
6d337a15c4 Increment network version 2022-02-14 23:16:47 +00:00
Ted John
45040cd34a More code review changes 2022-02-14 23:15:59 +00:00
Ted John
83c347218b Allow plugins to call change map size game action 2022-02-14 23:15:59 +00:00
Ted John
3d2420c86c More code review changes 2022-02-14 23:15:59 +00:00
Ted John
454bfb0a8f Refactor map size to allow for rectangle maps 2022-02-14 23:15:59 +00:00
Duncan
b22ac0551c Merge pull request #16592 from skdltmxn/fix-integer-overflow
Fix staff statistics overflow
2022-02-14 21:41:52 +00:00
duncanspumpkin
4d341c8518 Update network version 2022-02-14 12:32:14 +00:00
skdltmxn
9cd502a9f7 Fix staff statistics overflow 2022-02-14 07:42:18 +00:00
Ted John
b775832d01 Refactor window flags to be read with the helper methods 2022-02-13 23:09:42 +00:00
Ted John
05b589fb93 Remove custom window widget limit 2022-02-13 23:09:42 +00:00
Ted John
da89a4e413 Remove rct_window::enabled_widgets (#16643)
`enabled_widgets` was used to enable input for widgets. However I do not recall anywhere this being used to specifically disable a widget which doesn't use the dedicated `disabled_widgets` flag. I don't think there is any purpose in keeping this, so I have removed all uses of it.
2022-02-13 23:06:19 +00:00
Silent
09897ede9e Refactor last_*_directory and last_run_version to use u8string
Fixes a regression from #16631 causing a crash when
constructing u8string from a nullptr
2022-02-13 21:34:26 +01:00
Michael Steenbeek
34aafa5e14 Merge pull request #16638 from Gymnasiast/fix/16576
Fix #16576: Cannot select vehicle types with entry index >= 256
2022-02-13 21:33:53 +01:00
Gymnasiast
9441d4b24f Bump network version 2022-02-13 21:11:18 +01:00
Gymnasiast
4abbfcb32b Create dropdown item flags 2022-02-13 00:14:33 +01:00
Gymnasiast
723867e0a0 Create Dropdown::Item and use it for gDropdownItems 2022-02-12 23:57:22 +01:00
Gymnasiast
a17c4ad304 Rename Dropdown::Item to ItemExt 2022-02-12 23:42:59 +01:00
Karst
9dd54b9ee1 Add Inline Twist to B&M Track (#16389)
This adds the inline twist to the B&M track.

Feature is complete. Note: The inline twist doesn't draw correctly when going out of the tunnel. This is sadly an original bug, as this is also present on the Flying RC's Flying Twist (#7466).
2022-02-12 22:31:08 +01:00
Gymnasiast
49ccc21d84 Fix #16576: Cannot select vehicle types with entry index >= 256 2022-02-12 20:43:45 +01:00
Gymnasiast
3ff8225bb9 Replace some uint8_t in Ride.cpp 2022-02-12 20:43:45 +01:00
ζeh Matt
c0474d2d27 Merge pull request #16466 from ZehMatt/refactor/identifier-rideid
Use TIdentifier for RideId
2022-02-12 11:23:54 -08:00
Michael Steenbeek
ee54603695 Rename value strings for spinners (#16637) 2022-02-12 20:17:37 +01:00
Michael Steenbeek
44a607800e Bring ImageImporter enum names in line with code style 2022-02-12 18:56:17 +01:00
ζeh Matt
004cf02c26 Fix variable name type conflict 2022-02-12 18:15:19 +02:00
ζeh Matt
f22142d2cf Use RideId::GetNull over SELECTED_RIDE_UNDEFINED 2022-02-12 18:13:50 +02:00
ζeh Matt
f4d105f843 Remove NetworkRideId 2022-02-12 18:11:18 +02:00
ζeh Matt
1fe6c0618b Fix clang format 2022-02-12 18:11:18 +02:00
ζeh Matt
06e430157f Use RideId::GetNull and RideId::IsNull over constant 2022-02-12 18:11:18 +02:00
ζeh Matt
4554d6d883 Fix all uses of RideId 2022-02-12 18:11:18 +02:00