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
Rik Smeets
9688d93e46
Open campaign tab from finished campaign news
...
When a marketing campaign is finished, it is likely the player wants to renew it.
This change allows the ‘Campaigns’ tab in the 'Finances' window to be opened from the news item of the finished campaign.
2022-11-18 13:26:52 +01:00
Duncan
482971710d
Apply code style to context functions
2022-11-06 21:49:07 +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
Michael Steenbeek
6fe19878f6
More ImageId cleanup ( #18258 )
...
* Remove more usages of uint32 image indices
* Remove unused gfx_get_sprite_size()
* Remove uint32 images from text drawing
* Remove now-unused ImageId overload
* Default-initialise ttfRunIndex
* Suppress false-alarm GCC error
2022-10-10 19:42:40 +01:00
Hielke Morsink
d4774293d5
Fix #18064 : Unable to dismiss notification messages
2022-10-07 16:44:06 +02:00
Duncan
3565a0172d
Attack snakes in banners and climate ( #18163 )
2022-10-01 18:54:15 +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
45e7ee6a73
Rename rct_window_event_list to WindowEventList
2022-08-27 16:56:52 +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
76c1bc8980
Refactor window functions to take references 1
2022-07-31 17:23:15 +02:00
duncanspumpkin
f835a5b521
Apply clang-tidy to static variables
2022-03-18 00:38:26 -03:00
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02: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
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
ζeh Matt
c4ad5fcd15
Adjust includes
2021-11-26 21:01:44 +02: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
ζeh Matt
56e78d5733
Merge pull request #15985 from ZehMatt/refactor/entities2
...
Refactor Sprite to Entity
2021-11-25 12:53:50 -08:00
ζeh Matt
0024252328
Fix includes
2021-11-24 17:19:52 +02: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
9dd9b27db4
Make WIDGETS_END constexpr
2021-09-26 11:11:42 +02:00
ζeh Matt
59a6c34db4
Make use of std::optional strict
2021-09-13 20:02:32 +03:00
Ted John
e56b7ae4a4
Fix more money64 issues
2021-08-01 15:14:42 +02:00
Ted John
70d9c1438e
Change most things and formatting to money64
2021-08-01 15:14:42 +02:00
Hielke Morsink
e54dc7e466
Use consistent left-shift notation for widgets ( #14956 )
2021-06-26 14:23:15 +02:00
Duncan
39fcc5d078
Split up Sprite header ( #14764 )
...
* Remove fields from rct_sprite union
* more header fun
* Fix guest include
2021-05-29 06:01:32 +01:00
Duncan
8eabdf8c8f
Split guest and staff peep variables ( #14462 )
...
* Split guest and staff peep variables
* Move variable location
* Increment network version
* Update replays
2021-04-18 17:48:21 +01:00
Tulio Leao
aa88c8d181
Increase usage of gfx_fill_rect_inset that uses ScreenRect
2021-03-29 09:31:05 -03:00
Tulio Leao
d5b5c10e80
Use ScreenCoordsXY for window_game_bottom_toolbar_draw_park_rating
2021-03-29 09:31:04 -03:00
Duncan
977d05ba29
Entity type5: Remove peep assigned type ( #14380 )
...
* Remove users of AssignedPeepType
* Remove AssignedPeepType
Field no longer required due to changes to EntityType
* Move enum to the RCT12 header
* Increment network version
* Update replays
2021-03-24 08:54:05 +00:00
Michael Steenbeek
a5a63f839a
Allow passing ImageId into gfx_draw_sprite()
2021-03-23 11:58:09 +01:00
Gymnasiast
50da55eaf3
Fix #14212 : Multiline news messages are shown incorrectly
2021-03-02 22:48:33 +01:00
Gymnasiast
3e536e2711
Change gfx_draw_string_*_wrapped() to DrawTextWrapped()
2021-02-28 00:23:01 +01:00
Gymnasiast
e2ebc9d43b
Replace gfx_draw_string_left() with DrawTextBasic()
2021-02-28 00:23:00 +01:00
Gymnasiast
d5f79b7972
Replace gfx_draw_string_centred() with DrawTextBasic()
2021-02-28 00:23:00 +01:00
Gymnasiast
2477933c51
Turn font sprite base into a strong enum
2021-02-28 00:23:00 +01:00
Ted John
19f0d8dfe9
Fix #13842 : News is imported incorrectly
2021-01-20 12:35:11 +01:00
Łukasz Pękalski
4adf745237
Close #12403 : Refactor FILTER_PALETTE_ID to use strong enum ( #13273 )
2020-12-05 15:13:59 -03:00
ffrogman
7ed1804e61
Fix #12410 : Refactor WINDOW_WIDGET_TYPES to use strong enum ( #13453 )
...
* Fix #12410 : Refactor WINDOW_WIDGET_TYPES to use strong enum
2020-11-27 00:14:20 -03:00
pizza2004
2015acd4c0
Refactor UI/Interface Window to Title Case ( #13367 )
2020-11-04 04:52:23 +00:00