Commit Graph
631 Commits
Author SHA1 Message Date
Harry Hopkinson d34f17c945 Refactor Colour.h constants to kCamelCase 2024-09-24 20:42:44 +00:00
Aaron van Geffen 97acb793e8 Rename InteractionInfo::SpriteType to interactionType 2024-09-22 16:53:43 +02:00
Aaron van Geffen 6d27369ea6 Rename PeepSpriteType to PeepAnimationGroup 2024-09-22 16:42:27 +02:00
Gymnasiast 5f92d1920b Group all sequence-bound properties 2024-09-18 22:43:55 +02:00
Michael Steenbeek 4fd07d3216 Fix #2614: Junior Roller Coaster - Invisible First Vehicle 2024-09-07 21:23:58 +02:00
Aaron van Geffen b971d1596e Indent window widget definitions (#22700)
* Indent definitions in About, AssetPacks windows

* Indent definitions in Banner, Changelog, CustomCurrency windows

* Indent DebugPaint, DemolishRidePrompt windows

* Indent EditorBottomToolbar, EditorInventionsList

* Indent EditorObjectiveOptions, EditorScenarioOptions

* Indent Finances

* Indent Footpath

* Indent GameBottomToolbar

* Indent Guest window

* Indent GuestList, InstallTrack windows

* Indent Land, LandRights windows

* Indent LoadSave, Main, MapGen, MapTooltip windows

* Indent MazeConstruction

* Indent Multiplayer

* Indent NetworkStatus

* Indent NewCampaign

* Indent NewRide window

* Indent News window

* Indent NewsOptions window

* Indent ObjectLoadError window

* Indent Options window

* Indent Park window

* Indent PatrolArea window

* Indent Player window

* Indent RefurbishRidePrompt window

* Indent Research window

* Indent Ride window

* Indent RideConstruction

* Indent RideList

* Indent SavePrompt

* Indent ScenarioSelect widgets

* Indent scenario window

* Indent scenery scatter window defs

* Indent server list window

* Indent server start window§

* Indent ShortcutKeys window

* Indent Sign window

* Indent Staff window

* Indent StaffFirePrompt window

* Indent StaffList window defs

* Indent Themes window defs

* Indent TileInspector window defs

* Indent TitleExit, TitleMenu, TitleOptions, Tooltip windows

* Indent TrackDesignManage window defs

* Indent TrackDesignPlace defs

* Indent TrackList def

* Indent Transparency window defs

* Indent ViewClipping window defs

* Indent Viewport window defs

* Indent Water window defs
2024-09-04 21:11:26 +02:00
Harry Hopkinson 003c196eb8 Cleanup gameState usage (#22692) 2024-09-04 07:34:37 +02:00
Gymnasiast 71b9cfb12c Keep ‘i’ and ‘colour’ variables inside the loop 2024-08-17 19:06:09 +02:00
Gymnasiast 9bda9a50d5 Fix: ‘Randomise all’ sometimes picks invalid colours 2024-08-17 18:01:04 +02:00
Arnold Zhou cbaf01658a Add option to randomise train or vehicle colours (#22206) 2024-08-17 11:55:32 +00:00
Michael Steenbeek 47800cddcf Change RTD flags to a strong enum 2024-08-13 20:20:25 +00:00
Harry Hopkinson 4744c7416d Refactor object and network constants to kCamelCase 2024-08-11 20:21:24 +00:00
Aaron van Geffen aa7eb18d78 Rename ScrollBar struct to ScrollArea and rename its properties (#22539) 2024-08-11 16:21:53 +02:00
Gymnasiast a436801d64 Remove TrackDrawerDescriptor::SupportsTrackGroup() 2024-08-11 15:27:12 +02:00
Michael Steenbeek 07f54c22bd Create named enum for track group (#22523) 2024-08-11 09:26:19 +02:00
Aaron van Geffen 44e8c0dc68 Ride window: remove logic to hide scrollbars manually 2024-08-09 19:48:04 +02:00
Aaron van Geffen 03bc1e5707 Introduce isToolActive function as alternative for globals (#22430)
* Introduce isToolActive function
* Ride window: use isToolActive instead of gCurrentToolWidget
* Footpath window: use isToolActive instead of gCurrentToolWidget
* Staff window: use isToolActive instead of gCurrentToolWidget
* MazeConstruction window: use isToolActive instead of gCurrentToolWidget
* Guest window: use isToolActive instead of gCurrentToolWidget
* Map window: use isToolActive instead of gCurrentToolWidget
* LandRights window: use isToolActive instead of gCurrentToolWidget
* Replace SceneryToolIsActive legacy function with calls to isToolActive
* ClearScenery window: use isToolActive instead of gCurrentToolWidget
* Scenery window: use isToolActive instead of gCurrentToolWidget
* Water window: use isToolActive instead of gCurrentToolWidget
* Land window: use isToolActive instead of gCurrentToolWidget
* Widget: replace WidgetIsActiveTool with isToolActive
* RideConstruction window: use isToolActive instead of gCurrentToolWidget
* Ride: use isToolActive instead of gCurrentToolWidget
* TrackDesignPlace window: use isToolActive instead of gCurrentToolWidget
* StaffList window: use isToolActive instead of gCurrentToolWidget
* ViewClipping window: use isToolActive instead of gCurrentToolWidget
* PatrolArea window: use isToolActive instead of gCurrentToolWidget
* TileInspector window: use isToolActive instead of gCurrentToolWidget
* Park window: use isToolActive instead of gCurrentToolWidget
2024-08-05 10:47:36 +02:00
Gymnasiast 9294a58e98 Change TrackDescriptor field names to lowerCamelCase 2024-08-03 12:51:25 +02:00
tmatale 45d3105508 Fix #22292: Progress bars displayed incorrectly if multiple windows are open 2024-08-02 22:41:40 +02:00
Aaron van Geffen a97820f297 Move kRideInspectionIntervalNames into Ride unit 2024-07-13 12:30:40 +02:00
Aaron van Geffen 022d7756bd Move StringToMoney and MoneyToString to Currency unit 2024-07-12 23:33:26 +02:00
Aaron van Geffen 3fd91038c3 Rename Date.h to Localisation.Date.h to match unit file 2024-07-12 22:18:43 +02:00
Aaron van Geffen 8cef18cd2f Include cassert as needed at unit level 2024-07-09 16:43:03 +02:00
Aaron van Geffen 51873dc0f6 Include Diagnostic.h at unit level 2024-07-09 16:23:31 +02:00
JohnandAaron van Geffen 71cba8ac37 Add music track listing to ride music window (#20980)
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2024-07-08 17:03:54 +02:00
Aaron van Geffen 90dee86267 Constrain plugins to normal range when assigning ride prices (#22227)
* Constrain plugins to normal range when assigning ride prices

* Introduce kRideMinPrice, kRideMaxPrice

* Adjust RideSetPriceAction to fail in case of invalid price

* Add changelog entry
2024-07-06 09:39:00 +00:00
Gymnasiast 64230380af Sync more TrackDesign fields with their Ride counterparts 2024-07-04 00:29:41 +02:00
Gymnasiast 56accb3790 Use RatingTuple across the codebase 2024-07-04 00:29:40 +02:00
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