| 384 | |
| 385 | public: |
| 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 | { |
nothing calls this directly
no test coverage detected