| 833 | BaseCompanyGraphWindow(WindowDesc &desc, StringID format_str_y_axis) : BaseGraphWindow(desc, format_str_y_axis) {} |
| 834 | |
| 835 | void InitializeWindow(WindowNumber number) |
| 836 | { |
| 837 | /* Initialise the dataset */ |
| 838 | this->UpdateStatistics(true); |
| 839 | |
| 840 | this->CreateNestedTree(); |
| 841 | |
| 842 | auto *wid = this->GetWidget<NWidgetCore>(WID_GRAPH_FOOTER); |
| 843 | wid->SetString(TimerGameEconomy::UsingWallclockUnits() ? STR_GRAPH_LAST_72_MINUTES_TIME_LABEL : STR_EMPTY); |
| 844 | |
| 845 | this->FinishInitNested(number); |
| 846 | } |
| 847 | |
| 848 | /** |
| 849 | * Update the statistics. |
nothing calls this directly
no test coverage detected