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

Function AllocateToolbar

src/toolbar_gui.cpp:2592–2603  ·  view source on GitHub ↗

Allocate the toolbar. */

Source from the content-addressed store, hash-verified

2590
2591/** Allocate the toolbar. */
2592void AllocateToolbar()
2593{
2594 /* Clean old GUI values; railtype is (re)set by rail_gui.cpp */
2595 _last_built_roadtype = ROADTYPE_ROAD;
2596 _last_built_tramtype = ROADTYPE_TRAM;
2597
2598 if (_game_mode == GM_EDITOR) {
2599 new ScenarioEditorToolbarWindow(_toolb_scen_desc);
2600 } else {
2601 new MainToolbarWindow(_toolb_normal_desc);
2602 }
2603}

Callers 1

ShowVitalWindowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected