Meehoi
d6ca1a3da9
Fix #18035 : Favourited servers don't get their online status updated
...
From fetching flow, list will always have favourited servers but no code to update those entries, only append.
This code updates those favourited servers in the list with new data from internet by matching address.
This will fix list having 2 duplicate servers too. (one favourited and one not)
2022-09-23 22:51:05 +02:00
Michael Steenbeek
31e2d7692c
Rename more instances of “vehicle” to “train”
2022-09-22 11:22:18 +02:00
Hielke Morsink
8d08c13fa6
Fix #17963 : Opening research tab breaks marketing tab
2022-09-21 14:49:08 +00:00
Gymnasiast
67c82b75e6
Fix: Cannot build banked turns on the Bobsleigh RC
2022-09-21 15:21:28 +02:00
Gymnasiast
97aec235e7
Fix #18053 : Ride types without vehicles get all pieces disabled
2022-09-21 15:10:59 +02:00
Hielke Morsink
43dbf9eb18
Fix #18032 : non-interactive widgets produce sound
2022-09-19 20:38:34 +00:00
Michael Steenbeek
0a571cce29
Fix #17992 : Virginia Reel doesn't show sloped tracks
2022-09-12 22:39:40 +02:00
Michael Steenbeek
b258298b69
Close #13772 : Refactor EditorScenarioOptions to class ( #17983 )
2022-09-11 17:58:54 +02:00
Fruitsalad
f17b1a970e
Remove headless servers from the player list UI
2022-09-06 23:28:33 +02:00
Michael Steenbeek
99a0876ad6
Disable track elements if no train supports them ( #17909 )
...
This can be useful in several situations:
- In RCT1 scenarios, or when playing with ported RCT1 vehicles, it will disable elements like banked turns
- We can add extra elements to existing coaster types by default, even if no RCT2 train supports them
2022-09-06 21:24:02 +00:00
Henry Cheng
121f121d4e
#17735 Track elements are listed twice when building backwards
...
Fix: Instead of checking whether bank has the value TRACK_BANK_UPSIDE_DOWN, instead check bank_start, as bank is not guaranteed to be bank_start.
2022-09-06 23:21:22 +02:00
Stephan Spengler
1b5f50fd32
Fix #17974 : Setting tabIndex of custom window does not work
2022-09-06 22:17:40 +02:00
Michael Steenbeek
34c7bed26b
Use vertical tabs in the New Game dialog
2022-09-03 23:08:43 +02:00
spacek531
8c8dc632b8
Implement #17806 : Warn user if fallback images are used
...
Warns user on the object debug info, when closing the object selection window after selecting objects, and when opening a park.
2022-09-03 13:56:23 +00:00
Henry Cheng
5f24099f39
Close #17868 : Allow scripting to change active tab
2022-08-31 23:13:02 +02:00
Henry Cheng
0c76872869
Fix #17816 : Option to pause Steam Overlay not greyed out when using OpenGL
2022-08-31 23:08:36 +02:00
Michael Steenbeek
9dd28c90d7
Merge pull request #17908 from Gymnasiast/refactor/window-clean
...
Small window symbol cleanup
2022-08-29 22:04:13 +02:00
Hielke Morsink
61c35c8f1c
Fix #17905 : chain button enabled for rectangular maps
2022-08-28 09:36:18 +02:00
Gymnasiast
45e7ee6a73
Rename rct_window_event_list to WindowEventList
2022-08-27 16:56:52 +02:00
Gymnasiast
5647fc8506
Fix flag usage
2022-08-27 16:52:29 +02:00
Gymnasiast
ae8b2b8374
Remove unused window events
2022-08-27 16:50:02 +02:00
spacek531
74ff5429a9
Add Classic Wooden Roller Coaster
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
2022-08-26 23:53:03 +02:00
leoleotte
83e4277cea
Close #13807 : Refactor Themes window to class
2022-08-24 21:33:37 +02:00
Gymnasiast
a088537b65
Rename rct_widgetindex to WidgetIndex
2022-08-21 18:49:23 +02:00
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
Ted John
05f2995d71
Fix #17843 : New ride window incorrectly shows track design list
2022-08-21 16:19:43 +02:00
skdltmxn
4fcdafc0f4
Fix #17834 : finance window becomes blank after 4096 years
2022-08-17 23:05:18 +02:00
ale
7f33e4886d
Fix #17544 : Placement rule in Invention List window does not move
2022-08-15 19:52:20 -04:00
ale
3a5a8d4f78
Fix #17754 : Scenery Group thumbnails missing in Invention List window
2022-08-15 19:50:01 -04:00
Michael Steenbeek
354df90ab1
Fix #17815,#17818: Special... dropdown and brake settings glitches
2022-08-14 20:37:32 +00:00
Gymnasiast
5945f7110a
Move gGotoStartPlacementMode to windows/RideConstruction.cpp
2022-08-13 23:00:54 +02:00
Gymnasiast
f8a94c2e12
Move two functions out of _legacy.cpp
2022-08-13 23:00:53 +02:00
Michael Steenbeek
d9e23e9dfa
Use ride_type_t instead of uint8_t in more places ( #17803 )
...
Part of preparation for making ride types into objects.
2022-08-13 21:49:19 +02:00
Michael Steenbeek
49215a52cf
Remove unnecessary pops from some strings ( #17805 )
2022-08-13 20:12:30 +02:00
Gymnasiast
4832e67d14
Fix crash in ride_scroll_to_track_error()
2022-08-13 17:21:34 +02:00
frutiemax
2202f8d060
Add ConstructionWindowContext field to RTD ( #17749 )
2022-08-13 09:18:56 -03:00
Michael Steenbeek
5661da1c68
Unwrap game action compat wrappers
2022-08-11 00:00:58 +02:00
Michael Steenbeek
93807ec5bf
Remove ride type checks for log bumps/rapids string
2022-08-10 23:43:00 +02:00
Michael Steenbeek
980e3cbc4c
Remove superfluous line from MSVC project file
2022-08-06 16:34:10 +02:00
Michael Steenbeek
a7e66535d9
Change ‘restroom’ to ‘toilet’ in the code
2022-08-06 14:33:37 +00:00
frutiemax
6868b3dcaf
Rename IS_SHOP to IS_SHOP_OR_FACILITY and use it for RideObject
2022-08-06 15:00:52 +02:00
frutiemax
2d75858589
Add IS_FIRST_AID flag
2022-08-06 15:00:52 +02:00
frutiemax
76104cbbee
Use RIDE_TYPE_FLAG_IS_TOILET
2022-08-06 15:00:52 +02:00
AuraSpecs
5249ae1426
Enlarge Special Elements dropdown
...
Enlarging the Special Element dropdown to accomodate for the new longest name "Large Corkscrew (right)" so you can at least make out which direction it's turning in.
2022-08-06 11:25:25 +02:00
Michał Janiszewski
a9fe4da279
Use SDL_ShowMessageBox's 'close' value for dummy UI context
2022-08-04 18:42:34 +02:00
Michał Janiszewski
a6e84fab5c
Add a message box with buttons to UiContext
2022-08-04 18:42:33 +02:00
Nikolas Parshook
a44ddd5adc
Refactor NewRideWindow to use Window class
2022-08-03 21:59:03 +02:00
Michael Steenbeek
80f0d952ad
Merge pull request #17638 from X123M3-256/new_track_pieces
...
Add new track pieces to the hybrid and single rail
2022-08-01 23:24:22 +02:00
Henry Cheng
281cf137f4
Fix #17639 : Duplicate special elements when building upside down
2022-07-31 21:51:08 +00:00
Gymnasiast
9841b4e9e0
Fix naming conflicts
2022-07-31 22:30:18 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Hielke Morsink
7cb2113252
Apply clang-format rules
2022-07-31 20:34:32 +02:00
Hielke Morsink
d6525e3cd0
Refactor window functions to take references 7
2022-07-31 17:23:18 +02:00
Hielke Morsink
d05d675ed9
Refactor window functions to take references 6
2022-07-31 17:23:17 +02:00
Hielke Morsink
755deeef8e
Refactor window functions to take references 5
2022-07-31 17:23:17 +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
frutiemax
e96f428c7b
Add RIDE_TYPE_FLAG_HAS_SEAT_ROTATION for multi-dim rollercoaster
2022-07-31 12:01:22 +02:00
X123M3-256
da710557de
Fix bug in ride construction window
2022-07-31 10:22:46 +01:00
X123M3-256
ffbf8f4706
Fix bit shifts in ride construction window
2022-07-31 10:22:45 +01:00
X123M3-256
c6a5a6da5f
Allow more than 32 special pieces in construction menu
2022-07-31 10:22:04 +01:00
Michał Janiszewski
3c4a07859b
Provide enough space in temp buffer
...
```
src/openrct2-ui/windows/Ride.cpp:3338:44: error: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Werror=format-truncation=]
3338 | snprintf(buffer, std::size(buffer), "%u", currentValue);
|
(...)
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:35: note: ‘__builtin___snprintf_chk’ output between 2 and 6 bytes into a destination of size 5
```
2022-07-30 23:19:52 +02:00
Michael Steenbeek
0bfc151ab9
Remove remaining usages of gGameCommandErrorText
2022-07-30 18:04:59 +02:00
Ted John
142b9ff243
Optimise object selection search
...
* Do case insensitive string matching for object search.
* Return as soon as first field is a hit.
2022-07-30 16:50:54 +02:00
Michael Steenbeek
5a5b107245
Refactor Twist rotations, fix truncating of operating value ( #17636 )
2022-07-30 16:32:22 +02:00
Hielke Morsink
e2da19f0f7
Add missing includes
2022-07-29 18:45:10 +02:00
Michael Steenbeek
2b859c7099
Remove __ENABLE_LIGHTFX__ define
...
It is already enabled for all our builds, and upcoming changes to RTD would add a slew more.
Discussed in team chat with Duncan and Hielke.
2022-07-28 21:34:02 +00:00
Gymnasiast
5e8b749277
Fix #17542 : Stalls will autorotate towards paths outside the park
2022-07-28 21:26:11 +02:00
Raymond Zhao
7399163a3c
Use more smart ptrs and u8strings ( #17611 )
...
* Use smart ptr for PlatformUiContext and WindowManager
* Remove more delete calls
* Apply PR feedback
2022-07-28 18:19:38 +01:00
Michael Steenbeek
e5d2e3001d
Fix buffer size handling for ride operations input
...
Ensure a nicely terminated string
2022-07-28 14:24:19 +02:00
Michael Steenbeek
1a8660d59d
Pass window reference to tool_set ( #17625 )
2022-07-27 22:22:22 -03:00
Gymnasiast
39f60c3412
Input current value; fix dodgems mode detection
2022-07-27 23:13:01 +02:00
Rik Smeets
1eb3a86770
Ride operating settings can be set via text input
...
Both minimum and maximum wait time and operating settings for flat rides can now be set via text input.
2022-07-27 22:50:04 +02:00
Michael Steenbeek
30f477972c
Close #15358 : Increase park name character limit
2022-07-27 17:35:15 +02:00
Duncan
7433119749
Fix #17620 . Missing setting ride id for construction window ( #17622 )
...
This would eventually cause a crash when trying to reset the window on last track piece deletion. Mistake made in refactor #17578
2022-07-27 16:06:33 +01:00
Raymond Zhao
4f23e5e9ec
Refactor struct TrackDesignFileRef
...
- Refactors track_design_file_ref to TrackDesignFileRef and replaces the utf8* fields of that struct with u8string
- Gets rid of some String::Duplicate() and delete calls
- Uses a bunch of c_str() calls to interface with older functions
2022-07-26 16:12:46 +00:00
Nikolas Parshook
628da77c0e
Refactor ride construction window ( #17578 )
2022-07-26 15:17:25 +01:00
Ted John
bd6817cb45
Fix #17533 : Missing audio when specifying --rct2-data-path
2022-07-25 14:26:28 +00:00
Henry Cheng
08e0b9ae8d
Fix #17508 : Grid Doesn't Disable After Setting Patrol Area ( #17574 )
...
* Move show_gridlines to only run under condition
* Update changelog.txt
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-07-25 13:39:19 +00:00
jazzysoggy
c0853b56ad
Fix Format_VA. Rename Format to StdFormat.
...
author jazzysoggy <39224097+jazzysoggy@users.noreply.github.com> 1655955994 -0400
committer jazzysoggy <39224097+jazzysoggy@users.noreply.github.com> 1656516326 -0400
Fixed Format_VA and renamed Format to StdFormat. Both now output to Std::String, while taking the same input as before. Changed functions that use these two to account for this output difference
2022-07-24 19:30:57 +02:00
AuraSpecs
d82360cc16
Add Authors to the list of things you can search for in the Object Selection menu ( #17575 )
...
* Add Authors to Search option
Joint effort from Spacek and karst
* Update changelog.txt
* Apply code review comment
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-07-23 20:28:39 +00:00
Duncan
3edcc91e40
Fix #17339 . Reset Scaleing frame buffers on scale change ( #17598 )
...
* Fix #17339 . Poor visuals due to scalling incorrectly
Mistake made during refactor meant that the scaleing framebuffers were
kept enabled even though at integer numbers of scale they are not meant
to be used.
* Update changelog
2022-07-23 20:11:00 +00:00
Henry Cheng
46a2047309
Refactor Server Start Window to Class ( #17592 )
...
* Refactor first
* Update refactor
* Add fixes requested
* Dropped static
2022-07-23 20:47:17 +01:00
Michał Janiszewski
5688eb511d
Use SDL_free to release SDL_RWops ( #17591 )
2022-07-22 22:28:58 +00: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
Raymond Zhao
f4df6be8ae
Remove some calls to free ( #17577 )
2022-07-21 07:50:43 +01:00
Henry Cheng
3bad01a704
Fix #17553 : Crash when moving invention list items to empty list ( #17555 )
...
* Fix content check
* Add change log entry
Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
2022-07-17 07:12:29 +00:00
Cory Sanin
37a38af6a5
Fix: [ #17503 ] Correct staff refactor issue ( #17546 )
2022-07-17 07:43:32 +01:00
8street
213696ea27
Add option to sell merchandise in random colours
...
Co-authored-by: 8street <nikolai_e@rambler.ru>
2022-07-12 22:20:49 +00:00
Michael Steenbeek
11614d7170
Merge pull request #17486 from duncanspumpkin/inventionWnd
...
Invention List Window Class Refactor
2022-07-12 19:49:03 +02:00
Gymnasiast
06c368694a
Update variables containing a CarEntry
2022-07-11 18:06:22 +02:00
Duncan
5d896c65b5
Refactor Guest Window to Class
2022-07-03 22:00:37 +02:00
Hielke Morsink
43a98680ac
Fix: Fallback when selecting RCT1 titles while it's not installed
2022-07-03 16:39:27 +02:00
Hielke Morsink
d06f564506
Clean up some title sequence code
2022-07-03 16:20:23 +02:00
Cory Sanin
05f1007dd9
Fix #16989 : Re-focusing maximised window triggers a restore and maximise
...
Fixes #16989 by removing an SDL hack. Originally added to address issue #2158 , I can't reproduce this issue with the hack removed. Tested on Linux (by CorySanin) and Windows (by Broxzier).
2022-07-02 21:48:43 +02:00
Artem Yanenko
019ed54a48
Fix #17377 : Park entrance can be placed without path in Scenario Editor
2022-07-02 14:02:27 +00:00
Sadret
544770c0fb
Fix #16539 : CustomListView header unclickable when scrolled
2022-07-02 12:34:12 +02:00
duncanspumpkin
8492453702
Refactor to conform to style. Move uncommon items out of rct_window
2022-07-02 07:53:46 +01:00
duncanspumpkin
144cd5ada7
Complete moving into class
2022-07-02 07:28:16 +01:00
duncanspumpkin
22f50b8199
Start creating invention list class
2022-07-01 14:57:24 +01:00
Duncan
43562a6899
Window Class Refactor: Invention List Drag ( #17415 )
...
* Start working on drag
* Finish moving invention drag into window class
* Refactor drag item into a window variable
* Remove rct2 comment
2022-06-30 10:25:18 +01:00
Hielke Morsink
ac7331f878
Include <array> and use page count for size
2022-06-30 07:25:24 +00:00
Duncan
d6e188d289
Park Window to class ( #17364 )
...
* Start base of class
* Start moving things into class
* Finish porting over
* Refactor to conform more with style
* Add no discard to imageid
* Fix objective window position
* Fix audio on viewport
* Make further fixes
* Move nodiscard again
2022-06-30 05:37:43 +01:00
Karst
7345dd58fe
Fix: Footpath Railing tooltip showing incorrect tooltip ( #17461 )
...
* Fix Footpath Railing tooltip
* Add changelog entry
* Update src/openrct2-ui/windows/Footpath.cpp
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-06-28 21:15:44 -03:00
Henry Cheng
36f43285ad
Close #16688 : Remove unused variables on RideConstruction ( #17453 )
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-06-28 21:15:15 -03:00
Hielke Morsink
79ae03fc5e
Rename `command` to avoid ghosting
...
It's curious that gcc complains about ghosting here, since the lambda has its own stack pointer, and doesn't capture the outer `command`.
2022-06-28 21:57:29 +02:00
Hielke Morsink
6a017ac761
use std::decay helper type
2022-06-28 21:57:28 +02:00
Hielke Morsink
0e5cfce073
Maintain centre view position when screen resizes
2022-06-28 21:57:28 +02:00
Hielke Morsink
43f49f2483
Fix: commands used as tags don't save in scripting
2022-06-28 21:57:28 +02:00
Hielke Morsink
2b52df87ce
Move scripting command names to command classes
...
This way, new commands are required to have this field, or a compiler error will occur.
2022-06-28 21:57:27 +02:00
Hielke Morsink
3da305b82f
Implement follow entity command
2022-06-28 21:57:27 +02:00
Hielke Morsink
239dcb1677
Update title sequence scripting part
2022-06-28 21:57:26 +02:00
Hielke Morsink
1fc2312abd
Move most command logic from sequence player
...
This commit also moves everything related to the OpenRCT2::Title namespace.
Can be compiled with ENABLE_SCRIPTING disabled.
2022-06-28 21:57:26 +02:00
Ted John
00014adec9
Fix #17462 : Crash when zooming or moving around park
...
Lock the mixer while disposing an audio source.
2022-06-28 00:25:57 +01:00
Ted John
585ebed600
Fix #17297 : Crash when switching language ( #17370 )
...
* Refactor all uses of IAudioChannel and the audio mixer.
* Use shared_ptr to avoid dead pointers hanging about.
* Reload particular audio channels where necessary after object reload.
2022-06-27 17:41:53 +01:00
Nicolas Espinosa Mooser
69ff925b1e
Refactor window to class: Staff ( #17400 )
...
* Refactor window to class: Staff
Close OpenRCT2/OpenRCT2#13806
2022-06-26 07:07:59 +01:00
jazzysoggy
f77611dcd2
Fix #17229 : Rename G1_FLAG_BMP to G1_FLAG_HAS_TRANSPARENCY ( #17441 )
...
* Renamed All Instance of G1_FLAG_BMP
Renamed all instances of G1_FLAG_BMP to GA_FLAG_HAS_TRANSPARENCY
* Fixed comments and labels
Fixed comments and labels to be more in line with new definitions
2022-06-25 07:04:40 +01:00
Artem Yanenko
790e237b80
Fix #15787 : toggling upper case banners only works after 10 secs
2022-06-21 20:37:45 +02:00
Silent
dc7e31f7af
Remove any traces of WinNT5.1 as per #16911
2022-06-20 21:26:40 +02:00
Artem Yanenko
29beb2962d
Fix primary color picker for canvas tent ( #17416 )
2022-06-20 21:24:09 +02:00
Hielke Morsink
13db5a771b
Annotate hardcoded arrays and verify their sizes
...
This also reduces the number of lines within // clang-format comments
2022-06-16 23:51:24 +02:00
Duncan
f0949284c4
Editor Bottom Toolbar Window class ( #17358 )
...
* Move EditorBottomToolbar to window class
* Minor refactoring
* Further refactoring
* keep compilers happy
2022-06-08 20:54:03 +01:00
Michael Steenbeek
a0f5493575
Merge pull request #17353 from duncanspumpkin/intWindRefact
...
Refactor a couple internal Window member variables
2022-06-08 21:42:44 +02:00
Ted John
704e68a9b4
Fix deadlock due to ogg stream prematurely ending
2022-06-08 00:28:44 +01:00
duncanspumpkin
d521327072
use consistent style
2022-06-07 22:35:06 +01:00
duncanspumpkin
249eaa989e
Refactor sign internal variables
2022-06-07 22:35:06 +01:00
duncanspumpkin
3dba3984bf
Remove map_variables
2022-06-07 22:35:06 +01:00
Michael Steenbeek
3fae2413db
Use “car” instead of the ambiguous “vehicle”, part 1
...
Currently, the word “vehicle” is used for both “train” and “car”. This is a first effort towards disambiguation.
2022-06-07 20:36:20 +00:00
Ted John
dcab9d4c9c
Merge pull request #17217 from IntelOrca/flac-support
...
Add optional support for streaming FLAC and OGG/vorbis audio.
Galaxy style from OpenMusic is over 40 MiB in wav. FLAC gets it down to about 27 MiB and OGG/vorbis can get it down to just 1.36 MiB. I think vorbis should be our primary format for distributing OpenRCT2 assets due to its low size, but FLAC is available for those who want higher quality assets.
2022-06-07 21:16:39 +01:00
Duncan
5bae48e505
Fix auto positioning
2022-06-07 14:09:18 +00:00
Duncan
bde81c1d34
Move MainWindow into window class ( #17351 )
2022-06-07 12:06:57 +01:00
Duncan
a73df7e376
Remove Editor Main ( #17348 )
...
* Remove editor main window
* Remove editor main completely
* Update src/openrct2/Editor.cpp
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-06-07 08:26:58 +01:00
Ted John
5be41b65f4
Fix flac decoding
2022-06-06 23:41:15 +01:00
Ted John
03d7bb0995
Removed unused variable
2022-06-06 23:41:15 +01:00
Ted John
29d7c8217f
Fix cmake file syntax error
2022-06-06 23:41:15 +01:00
Ted John
dc47f4296f
Add way of disabling flac and vorbis support
2022-06-06 23:41:14 +01:00
Ted John
d493563f7e
Fix windows builds
2022-06-06 23:41:14 +01:00
Ted John
95661f4df2
Refactor audio sources
2022-06-06 23:41:14 +01:00
Ted John
274bd921b3
Add ogg vorbis support
2022-06-06 23:41:14 +01:00
Ted John
73ac7954f1
Add flac support
2022-06-06 23:41:14 +01:00
Michael Steenbeek
3243183680
Fix #17187 : Text input window does not resize correctly
...
window_set_resize() already invalidates, so no need to call it twice.
Co-authored-by: guljam <guljam@users.noreply.github.com>
2022-06-06 00:11:29 +02:00
Hielke Morsink
6d04e21518
Make map size spinners in mapgen window functional
2022-06-05 09:49:40 +02:00
Hielke Morsink
7f2f27e826
Show map size inside spinner widgets
2022-06-04 23:23:00 +02:00
Hielke Morsink
49c3f49535
Split X and Y size in mapgen logic
2022-06-04 19:56:31 +02:00
Hielke Morsink
1644cb68d3
Split X and Y map size spinners in mapgen
2022-06-04 11:26:46 +02:00
Hielke Morsink
8d14016c3f
Allow maps to be resized to non-rectangular shapes
2022-06-04 11:26:34 +02:00
spacek531
673ec0fa10
Frames rotation count part 1 ( #17106 )
...
Refactor vehicle sprite groups
rename rotationType to spriteGroup
remove numframes getters from scobject
add sprite groups getters
add documentation to plugin
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-06-03 23:03:02 +01:00
Ted John
9a4492c704
Fix unable to save landscape in editor
...
Audio objects were being unloaded, while they were still in the loaded object list.
2022-05-30 23:34:29 +02:00
Hielke Morsink
529c1bcd07
Merge pull request #17294
2022-05-30 19:37:57 +02:00
Duncan
1cc2901680
Dropdown Window Class Refactor ( #17278 )
...
* Move dropdown window to class
* Refactor and move locals into member vars
* Deduplicate slightly
* Apply review comments
2022-05-29 01:06:23 +01:00
Hielke Morsink
3ea70cdeaf
Fix: shortcut key highlight remains when cursor leaves list
2022-05-28 20:55:42 +00:00
Hielke Morsink
15581b509d
Fix cursor pivot for land up/down cursor ( #17255 )
...
Co-authored-by: guljam <cube4none@gmail.com>
2022-05-28 11:53:45 +00:00
Hielke Morsink
205f98560b
Remove highlight when cursor leaves new rides list
2022-05-28 13:09:26 +02:00
Hielke Morsink
d709668eab
Remember scroll position instead of ride selection
2022-05-28 13:09:26 +02:00
Hielke Morsink
64eff42c60
Introduce constant for ride tab count
2022-05-28 10:16:41 +02:00
Rik Smeets
275adc9e68
Fix #7983 : Change when certain G-forces show up in red
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-05-27 22:09:18 +00:00
X123M3-256
502f06af91
Add "Alpine Coaster" ride type ( #16825 )
...
* Implement "Alpine Coaster" ride type
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-05-26 21:28:17 +00:00
Ted John
bb102cc1ec
Remove null audio source and fix crash on exit
2022-05-23 23:06:41 +01:00
Ted John
6465d42b57
Apply code review changes, auto*
2022-05-23 22:24:56 +01:00
Ted John
a2e6691ac2
Add new audio objects for loading sounds
2022-05-23 22:24:56 +01:00
Duncan
5349e6fe88
Window Class Refactor: DebugPaint ( #17269 )
...
* Move debug paint window to class
* Refactor global
* Use ref where possible
2022-05-22 23:15:39 +01:00
Hielke Morsink
6b94d8c0bc
Fix overwriting buffer for parent directory when browsing "Up"
2022-05-22 14:32:06 +00:00
guljam
530c62c27b
Fix hand cursor position on Inventions List
2022-05-22 14:02:26 +02:00
Hielke Morsink
95df149804
Fix: Ghosts and tooltips move when panning the viewport by right-click dragging
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-05-21 09:40:43 +02:00
Michał Janiszewski
7832288ff9
Plug memory leak in OpenGL engine ( #17250 )
2022-05-20 21:43:16 +00:00
Ted John
0b9184b99b
Avoid overwriting _currentTrackPieceDirection when placing TD
2022-05-10 22:41:09 +01:00
Ted John
b441cf768c
Log SDL2 version on startup
2022-05-10 21:54:04 +02:00
Michał Janiszewski
4084db6ffc
Merge pull request #16887 from janisozaur/msvc-arm
...
MSVC ARM64
2022-05-08 00:33:41 +02:00
Michael Steenbeek
493c97246c
Merge pull request #16952 from karst/reorg-objsel
...
Make "Object Selection" order more coherent
2022-05-08 00:02:12 +02:00
Michał Janiszewski
3bc5c6c563
Introduce MSVC ARM64 platform
2022-05-07 23:48:27 +02:00
Michał Janiszewski
f3a24dbfef
Only allow breakpad to be used on x86-like targets
2022-05-07 23:48:26 +02:00
Gymnasiast
0708b82430
Remove unnecessary code, check bounds and restore newline
2022-05-07 23:39:59 +02:00
Sebastian Flinck Lindström
8fe124b1dd
Close #13966 : Sort Music Style dropdown by name
2022-05-07 20:51:51 +00:00
Michael Steenbeek
29d123b79d
Minor code refactor aimed at optimization code ( #17055 )
...
* Add const ref, remove excess .c_str(), push_* -> emplace_* and rewrite constructors
* Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen
* Fix: Main thread can reallocate data of worker threads
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com>
2022-05-07 20:18:09 +02:00
Karst
cfa18bd113
Change Object Selection order
...
Might take a little bit for people to get used to. But it's a lot more coherent and makes more sense.
2022-05-07 19:55:58 +02:00
germanaizek
958bfbc08a
Using std::move(), correct clear strings, better use '= default;', modernize make_* and replace heavy strlen
2022-05-07 16:05:39 +02:00
germanaizek
0045aed7f9
Add const ref, remove excess .c_str(), push_* -> emplace_* and rewrite constructors
2022-05-07 16:05:38 +02:00
Hielke Morsink
5f2bde9375
Show Tile Inspector hint when nothing is selected
2022-05-07 13:42:24 +00:00
Íkorni
cdc1a912d3
Refactor window to class: Finances ( #16149 )
...
* Convert Finances window to new window system
* Fix shadowed variable names
* Fix issues with code, rebase merge
2022-05-05 07:31:26 +01:00
Olivier Wervers
593be7ef28
Add option to show ride vehicles separately
2022-05-03 22:49:47 +02:00
Hielke Morsink
9da63961de
Use eye glyph instead of checkbox for visibility
2022-05-02 22:07:06 +02:00
spacek531
5659d43f46
Cleanup vehicle drawing code part 3 ( #16968 )
...
* Cleanup vehicle drawing code part 3
* Create functions to convert between rotation amounts
* Add regions to ease code navigation
2022-04-30 07:56:23 +01:00
Olivier Wervers
ef1eabd04e
Fix thumbnail box size in object selection window
2022-04-30 01:43:50 +02:00
Hielke Morsink
2954b0a30d
Fix #17005 : Unable to set patrol area for first staff member in park
2022-04-27 21:11:45 +00:00
Hielke Morsink
35915b0a5d
Fix: Writing out of bounds when trains have over 144 cars
2022-04-27 22:02:39 +02:00
Hielke Morsink
1c55e6ee7a
Close #17050 : Transparency can be toggled directly ( #17075 )
2022-04-27 13:30:58 +02:00
Ted John
e3ee511a0c
Update options UI
2022-04-26 22:18:19 +02:00
Ted John
9f28b66eec
Remove title editor
2022-04-26 22:17:38 +02:00
csunday95
6ca2a5eb7c
Fix #17029 : Ride Cheats tab behaves as a button
2022-04-24 14:50:17 +02:00
EWouters
658efeb4a2
Remove enabledWidgets ( #17023 )
...
This was old and unused code which broke the build on MacOS.
2022-04-21 05:59:35 +01:00
Michael Steenbeek
2653a0c976
Merge pull request #16995 from Gymnasiast/fix/zenity-kdialog-escaping
...
Fix Zenity/Kdialog calls
2022-04-17 23:08:26 +02:00
Michael Steenbeek
c8d00a4a62
Merge pull request #16958 from IntelOrca/fix/16478-park-no-money
...
Fix #16478 : No money in .park scenarios
2022-04-16 22:13:50 +02:00
Gymnasiast
3890aa50b7
Fix filters KDialog
...
They were case sensitive and did not display correctly.
2022-04-16 18:41:20 +02:00
Gymnasiast
b27c48f035
Fix Zenity/Kdialog not opening in paths with single quotes
2022-04-16 18:41:20 +02:00
norisa118
483548120b
Fix #16879 : TED::Price is price modifier, not price ( #16962 )
...
* Fix #16879 : TED::Price is price modifier, not price
Change unit type to uint32_t, change name to 'PriceModifer' &
add comment on how to use PriceModifier.
2022-04-14 20:36:39 +01:00
Duncan
a4700e152e
Fix #16950 . Prevent accessing private members ( #16976 )
...
* Fix #16950 . Prevent accessing private members
* Move further private variable and rename
* Allow persistency of selection
* Move code to open event
2022-04-14 20:36:04 +01:00
Duncan
4596105aed
Fix #16922 : Unable to place helix ups on certain tracks
...
Due to heavy reuse of widget index's and dual uses of items this was incorrectly grouped up in the SLOPE_STEEP_UP refactor. The correct way to split up this is to create a HELIX_UP HELIX_DOWN which will be left for a future refactor
2022-04-11 19:25:55 +02:00
Ian-Polito
5f60dc4081
Take the nice additional changes from #16095
2022-04-09 17:50:17 +02:00