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

Method CompanyValueGraphWindow

src/graph_gui.cpp:1128–1136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1126
1127struct CompanyValueGraphWindow : BaseCompanyGraphWindow {
1128 CompanyValueGraphWindow(WindowDesc &desc, WindowNumber window_number) :
1129 BaseCompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
1130 {
1131 this->num_on_x_axis = GRAPH_NUM_MONTHS;
1132 this->num_vert_lines = GRAPH_NUM_MONTHS;
1133 this->draw_dates = !TimerGameEconomy::UsingWallclockUnits();
1134
1135 this->InitializeWindow(window_number);
1136 }
1137
1138 OverflowSafeInt64 GetGraphData(const Company *c, int j) override
1139 {

Callers

nothing calls this directly

Calls 1

InitializeWindowMethod · 0.45

Tested by

no test coverage detected