Michael Steenbeek
be9f1a2072
Merge pull request #21711 from AaronVanGeffen/peep-data
...
Refactor peep animation data
2024-04-26 20:06:31 +02:00
Gymnasiast
9e236d1b5a
Fix #19559 : Vehicle descriptions spill over into preview
2024-04-25 15:27:04 +02:00
Aaron van Geffen
2799d96145
Rename PeepData to PeepAnimationData
2024-04-21 22:54:10 +02:00
Aaron van Geffen
642162853f
Refactor g_peep_animation_entries into kPeepAnimationEntries
2024-04-21 22:53:37 +02:00
Harry-Hopkinson
14cdfc7262
Rename BUTTON_FACE_HEIGHT to kButtonFaceHeight
2024-04-14 16:44:39 +00:00
Harry-Hopkinson
f242bbf095
Rename LIST_ROW_HEIGHT to kListRowHeight
2024-04-14 16:37:01 +00:00
Gymnasiast
c158854a7f
Move Park into namespace, add other park-related things to struct
2024-04-04 18:14:27 +02:00
Gymnasiast
96c9b7d85d
Refactor track paint functions and available pieces in RTD
2024-03-30 00:33:35 +01:00
Claudio Tiecher
13e9ff84c2
Part of #21421 : Replace define with constexpr ( #21626 )
...
* Part of #21421 : Refactor RIDE_INITIAL_RELIABILITY in Ride.h
* Part of #21421 : Refactor STATION_DEPART_FLAG and STATION_DEPART_MASK
* Part of #21421 : Refactor MAX_STATION_PLATFORM_LENGTH
* Part of #21421 : Refactor RIDE_RATING_UNDEFINED
* Part of #21421 : Refactor TRACK_BLOCK_END
* Part of #21421 : Refactor TRACK_PREVIEW_IMAGE_SIZE
* Part of #21421 : Refactor based on feedback
* Part of #21421 : Fix signed/unsigned mismatch on Win
* Improved consistency kTrackPreviewImageSize
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
* Part of #21421 : kMaxStationPlatformLength to int8
---------
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2024-03-24 21:49:50 +00:00
CoryY
3f81a491b0
Close #21569 : Remove 'Window' from Window Open function names ( #21613 )
...
* Close #21569 : Remove 'Window' from Window Open function names
Windows are all under the OpenRCT2::Ui::Windows namespace. As such, "Window" is removed from the Open functions names.
* Update Contributors.md
* Fix formatting TrackMangeOpen
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
* Fix formatting TrackPlaceOpen
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
---------
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-03-17 06:37:46 +00:00
Peter Froud
1e51925968
Change "ternary" to "tertiary" ( #21582 )
2024-03-11 08:42:54 -03:00
Michael Steenbeek
b219ab1ed4
Use LanguageGetString() if there is nothing to format
2024-03-10 18:48:23 +01:00
Harry Hopkinson
78d95fc0bd
Pass DrawPixelInfo by reference ( #21563 )
2024-03-10 12:00:08 -03:00
Duncan
7a60e7f2e0
OpenRCT2::Ui::Windows namespace for OpenRCT2 Ui Windows ( #21559 )
...
* Move all the windows into OpenRCT2::Ui::Windows namespace
* Fix missing symbol
* Clang format
* Call the correct FormatStringID
2024-03-10 13:52:35 +00:00
Duncan
3146d463bd
Move Ui header items to OpenRCT2::Ui ( #21546 )
...
* Move ui definitions to ui project
* Enforce coding style
* Apply clang format
* Add clang tidy ignore
* Increase compiler happiness
2024-03-09 14:15:45 +00:00
Harry Hopkinson
048276b67a
Move gLastEntranceStyle to GameState_t
2024-03-09 11:27:05 +01:00
Michael Steenbeek
dec5140f20
Merge pull request #21532 from jan-kelemen/move_ride_rating_and_same_price_to_game_state
...
Move gSamePriceThroughoutPark and gRideRatingUpdateStates to GameState_t
2024-03-07 21:59:58 +01:00
Jan Kelemen
ee4e8d0323
Move gSamePriceThroughoutPark to GameState_t
2024-03-06 17:54:31 +01:00
Harry-Hopkinson
3247d16ed8
Replace size_t's with EnumValue
2024-03-04 19:21:12 +00:00
Harry-Hopkinson
56df39dcb4
Replace uint8's with EnumValue
...
Replace uint8's with EnumValue
Replace uint8's with EnumValue
Revertl arge change
Revert large change
Format
2024-03-04 19:04:18 +00:00
Duncan
4b6ba80a46
Move cheats to struct in GameState_t
2024-03-03 22:44:15 +01:00
Harry Hopkinson
7797db10c8
Replace Macros and Notation in Cheats.h, common.h and Context.h. ( #21437 )
2024-02-23 19:30:35 -03:00
Harry Hopkinson
d8864e567c
Close #21379 : Move map base z to constant
2024-02-20 11:49:02 +01:00
Harry Hopkinson
a55da09e1c
Move gMapBaseZ to GameState_t ( #21370 )
...
* Move gMapBaseZ to GameState_t
* Fix fomatting
2024-02-11 21:40:32 +00:00
Michael Steenbeek
8dd5014bc4
Move gStaff* globals to GameState_t ( #21285 )
2024-01-28 07:58:02 -03:00
Severin Paul Höfer
d0aae46a75
Refactor existing structs to use u8string_view
2024-01-23 22:54:06 +01:00
Severin Paul Höfer
576caaa094
Use u8string_view for LabelString
2024-01-23 22:43:45 +01:00
Severin Paul Höfer
fb41a5764c
Refactor existing structs to use TitleCase
2024-01-23 21:49:43 +01:00
Severin Paul Höfer
2136706129
Use TitleCase for members of EntranceTypeLabel
2024-01-23 21:46:31 +01:00
Severin Paul Höfer
e8b05c4afd
Sort entrance styles alphabetically
2024-01-23 21:42:30 +01:00
Severin Paul Höfer
e27a20f800
Sort entries in entrance style dropdown
2024-01-23 21:42:30 +01:00
Hielke Morsink
13351d996e
#21193 : Move gParkFlags to GameState_t, refactor uses
...
Also changed a few instances where GetGameState was called inside the same function.
The change in Peep.cpp is needed because of a function conflict. FormatStringID exists both in the global and in the OpenRCT2 namespace.
2024-01-22 16:31:35 +01:00
ζeh Matt
a5dde0f8dc
Replace gCurrentTicks with the one in GameState_t
2024-01-19 16:32:19 +02:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
spacek531
79730e50fd
Diagonal Brakes and Block Brakes
2023-10-01 18:58:03 -07:00
Duncan
77dd3cf8e2
Move all construction related logic into OnOpen ( #20632 )
2023-09-07 08:20:28 +02:00
Duncan
ea3508b22c
Reduce accessing global widgets Part 2 ( #20572 )
...
* Further work to remove references to widget globals
* Clang format
2023-07-09 21:07:14 +01:00
Duncan
0747ad7497
Remove even more window uncommon vars ( #20495 )
...
* Break uncommon union
* Move uncommon highlightedScenario into derived
* Split off multi use variable
* Adjust name
2023-06-27 22:33:26 +01:00
Duncan
d40102aa9d
Remove some uncommon variables and break unions ( #20440 )
2023-06-27 06:34:06 +01:00
duncanspumpkin
697712c352
Apply formating
2023-06-26 08:26:25 +01:00
duncanspumpkin
ed5abfc7de
Apply coding style to ride window
2023-06-26 08:26:25 +01:00
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
duncanspumpkin
f0658202ef
Fix mistake
2023-06-20 08:52:00 +01:00
duncanspumpkin
9b8b672507
Finish linking up parts
2023-06-20 08:42:25 +01:00
duncanspumpkin
5e71fd4796
Hook up events
2023-06-16 09:00:52 +01:00
duncanspumpkin
825634360b
Finish initial sweep
2023-06-16 08:13:20 +01:00
duncanspumpkin
75799d3be5
Start refactor of ride window
2023-06-15 21:24:56 +01:00
Michael Steenbeek
5e495d63c7
Close #15660 : Allow showing window buttons on the left ( #20176 )
2023-05-19 10:17:38 +02:00
Duncan
ee100f59c0
Fix #19800 . Crash when more than 62 stations on a ride ( #20039 )
...
* Fix #19800 . Crash when more than 62 stations on a ride
This is a bit of a temporary fix. The crash happens due to exhausting the space in the formatter but the format string only ever handled 4 stations so it was still not going to work for 5 <=> 62 stations. So for the time being capped the output at 4 stations.
* Add changelog entry
* Apply review comment
2023-04-24 21:16:21 +00:00
Duncan
cdccb21dd5
Refactor of colours ( #19998 )
...
* Move dropdown functions to dropdown code
* Use a map for the colour tip
* Keep dropdownidx and colour seperated
* Allow number of rows to match vanilla
* Apply review comment
* Bump network version
2023-04-22 08:58:13 +00:00