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
Gymnasiast
13fb0b43da
Refactor legacy GetSourceGame() to method
2020-10-17 22:45:12 +02:00
Haven Kim
8a4df108ba
Close #12428 : Refactor OBJECT_SOURCE_GAME to use strong enum
2020-10-17 22:27:02 +02:00
Aaron van Geffen
a9316869fc
Fix #13158 : Cursors are drawn incorrectly in text input fields ( #13228 )
2020-10-17 22:24:24 +02:00
Aidan Waite
d287653cb5
Fix #4022 : Mac cursor offset on launch ( #13095 )
...
Update config when forcing windowed mode
2020-10-17 11:57:03 +02:00
Duncan
cd39c30989
Tooltip 2 ( #13159 )
...
* Use ScreenCoords for tooltip
* Remove temporary variables
* Small refactor
* Fix #13151 . Not passing tooltip arguments correctly for ride window
* Fix Server List window version tooltip
* Fix cheats tooltip event
* Add static to function decl
* Remove unreachable break statements in Ride.cpp
* Apply review suggestions
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-10-17 09:10:08 +01:00
Aaron van Geffen
af26a2cef0
Improve park cheats tab layout ( #13186 )
...
* Remove 'Park parameters…' button
The scenario options are already accessible through the cheats menu
* Split off Objective group from General group
* Split off new Maintenance group from Staff group
* Shrink 'Force park rating' spinner to make room for label
* Change label 'Force weather' to 'Change weather to'
* Change label "Plants don't age" to 'Disable plants withering'
* Change some strings for consistent capitalisation
2020-10-16 21:52:27 +02:00
Simon Jarrett
25ce8b3f6e
Fix #7443 : Construction arrows pulse at irregular intervals.
2020-10-15 19:44:10 +01:00
Łukasz Pękalski
26720eb345
Fix #5178 : Lighting effects cannot be disabled in software mode ( #13206 )
...
Lighting effect are now automatically turned off when software renderer is selected.
2020-10-15 17:05:39 +02:00
ζeh Matt
645289f4ec
Rename GameActionResult and use GameActions namespace instead ( #13184 )
2020-10-14 22:04:39 -03:00
Vinicius Sa
711dd00cde
Close #13000 : Refactor ObjectFactory to use unique_ptr
...
Employs the smart pointer unique_ptr for safer memory management.
Classes involved:
- ObjectRepository
- ObjectManager
2020-10-14 21:56:48 +02:00
Aaron van Geffen
0c283ba3e7
Ride window: position graph buttons properly
2020-10-14 17:51:58 +02:00
Duncan
250586cb45
Port some OpenLoco helper functions ( #13113 )
...
* Port some OpenLoco helper functions
Added a few helper functions from OpenLoco to make viewport code a bit simpler
2020-10-12 22:25:11 -03:00
aw20368
0c195d14b9
Close #8848 Refactor TimeInPark ( #13146 )
...
Split TimeInPark into a union: ParkEntryTime for guests, HireDate for staff
2020-10-12 21:36:38 -03:00
Aaron van Geffen
a5a65fe974
Fix #13167 : Broken dropdown menu in rendering engine options ( #13169 )
2020-10-11 23:06:35 +02:00