Duncan
3393fa36d3
Move Ui window functions into Ui library ( #22426 )
...
* Move scroll widget functions
* Move window move functions
* De-snake
* Move further functions to ui
* Move widget function to widget file
* Move window create to ui
2024-07-31 15:06:19 +01:00
Aaron van Geffen
05e56517ab
Adopt existing namespaces into OpenRCT2 namespace ( #22368 )
...
* Put all of TitleSequenceManager into the same namespace
* Move RideConstructionState into the OpenRCT2 namespace
* Adopt existing namespaces into OpenRCT2 namespace
This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Aaron van Geffen
ef7dbe496a
Introduce VIEWPORT_FLAG_RENDERING_INHIBITED
2024-07-15 01:17:57 +02:00
Aaron van Geffen
6de514c387
Address minor code style violation in unsigned suffix ( #22306 )
2024-07-15 21:16:30 +02:00
Aaron van Geffen
b5ef2693b0
Remove common.h include from all units
2024-07-09 16:45:19 +02:00
Gymnasiast
8a181b5513
Split colours and colour flags
2024-05-26 12:35:40 +02:00
Gymnasiast
7d3ac7ea9d
Add moveTo() to Widget
2024-05-19 20:20:29 +02:00
Aaron van Geffen
96ce7f706f
Move widget constants from Windows.h to Widget.h
2024-05-10 22:14:10 +02:00
Claudio Tiecher
10a5d790c6
Part of #21421 : replace define with constexpr ( #21760 )
...
* Part of #21421 : refactor TUNNEL_MAX_COUNT
* Part of #21421 : deleted unused OBJECT_SELECTION_NOT_...
* Part of #21421 : refactor MAX_SERVER_DESCRIPTION_LENGTH
* Part of #21421 : refactor EXPENDITURE_TABLE_MONTH_COUNT
* Part of #21421 : refactor FINANCE_GRAPH_SIZE
* Part of #21421 : refactor NETWORK_STREAM_VERSION and _ID
* Part of #21421 : MONEY_STRING_MAXLENGTH
* Part of #21421 : deleted MAX_USER_STRINGS
* Part of #21421 : refactor USER_STRING_MAX_LENGTH
* Part of #21421 : deleted USER_STRING_END
* Part of #21421 : refactor REAL_NAME_START
* Part of #21421 : refactor REAL_NAME_END
* Part of #21421 : deleted FONT(X) and FONT_OPENRCT2_SPRITE
* Part of #21421 : refactor CURRENCY_SYMBOL_MAX_SIZE
* Part of #21421 : refactor CURRENCY_RATE_MAX_NUM_DIGITS
* Part of #21421 : refactor SCROLLABLE_ROW_HEIGHT
* Part of #21421 : refactor ADD_CLAMP_BODY
* Part of #21421 : applied clang-format to Util.cpp
* Part of #21421 : incorporate feedback from #21760
* Part of #21421 : revert to nbsp in Currency.cpp
* Part of #21421 : fix merge conflict
* Part of #21421 : fix more merge conflict
* Part of #21421 : apply clang format
* Part of #21421 : using std::numerics for finding bounds
* Part of #21421 : fix reference to kAddClampBody
* Part of #21421 : improved on comments about AddClamp func
* Part of #21421 : apply correct network stream version number
* Part of #21421 : apply clang-format
2024-05-09 08:59:03 -03:00
duncanspumpkin
f6c34ddd59
Simplify map flashing flags and move into map
2024-04-29 14:10:53 +02:00
Harry-Hopkinson
8ce6ba7606
Rename WINDOW_LIMIT_RESERVED to kWindowLimitReserved
2024-04-26 17:55:23 +01:00
Harry-Hopkinson
9e2b45fab3
Rename WINDOW_LIMIT_MAX to kWindowLimitMax
2024-04-26 17:55:23 +01:00
Harry-Hopkinson
343b10c172
Rename WINDOW_LIMIT_MIN to kWindowLimitMin
2024-04-26 17:55:23 +01:00
duncanspumpkin
3448926251
Move text input widget code from game lib to ui lib
2024-04-26 18:25:44 +02:00
Gymnasiast
4db5d62476
Add methods to move a widget
2024-04-25 14:10:07 +02:00
Harry-Hopkinson
cd9ca1debb
Rename TOP_TOOLBAR_HEIGHT to kTopToolbarHeight
2024-04-14 18:12:58 +00:00
Harry-Hopkinson
f357dd6cab
Rename TEXT_INPUT_SIZE to kTextInputSize
2024-04-14 17:35:28 +00:00
Harry-Hopkinson
b294d97f03
Rename DROPDOWN_HEIGHT to kDropdownHeight
2024-04-14 17:27:32 +00:00
Harry-Hopkinson
9fa917ae57
Rename SPINNER_HEIGHT to kSpinnerHeight
2024-04-14 16:56:33 +00:00
Harry-Hopkinson
14cdfc7262
Rename BUTTON_FACE_HEIGHT to kButtonFaceHeight
2024-04-14 16:44:39 +00:00
Harry-Hopkinson
2ccb77320b
Rename TABLE_CELL_HEIGHT to kTableCellHeight
2024-04-14 16:41:01 +00:00
Harry-Hopkinson
f242bbf095
Rename LIST_ROW_HEIGHT to kListRowHeight
2024-04-14 16:37:01 +00:00
Harry-Hopkinson
c5cfc65317
Rename SCROLLABLE_ROW_HEIGHT to kScrollableRowHeight
2024-04-14 16:31:53 +00:00
Andrew
a972d231d7
Add shortcut key for sorting tile elements ( #21636 )
2024-03-22 15:24:10 +01:00
Duncan
5a70fd97fb
Move vehicle sounds update into Ui library ( #21577 )
...
* Move vehicle sounds update into Ui library
* Add missing statics
* Apply review comments
* Sprinkle some const
* Clang format accumulate
2024-03-20 11:14:52 +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
ζeh Matt
47d346ee81
Remove unused code
2024-03-05 10:25:57 +02:00
ζeh Matt
81499643db
Rename unused field to Rotation
2024-03-05 10:23:27 +02:00
mrmbernardi
4ccecd6e68
Remove forwarding functions in Window.cpp ( #21516 )
2024-03-03 18:04:09 +01:00
mrmbernardi
a0b18688ec
Merge pull request #21460 from mrmbernardi/map-layout
...
Fix #21289 : Map window does not layout properly
2024-03-02 22:52:31 +01:00
Michael Bernardi
1cb0650cba
Fix #21289 : Map window does not layout properly
2024-03-02 16:00:10 +01:00
Michael Steenbeek
25ec1e4211
Create game actions and UI for restricted scenery
2024-02-28 20:38:43 +01:00
Gymnasiast
554968383c
Move global window indices to constexpr
2024-02-25 22:54:54 +01:00
Matt
19be093569
Fix #21208 : Error messages disappear too quickly if the game runs for a while ( #21394 )
...
* Reset gCurrentRealTimeTicks when the map is initialized
* Use 32 bit for gWindowUpdateTicks
* Update changelog.txt
2024-02-13 16:03:30 -03:00
Michael Steenbeek
70b9d0ca47
Add button to reload object
2024-02-11 20:45:31 +00: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
fidwell
95169f9632
Tile inspector invisibility shortcut does not use a game action
2023-10-02 22:26:55 -04:00
Michael Bernardi
29c3f08b69
Add a window method to resize dropdowns
2023-08-19 00:13:47 +02:00
Matthias Moninger
22996b5fe8
Merge pull request #20545 from mrmbernardi/resize_spinners
...
Add a window method to resize spinners
2023-08-19 00:24:08 +03:00
Duncan
4349688de4
These function names have not reflected their use for a while ( #20656 )
2023-08-01 20:19:33 +01:00
Duncan
5adf8cd35c
Remove track_list member var from window base ( #20626 )
...
* Remove track_list member var from window base
* Address review comment and readd OnOpen
2023-07-19 08:02:31 +01:00
Michael Bernardi
1159c9d0bc
Add a window method to resize spinners
2023-07-16 15:34:31 +02:00
Aram Kazorian
3f603542ec
Refactoring by deleting dead WindowEventList struct ( #20513 )
2023-06-30 06:05:23 +01:00
ζeh Matt
5497601d42
Refactor window deletion to be delayed
2023-06-27 15:41:25 +03:00
Duncan
0c5a35993e
Remove union from window internal ( #20429 )
...
* Remove campaign vars from union
* Remove error union
* Remove new_ride union
* Remove Unknown5
* Update changelog
2023-06-26 16:31:04 +01:00
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Duncan
4a3a1e4e7f
Remove event handlers ( #20439 )
2023-06-23 08:31:31 +01:00
duncanspumpkin
f0658202ef
Fix mistake
2023-06-20 08:52:00 +01:00
duncanspumpkin
9b8b672507
Finish linking up parts
2023-06-20 08:42:25 +01:00
Michael Steenbeek
5e495d63c7
Close #15660 : Allow showing window buttons on the left ( #20176 )
2023-05-19 10:17:38 +02:00