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
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
ζeh Matt
56e78d5733
Merge pull request #15985 from ZehMatt/refactor/entities2
...
Refactor Sprite to Entity
2021-11-25 12:53:50 -08:00
ζeh Matt
03fb9b390f
Rename Sprite to EntityRegistry
2021-11-24 17:04:12 +02:00
ζeh Matt
7c726e2a0c
Fix includes
2021-11-24 16:48:33 +02: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
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
Bepso
c44d1151c2
Close #13766 : Refactor Clear Scenery to class ( #15481 )
...
* Add CleanScenery class
2021-10-06 16:46:01 +01: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
Duncan
a268350615
Fix #15439 : Ride viewport is partially grey
...
The ride viewport does not work the same as other viewports due to the selection of views that it has. After refactoring the focus system to use a more streamlined approach the ride viewport lost its invalidation on resizing. If the ride window was to use the same viewport update code as say the guest window then the viewport focus still ends up incorrect due to it no longer centring the focus. Therefore the best approach was to lose the focus on resize and force a recalculation of it.
Also renamed Focus2 to Focus as Focus2 was meant to just be fill in whilst removing the original focus structs.
2021-09-21 11:06:04 +02:00
Duncan
fa57b6aea0
Remove focus union and replace with typed focus ( #15426 )
...
* Remove focus union and replace with typed focus
This if for the NSF to allow for CoordsXYZ
* Remove legacy structures
* Rework viewport_create to deduplicate logic
* Simplify yet further
* Apply review comments
* Remove intermediate
2021-09-18 20:34:38 +01:00
Daniel Karandikar
b017ea4159
Fix [ #12262 ]: Windows can appear off screen in some cases ( #14881 )
...
Fix: [#12262 ] Windows can appear off screen with small screens or high scaling.
2021-07-03 09:38:39 -03:00
Tulio Leao
bb8c275df6
Remove raw coords gfx_fill_rect_inset overload
2021-03-29 09:34:11 -03:00
Ted John
93f17f1175
Add custom widget logic and network stats API
2021-02-24 22:37:31 +00:00
Ted John
be350f7e2e
Add widget visible flag
2021-01-26 00:25:59 +00:00
Ted John
3e75f23970
Refactor guest list window to a class
2021-01-11 21:56:48 +00:00
Ted John
d907c58a13
Start window refactor framework
2021-01-10 12:41:55 +01: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
pizza2004
2015acd4c0
Refactor UI/Interface Window to Title Case ( #13367 )
2020-11-04 04:52:23 +00: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
Łukasz Pękalski
9dcbf6d4e6
Close #4865 : Offer an option to disable inhibiting the monitor power ( #13243 )
...
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net >
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2020-10-20 22:02:44 +02:00
Matt
091145037e
Move the audio code into OpenRCT2 namespace
2020-10-07 00:34:42 +03:00
Aaron van Geffen
11ebe78328
Refactor window offset std::arrays into regular arrays ( #12799 )
2020-09-09 22:51:51 +02:00
awiebe
b53c4b3625
Downgrade Mac build requirements of OpenRCT2 to macOS 10.13 ( #12749 )
...
Keep targeting macOS 10.14 for libopenrct2 target. Replace deployment target with macOS 10.13 for other targets, including the OpenRCT2 bundle.
Explicitly type std::arrays, since Xcode refuses to use C++17 array deduction.
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net >
2020-08-28 22:27:25 +02:00
Aaron van Geffen
e039a51826
Fix #12552 : Grey rectangles appear under windows and menus ( #12554 )
...
* Fix #12552 : Grey rectangles appear under windows and menus
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-08-02 00:47:28 -03:00
annoyingdroid
ddd21fa87a
Part of #12098 : Use ScreenRect on gfx_filter_rect ( #12134 )
2020-08-01 14:40:01 -03:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Tulio Leao
289dc96f25
Remove goto from window_create_auto_pos ( #12256 )
...
* Reduce code duplication on window_create_auto_pos
* Remove deadcode from window_create_auto_pos
Cascadin window offset deadcode
* Extract ClampWindowToScreen from window_create_auto_pos
* Remove goto usage from window_create_auto_pos
2020-07-15 22:59:35 +01:00
frutiemax
280a21fa30
Fix #12095 : Use ScreenRect on gfx_set_dirty_blocks ( #12106 )
2020-07-08 13:16:24 -03:00
Aaron van Geffen
681b8d7938
Introduce widget::width and widget::height helper functions ( #12053 )
2020-06-24 22:44:00 -03:00
Michael Steenbeek
158adfba82
Merge pull request #11560 from tupaschoal/more-coordz
...
Scours through openrct2-ui to use more coords structs
2020-05-01 19:01:37 +02:00
Tulio Leao
28b2010838
Use ScreenCoordsXY on interface/Window.cpp
2020-05-01 12:26:01 -03:00
Ted John
4501173c0d
Implement custom window tabs
2020-04-30 23:42:28 +01:00
Tulio Leao
b579771364
Use named casts on openrct2-ui/interface
2020-03-28 17:04:33 -03:00
Gymnasiast
5f96a121ae
Apply ScreenCoordsXY to some functions
2020-03-07 22:25:42 +01:00
Tulio Leao
8056d050c9
Remove unused variables from rct_window
2020-03-05 08:03:38 -03: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
Tulio Leao
2cd3add373
Make CursorState store a ScreenCoordsXY object
2019-12-14 23:30:55 -03:00
Tulio Leao
ce1f38da25
Use ScreenCoordsXY for window functions ( #10086 )
...
* Use ScreenCoordsXY for window_create function
* Use ScreenCoordsXY for window_find_from_point function
* Use ScreenCoordsXY for window_find_widget_from_point
* Use ScreenCoordsXY for ride_contruction_tool*
* Use ScreenCoordsXY for window_event_tool*
* Use ScreenCoordsXY for window_event_scroll_mouse*
* Use ScreenCoordsXY for remaining window_event*
* Use ScreenCoordsXY for window_(set|move)_position
2019-10-19 13:07:03 +02:00
Matt
cc6321048f
Refactor window_invalidate to use rct_window::Invalidate
2019-08-11 17:22:00 +02:00
Duncan
ab5f5b20cd
Use enum class for RCT2_SOUND ( #9618 )
...
* Use enum class for RCT2_SOUND
* Fix formatting. Fix mistaken declaration.
* Change name of enum to SoundId
* Fix clang format
2019-07-22 19:02:45 +01:00
ζeh Matt
e149722a15
Fix #9467 : Crash when windows create new window when being closed ( #9470 )
2019-06-27 22:28:07 +02:00