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

Method OperatingProfitGraphWindow

src/graph_gui.cpp:915–923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

913
914struct OperatingProfitGraphWindow : BaseCompanyGraphWindow {
915 OperatingProfitGraphWindow(WindowDesc &desc, WindowNumber window_number) :
916 BaseCompanyGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
917 {
918 this->num_on_x_axis = GRAPH_NUM_MONTHS;
919 this->num_vert_lines = GRAPH_NUM_MONTHS;
920 this->draw_dates = !TimerGameEconomy::UsingWallclockUnits();
921
922 this->InitializeWindow(window_number);
923 }
924
925 OverflowSafeInt64 GetGraphData(const Company *c, int j) override
926 {

Callers

nothing calls this directly

Calls 1

InitializeWindowMethod · 0.45

Tested by

no test coverage detected