Commit Graph

3339 Commits

Author SHA1 Message Date
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