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

Method BuildIndustryWindow

src/industry_gui.cpp:386–397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384
385public:
386 BuildIndustryWindow() : Window(_build_industry_desc)
387 {
388 this->CreateNestedTree();
389 this->vscroll = this->GetScrollbar(WID_DPI_SCROLLBAR);
390 /* Show scenario editor tools in editor. */
391 if (_game_mode != GM_EDITOR) {
392 this->GetWidget<NWidgetStacked>(WID_DPI_SCENARIO_EDITOR_PANE)->SetDisplayedPlane(SZSP_HORIZONTAL);
393 }
394 this->FinishInitNested(0);
395
396 this->SetButtons();
397 }
398
399 void OnInit() override
400 {

Callers

nothing calls this directly

Calls 5

SetButtonsMethod · 0.95
CreateNestedTreeMethod · 0.80
GetScrollbarMethod · 0.80
SetDisplayedPlaneMethod · 0.80
FinishInitNestedMethod · 0.80

Tested by

no test coverage detected