Gymnasiast
86e265f093
Make widget creation functions lowerCamelCase
2025-06-10 19:51:21 +02:00
Aaron van Geffen
0779b9f0ab
Replace window shim and widget macros with constexpr functions ( #24566 )
2025-06-07 23:02:14 +02:00
Matt
6335c31336
Rename DrawPixelInfo to RenderTarget ( #24339 )
...
* Begin backend separation, rename type DrawingPixelInfo to RenderTarget
* Rename dpi variables to rt
2025-05-04 22:06:46 +00:00
Aaron van Geffen
3f87e2b67a
Centralise ResizeFrame in WindowBase and call when setting widgets or resizing
2025-04-11 20:37:54 +02:00
Gymnasiast
ea9e348c9d
Rename weak window widget enums
2025-03-26 12:35:49 +01:00
Gymnasiast
4badffcdb6
Change GameState_t members to lowerCamelCase
2025-03-20 23:05:57 +01:00
73
a976a43708
Rename network.h to Network.h ( #23882 )
2025-02-24 10:43:06 +01:00
73
b9b2c96c97
Rename sprites.h to SpriteIds.h ( #23804 )
2025-02-13 15:51:46 +00:00
Michael Steenbeek
be9f27e4f9
Mass rename constants ( #23656 )
2025-01-19 15:59:45 +00: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
Matt
b9f6b6f754
Refactor widgets state ( #23621 )
...
* Refactor windows to not share widget state
* First half of refactoring all the windows
* Refactor the remaining windows, compiles but has issues
* Fix drawing only every second widget
* Remove the need of an terminating widget
* Address WidgetIndex signedness issues; use kWidgetIndexNull more
* Address constexpr issue with Widget content union
* Fix tabs in scenery window
* Fix tabs in object selection window
* Adjust custom widget index for CustomTool events
* Use STR_NONE for default tooltip initialisation
* Adjustment for mingw compiler
* Fix bottom toolbar using the widget declaration not instance
* Remove pointless code in Guest window, handled by SetPage
* Prevent out of bounds crash
* Move scroll widgets initialization to SetPage in Cheats window
* Remove special logic in Options window
* Remove special logic in Park window
* Remove special logic for Player window
* Remove special logic for Research window
* Remove special logic for Ride window
* Remove special logic for Staff window
* Remove special logic for Finances window
* Remove special logic for MapGen window
* Remove special logic for editor objective options window
* Remove special logic for editor scenario options window
* Fix widgets not being set since page is initialized to 0
* Remove more redundant code
* Fix remaining access to widget declarations
* Remove unused variable
* Fix editor object selection tabs on successive windows
---------
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net >
2025-01-18 13:45:17 +01:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
a24dc2e60a
Reduce includes in and of Util.h/cpp
2024-12-11 20:42:43 +01:00
Michael Steenbeek
a2ed026264
Split up remaining tile elements
2024-10-15 22:02:31 +02:00
Gymnasiast
69b033cf92
Revert "Improve consistency of toggling transparency options"
...
This reverts commit be1153b28a .
2024-09-22 19:56:02 +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
Tulio Leao
be1153b28a
Improve consistency of toggling transparency options
2024-08-31 17:51:38 -03:00
Duncan
a07b56a655
Move Viewport functions into Ui ( #22454 )
...
* Move viewport functions into ui
* Move footpath function to ui
* Don't include viewport in footpath.h
* Include missing includes
2024-08-02 06:01:31 +01:00
Aaron van Geffen
3d5c19de08
Drop Localisation.h include where not required
2024-07-13 13:33:32 +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
a63d86c488
Introduce Config namespace and struct
2024-05-10 12:10:21 +02:00
Michał Janiszewski
7b12667ddb
Reduce <algorithm> include ( #21947 )
2024-05-01 13:47:27 +02: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
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
Michael Steenbeek
8dd5014bc4
Move gStaff* globals to GameState_t ( #21285 )
2024-01-28 07:58:02 -03:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Duncan
70148c8341
Reduce accessing global widgets ( #20553 )
2023-07-05 21:49:09 +01:00
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Michael Steenbeek
5e495d63c7
Close #15660 : Allow showing window buttons on the left ( #20176 )
2023-05-19 10:17:38 +02:00
Gymnasiast
9c2d5b9fef
Make GfxDrawSprite() take reference
2023-04-11 22:53:30 +01:00
Duncan
e09f27df3c
Rename snake_case Class names (Remaining Bits) ( #19237 )
...
* Rename snake_case Class names
* Clang format
* Fix build issues
2023-01-21 19:57:17 +00:00
Duncan
859b071ddc
Rename classes with snakes OpenRCT2/A*-F* ( #19215 )
...
* Rename classes with snakes OpenRCT2/A*-F*
* Clang format files
2023-01-19 08:16:44 +00:00
Hielke Morsink
6dafbbfb65
Rename global window functions to TitleCase ( #19167 )
2023-01-16 20:13:42 +00:00
Duncan
7f5934cc95
Remove snake_case from second chunk of Drawing ( #19166 )
2023-01-16 18:52:17 +00:00
Stephan Spengler
f8ab17749d
Rename CheatSetAction to fit naming pattern
2023-01-06 22:57:15 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Gymnasiast
38f7c2a159
Allow using ImageId in widgets directly
2022-12-31 15:18:22 +01:00
Gymnasiast
162b01204d
Rename rct_widget to Widget
2022-12-31 15:18:22 +01:00
Hielke Morsink
5fa53ad528
Rename global config functions to use TitleCase
2022-10-16 21:46:08 +02:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Gymnasiast
cedccf9b0e
Use const ImageId in drawing functions
2022-09-29 21:17:15 +02:00
Gymnasiast
a088537b65
Rename rct_widgetindex to WidgetIndex
2022-08-21 18:49:23 +02:00
Hielke Morsink
7f29e4e39c
Make rct_windowclass strong type WindowClass
...
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Hielke Morsink
a258008bef
Refactor window functions to take references 4
2022-07-31 17:23:16 +02:00
Hielke Morsink
1c55e6ee7a
Close #17050 : Transparency can be toggled directly ( #17075 )
2022-04-27 13:30:58 +02:00
Ted John
884ef6b8ac
Change transparent trees to all vegetation
2022-03-19 00:07:06 +00:00