Gymnasiast
c158854a7f
Move Park into namespace, add other park-related things to struct
2024-04-04 18:14:27 +02:00
Harry Hopkinson
bf20a6d146
Fix #21317 : Track designer allows proceeding without an object selected
...
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2024-03-26 13:53:32 +01: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
mrmbernardi
4ccecd6e68
Remove forwarding functions in Window.cpp ( #21516 )
2024-03-03 18:04:09 +01:00
Harry Hopkinson
701bbda164
Move gEditorStep to GameState_t ( #21492 )
...
* Move gEditorStep to GameState_t
* Fix compilation on GCC
---------
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2024-03-01 20:26:20 +00:00
Michael Steenbeek
115e7389a9
Move most gScenario* globals to GameState_t
2024-01-24 22:17:32 +01:00
Hielke Morsink
13351d996e
#21193 : Move gParkFlags to GameState_t, refactor uses
...
Also changed a few instances where GetGameState was called inside the same function.
The change in Peep.cpp is needed because of a function conflict. FormatStringID exists both in the global and in the OpenRCT2 namespace.
2024-01-22 16:31:35 +01: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
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Gymnasiast
bb83a80eab
Use dpi ref in rect and line drawing functions
2023-04-11 22:59:01 +01:00
Gymnasiast
9c2d5b9fef
Make GfxDrawSprite() take reference
2023-04-11 22:53:30 +01:00
Gymnasiast
a15f72da87
Pass DPI by ref to string drawing
2023-02-24 22:05:07 +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
917c091e6b
Rename snake_case functions in OpenRCT2/marketing folder
2023-01-17 23:13:39 +00:00
Michael Steenbeek
bb55c6ce66
Remove loadsasnakes ( #19192 )
...
* Rename snake_case methods in scenario folder
* Rename snake_case methods in title folder
* Rename snake_case methods in object folder
* Rename snake_case methods in platform folder
* Rename snake_case methods in windows folder
* Rename tile_inspector.h to TileInspectorGlobals.h
* Rename snake_case methods in ui/windows folder
2023-01-17 19:46:55 +00:00
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 13:24:51 +01: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
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
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
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
Duncan
5dba30778d
Code style: Remove more snakes from the park, maphelper, scenery. ( #18222 )
2022-10-08 06:56:17 -03: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
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Michael Steenbeek
0bfc151ab9
Remove remaining usages of gGameCommandErrorText
2022-07-30 18:04:59 +02:00
Duncan
f0949284c4
Editor Bottom Toolbar Window class ( #17358 )
...
* Move EditorBottomToolbar to window class
* Minor refactoring
* Further refactoring
* keep compilers happy
2022-06-08 20:54:03 +01:00
Ted John
92fe3bf5e8
Fix drawing of scenario editor buttons
2022-04-09 12:36:47 +01: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
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
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
9dd9b27db4
Make WIDGETS_END constexpr
2021-09-26 11:11:42 +02:00
Ted John
5f853df1fd
Remove gS6Info
2021-08-02 20:38:02 +02:00
Hielke Morsink
e54dc7e466
Use consistent left-shift notation for widgets ( #14956 )
2021-06-26 14:23:15 +02:00
Gymnasiast
15fcbf5463
Remove some usages of gGameCommandErrorMessage in Editor
2021-06-09 14:05:00 +02:00
Tulio Leao
bb8c275df6
Remove raw coords gfx_fill_rect_inset overload
2021-03-29 09:34:11 -03:00
Michael Steenbeek
a5a63f839a
Allow passing ImageId into gfx_draw_sprite()
2021-03-23 11:58:09 +01:00
Gymnasiast
d5f79b7972
Replace gfx_draw_string_centred() with DrawTextBasic()
2021-02-28 00:23:00 +01:00
Michał Janiszewski
ac6e4fc0d6
Move SPRITE_INDEX_NULL, MAX_SPRITES to their new homes
2021-02-25 10:56:27 +01:00
Duncan
8c5cd61b69
Split free id's into seperate vector ( #13924 )
2021-01-26 07:42:56 +00:00
Tulio Leao
221aa8cece
Close #12453 : Refactor RCT2_EDITOR_STEP to strong enum
2020-12-23 20:07:53 -03: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
Łukasz Pękalski
7648feeba2
Close #12427 : Refactor OBJECT_TYPE to use strong enum
2020-11-11 16:07:01 +01:00