1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00
Commit Graph

603 Commits

Author SHA1 Message Date
Gymnasiast
2c7d2fff7c Move track design appearance to its own struct 2024-07-02 22:35:19 +02:00
Harry-Hopkinson
2a027f4269 Rename CheatsMaxOperatingLimit to kCheatsMaxOperatingLimit 2024-05-27 08:31:07 +00:00
Harry-Hopkinson
900b7a15d7 Rename MaxWaitingTime to kMaxWaitingTime 2024-05-27 08:27:18 +00:00
Harry-Hopkinson
c489d6288a Rename NumColourSchemes to kNumColourSchemes 2024-05-27 07:52:32 +00:00
Harry-Hopkinson
1cca5d7ec3 Rename MaxCircuitsPerRide to kMaxCircuitsPerRide 2024-05-27 07:38:57 +00:00
Harry-Hopkinson
84bdd12008 Rename MaxCarsPerTrain to kMaxTrainsPerRide 2024-05-27 07:25:48 +00:00
Harry Hopkinson
3c04e67ece Refactor constant notation in Limits.h 2024-05-26 17:54:31 +02:00
Gymnasiast
8a181b5513 Split colours and colour flags 2024-05-26 12:35:40 +02:00
Gymnasiast
250a26fb14 Use new progress bar widgets in Ride window 2024-05-19 20:20:29 +02:00
Gymnasiast
99b99ef0c5 Automatically use multiple dropdown columns 2024-05-18 20:57:02 +02:00
Aaron van Geffen
828aeadf5b Deal with -Wdeprecated-anon-enum-enum-conversion warnings 2024-05-11 11:24:01 +02:00
Aaron van Geffen
ef4cad5ee3 Move UI exclusive string ids to UiStringIds.h 2024-05-10 23:24:46 +02:00
spacek531
6df16c7946 Clean up more ride type references 2024-05-13 09:20:51 +02:00
Aaron van Geffen
57a6b0a00c Remove STR_VIEWPORT (#22018)
* Remove STR_VIEWPORT

* Remove StringIds.h include from Main.cpp
2024-05-11 18:21:45 +00:00
Aaron van Geffen
a63d86c488 Introduce Config namespace and struct 2024-05-10 12:10:21 +02:00
Claudio Tiecher
10a5d790c6 Part of #21421: replace define with constexpr (#21760)
* Part of #21421: refactor TUNNEL_MAX_COUNT

* Part of #21421: deleted unused OBJECT_SELECTION_NOT_...

* Part of #21421: refactor MAX_SERVER_DESCRIPTION_LENGTH

* Part of #21421: refactor EXPENDITURE_TABLE_MONTH_COUNT

* Part of #21421: refactor FINANCE_GRAPH_SIZE

* Part of #21421: refactor NETWORK_STREAM_VERSION and _ID

* Part of #21421: MONEY_STRING_MAXLENGTH

* Part of #21421: deleted MAX_USER_STRINGS

* Part of #21421: refactor USER_STRING_MAX_LENGTH

* Part of #21421: deleted USER_STRING_END

* Part of #21421: refactor REAL_NAME_START

* Part of #21421: refactor REAL_NAME_END

* Part of #21421: deleted FONT(X) and FONT_OPENRCT2_SPRITE

* Part of #21421: refactor CURRENCY_SYMBOL_MAX_SIZE

* Part of #21421: refactor CURRENCY_RATE_MAX_NUM_DIGITS

* Part of #21421: refactor SCROLLABLE_ROW_HEIGHT

* Part of #21421: refactor ADD_CLAMP_BODY

* Part of #21421: applied clang-format to Util.cpp

* Part of #21421: incorporate feedback from #21760

* Part of #21421: revert to nbsp in Currency.cpp

* Part of #21421: fix merge conflict

* Part of #21421: fix more merge conflict

* Part of #21421: apply clang format

* Part of #21421: using std::numerics for finding bounds

* Part of #21421: fix reference to kAddClampBody

* Part of #21421: improved on comments about AddClamp func

* Part of #21421: apply correct network stream version number

* Part of #21421: apply clang-format
2024-05-09 08:59:03 -03:00
Michał Janiszewski
7b12667ddb Reduce <algorithm> include (#21947) 2024-05-01 13:47:27 +02:00
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