awiebe
b53c4b3625
Downgrade Mac build requirements of OpenRCT2 to macOS 10.13 ( #12749 )
...
Keep targeting macOS 10.14 for libopenrct2 target. Replace deployment target with macOS 10.13 for other targets, including the OpenRCT2 bundle.
Explicitly type std::arrays, since Xcode refuses to use C++17 array deduction.
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2020-08-28 22:27:25 +02:00
Ted John
65e3d20156
Refactor drawing
2020-08-28 01:30:15 +01:00
Ted John
609cde2304
Fix drawing of money text when zoomed in
2020-08-28 01:29:59 +01:00
Ted John
7f0510e444
Fix sub pixel clip issues with OpenGL
2020-08-28 01:29:59 +01:00
Łukasz Pękalski
411f242cfd
Close #12431 Refactor VirtualFloorStyles to use strong enum ( #12790 )
2020-08-27 21:06:39 -03:00
Michael Steenbeek
db8efe20d0
Merge pull request #12785 from Gymnasiast/refactor/text-drawing
...
Start removal of gfx_draw_string_*()
2020-08-26 22:51:39 +02:00
Michael Steenbeek
60a35f7abb
Merge pull request #12783 from Gymnasiast/refactor/ride-status-formatter
...
Use Formatter in windows/Ride.cpp
2020-08-26 22:51:09 +02:00
Gymnasiast
549a771120
Use Formatter&
2020-08-26 17:13:19 +02:00
Aaron van Geffen
ec6f1b5fcd
Fix #12784 : Scenery tab images missing
2020-08-26 17:06:19 +02:00
Gymnasiast
972e6e80ab
Allow passing Formatter to DrawTextBasic() and DrawTextEllipsised()
2020-08-26 15:08:42 +02:00
Gymnasiast
ceace1a3ad
Remove draw_string_left_underline()
2020-08-26 14:47:47 +02:00
Gymnasiast
f1caddc9fe
Remove draw_string_right_underline()
2020-08-26 14:46:37 +02:00
Gymnasiast
879ce64a86
Use Formatter in windows/Ride.cpp
2020-08-26 13:59:18 +02:00
Michael Steenbeek
56c623e549
Merge pull request #12671 from AaronVanGeffen/refactor/tabs
...
MakeTab wrapper for standard tab widgets
2020-08-26 12:13:36 +02:00
Tulio Leao
efdb7e1a2d
Change gDateMonthsElapsed type to int32_t
2020-08-25 19:06:38 -03:00
Tulio Leao
4caf571c22
Followup on #12475 post-mortem comments ( #12745 )
...
* Remove using namespace OpenRCT2 from header
* Fix using wronf undefined enum for shortcut key map
2020-08-21 16:07:38 +01:00
Sidney
5330f7fb86
closes #12445 Refactor CLIMATE to use strong enum ( #12551 )
2020-08-21 09:43:57 +01:00
frutiemax
4cc550a364
Close #12460 : Refactor KeyboardShortcut to use strong enum ( #12475 )
...
* Close #12460 : Refactor KeyboardShortcut to use strong enum
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-08-20 23:54:43 -03:00
Tom Parsons
9cdae2d1e2
Fix #12401 : Refactor SCALE_QUALITY to use strong enum ( #12673 )
2020-08-20 23:32:56 -03:00
Simon J
4c2ce0f892
Remove duplicate TRACK_ELEMENT_LOCATION_IS_UNDERGROUND flag ( #12714 )
...
Renamed all instances to ELEMENT_IS_UNDERGROUND
Co-authored-by: Simon Jarrett <simonjjarrett@gmail.com>
2020-08-18 09:26:03 -03:00
Aaron van Geffen
40cfadcdc5
Apply formatting suggestions from code review
...
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2020-08-18 10:13:48 +02:00
ryan-bello
cc2bb33892
changed enum STAFF_TYPE to strong enum StaffType, moved it to Peep.h
2020-08-17 22:59:02 -04:00
ryan-bello
54a33cbde8
renamed StaffType to AssignedStaffType
2020-08-17 20:16:09 -04:00
Aaron van Geffen
3b97cd9b14
Refactor Staff*, Themes, and TitleEditor to use MakeTab
2020-08-17 20:59:42 +02:00
Aaron van Geffen
6b9211c8b8
Refactor Park, Player, Research, Ride* to use MakeTab
2020-08-17 20:59:42 +02:00
Aaron van Geffen
3631d75b98
Use MakeTab in Mapgen, Multiplayer, Network, NewRide, NewsOptions
2020-08-17 20:59:23 +02:00
Aaron van Geffen
be626d0b7c
Refactor Editor*, Finances, Guest* to use MakeTab
2020-08-17 20:59:17 +02:00
Aaron van Geffen
6602b51b8b
Use MakeTab in EditorInventionsList, EditorObjectSelection, Scenery
2020-08-17 20:59:17 +02:00
Aaron van Geffen
4a55acd71e
Introduce MakeTab wrapper function
...
The MakeTab function is only applied in two places, for the moment:
the Cheats and Options windows.
2020-08-17 20:59:13 +02:00
Aaron van Geffen
72be84caf8
Remove unused fourth tab from Staff window ( #12713 )
2020-08-17 20:21:46 +02:00
Duncan
55ba164dee
Fix crash when switching ride types with construct window open ( #12694 )
2020-08-16 18:48:21 +01:00
pizza2004
647730fcfa
Fix #12691 : Tooltip at ride's graph tab is not using a proper string
2020-08-15 23:17:38 +02:00
Aaron van Geffen
f95da1c99a
Fix alignment for widget definitions
2020-08-14 10:18:17 +02:00
Michał Janiszewski
6dd67296a4
Merge "new version" window back to changelog
2020-08-14 10:18:17 +02:00
Michał Janiszewski
6ae5645686
Show update information on main screen & in floppy menu
2020-08-14 10:18:17 +02:00
Michał Janiszewski
55835456a0
Pester users to update to latest release
2020-08-14 10:18:17 +02:00
Aaron van Geffen
eda8e31055
Refactor widget defs in EditorObjectiveOptions window ( #12672 )
2020-08-13 23:07:19 -03:00
Matt Thomson
a8f8f06e2d
Fix #12402 : Refactor MEASUREMENT_FORMAT to use strong enum ( #12642 )
...
* Fix #12402 : Refactor MEASUREMENT_FORMAT to use strong enum
* Remove redundant default branches
Co-authored-by: Matt Thomson <matt-thomson@users.noreply.github.com>
2020-08-13 21:51:28 +01:00
Michael Steenbeek
5e09ecc904
Fix #12308 : Cannot use cheats in editor modes ( #12661 )
...
This allows opening the cheats window while in editor mode. Some tabs and options are disabled because they are not relevant to these modes.
2020-08-13 13:03:56 +02:00
Michael Steenbeek
33d9fc2b75
Fix #10549 : 'Build the best ride you can' objective missing ride name
...
This is implemented in a way that is compatible with RCT2 (as long as the ride type was not split).
2020-08-13 00:23:08 +02:00
Michael Steenbeek
68ce06e833
Refactor objective handling in Scenario Editor
...
This moves some knowledge out of the window and into the main code and also cleans up the window a bit.
This also allows setting the "x guests by the end of year y" goal for no money scenarios, which was not the case previously.
2020-08-12 22:10:47 +02:00
Michael Steenbeek
2d56c8d2de
Merge pull request #12636 from Gymnasiast/refactor/to-member-function
...
Use a 16-bit integer for track type in more places
2020-08-11 17:53:20 +02:00
Tulio Leao
2e4edf6f5d
Merge pull request #12638 from quale/fix-debug-window
...
Fix Z coordinate and spillover in guest debug tab
2020-08-11 07:53:19 -03:00
Jonathan van Tuijl
4117965a4a
Fix Z coordinate in guest debug tab
2020-08-11 03:37:34 +02:00
Jonathan van Tuijl
dcdc782361
Increase minimum window size so pathfind history doesn’t spill out
2020-08-11 03:35:24 +02:00
Gymnasiast
89f04c4fb3
Fix names of two track type functions
2020-08-10 23:48:18 +02:00
Michael Steenbeek
be0123decb
Fix #12611 : Bad check for pay-per-ride ability
2020-08-10 18:56:06 +02:00
Michał Janiszewski
6f8ae294ae
Fix launchpad builds ( #12575 )
...
```
/<<PKGBUILDDIR>>/src/openrct2-ui/interface/ViewportInteraction.cpp: In function ‘InteractionInfo viewport_interaction_get_item_left(const ScreenCoordsXY&)’:
/<<PKGBUILDDIR>>/src/openrct2-ui/interface/ViewportInteraction.cpp:85:29: error: potential null pointer dereference [-Werror=null-dereference]
85 | switch (sprite->sprite_identifier)
| ~~~~~~~~^~~~~~~~~~~~~~~~~
```
2020-08-09 07:27:26 +01:00
Michael Lu
7cd6e72edd
Refactor TEMPERATURE_FORMAT to use strong enum ( #12610 )
...
* Refactor TEMPERATURE_FORMAT to use strong enum
* Rename TEMPERATURE_FORMAT to TemperatureFormat
* Rename TemperatureFormat to TempueratureUnit
2020-08-09 07:26:46 +01:00
Arran Ireland
4de58e1fd4
Close #12440 : Refactor VEHICLE_STATUS to use strong enum ( #12606 )
...
* Close #12440 : Refactor VEHICLE_STATUS to use strong enum
* Fix code formatting for VEHICLE_STATUS refactoring
* Refactor VehicleStatus enum to be inside Vehicle
This commit moves VehicleStatus inside Vehicle,
renamed as Status.
2020-08-09 06:24:25 +01:00