1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00
Commit Graph

3171 Commits

Author SHA1 Message Date
Ted John
5334b8f5c8 Do not re-create window when switching staff 2022-03-13 14:26:17 +00:00
Ted John
38d36acef3 Add patrol area tool window 2022-03-12 10:43:41 +00:00
Ted John
90718ca81c Refactor patrol area class to new file 2022-03-11 18:39:04 +00:00
Ivan Krushkov
eb423a73b7 Close #12793: Excitement/Intensity/Nausea ratings to Ride List view with sorting (#16655) 2022-03-11 11:17:14 +00:00
Silent
5e725913f8 Close #16566: Favour WinNT preprocessor version checks over MinGW (#16677) 2022-03-11 07:59:09 -03:00
Silent
3773fa4cb0 Refactor uses of path_append_extension 2022-03-10 20:18:17 +01:00
Michael Steenbeek
0f2cf23318 Safely look up widget for drawing 2022-03-10 01:01:59 +01:00
Teodor Sorescu
354f8bf506 Refactor window to class: TrackDesignPlace (#16669)
* Refactor window to class: TrackDesignPlace (#13811)

* Standardise names

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-03-05 15:26:25 +00:00
Duncan
d219a99b56 Convert scenery window to class (#16729)
* Convert scenery window to class

Close #13799

* Move static's into class

* Simplify eyedropper setting code
2022-03-04 07:17:20 +00:00
Michael Steenbeek
323138ebd6 Use C++ strings in WindowNewRideListVehiclesFor() 2022-03-03 19:32:34 +00:00
Michael Steenbeek
c334c7a176 Merge pull request #16724 from Gymnasiast/refactor/remove-path_get_filename
Remove four old path functions
2022-03-02 22:25:08 +01:00
Michael Steenbeek
61a18e7d90 Merge pull request #16733 from Broxzier/refactor/use-u8-strings
Use utf8 strings where expected
2022-03-02 22:13:13 +01:00
Rik Smeets
d92f8c125d Fix #15909: Prevent text overflow in 'Select ride design' windows
For designs with a long description, a line of text in the 'Select ride design' window could overflow onto the next window element. The window height was just one newline too small. Therefore, increased the window size with a single line.
2022-03-02 20:08:00 +01:00
Rik Smeets
2a7209bee5 Fix #16140: Disable 'follow this' in 'overall' and 'station' view 2022-03-02 20:05:53 +01:00
Hielke Morsink
6ba0a3bd49 Use u8 strings when dealing with file paths 2022-03-01 22:12:39 +01:00
Hielke Morsink
55c71b0c74 Properly use utf8 strings where expected 2022-03-01 22:12:39 +01:00
Rik Smeets
1f83fa417c Update guest list defaults 2022-02-27 18:46:08 +01:00
Duncan
d606c9730a Cleanup Scenery Window for second scroll area (#16557)
* Refactor scenery window to check scroll index

* Move into seperate function calls

* Pass offset to tab draw (so it can be used by scrolls)
2022-02-27 12:26:26 -03:00
Hielke Morsink
ba85cf4873 Close #15896: Refactor out the ZoomLevel operators 2022-02-26 23:14:59 +01:00
Sam Atkins
fb4c9359d8 Close #13779: Refactor Map window into a class (#16559)
* Close #13779: Refactor Map window into a class

* Fix invalid memory read from temporary strings
2022-02-26 20:23:27 +00:00
Gymnasiast
376c79408a Replace path_set_extension with Path::WithExtension() 2022-02-26 18:26:24 +01:00
Gymnasiast
49b414a40e Replace calls to path_get_filename() 2022-02-26 17:20:07 +01:00
Hielke Morsink
fea9254368 Remove unused GetEngine functions (#16722) 2022-02-26 07:27:48 -03:00
frutiemax
cb16511d48 Use smart pointers in OpenGLDrawingEngine.cpp
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2022-02-26 09:49:41 +01:00
Charles Machalow
59c4beb3dd Fix bug where file extension can get added twice (#16720) 2022-02-26 06:25:06 +00:00
Charles Machalow
6406b18c98 Fix #16715. The first time we save a park, default to the park's name… (#16719)
* Fix #16715. Default to the park's name as the file name

* Mark Combine as nodiscard

The return value must be used for the function to do something
2022-02-26 06:23:30 +00:00
Ted John
501328bc9a Fix #16712: [Plugin] Crash when clicking on a list view item 2022-02-24 21:39:11 +01:00
spacek531
82378c09c3 Rename VAR_CE and its unions (#16215) 2022-02-20 23:20:06 -03:00
Ted John
d93f4bdc1d Fix #12774: Plugin: Scripts are not reloaded after new scenario (#16686) 2022-02-20 23:14:51 -03:00
Hielke Morsink
5c5f86ac42 Correct some mistakes 2022-02-18 23:28:21 +02:00
Hielke Morsink
ad0a2a8f96 Remove entrance/exit location functions 2022-02-18 23:28:17 +02:00
Hielke Morsink
2137cea3bb Reduce use of UnderlyingType 2022-02-18 23:21:38 +02: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
054f7392a1 Let index underflow for reverse loops 2022-02-18 23:11:11 +02:00
Hielke Morsink
f47c1b9f96 Close #16468: Use TIdentifier for StationIndex 2022-02-18 23:11:07 +02:00
Michael Steenbeek
5edc561715 Close #11437: Migrate old platform methods 2022-02-18 21:57:00 +01:00
Michael Steenbeek
4c046024a3 Merge pull request #16640 from ZehMatt/refactor/entityid-16469
#16469: Introduce EntityId and refactor everything
2022-02-18 21:29:23 +01:00
Tulio Leao
1e58ab4c98 Merge pull request #16673 from IntelOrca/fix/16591-plugin-timeout 2022-02-18 09:38:19 -03:00
Sam Atkins
2b4579bd93 Use labels for OptionsWindow text
This lets us show tooltips for them. Most of the FooDraw() methods are
now empty and have been deleted.
2022-02-17 23:09:39 +01:00
Ted John
007a33404e Close plugin's windows gracefully when stopped
When a plugin is stopped, close all windows created by that plugin.
Ensure the close event on the window can not open a new window if the plugin is being stopped.
2022-02-17 20:18:30 +00:00
Duncan
ad86544c83 Merge pull request #16668 from IntelOrca/fix/plugin-pressed-tab
Fix pressed tab for plugin windows
2022-02-17 16:13:41 +00:00
ζeh Matt
52047805db Use correct type for EntityId and fix issues 2022-02-16 18:56:43 +02:00
ζeh Matt
d7f5003943 Introduce EntityId and refactor everything 2022-02-16 18:56:39 +02:00
Ted John
6c3a417af3 Merge pull request #16259 from IntelOrca/refactor/rectangle-maps
Refactor map size to allow for rectangle maps.
2022-02-15 19:08:37 +00: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
b5127089e2 Fix pressed tab for plugin windows 2022-02-15 10:37:18 +00:00
Ted John
454bfb0a8f Refactor map size to allow for rectangle maps 2022-02-14 23:15:59 +00:00
Duncan
b22ac0551c Merge pull request #16592 from skdltmxn/fix-integer-overflow
Fix staff statistics overflow
2022-02-14 21:41:52 +00:00
skdltmxn
9cd502a9f7 Fix staff statistics overflow 2022-02-14 07:42:18 +00:00
Ted John
b775832d01 Refactor window flags to be read with the helper methods 2022-02-13 23:09:42 +00:00