1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00
Commit Graph

23408 Commits

Author SHA1 Message Date
Trey Kreis
e4a314a160 Refactor Editor Object Selection Window to class (#16027)
* Refactor Editor Object Selection Window to class

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2021-12-01 20:43:08 +00:00
ζeh Matt
ad5e54460f Merge pull request #16062 from ZehMatt/refactor/map-iterators
Refactor tile map iterations
2021-12-01 06:16:39 -08:00
Sadret
03d2ddf265 Implement #16029: Add rideType to plugin API (#16030) 2021-12-01 13:39:03 +00:00
ζeh Matt
a1b2996178 Add GetBannerIndex helper in SignWindow 2021-12-01 14:41:59 +02:00
ζeh Matt
e6187a0af4 Use BannerIndex::UnderlyingType for iterations 2021-12-01 14:41:59 +02:00
ζeh Matt
e201c3b7fd Expose UnderlyingType for TIdentifier 2021-12-01 14:41:59 +02:00
ζeh Matt
810521bd5b Remove BANNER_INDEX_NULL 2021-12-01 14:41:59 +02:00
ζeh Matt
63a2e9d716 Refactor uses of old BannerIndex 2021-12-01 14:41:59 +02:00
ζeh Matt
3563d89e58 Add TIdentifier specialization to GameAction visitor 2021-12-01 14:41:59 +02:00
ζeh Matt
cf27c4a024 Implement TIdentifier specialization for Intent 2021-12-01 14:41:59 +02:00
ζeh Matt
ee53f1db66 Use TIdentifier for BannerIndex 2021-12-01 14:41:59 +02:00
ζeh Matt
f704358cb3 Add TIdentifier specialization for OrcaStream 2021-12-01 14:41:59 +02:00
ζeh Matt
63702fcc6f Implement identifier comparison overloads 2021-12-01 14:41:59 +02:00
Hielke Morsink
e4fc0d8388 Fix #16083: Tile Inspector shortcuts mapped incorrectly
This really needs to be refactored so that this does not need manual updating every time the order of widgets changes.
2021-12-01 09:51:40 +01:00
OpenRCT2 git bot
8d48a82796 Merge Localisation/master into OpenRCT2/develop 2021-12-01 04:11:00 +00:00
Hielke Morsink
1ba75205e9 Add comment and use more consistent naming 2021-12-01 00:17:49 +01:00
Hielke Morsink
bd338fc7d2 Add DISABLE_OPENGL guard in ZoomLevel::min 2021-12-01 00:11:48 +01:00
Hielke Morsink
0f2dffcc16 Apply review suggestions 2021-12-01 00:11:45 +01:00
Hielke Morsink
dbd50d08c6 Split double meaning of "max zoom" in screenshot code
One being the max value, the other being the max amount of zoom levels.
2021-12-01 00:08:41 +01:00
Hielke Morsink
53d9bfa8b4 Update implicit zoom conversions 2021-12-01 00:08:35 +01:00
Michael Steenbeek
fb9d02cab5 Fix #15998: Map action only accepts 998×998 instead of 999×999 2021-11-30 21:27:46 +01:00
Hielke Morsink
fea0a1480f Merge pull request #16072 2021-11-30 20:28:13 +01:00
Hielke Morsink
fdce5df6db Reduce nested ifs and remove ?: in main_window_zoom 2021-11-30 19:11:36 +01:00
Hielke Morsink
3f669cae85 Use zoomlevel some more 2021-11-30 19:11:32 +01:00
Hielke Morsink
b6562082e9 Replace hardcoded max zoomlevel 2021-11-30 19:11:08 +01:00
Hielke Morsink
f3735dc076 Use ZoomLevel for viewport and ride window 2021-11-30 19:11:08 +01:00
Hielke Morsink
95ba1654c7 Make ZoomLevel operators constexpr 2021-11-30 19:11:07 +01:00
Hielke Morsink
68c7279f4f Properly handle clicking below the list 2021-11-30 19:07:39 +01:00
Hielke Morsink
2592b3a4ab Use ScreenRect::Contains to check for clicked area 2021-11-30 19:06:26 +01:00
Duncan
60ef13ed0c Load placeholder empty images if CSG not linked (#16071) 2021-11-30 13:27:16 +00:00
OpenRCT2 git bot
c58f96c029 Merge Localisation/master into OpenRCT2/develop 2021-11-30 04:07:43 +00:00
Hielke Morsink
a15d417d55 Update existing changelog entry to reflect this change 2021-11-30 00:06:39 +01:00
Hielke Morsink
43537830c5 Replace visibility button with checkboxes per element 2021-11-30 00:06:39 +01:00
GalBr
c2fa54057a Remove vehicle_colour and replace references to VehicleColour (#16055)
This is done because we had two identical structs: vehicle_colour and
VehicleColour. We now only use VehicleColour.

See: #16028
2021-11-29 22:04:31 +00:00
Michael Steenbeek
25cfa06830 Fix #16063: Broken Object Selection preview for glass 2021-11-29 22:27:54 +01:00
ζeh Matt
be5d6ac3db Fix the loops 2021-11-29 14:12:26 +02:00
Gymnasiast
1a580e3999 Add some missing NSF issues to changelog
[ci skip]
2021-11-29 12:38:14 +01:00
ζeh Matt
0b3fa8a9d3 Refactor iterating over all map tiles in ride_clear_blocked_tiles 2021-11-29 13:09:58 +02:00
ζeh Matt
9e89be71ab Refactor iterating over all map tiles in ride_clear_leftover_entrances 2021-11-29 13:05:32 +02:00
ζeh Matt
56425b33e4 Refactor iterating over all map tiles in RideDemolishAction 2021-11-29 12:59:36 +02:00
OpenRCT2 git bot
c30d574480 Merge Localisation/master into OpenRCT2/develop 2021-11-29 04:09:27 +00:00
Duncan
7037524759 Remove and cleanup RCT2 string code 2021-11-28 22:53:40 +01:00
Duncan
cc22b584fd Introduce RCT2 namespace (#16037)
* Introduce RCT2 namespace

* Drop RCT2:: prefix where possible

* Drop RCT2 from structure names

* Reduce header includes
2021-11-28 16:51:38 +00:00
Alib234
c7851983e4 Added missing #include for limits 2021-11-28 15:08:45 +01:00
ζeh Matt
15ee72a688 Merge pull request #16031 from ZehMatt/refactor/entity-4
Refactor entity painting code
2021-11-27 08:54:07 -08:00
Duncan
eba42a9584 Introduce Limits headers. (#15329)
* Move RCT12 limits to seperate file and namespace

* Remove prefix from constants

* Add rct1 limits file

* Rename constants to remove prefix

* Add RCT2 limits file

* Remove RCT2 prefix from constants

* Move constant to correct header

* Fix rebase mistakes

* Drop prefix
2021-11-27 16:20:05 +00:00
ζeh Matt
9f2e8372ae Rename sprite_paint_setup to EntityPaintSetup 2021-11-27 16:17:02 +02:00
ζeh Matt
7a0fb048f8 Move reorganize structure of Paint.Sprite 2021-11-27 16:16:10 +02:00
ζeh Matt
d2bf07a9ce Fix mistake 2021-11-27 16:08:29 +02:00
ζeh Matt
1395ace71b Use paint function 2021-11-27 16:08:25 +02:00