Commit Graph
870 Commits
Author SHA1 Message Date
Gymnasiast 83cbac90ec Move stuff that affects the whole screen/viewport out of Drawing.{cpp,h} 2026-09-06 19:40:56 +02:00
Harry Hopkinson 97b91941eb Rename RideStation struct members in Ride.h (#27072) 2026-09-06 17:43:24 +02:00
Michael Steenbeek 1cee317188 Fix #24457: Yellow is always rendered as third remap in Ride window (#27063) 2026-09-06 15:13:08 +00:00
Harry Hopkinson 0fb70602d3 Convert contents of EntityRegistry.h to camelCase (#27019) 2026-08-29 22:24:54 +00:00
Harry Hopkinson c7bee6257d Create enum and flagholder for StationObjectFlags 2026-08-28 22:26:03 +00:00
RayKoopa 1e8d8707c0 Fix partial/no car drawn on vehicle tab if ride has <1 cars per train (#26992)
Always draw first non-zero car to ensure RideEntryGetVehicleAtPosition returns a non-empty / meaningful sprite.
2026-08-26 14:16:00 +02:00
Michael Steenbeek a74f7437b9 Rename symbols of Peep (#26949) 2026-08-17 23:42:30 +02:00
Michael Steenbeek af352f18ef Create functions to get a random colour (#26939) 2026-08-16 14:46:53 +02:00
Michael Steenbeek 34e8149e93 Merge pull request #26915 from Harry-Hopkinson/remove-final-openrct2-ui-includes
Finish removing openrct2-ui includes
2026-08-12 15:35:17 +02:00
Gymnasiast 84f1946db8 Make TrackElement members adhere to code style 2026-08-12 15:17:50 +02:00
Gymnasiast 4af2e9d1fd Make EntranceElement members adhere to code style 2026-08-12 15:17:23 +02:00
Harry Hopkinson b95d24bb68 Remove openrct2-ui/windows includes 2026-08-11 22:57:19 +01:00
Gymnasiast ac2515d483 Make TileElement.h adhere to code style 2026-08-11 22:17:52 +02:00
Harry Hopkinson d6863ccf99 Remove openrct2-ui/interface includes 2026-08-11 10:16:19 +01:00
Gymnasiast 5c0fc86397 Rename CarEntry members to adhere to code style 2026-08-09 17:02:34 +02:00
Gymnasiast f08bc61f03 Refactor park flags into enum class+FlagHolder 2026-08-08 18:49:32 +02:00
Gymnasiast 780a135087 Rename members of RideComponentType 2026-08-07 06:57:37 +02:00
jcranston 1423ab779a Fix #26811: Crash when a ride points to a non-existing station object 2026-08-05 19:19:02 +02:00
Aaron van Geffen 799002a820 Fix colour buttons showing up for uncolourable shops with cheats active (#26858)
* Fix colour buttons showing up for uncolourable shops with cheats active

* Minor code deduplication

* Fix Merry-go-Round showing track style group

* Move visiblity button to station group if no track present
2026-08-03 21:00:10 +02:00
Gymnasiast 47c1bf9166 Rename members of SpriteGroupType 2026-08-02 20:00:55 +02:00
Michael Steenbeek 0284f9cda6 Refactor dropdown flag to FlagHolder, reverse "stay open" flag (#26855) 2026-08-02 19:22:52 +02:00
Aaron van Geffen d517f19ce2 Use flags for widget visibility instead of empty widget type (#26801)
* Use widget visibility instead of empty widget type

* Add widget visibility helper functions

* Remove ::empty type from Banner window

* Remove ::empty type from EditorBottomToolbar window

* Remove ::empty type from ToolbarTop window

* Remove ::empty type from EditorInventionsList window

* Remove ::empty type from EditorObjectSelection window

* Remove ::empty type from EditorScenarioOptions window

* Remove ::empty type from Finances window

* Remove ::empty type from Footpath window

* Remove ::empty type from TrackList window

* Remove ::empty type from TitleMenu window

* Remove ::empty type from ProgressWindow window

* Remove ::empty type from MapGen window

* Remove ::empty type from Map window

* Remove ::empty type from Sign window

* Remove ::empty type from LoadSave window

* Remove ::empty type from GameBottomToolbar window

* Remove ::empty type from GuestList window

* Remove ::empty type from TileInspector window

* Remove ::empty type from Themes window

* Remove ::empty type from ScenarioSelect window

* Remove ::empty type from Staff window

* Remove ::empty type from StaffList window

* Remove ::empty type from Options window

* Remove ::empty type from Scenery window

* Remove ::empty type from RideList window

* Remove ::empty type from NewCampaign window

* Remove ::empty type from NewRide window

* Remove ::empty type from Research window

* Remove ::empty type from RideConstruction window

* Remove ::empty type from Multiplayer window

* Remove ::empty type from Park window

* Remove ::empty type from Ride window

* Remove ::empty type from LandRights window
2026-08-02 17:48:50 +02:00
Gymnasiast b9484d7f48 Fix facility drawing 2026-08-02 11:35:20 +02:00
Aaron van Geffen ea084b9828 Keep colour tab visible for shops when ride type cheats are on 2026-08-01 22:16:25 +02:00
Aaron van Geffen c35f71131f Hide operating mode 'tweak' option for shops and stalls 2026-08-01 22:02:31 +02:00
Aaron van Geffen c51e3a3e40 Move ride type selection to operations tab; add visibility button to appearance tab 2026-07-11 14:40:08 +02:00
Harry Hopkinson df2a210fd8 Rework openrct2/drawing includes (#26815) 2026-07-21 17:00:55 +02:00
MarcelVos96 9de2d43fb6 Fix typo of "trough" to "through" for PoweredLaunchPassthrough and PATH_THROUGH_VERTICAL_LOOP (#26800) 2026-07-17 22:14:28 +02:00
Aaron van Geffen d4df0267b4 Fix block sections label for powered launch (#26786) 2026-07-15 16:15:03 +02:00
Aaron van Geffen 3f7eca60f2 Rework ride operations tab (#26765)
* Split OperatingOnPrepareDraw into two functions: one for mode, one for wait/load

* Set up modular operating and load widget positioning

* Drop horizontal rule between mode settings and depart settings

* Fix button width calculation in resizeSpinner, resizeDropdown

* Hide mode/load group boxes when not applicable to ride

* Add changelog entry
2026-07-09 17:56:01 +00:00
Michael Steenbeek 1be4d6d94b Update TileElementType to use new codestyle (#26766) 2026-07-09 17:50:25 +00:00
Aaron van Geffen eee5ebdafd Simplify two ride window event functions (#26764)
* ColourUpdate: drop unnecessary call to onPrepareDraw

* MusicUpdate: move invalidation to MusicOnPrepareDraw
2026-07-09 17:23:31 +02:00
Aaron van Geffen 7393fbc661 Add group boxes to ride colour tab (#26763) 2026-07-09 15:15:34 +00:00
mgiannopoulos24 d85835a0a0 Rename Staff entity members (#26603)
* Rename Staff entity member fields

* Rename Staff entity methods for consistency

* Remove unused EntertainerCostume enum class
2026-05-28 12:28:45 +02:00
Harry Hopkinson 9d5e532064 Rename enum members to lowerCamelCase in actions/ (#26593)
* Rename enums in LoadOrQuitAction.h

* Rename enums in ScenarioSetSettingAction.h

* Rename enums in TileModifyAction.h

* Rename enums in NetworkModifyGroupAction.h

* Rename enums in LandBuyRightsAction.h

* Rename enums in LandSetRightsAction.h

* Rename enums in ParkSetParameterAction.h

* Rename enums in PeepPickupAction.h

* Rename enums in StaffSetPatrolAreaAction.h

* Rename enums in RideFreezeRatingAction.h

* Rename enums in RideSetAppearanceAction.h

* Rename enums in RideSetSettingAction.h

* Rename enums in RideSetVehicleAction.h

* Rename enums in BannerSetStyleAction.h
2026-05-21 19:16:07 +00:00
Aaron van Geffen a045abfa45 Refactor ride window's vehicle draw routines (#26080)
* Rename nextSpriteToDraw to nextImageToDraw

* Differentiate firstCarIndex from inner carIndex

* Take Widget& instead of ptr

* RideUpdateVehicleColours: simplify logic around reversed trains

* RideUpdateVehicleColours: move `colours` var into inner loop

* Extract prepareTrainCarImages into its own function

* Extract getVehiclePreviewImageId into its own function

* Rework to use std::span, avoiding pointer arithmetic
2026-05-21 20:21:02 +02:00
Marino Rottier 4fc19c9ccc Fix ride window default tab not being highlighted on open (#26587) 2026-05-19 21:05:47 +02:00
Marino Rottier 6c6acd527b Rename TileElementBase members (#26522)
* Rename TileElementBase members to camelCase

* Rename RCT12TileElementBase and RCT12TileElement members to camelCase
2026-05-17 13:21:16 +00:00
Marino Rottier 66e1411d84 Rename EntityBase and EntitySpriteData members (#26520)
* Rename EntitySpriteData members to camelCase

* Rename EntityBase members to camelCase
2026-05-17 11:21:59 +00:00
Marino Rottier 93435462de Migrate remaining spinner widgets to makeHoldableSpinnerWidgets (#26499) 2026-05-17 12:56:56 +02:00
Michał Janiszewski b8f638f5a3 Unify widget idx types 2026-05-05 21:38:25 +02:00
Marino Rottier 45ff80d890 Refactor widget state to single storage model (#26443)
* Allow flag/bitmask coexistence in readers

* Add factory helpers and bulk setters for per-widget flags

* Switch coexistence from OR-both to per-window opt-in

* Migrate seven small windows to per-widget flags

* Migrate seven more windows to per-widget flags

* Migrate Cheats, MapGen and Footpath to per-widget flags

* Fix #26421: scenery tab highlight wraps when there are 64+ groups

* Migrate Ride window to per-widget flags

* Migrate ride and maze construction windows to per-widget flags

* Migrate six more windows to per-widget flags

* Migrate Banner, EditorScenarioOptions and RideList to per-widget flags

* Migrate SceneryScatter and LoadSave to per-widget flags

* Migrate EditorObjectSelection, GameBottomToolbar, Guest, Map, NewRide and Park to per-widget flags

* Migrate TopToolbar, TrackList, Research, Player and Options to per-widget flags

* Opt in remaining windows to per-widget flags

* Narrow getters and setters to per-widget flags

* Remove bitmask fields and useWidgetFlags switch

* Restore switch statements for tab/density pressed state

* Add makeHoldableSpinnerWidgets to drop per-page loops

* Update tests for per-widget flag storage

* Add changelog entry for #26421

* Reword narrative-tense comments from the migration

* Fix clang-format violations

* Remove dead holdable-widget tables from Park and Finances
2026-04-28 09:26:02 +02:00
Alex Harvey 8a98258b96 Fix #26183: Ride stat graphs tab text is partially off screen. (#26395) 2026-04-18 03:49:46 +00:00
Aaron van Geffen 001df30eb5 Require ParkData& param for most Park functions 2026-02-13 14:36:05 +01:00
Aaron van Geffen 3d71bd9b48 Disable vehicle preview/recolour if no vehicles are recolourable 2026-03-13 09:40:58 +01:00
Aaron van Geffen 14d8f35f31 Minor tweaks to station style and ride price label positions 2026-03-12 23:23:28 +01:00
Aaron van Geffen 05bfc8915c Resize colour panel to fit widgets 2026-03-09 22:23:32 +01:00
Aaron van Geffen dd6e4059ea Reposition colour tab widgets dynamically 2026-03-09 21:57:56 +01:00
Aaron van Geffen 0fe21876fc Split ColourOnPrepareDraw into smaller sub-functions 2026-03-09 20:18:36 +01:00
Gymnasiast 49fa735600 Do not run drawText* through formatter if there are no arguments 2026-03-26 16:00:06 +01:00