* Move over max rides to limits file
* Move max stations to limits file
* Move over max inversions, golf holes, helices, custhistsize
* Move over max trains per ride
* Bring over Max cars per train and max circuits per ride
* Port over NumColourSchemes and max vehicle colours
* Fix compilation
* Move over max awards
* Move over max peep spawns and park entrances
* Fix rebase issues
* Remove future work
* Switch style
* Update copyright
This move is to fix an issue where ride_select_backwards_from_front() or
ride_select_forwards_from_back() can change _currentTrackPieceDirection
and cause currentDirection to be wrong, causing an error when trying to
delete the element.
* Rename OptionsWindow tab constants for clarity
The new WIDX_FIRST_TAB constant can be used by code that just wants the
first tab without worrying about which it is.
* Remove use of this-> in OptionsWindow
* Replace widget_invalidate with InvalidateWidget
* WidgetSetCheckboxValue -> SetCheckboxValue
* Move repeated per-tab code into common methods
Previously, each FooPrepareDraw() method would call
CommonPrepareDrawBefore() at the start, and CommonPrepareDrawAfter() at
the end. Let's reduce this duplication by having OnPrepareDraw() call
these instead. :^)
The same goes for a few other repeated code snippets.
* Use WindowFocusOrCreate for OptionsWindow
* Fix#16504: Display RCT1-path tooltip
When the OptionsWindow was first refactored into a Window class, the
AdvancedTooltip() method was created but never called. Hooking it up
fixes the crash and makes the path tooltip appear again. :^)
* Make MAIN_OPTIONS_ENABLED_WIDGETS a constexpr
* Move OptionsWindow constants into the class
* WindowInitScrollWidgets() -> InitScrollWidgets()
Replace _currentTrackPieceDirection with local variable. This change
fixes a problem where when trying to remove a rotated ride,
_currentTrackPieceDirection would be reset back to 0 by calling
ride_initialise_construction_window, causing TrackRemoveAction to not
being able to find and remove the ride.
Using a local variable with the current direction, saved before resetting
the global variable, fixes this issue.
TrackDesignPreviewDrawOutlines created and modified a local
TrackDesignState struct, so the calculated information was lost.
Now the function receives a ref to a TrackDesignState struct.