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
Harry-Hopkinson
f357dd6cab
Rename TEXT_INPUT_SIZE to kTextInputSize
2024-04-14 17:35:28 +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
ζeh Matt
47d346ee81
Remove unused code
2024-03-05 10:25:57 +02:00
ζeh Matt
d95f14dcda
Fix ViewportPosToMapPos using the wrong rotation
2024-03-05 10:23:30 +02:00
ζeh Matt
7be082cacc
Fix ViewportAdjustForMapHeight not using the correct rotation
2024-03-05 10:23:29 +02:00
ζeh Matt
98acdf3743
Use the rotation from the Viewport where applicable
2024-03-05 10:23:28 +02:00
ζeh Matt
2661cf8772
Refactor out all uses of gCurrentRotation, remove gCurrentRotation
2024-03-05 10:23:28 +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
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
Harry Hopkinson
7797db10c8
Replace Macros and Notation in Cheats.h, common.h and Context.h. ( #21437 )
2024-02-23 19:30:35 -03: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
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
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
Michael Bernardi
1159c9d0bc
Add a window method to resize spinners
2023-07-16 15:34:31 +02:00
ζeh Matt
905f1ea094
Shorten the lambda
2023-06-27 17:55:03 +03: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
Duncan
622c8cdb7e
Fix #20433 . Dropdown default selections not working ( #20437 )
...
This fixes it for rides but it is also an issue effecting a few different dropdowns
2023-06-23 06:20:02 +01:00
Matthias Moninger
42ff471617
Fix periodic window update function being called every frame
2023-06-22 15:52:14 +02:00
Michael Steenbeek
5e495d63c7
Close #15660 : Allow showing window buttons on the left ( #20176 )
2023-05-19 10:17:38 +02:00
Meehoi
936f017147
Fix #20096 : Server list window scroll is glitched when server list is empty ( #20099 )
...
* Fix initial scroll size of server list and change cast to int32_t
* set actual width for server list too
* add indentation
* fix pixel size of other scroll
* revert unnecessary changes
* add changelog entry
2023-05-06 17:01:14 +03:00
Chase
d6ebeca483
Fix #19935 : Part of old multiplayer name remains when entering a shorter name ( #20004 )
...
* clear _playerName
* Change _playerName to a u8string
* Explicitly set underlying string ptr on change
2023-04-26 08:34:39 +01:00
Gymnasiast
0139c8d19e
Use dpi ref in everything outside the drawing folder
2023-04-11 22:57:25 +01:00
Gymnasiast
16c5c1b752
Use dpi ref in interface folder
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
ζeh Matt
ec2f332b92
Fix #19445 : Text not cleared using Ctrl+Backspace
2023-02-25 15:42:37 +02: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
Michael Steenbeek
12874f2af7
Replace format_string(4) with OpenRCT2::FormatStringLegacy() ( #19190 )
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-01-17 21:56:30 +01: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
Gymnasiast
5309c80e29
Remove snake_case in interface folder
2023-01-16 22:20:41 +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
162b01204d
Rename rct_widget to Widget
2022-12-31 15:18:22 +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
Haven Kim
69e5439484
Fix #17067 : Random Staff Patrol Area clicks ( #18329 )
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-11-16 00:13:24 +00: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
Raymond Zhao
0647d12de8
Close #18315 : Refactor Error window to class ( #18403 )
2022-10-29 09:25:20 -03:00
Hielke Morsink
f91df4138c
Merge pull request #18359
2022-10-18 23:39:49 +02:00
Hielke Morsink
3bb8ea3668
Better annotate some magic numbers in for loops
2022-10-17 16:08:55 +00:00