Commit Graph
125 Commits
Author SHA1 Message Date
Aaron van Geffen 212c99ae59 Move NewsTicker to its own window and rename GameStatusBar
* Move NewsTicker to its own window

* Toggle bottom toolbar window when changing theme settings

* Rename GameBottomToolbar to GameStatusBar

* Regroup strings by window in UiStringIds.h

* Rename string ids based on current usage

* Rename UITHEME_FLAG_USE_GAME_STATUS_BAR

* Use dedicated string for status bar instead of reusing title sequence one
2026-08-17 20:40:49 +02:00
Harry Hopkinson 092783cc11 Rename Location.hpp members to camelCase (#27085) 2026-09-07 22:58:24 +02:00
Gymnasiast 83cbac90ec Move stuff that affects the whole screen/viewport out of Drawing.{cpp,h} 2026-09-06 19:40:56 +02:00
Aaron van Geffen 21e37e12f9 Rework EditorBottomToolbar into EditorStepController (#26961)
* Rename EditorBottomToolbar to EditorStepController

* Split off EditorStatusLine to its own window

* Simplify step/jump functions by making them static

* Split EditorStepController into two instances

* Resize new editor panels when game window is resized

* Move kEditorStepNames defs into EditorController to share between windows
2026-08-29 20:23:20 +00:00
Aaron van Geffen 8dab2cce07 Split off ParkInfoPanel and DateInfoPanel from GameBottomToolbar (#26919)
* Split off DateInfoPanel and ParkInfoPanel from GameBottomToolbar

* Replace gToolbarDirtyFlags (BottomToolbarDirtyFlag) with window invalidation

* Rename kGuestCountFormats{,Singular}

* Resize new panels along GUI

* Rename functions to match code style

* Remove some now-unnecessary widget resizing

* Rename panel widget indices to remove position
2026-08-16 19:50:44 +02:00
Gymnasiast 631804fd13 Make WallElement members adhere to code style 2026-08-12 15:17:55 +02:00
Harry Hopkinson d6863ccf99 Remove openrct2-ui/interface includes 2026-08-11 10:16:19 +01:00
Harry Hopkinson e6be313f1d Remove openrct2-ui/input includes 2026-08-10 23:38:43 +01:00
Gymnasiast f08bc61f03 Refactor park flags into enum class+FlagHolder 2026-08-08 18:49:32 +02:00
Gymnasiast ac8b290671 Refactor WALL_SCENERY_FLAGS into enum class+FlagHolder 2026-08-07 20:27:12 +02:00
Aaron van Geffen 082994cd52 Move widget index globals into WidgetIndexGlobals.h 2026-08-04 21:54:12 +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
Michael Steenbeek 1be4d6d94b Update TileElementType to use new codestyle (#26766) 2026-07-09 17:50:25 +00:00
Aaron van Geffen 35180cbefe Fold remaining Editor unit into EditorController 2026-06-27 14:49:12 +02:00
Aaron van Geffen 068af83a31 Move EditorStep to its own header file (#26690) 2026-06-14 18:27:02 +02:00
Harry Hopkinson 8ce9661dc9 Rename more enum members to lowerCamelCase (#26608)
* Rename enums in Cheats.h

* Rename enums in Diagnostic.h

* Rename enums in Editor.h

* Rename enums in Input.h

* Rename enums in OpenRCT2.h

* Rename enums in ConfigTypes.h

* Rename enums in Identifier.hpp
2026-05-28 10:54:24 +00: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
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
Aaron van Geffen 1cc7006127 Reorganise game actions into folders (#25987) 2026-02-10 08:57:40 +01:00
Aaron van Geffen 773ba479cd Create separate unit for GameActionRunner 2026-02-09 16:06:56 +01:00
matheusvb3 e039662267 Remove redundant namespace qualifiers (#25821) 2026-01-15 13:10:42 +01:00
Aaron van Geffen b5cd780b3e Rework drawing header includes (#25744)
* Move Csg unit into OpenRCT2 namespace

* Move G1Element into its own header file

* Clean up SpriteCommands.h

* Add trailing namespace comment to Csg.cpp

* Remove Drawing.h dependency from Graph.h

* Add <memory> include to G1Element.h

* Remove Drawing.h include from ImageTable.h (used by all objects!)

* Drop Drawing.h dependency from OpenGLFramebuffer.h

* Drop Drawing.h dependency from TextureCache.h

* Drop Drawing.h include from TitleScene.h

* Drop Drawing.h dependency from Widget.h

* Add <optional> include to SpriteFile.h

* Add Drawing.h to PlayTests, S6ImportExportTests

* Include <cstdint> in TitleScene.h for SIZE_MAX
2026-01-05 19:09:34 +00:00
Aaron van Geffen 40aaf97c07 Update copyright years to 2026 (#25741) 2026-01-05 13:42:59 +00:00
Gymnasiast daa4fe8ac3 Rename field of all config categories 2025-10-07 20:21:32 +02:00
Gymnasiast 61c3b3fc86 Rename members of ShortcutManager 2025-10-01 20:37:07 +02:00
Gymnasiast 4158ddfe11 Change CheatType to lowerCamelCase 2025-10-01 20:34:54 +02:00
Gymnasiast 472e048f69 Make WindowView into strong enum 2025-09-17 23:49:17 +02:00
Gymnasiast a662c5ef8e Change WindowClass members to use lowerCamelCase 2025-09-17 23:18:52 +02:00
Gymnasiast 3a803e13e2 Change window functions to use lowerCamelCase 2025-09-17 20:10:12 +02:00
Aaron van Geffen 4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
Aaron van Geffen 5a4cc7d00d Remove Network function name prefixes given namespace qualifiers 2025-08-31 16:02:43 +02:00
Aaron van Geffen 439afd9d5d Move Pause, PeepSpawn, Player, TileModify game actions to GameActions namespace 2025-08-26 21:39:29 +02:00
Aaron van Geffen afdee8852a Move LoadOrQuit, Map, Maze, Network game actions 2025-08-26 21:17:44 +02:00
Aaron van Geffen e8ef3897df Rework more game actions into GameActions namespace 2025-08-26 14:22:58 +02:00
Aaron van Geffen f5f3199dfe Move scenario objective/category/name/details into Scenario::Options 2025-08-22 16:05:38 +02:00
Gymnasiast 9c810d9e32 Update ParkData fields to new code style 2025-08-21 22:12:41 +02:00
Gymnasiast bd6ae5848c Rename remaining methods in Widget.h to lowerCamelCase 2025-06-10 23:20:18 +02:00
Gymnasiast 650fa3ae2e Rename WindowWidgetType to WidgetType and change for new code style 2025-06-10 19:55:12 +02:00
Gymnasiast 2002f697e0 Refactor INPUT_FLAGS into FlagHolder 2025-03-26 13:00:54 +01:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Michael Steenbeek 8266447904 Split LOADSAVETYPE_* into LoadSaveAction and LoadSaveType 2025-03-06 21:06:39 +00:00
Michael Steenbeek 06c1fed4f7 Refactor gScreenFlags to LegacyScene enum 2025-03-05 20:45:04 +00:00
Aaron van Geffen a380413c56 Remove Scenario.h include from many units (#23901)
* Reduce includes/dependencies for Scenario.h

* Remove Scenario.h include from many units
2025-03-01 17:32:32 +01:00
73 a976a43708 Rename network.h to Network.h (#23882) 2025-02-24 10:43:06 +01:00
73 c7c703515e Rename audio.h to Audio.h (#23842) 2025-02-17 13:24:03 +01:00
Aaron van Geffen a8773dd805 Move WindowClose family into WindowManager (#23646)
* Replace WindowClose() calls with Close method calls where possible

* Move WindowClose family into WindowManager

* Remove UpdateSceneryGroupIndexes hack
2025-01-19 18:49:18 +01:00
Aaron van Geffen 5fbe8d0ae1 Centralise external window signatures in Windows.h (#23653) 2025-01-19 15:50:54 +01:00
Aaron van Geffen bed4d5bdca Move WindowCreate and WindowFocusOrCreate into WindowManager (#23643)
* Move WindowBringToFront into WindowManager

* Move WindowCreate and WindowFocusOrCreate into WindowManager

* Cut back on Context/UiContext includes
2025-01-19 06:58:28 -03:00
Aaron van Geffen aa45247f21 Move WindowFind functions into WindowManager (#23517)
* Move WindowFind* functions into WindowManager

* Update parameter documentation where applicable
2025-01-08 21:12:11 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00