Marino Rottier
6c6acd527b
Rename TileElementBase members ( #26522 )
...
* Rename TileElementBase members to camelCase
* Rename RCT12TileElementBase and RCT12TileElement members to camelCase
2026-05-17 13:21:16 +00:00
Gymnasiast
f3cec44278
Move TrackTypeIs*() to TrackElemType.{cpp,h}
2026-03-10 18:33:43 +01:00
Gymnasiast
da7272dec9
Finish move to a TrackElementDescriptor per element
2026-03-02 20:39:35 +01:00
Gymnasiast
8b104d04b3
Rename TrackMetaData to TrackMetadata
2026-03-01 12:40:51 +01:00
Gymnasiast
56082daa5f
Split off TrackElementDescriptor and a few other things into their own headers
2026-03-01 12:40:47 +01:00
mix
c05e49e384
Fix selecting elements in tile inspector list and all track tiles invalidation ( #26037 )
...
* Invalidate tile when selecting elements in tile inspector list
* Invalidate all track tiles in TileInspector::TrackBaseHeightOffset
* Invalidate all track tiles in TileInspector::TrackSetChain
* Add changelog entry for tile inspector invalidation fixes
2026-02-21 06:57:40 +01:00
Aaron van Geffen
773ba479cd
Create separate unit for GameActionRunner
2026-02-09 16:06:56 +01:00
Aaron van Geffen
6a6bd8e1aa
Reduce dependencies for Ride.h ( #25757 )
2026-01-06 20:03:31 +00:00
Aaron van Geffen
40aaf97c07
Update copyright years to 2026 ( #25741 )
2026-01-05 13:42:59 +00:00
Gymnasiast
c744b76632
Rename members of GameActions::Result
2025-12-12 12:11:49 +01:00
Gymnasiast
5ffee91c8a
Rename members of GameActions::Status
2025-12-12 11:41:49 +01:00
Gymnasiast
a662c5ef8e
Change WindowClass members to use lowerCamelCase
2025-09-17 23:18:52 +02:00
Aaron van Geffen
5b8fedd5b2
Rework Map.h includes (remove transitive header includes)
2025-09-04 22:16:53 +02:00
mix
d98a06564a
Change MapAnimations::MarkTileForUpdate parameter to TileCoordsXY
2025-06-13 21:13:33 +01:00
mix
78c2b85b1d
Rename MapAnimation namespace to MapAnimations
2025-06-13 21:13:33 +01:00
mix
e464b2ebe7
Don't invalidate map animations for tiles that are not in view
2025-06-13 21:13:33 +01:00
ζeh Matt
769a85afb7
Refactor how map animations are created and stored
2025-06-13 21:13:32 +01:00
Gymnasiast
7a68050897
Rename Banner::ride_index to rideIndex
2025-05-21 00:15:16 +02:00
Gymnasiast
cbd2c7b3d7
Use FlagHolder for banner flags
2025-05-21 00:15:12 +02:00
Aaron van Geffen
2c8c37c09d
Reduce Map.h includes ( #24007 )
2025-03-16 18:41:51 +01:00
Michael Steenbeek
05b64985f4
Update Ride struct to new codestyle
2025-03-09 00:26:25 +01:00
Aaron van Geffen
cf448753c1
Move WindowInvalidate and WidgetInvalidate families into WindowManager ( #23692 )
...
* Move WindowInvalidate and WidgetInvalidate families into WindowManager
* Use InvalidateWidget shorthand in more places
* Cut back on UiContext includes
* Cut back on Window.h includes
* Remove outdated parameter comments
2025-01-25 13:46:08 +01:00
Michael Steenbeek
be9f27e4f9
Mass rename constants ( #23656 )
2025-01-19 15:59:45 +00:00
Aaron van Geffen
bed4d5bdca
Move WindowCreate and WindowFocusOrCreate into WindowManager ( #23643 )
...
* Move WindowBringToFront into WindowManager
* Move WindowCreate and WindowFocusOrCreate into WindowManager
* Cut back on Context/UiContext includes
2025-01-19 06:58:28 -03:00
Aaron van Geffen
aa45247f21
Move WindowFind functions into WindowManager ( #23517 )
...
* Move WindowFind* functions into WindowManager
* Update parameter documentation where applicable
2025-01-08 21:12:11 +01:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Duncan
f6582647f5
Large scenery tiles 2 ( #22888 )
...
* Use std::span for tiles
* Add an index helper parameter
* Use coordsxyz
* Split up corners and walls
* Use bools for the two flags
* Apply coding style
* Refer only to LargeSceneryObject where required
* Address comments
2024-10-16 22:35:29 +01:00
Michael Steenbeek
a2ed026264
Split up remaining tile elements
2024-10-15 22:02:31 +02:00
Michael Steenbeek
71ce725a2a
Split off BannerElement and TrackElement ( #22955 )
2024-10-14 14:26:10 +02:00
duncanspumpkin
6283993351
Move WallElement into its own header/source files
2024-10-07 22:04:13 +02:00
Michael Steenbeek
e6e0f97557
Split off EntranceElement header
2024-10-03 12:42:53 +02:00
Gymnasiast
5f92d1920b
Group all sequence-bound properties
2024-09-18 22:43:55 +02:00
Aaron van Geffen
d5485878f7
Remove unnecessary includes from TileInspector.cpp ( #22535 )
2024-08-11 11:00:46 +00:00
Gymnasiast
9294a58e98
Change TrackDescriptor field names to lowerCamelCase
2024-08-03 12:51:25 +02:00
mrmbernardi
9ed5c63857
Rename Location.hpp constants ( #22385 )
2024-07-26 10:23:25 +02:00
Aaron van Geffen
3d5c19de08
Drop Localisation.h include where not required
2024-07-13 13:33:32 +02:00
Aaron van Geffen
b5ef2693b0
Remove common.h include from all units
2024-07-09 16:45:19 +02:00
Aaron van Geffen
51873dc0f6
Include Diagnostic.h at unit level
2024-07-09 16:23:31 +02:00
Gymnasiast
4cdaaa9810
Refactor slope flags
2024-05-10 20:16:07 +02:00
Michał Janiszewski
7b12667ddb
Reduce <algorithm> include ( #21947 )
2024-05-01 13:47:27 +02:00
Michael Steenbeek
005aece802
Expose “animation is backwards” flag in Tile Inspector
2024-04-12 18:08:34 +00:00
Gymnasiast
c158854a7f
Move Park into namespace, add other park-related things to struct
2024-04-04 18:14:27 +02:00
Claudio Tiecher
24688ad5a3
Part of #21421 : Refactor TILE_ELEMENT_DIRECTION_MASK
2024-03-25 16:17:32 +01:00
Peter Froud
40a7fa70fc
Fix empty error messages ( #21351 )
...
* Add `STR_ERR_CANT_CHANGE_PARK_ENTRANCE_FEE`
* Add `STR_ERR_TRACK_ON_THIS_TILE_NEEDS_WATER`
* Return existing `GameAction::Result`
* Add `STR_ERR_ACTION_INVALID_FOR_THAT_STAFF_TYPE`
I am open to suggestions for a different message!
Originally this was going to be STR_ERR_WRONG_STAFF_TYPE
but I thought that was confusing because the game
action arguments do not specify a staff type. We
want it to mean "the staff ID you specified is the
wrong StaffType for this game action".
* Refactor `StaffSetColour()` to return `Result`
* Remove unnecessary arguments when `Status` is `Ok`
* Refactor `SwapTileElements()` to return `Result`
Also add STR_ERR_CANT_SWAP_TILE_ELEMENT_WITH_ITSELF
* Format code
* Use `STR_ERR_CANT_CHANGE_PARK_ENTRANCE_FEE` in title
* Format code using Github web editor
* Format indentation
2024-02-19 20:58:04 -03:00
Matt
fc1b580074
Merge pull request #21244 from pfroud/add-error-strings
...
Add error strings to reduce how many `GameActions::Result`s have `STR_NONE, STR_NONE`
2024-01-29 18:02:37 +02:00
Peter Froud
ce45cb3360
Use descriptive error strings for two GameAction::Results
...
- Fix error when setting brake speed outside park
- Fix error when pasting but reached tile limit
2024-01-25 11:37:02 +01:00
Peter Froud
7302d718e3
Fix local variable shadowing a previous local
2024-01-22 02:49:19 -08:00
Peter Froud
4145f851da
Run clang-format
2024-01-22 02:29:08 -08:00
Peter Froud
9299a80a58
Add descriptive error strings for null checks
2024-01-22 01:21:14 -08:00
James103
1d8dc111f1
Replace 2023 with 2024 in copyright headers ( #21139 )
...
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00