Duncan
7f5934cc95
Remove snake_case from second chunk of Drawing ( #19166 )
2023-01-16 18:52:17 +00:00
Duncan
8a8d3105f3
Remove snake_case from first chunk of Drawing ( #19164 )
...
* Remove snake_case from first chunk of Drawing
* Address formatting
2023-01-16 13:50:43 +00:00
Michael Steenbeek
412bf8f8be
Use ride references instead of pointers
2023-01-07 14:02:18 +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
Duncan
482971710d
Apply code style to context functions
2022-11-06 21:49:07 +01:00
Michael Steenbeek
27f3a3a796
Create function to resize window frame
2022-11-06 10:29:40 +01:00
Hielke Morsink
31dd4bf604
Use lower-case u integral suffix
2022-10-29 16:33:05 +02:00
Gymnasiast
14f9a75e0a
Refactor FontSpriteBase and font size into FontStyle
2022-10-19 11:59:26 +02:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00
Duncan
7dd8989e70
Next chunk of World/Map.h snakes ( #18296 )
...
* Next chunk of World/Map.h snakes
* Apply clang-format
2022-10-12 06:35:20 +01:00
Gymnasiast
de71ed19b5
Remove remaining usages of SPRITE_ID_PALETTE_COLOUR_1()
2022-10-11 14:54:27 +02:00
duncanspumpkin
3e8dc1b2ac
Remove snakes from the foopaths
2022-10-04 20:08:14 +01: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
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
Michael Steenbeek
5661da1c68
Unwrap game action compat wrappers
2022-08-11 00:00:58 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Hielke Morsink
d05d675ed9
Refactor window functions to take references 6
2022-07-31 17:23:17 +02:00
Hielke Morsink
a258008bef
Refactor window functions to take references 4
2022-07-31 17:23:16 +02:00
Hielke Morsink
c8605a8763
Refactor window functions to take references 2
2022-07-31 17:23:15 +02:00
Michael Steenbeek
1a8660d59d
Pass window reference to tool_set ( #17625 )
2022-07-27 22:22:22 -03:00
Duncan
5d896c65b5
Refactor Guest Window to Class
2022-07-03 22:00:37 +02:00
duncanspumpkin
f835a5b521
Apply clang-tidy to static variables
2022-03-18 00:38:26 -03:00
Hielke Morsink
ba85cf4873
Close #15896 : Refactor out the ZoomLevel operators
2022-02-26 23:14:59 +01:00
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02:00
Michael Steenbeek
ffe67ff33e
Merge pull request #16642 from Gymnasiast/refactor/dropdown
...
Create Dropdown::Item and use it for gDropdownItems
2022-02-15 18:50:26 +01:00
Ted John
b775832d01
Refactor window flags to be read with the helper methods
2022-02-13 23:09:42 +00:00
Ted John
da89a4e413
Remove rct_window::enabled_widgets ( #16643 )
...
`enabled_widgets` was used to enable input for widgets. However I do not recall anywhere this being used to specifically disable a widget which doesn't use the dedicated `disabled_widgets` flag. I don't think there is any purpose in keeping this, so I have removed all uses of it.
2022-02-13 23:06:19 +00:00
Gymnasiast
723867e0a0
Create Dropdown::Item and use it for gDropdownItems
2022-02-12 23:57:22 +01:00
ζeh Matt
4554d6d883
Fix all uses of RideId
2022-02-12 18:11:18 +02:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02:00
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
Ted John
2108322806
Use ImageId for picked up peep
2021-12-07 20:17:22 +00:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
Duncan
90d2be3ddd
Clang tidy Part 3: Ui Project Enum Names ( #15986 )
...
* Enum constant case
* Apply enum names clang tidy
* Rename scoped enum missed by clang-tidy
2021-11-26 14:25:34 +00:00
Duncan
bb2c7dbaca
Clang tidy Part 1: Ui Project Function Names ( #15956 )
...
* Add NOLINT around STL using classes and vendor functions
* Apply clang-tidy to ui project function names
* Undo scripting clang-format
* Upper case OpenRCT2 and RCT2
2021-11-23 13:18:07 +00:00
Duncan
3f19d6f7d7
Split Peep header Guest into separate header ( #15810 )
...
* Move guest functions and classes to guest header
* Reduce includes of Peep.h
2021-10-28 21:38:23 +01:00
Steve Blythe
b15dc66acb
Part of #12098 : Use ScreenRect in gfx_filter_rect() ( #15603 )
2021-10-20 19:43:32 -03:00
Hielke Morsink
9dd20ec619
Improve array formatting
...
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
Hielke Morsink
6de1868ad8
Use (const) references to widgets where possible
...
Note: The change from `w->widgets[WIDX_ENTRY_PRICE]` to `entryPriceWidget` is intended.
2021-10-01 15:21:00 +02:00
Hielke Morsink
9dd9b27db4
Make WIDGETS_END constexpr
2021-09-26 11:11:42 +02:00
Hielke Morsink
a8b84989eb
Check for nullptr explicitly in operct2-ui ( #15460 )
2021-09-25 08:45:06 +02:00
ζeh Matt
e5de2adc4f
Merge pull request #15429 from ZehMatt/backport/ticks
...
Remove scenario ticks and adjust export/import
2021-09-23 12:08:16 -07:00
ζeh Matt
74e8988dd8
Remove scenario ticks and adjust export/import
...
Co-authored-by: Ted John <ted@brambles.org>
2021-09-23 21:49:09 +03:00
Duncan
a268350615
Fix #15439 : Ride viewport is partially grey
...
The ride viewport does not work the same as other viewports due to the selection of views that it has. After refactoring the focus system to use a more streamlined approach the ride viewport lost its invalidation on resizing. If the ride window was to use the same viewport update code as say the guest window then the viewport focus still ends up incorrect due to it no longer centring the focus. Therefore the best approach was to lose the focus on resize and force a recalculation of it.
Also renamed Focus2 to Focus as Focus2 was meant to just be fill in whilst removing the original focus structs.
2021-09-21 11:06:04 +02:00
Duncan
fa57b6aea0
Remove focus union and replace with typed focus ( #15426 )
...
* Remove focus union and replace with typed focus
This if for the NSF to allow for CoordsXYZ
* Remove legacy structures
* Rework viewport_create to deduplicate logic
* Simplify yet further
* Apply review comments
* Remove intermediate
2021-09-18 20:34:38 +01:00
Kane
b35fd28c55
Feature #7682 : Lock camera to vehicle in main window
...
Pressing the "Locate" button in the Ride window when selected on a "Vehicle/Train" will now have the main viewport track the vehicle.
2021-09-13 20:44:52 +02:00
ζeh Matt
516232e0a7
Change static casts to EnumValue
2021-09-10 19:10:15 +03:00