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
4832e67d14
Fix crash in ride_scroll_to_track_error()
2022-08-13 17:21:34 +02:00
Michael Steenbeek
5661da1c68
Unwrap game action compat wrappers
2022-08-11 00:00:58 +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
Raymond Zhao
71ad3af930
Use more smart pointers in openrct2-ui ( #17582 )
...
* Use more smart ptrs
* Use move instead of copy ctor
2022-07-22 11:48:43 +01:00
germanaizek
0045aed7f9
Add const ref, remove excess .c_str(), push_* -> emplace_* and rewrite constructors
2022-05-07 16:05:38 +02:00
Ted John
9f28b66eec
Remove title editor
2022-04-26 22:17:38 +02:00
Ted John
f909be7a43
Merge pull request #16797 from IntelOrca/feature/enhanced-transparency
...
Introduce more transparency toggles and allow each one to be set to either an invisible or ghost state which is a persisted user setting.
A new window is introduced to control these settings and is inspired by OpenTTD.
2022-03-20 17:56:08 +00:00
duncanspumpkin
f835a5b521
Apply clang-tidy to static variables
2022-03-18 00:38:26 -03:00
Ted John
61f1e13c0b
Refactor viewport flags
2022-03-14 21:57:05 +00:00
Ted John
c68359662d
Refactor visibility control
2022-03-14 21:57:05 +00:00
Kane
5d7f7485aa
Update for rebase, add window theme, fix bugs
...
- Along with rebasing the code it became nessecary to update various
calls to `scenery_small_entry_has_flag` and `EntityBase`.
- Added a new window theme with default colours.
- Fixed bug with see-through supports not working.
- Removed incomplete "ride exclusions" tab
- Removed unused text string (Ride Exclusions)
2022-03-14 21:43:09 +00:00
Ted John
38d36acef3
Add patrol area tool window
2022-03-12 10:43:41 +00:00
Michael Steenbeek
0f2cf23318
Safely look up widget for drawing
2022-03-10 01:01:59 +01:00
Hielke Morsink
6ba0a3bd49
Use u8 strings when dealing with file paths
2022-03-01 22:12:39 +01:00
Hielke Morsink
f06645d2f7
Make stations a private std::array and use getters for access
2022-02-18 23:21:35 +02:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
Michael Steenbeek
ffe67ff33e
Merge pull request #16642 from Gymnasiast/refactor/dropdown
...
Create Dropdown::Item and use it for gDropdownItems
2022-02-15 18:50:26 +01:00
Ted John
b775832d01
Refactor window flags to be read with the helper methods
2022-02-13 23:09:42 +00:00
Ted John
05b589fb93
Remove custom window widget limit
2022-02-13 23:09:42 +00:00
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
Gymnasiast
4abbfcb32b
Create dropdown item flags
2022-02-13 00:14:33 +01:00
Gymnasiast
723867e0a0
Create Dropdown::Item and use it for gDropdownItems
2022-02-12 23:57:22 +01:00
Gymnasiast
a17c4ad304
Rename Dropdown::Item to ItemExt
2022-02-12 23:42:59 +01: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
Michael Steenbeek
9f74c7081b
Create definitions for u8string and u8string_view
2022-01-25 16:41:45 +01:00
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
Gymnasiast
ef6f2cceee
Create RideConstruction.h
2021-12-18 20:27:13 +01:00
Ted John
2f20dc029e
Fix drawing of disabled zoom buttons
2021-12-12 11:48:49 +01:00
Michael Steenbeek
27cbb6c6ae
Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
...
Part of #15485 : normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
Michael Steenbeek
b83f7c3859
Merge pull request #16150 from IntelOrca/refactor/imageid-ui
...
Refactor footpath, scenery, terrain and mapgen windows to use ImageId
2021-12-11 23:21:19 +01:00
ζeh Matt
cec30e093d
Merge pull request #15991 from ZehMatt/refactor/bannerid
...
Use TIdentifier for BannerIndex
2021-12-11 08:08:27 -08:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Michael Steenbeek
4caeb797f8
Merge pull request #16127 from Gymnasiast/feature/rct1-image-fallback
...
Create fallback system for csg1 images
2021-12-10 23:25:04 +01:00
Michael Steenbeek
2d1af0ec42
Replace many GetType() calls with GetTypeN()
2021-12-10 22:43:17 +01:00
Gymnasiast
fcd704ed47
Create fallback system for csg1 images
2021-12-08 16:18:33 +01:00
Ted John
d427098e39
Refactor terrain and path to use ImageId
2021-12-07 20:46:15 +00:00
ζeh Matt
63a2e9d716
Refactor uses of old BannerIndex
2021-12-01 14:41:59 +02:00
Hielke Morsink
53d9bfa8b4
Update implicit zoom conversions
2021-12-01 00:08:35 +01:00
Duncan
eba42a9584
Introduce Limits headers. ( #15329 )
...
* Move RCT12 limits to seperate file and namespace
* Remove prefix from constants
* Add rct1 limits file
* Rename constants to remove prefix
* Add RCT2 limits file
* Remove RCT2 prefix from constants
* Move constant to correct header
* Fix rebase mistakes
* Drop prefix
2021-11-27 16:20:05 +00:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02: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
Duncan
a8d2d5fd44
Staff patrol area 2 from NSF ( #15600 )
...
* Port over changes from NSF for staff
* Fix import and export
* Fix crash on export
* Fix import issue
* Fix patrol import issue
* Remove staff id field
* Increment network version
* Actually remove all instances of staff id
* Update replays
2021-10-27 21:19:10 +01:00