MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / InitializeRailGUI

Function InitializeRailGUI

src/rail_gui.cpp:2015–2022  ·  view source on GitHub ↗

* Resets the rail GUI - sets default railtype to build * and resets the signal GUI */

Source from the content-addressed store, hash-verified

2013 * and resets the signal GUI
2014 */
2015void InitializeRailGUI()
2016{
2017 SetDefaultRailGui();
2018
2019 _convert_signal_button = false;
2020 _cur_signal_type = _settings_client.gui.default_signal_type;
2021 ResetSignalVariant();
2022}
2023
2024/**
2025 * Create a drop down list for all the rail types of the local company.

Callers 2

MakeNewGameDoneFunction · 0.85
AfterLoadGameFunction · 0.85

Calls 2

SetDefaultRailGuiFunction · 0.85
ResetSignalVariantFunction · 0.85

Tested by

no test coverage detected