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