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
Florian Probst
923b5f990d
Close #12438 : Refactor RIDE_COMPONENT_TYPE to use strong enum ( #13456 )
...
* Part of #12438 Changed RIDE_COMPONENT_TYPE to enum class
(1/3)
Changed the enum RIDE_COMPONENT_TYPE to be enum class in RideData.h.
Shortened the enumerators.
And fixed
I split the changes I did into 3 commits because the enum is used in a total of 85 different files where I just replace the single line where they occur.
The changes in those 85 files are analogous to my change in line 328 in RideData.h in this commit.
* Part of #12438 changed all RIDE_COMPONENT_TYPE enumerators appearances
(2/3)
Changed every appearance of the old RIDE_COMPONENT_TYPE enumerators to the changed enumerators from last commit.
* Part of #12438
(3/3)
Used EnumValue() wherever a field or variable of the type RideComponentType was used as an index.
Havent checked if anything from these 3 commits on this branch got codestyle issues
* Part of #12438
used clang-format
* Closes #12438 Added Accessor function for RideComponentName
Added Accessor function GetRideComponentName to RideData.
to replace the use RideComponentNames[EnumValue(RideComponentType type)]
* Close #12438 moving GetRideComponentName to RideData Headerfile
Moved GetRideComponentName to RideData Headerfile since thats where it should be.
2020-11-26 15:23:47 -03:00
Ghlen Nagels
8c55d1ea9f
Close #12446 : Refactor WEATHER to use strong enum ( #13434 )
2020-11-22 17:34:30 +00:00
maksimdrachov
1815a094bb
Fix #13426 : Typo in "repay loan"
2020-11-19 19:45:40 +01:00
Michael Steenbeek
f899a045fa
Merge pull request #13419 from Gymnasiast/refactor/ghost-scenery
...
Disentangle sub_6E1F34() and try_place_ghost_scenery()
2020-11-18 22:38:32 +01:00
Michael Steenbeek
23871de19f
Remove built-in explode guests cheat
2020-11-16 22:07:52 +01:00
Gymnasiast
64959b0048
Break up sub_6E1F34()
2020-11-15 14:58:36 +01:00
Gymnasiast
4746d025c3
Remove remaining direct calls to sub_6E1F34()
2020-11-15 14:24:14 +01:00
Łukasz Pękalski
fc4ad82ac1
resolve: integrated changes from comments
2020-11-11 16:08:39 +01:00
Łukasz Pękalski
7648feeba2
Close #12427 : Refactor OBJECT_TYPE to use strong enum
2020-11-11 16:07:01 +01:00
Łukasz Pękalski
832fd69822
refactor: changed ObjectType enum to strong enum
...
code does not compile yet
2020-11-11 16:07:01 +01:00
Łukasz Pękalski
6e5105ab3b
refactor: ObjectType to use strong enum
...
enum renaming complete
2020-11-11 16:07:01 +01:00
Gymnasiast
d963438c4f
Check if platform has a file picker
2020-11-08 14:06:42 +01:00
Michael Steenbeek
d8a7219c86
Use new identifier for default objects
2020-11-07 20:28:01 +01:00
Michael Steenbeek
58f099a644
Merge pull request #13286 from tupaschoal/research-refactor
...
Small research releated refactor
2020-11-07 20:18:18 +01:00
Tulio Leao
b8f56fd980
Merge pull request #13312 from Gymnasiast/refactor/ride-id-it
...
Use ride_id_t in more places
2020-11-07 13:03:29 -03:00
Tulio Leao
7d96dc9958
Move category names and invention strings to ResearchItem class
2020-11-07 11:14:55 -03:00
Tulio Leao
19ab8f1211
Use ResearchCategory Enum for ResearchItem
2020-11-07 11:14:55 -03:00
Hielke Morsink
f0c1ea1d37
Split declarations and definitions to improve compile times when editing ( #13332 )
...
* Split FileStream declarations and definitions
* Split JobPool declarations and definitions
* Split StringBuilder declarations and definitions
* Split StringReader declarations and definitions
* Split ZoomLevel declarations and definitions
* Fix missing include in FileClassifier.cpp
* Remove pragma once from source files
* Fix missing include in StringBuilder.h
* Update Xcode project
* Fix compilation of tests
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2020-11-07 12:42:04 +00:00
Gymnasiast
a3aef90637
Replace loose usages of 0xFF
2020-11-07 12:58:32 +01:00
Gymnasiast
9e17081ee8
Use 16 bits for gTrackDesignSaveRideIndex throughout
2020-11-07 12:58:32 +01:00
Gymnasiast
d58a8d1184
Change tile_element_get_ride_index() to method
2020-11-07 12:58:32 +01:00
Michael Steenbeek
92a5f1aa24
Merge pull request #13310 from ju-pinheiro/sprite-identifier-strong-enum
...
Close #12450 : Refactor SPRITE_IDENTIFIER to use strong enum
2020-11-06 16:55:01 +01:00
Sadret
2f4b1b9e3f
Close #13376 : Open custom window at specified tab
2020-11-05 17:43:23 +01:00
Michael Steenbeek
eea57f2bfe
Create calls for min/max cars per train
2020-11-05 17:42:02 +01:00
pizza2004
2015acd4c0
Refactor UI/Interface Window to Title Case ( #13367 )
2020-11-04 04:52:23 +00:00
Łukasz Pękalski
88a6a085e4
Close #12455 : Refactor MOUSE_STATE to use strong enum ( #13361 )
...
* Close #12455 : Refactor MOUSE_STATE to use strong enum
refactor: MouseState to strong enum
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-11-03 18:41:19 -03: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
pizza2004
6cc3f2f4a8
Refactor Graph to TitleCase ( #13353 )
2020-11-03 08:21:20 +00:00
Sadret
c2d309af38
Close #13346 : Change FootpathScenery to FootpathAddition ( #13350 )
2020-11-03 08:17:29 +00:00
pizza2004
68bd035f12
Refactor Dropdown to TitleCase ( #13352 )
...
* Refactor Dropdown Namespace
* Refactor Dropdown to TitleCase
2020-11-03 08:16:06 +00:00
pizza2004
1643c62939
Refactor UI/Input MouseInput to Title Case
2020-11-02 07:05:33 -07:00
pizza2004
34f362b86e
Refactor UI/Input KeyboardShortcuts to Title Case
2020-11-02 06:55:16 -07:00
pizza2004
06c0c1b982
Refactor UI/Input Input to Title Case
2020-11-02 06:55:16 -07:00
Sadret
5893664785
Fix #13334 : Uninitialised variables in CustomTabDesc
2020-11-01 20:59:19 +01:00
Duncan
dcabc8451e
Fix #13250 : Crash when opening parks with new ride types ( #13256 )
...
This only happens when a new ride type is added and the park is opened in the older version of the game where the ride type does not exist.
Reworked so that invalid rides are not loadable. Force reload of title if current scenario is corrupted.
2020-11-01 14:49:43 +01:00
evilclownattack
3e7ff12a72
Fix #13292 : Impossible excitement rating requirements
...
Incorrect argument was used when drawing the minimum excitement rating in the Objective Selection window.
2020-10-28 23:55:29 +01:00
ju-pinheiro
a31c958004
Adding missing SpriteIdentifier enumerations to switch statements
2020-10-27 18:52:56 -03:00
ju-pinheiro
bb16ca075b
Close #12450 : Refactor SPRITE_IDENTIFIER to use strong enum
2020-10-27 13:26:27 -03:00
Tulio Leao
7b10fa57bb
Merge pull request #13280 from Broxzier/bugfix/filestream-file-nonexisting-folder
...
Fix crash when using a writable FileStream to a file in non-existing folder
2020-10-25 14:46:48 -03:00
Bryan DiLaura
894be65b6d
Closes #12415 : Refactor CURRENCY_TYPE to strong enum ( #13276 )
...
* closes #12415 CURRENCY_TYPE enum refactor
* reverses unintended change in Linux.cpp
* closes #12415 CurrencyType strong enum
2020-10-25 01:33:06 -03:00
Hielke Morsink
2275585795
Undef Windows.h macros that cause conflicts
...
This caused errors on calls to Path::CreateDirectory in source files that include OpenGLAPI.h.
2020-10-24 17:39:16 +02:00
Michał Janiszewski
0aaac728b5
Change GL_TEXTURE_RECTANGLE to NPOT GL_TEXTURE_2D
...
This improves GLES compatiblity due to missing rectangle textures, but
NPOT 2D ones being universally available.
2020-10-24 17:28:05 +02:00
Michał Janiszewski
16b3a96e66
Change palette size to PoT square
2020-10-24 17:28:05 +02:00
Keith Stellyes
171132fb6d
Add Execute and FindApp to Platform class
2020-10-22 21:17:28 +02:00
Duncan
214f6992dd
Rename to TitleCase and name LastAttachedPS ( #13260 )
2020-10-22 18:13:54 +01:00
Simon J
a017d3fa57
Fix #13215 : lingering arrows after ride construction ( #13245 )
...
Co-authored-by: Simon Jarrett <mwnciau@users.noreply.github.com>
2020-10-21 23:45:53 -03:00
aw20368
c81bf7b501
Refactor variable names in window_guest_stats_bars_paint ( #13214 )
...
* Refactor variable names in window_guest_stats_bars_paint
Change the variables eax/ebp to timeInPark and barColor, respectively.
* Refactor guest stat UI calculations
Simplify guest stat calculations and move them to a new function NormalizeGuestStatValue.
2020-10-21 07:38:44 +01: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