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

Method BuildRailToolbarWindow

src/rail_gui.cpp:442–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440 WidgetID last_user_action = INVALID_WIDGET; ///< Last started user action.
441
442 BuildRailToolbarWindow(WindowDesc &desc, RailType railtype) : Window(desc), railtype(railtype)
443 {
444 this->CreateNestedTree();
445 this->FinishInitNested(TRANSPORT_RAIL);
446 this->DisableWidget(WID_RAT_REMOVE);
447 this->OnInvalidateData();
448
449 if (_settings_client.gui.link_terraform_toolbar) ShowTerraformToolbar(this);
450 }
451
452 void Close([[maybe_unused]] int data = 0) override
453 {

Callers

nothing calls this directly

Calls 5

OnInvalidateDataMethod · 0.95
ShowTerraformToolbarFunction · 0.85
CreateNestedTreeMethod · 0.80
FinishInitNestedMethod · 0.80
DisableWidgetMethod · 0.80

Tested by

no test coverage detected