Harry-Hopkinson
8ce6ba7606
Rename WINDOW_LIMIT_RESERVED to kWindowLimitReserved
2024-04-26 17:55:23 +01:00
duncanspumpkin
34fa06cd29
Address review comments
2024-04-26 18:27:15 +02:00
duncanspumpkin
788878e7fc
Add missing statics
2024-04-26 18:27:15 +02:00
duncanspumpkin
bd3ae5cbb9
Simplify setting existing text
2024-04-26 18:27:14 +02:00
duncanspumpkin
3448926251
Move text input widget code from game lib to ui lib
2024-04-26 18:25:44 +02:00
Harry-Hopkinson
cd9ca1debb
Rename TOP_TOOLBAR_HEIGHT to kTopToolbarHeight
2024-04-14 18:12:58 +00: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
Michael Steenbeek
24f5675cab
Remove WindowBase::IsLegacy() function ( #21572 )
2024-03-10 18:48:06 +01: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
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
Michael Bernardi
dc018c93d9
No longer invalidate widgets on every draw
2023-08-12 22:00:29 +02:00
ζeh Matt
2d1c361cb0
Ignore dead windows to determine insertion position
2023-07-18 23:46:05 +03:00
Matthias Moninger
5924185a6b
Fix tab index being overwritten for scripted windows ( #20630 )
2023-07-18 21:08:42 +01:00
Matthias Moninger
0b9639eb25
Fix disabled widgets sharing the same space as active widgets ( #20535 )
...
* Fix disabled widgets sharing the same space as active widgets
* Add PR for reference in comment
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2023-07-02 19:34:02 +00:00
Matthias Moninger
39771217c8
Merge pull request #20493 from ZehMatt/delayed-window-delete
...
Refactor window deletion to be delayed
2023-06-28 01:40:12 +03:00
ζeh Matt
6807d508d0
Ignore dead windows for auto positioning
2023-06-27 17:37:49 +03:00
Duncan
d40102aa9d
Remove some uncommon variables and break unions ( #20440 )
2023-06-27 06:34:06 +01:00
Duncan
4a3a1e4e7f
Remove event handlers ( #20439 )
2023-06-23 08:31:31 +01:00
Duncan
a6d3dbc6d9
Remove player specific window vars from common
2023-06-23 00:44:17 +02:00
Michael Steenbeek
5e495d63c7
Close #15660 : Allow showing window buttons on the left ( #20176 )
2023-05-19 10:17:38 +02:00
Gymnasiast
bb83a80eab
Use dpi ref in rect and line drawing functions
2023-04-11 22:59:01 +01:00
Gymnasiast
90d21dbe14
Use dpi ref in Widget.cpp
2023-04-11 22:57:25 +01:00
Gymnasiast
96d77ed8f7
Using dpi refs in most remaining window defs
2023-04-11 22:57:23 +01:00
Michael Steenbeek
2a8872018b
Close #13780 : Refactor MapGen to class ( #19477 )
2023-03-01 08:26:30 +00: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
Michael Steenbeek
24cc49cde9
Fix #19076 : scrolling on money amounts doesn’t work
2023-01-19 21:07:21 +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
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
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
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
Gymnasiast
b97ee766d5
Refactor out IMAGE_TYPE_REMAP from widgets
2022-12-31 15:16:07 +01:00
ccahiggins
279675ba45
Add shift and control modifiers to close window button ( #18537 )
...
Shift closes all but current window.
Control closes all windows of the same window class/type.
Co-authored-by: Chris Higgins <chrissywissywoo@hotmail.com>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-12-27 12:22:18 +00:00
Duncan
482971710d
Apply code style to context functions
2022-11-06 21:49:07 +01: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
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
523bb8136e
Refactor window functions to take references 3
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
Hielke Morsink
76c1bc8980
Refactor window functions to take references 1
2022-07-31 17:23:15 +02:00
Ted John
b775832d01
Refactor window flags to be read with the helper methods
2022-02-13 23:09:42 +00:00
Sam Atkins
b2a1c72867
Add Window::InitScrollWidgets()
...
This is just a wrapper around WindowInitScrollWidgets(), but better
matches the code style.
2022-01-28 12:08:57 +00:00