Types related to the drop down widget.
std::vector< std::unique_ptr< const DropDownListItem > > DropDownList
A drop down list is a collection of drop down list items.
DropDownList GetRailTypeDropDownList(bool for_replacement=false, bool all_option=false)
Create a drop down list for all the rail types of the local company.
SignalGUISettings
Settings for which signals are shown by the signal GUI.
@ SIGNAL_GUI_ALL
Show all signals, including block and presignals.
@ SIGNAL_GUI_PATH
Show path signals only.
void SetDefaultRailGui()
Set the initial (default) railtype to use.
SignalCycleSettings
Settings for which signals are cycled through by control-clicking on the signal with the signal tool.
@ SIGNAL_CYCLE_GROUP
Cycle through current signal group (block or path) only.
@ SIGNAL_CYCLE_ALL
Cycle through all signals visible to the player.
void ResetSignalVariant(int32_t=0)
Updates the current signal variant used in the signal GUI to the one adequate to current year.
struct Window * ShowBuildRailToolbar(RailType railtype)
Open the build rail toolbar window for a specific rail type.
void ReinitGuiAfterToggleElrail(bool disable)
Re-initialize rail-build toolbar after toggling support for electric trains.
void InitializeSignalGui()
Resets the signal GUI.
The different types of rail.
RailType
Enumeration for all possible railtypes.
Data structure for an opened window.