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

Method TownCargoGraphWindow

src/graph_gui.cpp:1864–1874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1862 static inline CargoTypes excluded_cargo_types{};
1863
1864 TownCargoGraphWindow(WindowDesc &desc, WindowNumber window_number) : BaseCargoGraphWindow(desc, STR_JUST_COMMA)
1865 {
1866 this->num_on_x_axis = GRAPH_NUM_MONTHS;
1867 this->num_vert_lines = GRAPH_NUM_MONTHS;
1868 this->month_increment = 1;
1869 this->x_values_increment = ECONOMY_MONTH_MINUTES;
1870 this->draw_dates = !TimerGameEconomy::UsingWallclockUnits();
1871 this->ranges = RANGE_LABELS;
1872
1873 this->InitializeWindow(window_number);
1874 }
1875
1876 void OnInit() override
1877 {

Callers

nothing calls this directly

Calls 1

InitializeWindowMethod · 0.45

Tested by

no test coverage detected