ζeh Matt
5f515b6a73
Refactor the code that uses MapGetFootpathElement
2023-08-05 18:09:38 +03:00
Michael Bernardi
9b5eaabf97
Fix #20659 : Phantom rides when closing construction window while paused
2023-08-01 20:01:39 +02:00
Duncan
ea3508b22c
Reduce accessing global widgets Part 2 ( #20572 )
...
* Further work to remove references to widget globals
* Clang format
2023-07-09 21:07:14 +01:00
Aaron van Geffen
d425e0a8bb
Remove const qualifier from constexpr statements
2023-06-24 11:45:26 +02:00
Tiago A. Reul
93c1a9724e
Remove flag RIDE_TYPE_FLAG_HAS_NO_TRACK ( #20239 ) ( #20249 )
...
* Remove flag RIDE_TYPE_FLAG_HAS_NO_TRACK (#20239 )
* Fix a couple of logical conditions in entity/Staff.cpp
* Bump NETWORK_STREAM_VERSION and add myself to contributors.md
2023-05-26 14:08:28 +03:00
Michael Steenbeek
5e495d63c7
Close #15660 : Allow showing window buttons on the left ( #20176 )
2023-05-19 10:17:38 +02:00
kyphii
0b18bc0923
Fix #20111 : All coaster types can access the new diagonal slope pieces ( #20150 )
...
* Fix access to diagonal slopes and turns
* Add changelog entry
---------
Co-authored-by: Trevor Finney <8711258+finneyt@users.noreply.github.com >
2023-05-17 19:42:09 +01:00
Michael Steenbeek
4a79af7b20
Use strong enum for ViewportSetVisibility ( #20230 )
2023-05-17 19:27:22 +01:00
spacek531
61d820e614
Refactor special track elements list part 2 ( #19951 )
...
Part 2 of #19922
Fixes #19964
There are a lot of files changed, so this PR is structured to be easy to follow by looking at individual commits.
This PR refactors how the special track element list is created. The refactors include:
Divorces creating the list from RideConstructionWindow for modularity, including potential plugin API
Adds list of special track elements which can be re-ordered for more sensible organization
Same-named track elements will collapse into as few entries as possible
Separates up helixes from down helixes in track flags
Track flag separation was done to remove special code related to alpine coaster. Refactors to ride construction window were tested against and confirmed working with:
alpine coaster
suspended swinging coaster
hybrid coaster
inverted coaster
2023-05-07 09:13:22 +00:00
spacek531
319d759d71
fix TrackData.cpp ( #19922 )
2023-04-16 09:28:56 +01:00
Spacek531
99ffaa8b71
allow block brakes to be built with speed
2023-04-11 19:28:17 -07:00
Gymnasiast
91f4c1e752
Use dpi ref in misc drawing functions
2023-04-11 22:59:03 +01:00
Gymnasiast
3e764677da
Use dpi ref in paint folder
2023-04-11 22:57:25 +01:00
Gymnasiast
96d77ed8f7
Using dpi refs in most remaining window defs
2023-04-11 22:57:23 +01:00
X123M3-256
3c4e32458a
Add large sloped turns to hybrid and single rail ( #19547 )
...
* Implement large sloped turns
* Fix formatting
* Add sprites
* Fix large turns button being active on steep slopes
* Remove bad comment
* Increment network,plugin,park version numbers
* Update changelog
* Increment park file version again
2023-04-05 13:47:56 +01:00
Michael Steenbeek
dd624f9bff
Replace remaining usages of money16, money32 ( #19469 )
...
* Use money64 for ride prices and shop items
* Use money64 for park entrance fee
* Use money64 for gGuestInitialCash
* Use money64 for upkeep costs
* Use money64 for ride value
* Use money64 for marketing campaign cost
* Use money64 for object prices
* Use money64 for land prices
* Use money64 for guest expenditure
* Replace remaining occurrences of money32 with money64
* Update replays
* Bump network version
---------
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-03-02 21:55:42 +00:00
Gymnasiast
a15f72da87
Pass DPI by ref to string drawing
2023-02-24 22:05:07 +01:00
Michael Steenbeek
767d65f101
RideConstruction: Create constant for group box width ( #19461 )
2023-02-22 09:08:44 -03:00
Gymnasiast
23a5044509
Allow shops and stalls to set their own clearances
2023-02-14 00:52:21 +01:00
spacek531
9071c91ec8
RideConstruction window can set block brake speed ( #18992 )
...
* RideConstruction window can set block brake speed
* add missing constant
* refactor to allow future expansion
* revert addition of constant
2023-01-25 07:32:03 +00:00
Duncan
e09f27df3c
Rename snake_case Class names (Remaining Bits) ( #19237 )
...
* Rename snake_case Class names
* Clang format
* Fix build issues
2023-01-21 19:57:17 +00:00
Duncan
7d08372c80
Remove snake_case from Class names OpenRCT2/Ride*-S* ( #19232 )
...
* Remove snake_case from Class names OpenRCT2/Ride*-S*
* Clang format
2023-01-20 20:58:55 +00:00
Michael Steenbeek
448c8fafd0
Rename base_height, clearance_height and owner
2023-01-19 20:36:30 +01:00
Duncan
859b071ddc
Rename classes with snakes OpenRCT2/A*-F* ( #19215 )
...
* Rename classes with snakes OpenRCT2/A*-F*
* Clang format files
2023-01-19 08:16:44 +00:00
Hielke Morsink
0762fcb601
Rename snake_case functions in OpenRCT2/util folder
2023-01-18 22:44:13 +01:00
Hielke Morsink
2c224cfd53
Rename snake_case functions in OpenRCT2/network folder ( #19203 )
2023-01-18 06:05:53 +00:00
Michael Steenbeek
d6f58c2f1f
Merge pull request #19194 from Gymnasiast/refactor/sub-loc
...
Rename sub_ and loc_ functions
2023-01-17 21:29:04 +01:00
Michael Steenbeek
bb55c6ce66
Remove loadsasnakes ( #19192 )
...
* Rename snake_case methods in scenario folder
* Rename snake_case methods in title folder
* Rename snake_case methods in object folder
* Rename snake_case methods in platform folder
* Rename snake_case methods in windows folder
* Rename tile_inspector.h to TileInspectorGlobals.h
* Rename snake_case methods in ui/windows folder
2023-01-17 19:46:55 +00:00
Gymnasiast
3cc2d94b1b
Rename sub_ and loc_ functions
2023-01-17 19:05:14 +01:00
Stephan Spengler
31ea968480
Change openrct2/ride methods to UpperCamelCase, part 2
2023-01-17 17:42:29 +01:00
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 13:24:51 +01:00
Stephan Spengler
76b918e7ed
Change openrct2/ride methods to UpperCamelCase, part 1
2023-01-17 01:32:54 +01:00
Gymnasiast
5309c80e29
Remove snake_case in interface folder
2023-01-16 22:20:41 +01:00
Hielke Morsink
6dafbbfb65
Rename global window functions to TitleCase ( #19167 )
2023-01-16 20:13:42 +00:00
Duncan
8a8d3105f3
Remove snake_case from first chunk of Drawing ( #19164 )
...
* Remove snake_case from first chunk of Drawing
* Address formatting
2023-01-16 13:50:43 +00:00
Gymnasiast
8d659a5e2f
Pass rct_ride_entry as reference
2023-01-11 17:35:01 +01:00
Michael Steenbeek
412bf8f8be
Use ride references instead of pointers
2023-01-07 14:02:18 +01:00
Gymnasiast
a27b717ebd
Small Construction window cleanup
2023-01-03 23:22:10 +01:00
Gymnasiast
5b2c5d77ff
WindowRideConstructionOpen: use constants for window width/height
2023-01-03 23:22:10 +01:00
Gymnasiast
4b34bbcf7c
Use TrackTypeIsHelix() in construction window
2023-01-03 23:22:10 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Gymnasiast
38f7c2a159
Allow using ImageId in widgets directly
2022-12-31 15:18:22 +01:00
Gymnasiast
162b01204d
Rename rct_widget to Widget
2022-12-31 15:18:22 +01:00
mdbckrtn
7e9a09d7cd
Fix #18905 : Ride Construction window theme not applied correctly
2022-12-31 14:17:08 +01:00
spacek531
952fb9ebe2
Allow diagonal elements into special elements dropdown ( #18879 )
...
* add diagonal track elements to special elements dropdown
* rename diag to buildDirectionIsDiag
* initialize to false
* change to gtet sign
* fix this thing
2022-12-20 15:27:49 +00:00
frutiemax
6d804f5323
Add RIDE_TYPE_FLAG_IS_MAZE
2022-12-14 14:21:21 +01:00
X123M3-256
3dfe1eedb6
Fix #18720 : Can build upward helix on Alpine Coaster
2022-12-04 20:10:30 +01:00
Duncan
482971710d
Apply code style to context functions
2022-11-06 21:49:07 +01:00
Hielke Morsink
31dd4bf604
Use lower-case u integral suffix
2022-10-29 16:33:05 +02:00
Hielke Morsink
abac080d3e
Rename public general config data members
2022-10-16 21:46:01 +02:00