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
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
Hielke Morsink
5b9b52c028
Use (const) references to scrolls where possible
2021-10-01 15:21:01 +02:00
Hielke Morsink
6de1868ad8
Use (const) references to widgets where possible
...
Note: The change from `w->widgets[WIDX_ENTRY_PRICE]` to `entryPriceWidget` is intended.
2021-10-01 15:21:00 +02:00
Hielke Morsink
a8b84989eb
Check for nullptr explicitly in operct2-ui ( #15460 )
2021-09-25 08:45:06 +02:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
Duncan
940cab87d3
Map size refactors from NSF ( #15112 )
...
* Support large map sizes
* Fix top spin painting
* Fix crooked house
* Increase bb size
* Decrease limit back
* Clang format
* Remove asserts and apply review comments
* Fix rebase mistake
Co-authored-by: Ted John <ted@brambles.org >
2021-08-16 20:51:16 +01:00
duncanspumpkin
98f9f24909
Remove sprite.h includes where possible
2021-05-29 08:54:33 +01:00
Michael Steenbeek
61536eb1f6
Fix #14073 : NPE in InputUpdateTooltip
2021-02-12 18:36:58 +01:00
Ted John
be350f7e2e
Add widget visible flag
2021-01-26 00:25:59 +00: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
Łukasz Pękalski
88a6a085e4
Close #12455 : Refactor MOUSE_STATE to use strong enum ( #13361 )
...
* Close #12455 : Refactor MOUSE_STATE to use strong enum
refactor: MouseState to strong enum
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-11-03 18:41:19 -03:00
pizza2004
a5607da09d
Refactor Widget to TitleCase ( #13355 )
2020-11-03 18:29:22 -03:00
pizza2004
b0fd5f93d7
Refactor UI/Interface misc to TitleCase ( #13354 )
...
* Refactor LandTool to Namespace
* Refactor Theme to TitleCase
* Refactor ViewportInteraction to TitleCase
2020-11-03 10:59:00 +00:00
pizza2004
68bd035f12
Refactor Dropdown to TitleCase ( #13352 )
...
* Refactor Dropdown Namespace
* Refactor Dropdown to TitleCase
2020-11-03 08:16:06 +00:00
pizza2004
1643c62939
Refactor UI/Input MouseInput to Title Case
2020-11-02 07:05:33 -07:00
Duncan
cd39c30989
Tooltip 2 ( #13159 )
...
* Use ScreenCoords for tooltip
* Remove temporary variables
* Small refactor
* Fix #13151 . Not passing tooltip arguments correctly for ride window
* Fix Server List window version tooltip
* Fix cheats tooltip event
* Add static to function decl
* Remove unreachable break statements in Ride.cpp
* Apply review suggestions
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-10-17 09:10:08 +01:00
Julia Pinheiro
cba1d48226
Close #12408 : Refactor CURSOR_ID to use strong enum
2020-10-11 18:01:14 +02:00
Duncan
f28907a87d
Rework tooltip to be more logical ( #13137 )
2020-10-10 10:49:56 -03:00
Duncan
197bb897bb
Fix #7748 . Move tooltip timeout reset to correct location ( #13132 )
...
* Fix #7748 . Move tooltip timeout reset to correct location
Mistake made in implementation
* Add changelog entry
2020-10-09 16:53:31 +01:00
ζeh Matt
61b510db66
Merge pull request #13073 from ZehMatt/refactor/audio-cleanup
...
Minor cleanup around audio code
2020-10-07 21:18:59 +03:00
Matt
091145037e
Move the audio code into OpenRCT2 namespace
2020-10-07 00:34:42 +03:00
Vinicius Sa
579e008590
Refactor process_mouse_over()
...
- Remove unnecessary local variables and assignments
- Remove unreached if-statement branch
Reported by PVS-Studio (Warning: V587).
Fix 5/7.
Issue: 12523
2020-10-06 18:21:24 -03:00
Duncan
3c8adb1fc1
Remove gMapTooltip format args global ( #12971 )
...
Fix mistake
2020-09-28 21:45:28 -03:00
frutiemax
af0fc89cf4
Close #12456 : Refactor INPUT_STATE to use strong enum ( #12484 )
2020-07-27 19:51:10 -03:00
Michał Janiszewski
f1fa016400
Reset window pointer when cleaning up after dropdown
2020-07-26 10:09:56 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Tulio Leao
0951c0c5cc
Remove goto from input_state_widget_pressed ( #12265 )
2020-07-15 07:50:01 -03:00
frutiemax
27734e2971
Part of #12160 : Use Coords for viewport_coord_to_map_coord ( #12216 )
2020-07-12 18:42:54 -03:00
Aaron van Geffen
2e153a7e95
Introduce widget::midX and widget::midY helper functions
2020-06-25 10:31:15 +02:00
Aaron van Geffen
681b8d7938
Introduce widget::width and widget::height helper functions ( #12053 )
2020-06-24 22:44:00 -03:00
Breno Rodrigues Guimarães
374b744477
Use Formatter to handle argument formatting for tooltips ( #11379 )
2020-04-21 12:38:59 +02:00
Aaron van Geffen
28d14517e1
Introduce a constant for scrollbar width and height ( #11152 )
2020-03-30 22:41:49 +02:00
Tulio Leao
8823658972
Use named casts on openrct2-ui/input
2020-03-28 17:04:29 -03:00
Ted John
d34dec9c27
Create ZoomLevel struct to add two new zoom levels
2020-03-23 15:54:03 +00:00
Gymnasiast
5f96a121ae
Apply ScreenCoordsXY to some functions
2020-03-07 22:25:42 +01:00
Tulio Leao
724a6d4dcf
Make rct_window use ScreenCoordsXY
2020-03-02 20:51:01 -03:00
Tulio Leao
9bcd20e0e6
Prefer const ref to send ScreenCoordsXY over
2020-02-29 08:25:48 -03:00
Duncan
08bf0a6807
Merge pull request #10391 from tupaschoal/mouse-diff-coords
...
Save mouse differential coords using ScreenCoordsXY
2019-12-19 08:02:32 +00:00
Tulio Leao
a5065e95c6
Simplify MouseInput differential coords calculation
2019-12-18 23:57:57 -03:00
Duncan
099404b505
Merge pull request #10381 from tupaschoal/cursorsate-store-coords
...
Make CursorState store a ScreenCoordsXY object
2019-12-18 20:10:51 +00:00
Tulio Leao
502a15512b
Save mouse differential coords using ScreenCoordsXY
2019-12-17 23:21:12 -03:00
Tulio Leao
6b06b2c578
Use ScreenCoordsXY for Mouse Drag storage ( #10380 )
2019-12-17 18:38:20 +01:00
Tulio Leao
2cd3add373
Make CursorState store a ScreenCoordsXY object
2019-12-14 23:30:55 -03:00
Tulio Leao
9d09f1b95c
Use ScreenCoordsXY on context cursor operations ( #10364 )
2019-12-14 22:52:18 +01:00
Tulio Leao
c91bdadb47
Use ScreenCoordsXY on viewport interactions
2019-11-21 17:53:28 -03:00
duncanspumpkin
5ca553dd08
Refactor viewport_coord_to_map_coord to return a CoordXY
2019-11-01 20:04:07 +00:00
Tulio Leao
d9efd64fea
Use ScreenCoordsXY for interface\Widget.h ( #10123 )
2019-10-29 17:41:19 +01:00