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

Method IncomeGraphWindow

src/graph_gui.cpp:968–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966
967struct IncomeGraphWindow : BaseCompanyGraphWindow {
968 IncomeGraphWindow(WindowDesc &desc, WindowNumber window_number) :
969 BaseCompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
970 {
971 this->num_on_x_axis = GRAPH_NUM_MONTHS;
972 this->num_vert_lines = GRAPH_NUM_MONTHS;
973 this->draw_dates = !TimerGameEconomy::UsingWallclockUnits();
974
975 this->InitializeWindow(window_number);
976 }
977
978 OverflowSafeInt64 GetGraphData(const Company *c, int j) override
979 {

Callers

nothing calls this directly

Calls 1

InitializeWindowMethod · 0.45

Tested by

no test coverage detected