Commit Graph
435 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 5491820d02 Move game palette-related stuff into Palette.{cpp.h} 2026-09-06 18:46:07 +02:00
Kirill Gusev 453ddb49b8 Rename FileScanner fields and methods (#27055) 2026-09-06 12:39:33 +02:00
Harry Hopkinson 0fb70602d3 Convert contents of EntityRegistry.h to camelCase (#27019) 2026-08-29 22:24:54 +00:00
Michael Steenbeek a74f7437b9 Rename symbols of Peep (#26949) 2026-08-17 23:42:30 +02: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 25865dce31 Make SurfaceElement members adhere to code style 2026-08-12 15:17:44 +02:00
Aaron van Geffen 15b36d6ced Introduce dedicated header for window-related enum types (#26883) 2026-08-07 19:53:17 +02:00
Gymnasiast 2769a3ff8c Rename members of RecordType 2026-08-07 06:57:34 +02:00
Harry Hopkinson 1b48206334 Remove more unused includes (#26804) 2026-07-20 14:19:59 +02:00
MaukWM 1ef6b7e941 Add save game binding in plugin API (#26560)
* Add context.saveGame() binding in plugin API.

* Add option to save games to a specific path via the plugin API.

* Alter documentation for SaveGameOptions.

* Bump kPluginApiVersion to 116.

* Use IsFilenameValid to disallow saving files with invalid characters

* Add changelog entry
2026-07-08 11:40:39 +00:00
Aaron van Geffen c50b46fc39 Rename getScenarioEditorScene to disambiguate 2026-07-03 12:35:22 +02:00
Aaron van Geffen d543de0807 Work around GameLoadInit switching scene away from editor 2026-06-27 15:36:49 +02:00
Aaron van Geffen bd3d24b181 Add clarification around GameLoadInit calls 2026-06-27 14:59:08 +02:00
Aaron van Geffen 35180cbefe Fold remaining Editor unit into EditorController 2026-06-27 14:49:12 +02:00
Aaron van Geffen ad24c5c17f Introduce SceneManager class (#26691) 2026-06-14 16:46:48 +00:00
mgiannopoulos24 ab47bbd5d9 Rename Guest entity members (#26625) 2026-05-30 14:21:37 +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
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
Gymnasiast f3cec44278 Move TrackTypeIs*() to TrackElemType.{cpp,h} 2026-03-10 18:33:43 +01:00
Aaron van Geffen be84cdb1bb Rename Climate to Weather where appropriate (#26163)
* Introduce OpenRCT2::Weather namespace

* Rename Climate.h/cpp to Weather.h/cpp

* Rename ScClimate.hpp to ScWeather.hpp

* Rename drawing/Weather.h to drawing/WeatherDrawer.h
2026-03-08 11:00:07 +01: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
frozensnowy 10ea862bda Fix #23859: Wrong banner text displayed after loading different park
The scrolling text cache matches entries using memcmp on raw Formatter data which includes pointers to ride/banner names. When loading a new park, memory addresses can be reused, causing false cache matches that display text from the previous park. This adds invalidate() calls to both park loading paths to clear stale cache entries
2026-02-01 13:41:47 +01:00
Michael Steenbeek 343c7a70d7 Change colour to a strong enum (#25873) 2026-01-28 10:06:45 +01:00
matheusvb3 162977a84b Remove redundant namespace qualifiers from miscellaneous files (#25816) 2026-01-14 23:15:07 +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
Aaron van Geffen db619be0c3 Rename ViewportInitAll to ContextResetSubsystems (#25690) 2025-12-23 11:56:52 +01:00
Gymnasiast 57e65f5888 Rename members of RCT2LanguageId 2025-10-07 20:46:11 +02:00
Gymnasiast daa4fe8ac3 Rename field of all config categories 2025-10-07 20:21:32 +02:00
Gymnasiast 8f399dfbdd Rename members of EntityType 2025-10-05 14:58:57 +02:00
Gymnasiast 159dc7aab0 Rename members of PeepState 2025-10-05 14:46:12 +02:00
Gymnasiast a662c5ef8e Change WindowClass members to use lowerCamelCase 2025-09-17 23:18:52 +02:00
Aaron van Geffen 99065960f2 Rename InputFlags::unk{4,5} to {left,right}MousePressed 2025-09-15 22:44:39 +02:00
Aaron van Geffen 9b7ee06e0f Move Context fully into OpenRCT2 namespace; types into Input.h 2025-09-12 14:03:44 +02:00
Aaron van Geffen 4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
Michał Janiszewski a3daec8150 Merge pull request #24892 from ethanaobrien/develop
Emscripten: Download/Upload parks
2025-09-07 07:28:08 +02:00
Matt 6333c91a8e Merge pull request #25090 from jaterx/develop
Fix for Attempt to decrement guests in park and guests heading for park below zero. #21172
2025-09-07 01:01:53 +03:00
Jater Xu d90329731d Fix for Attempt to decrement guests in park and guests heading for park below zero.
Updated Review:
- Removed ignore warning variable
- Changed the log level of the related warnings to verbose
2025-09-02 10:33:18 -07:00
Jater Xu 6fb00193ac Fix for Attempt to decrement guests in park and guests heading for park below zero. #21172
Fix:
- Calling recompute peep functions when in title sequence
- Provided a way to ignore the warning for title sequence
2025-09-01 19:47:42 -07:00
Aaron van Geffen 5a4cc7d00d Remove Network function name prefixes given namespace qualifiers 2025-08-31 16:02:43 +02:00
Aaron van Geffen 12ab9195b6 Rework EntityRegistry into class 2025-08-31 14:29:36 +02:00
Aaron van Geffen afdee8852a Move LoadOrQuit, Map, Maze, Network game actions 2025-08-26 21:17:44 +02:00
Aaron van Geffen 1e059d18d0 Move Guest and Land game actions into GameActions namespace 2025-08-26 15:10:05 +02:00
Aaron van Geffen be125fc9e1 Use ParkData refs in more places (#25035) 2025-08-25 22:25:53 +02:00
Aaron van Geffen f11d1e33d0 Move Scenario::Objective into its own unit; enum class ObjectiveType 2025-08-22 17:40:47 +02:00
Aaron van Geffen e6c0de0382 Move .numGuests(HeadingForPark|InParkLastWeek) into ParkData struct 2025-08-13 22:28:18 +02:00