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

Method PaymentRatesGraphWindow

src/graph_gui.cpp:1347–1358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1345 static inline CargoTypes excluded_cargo_types{};
1346
1347 PaymentRatesGraphWindow(WindowDesc &desc, WindowNumber window_number) : BaseCargoGraphWindow(desc, STR_JUST_CURRENCY_SHORT)
1348 {
1349 this->num_on_x_axis = GRAPH_PAYMENT_RATE_STEPS;
1350 this->num_vert_lines = GRAPH_PAYMENT_RATE_STEPS;
1351 this->draw_dates = false;
1352
1353 this->x_values_reversed = false;
1354 /* The x-axis is labeled in either seconds or days. A day is two seconds, so we adjust the label if needed. */
1355 this->x_values_increment = (TimerGameEconomy::UsingWallclockUnits() ? PAYMENT_GRAPH_X_STEP_SECONDS : PAYMENT_GRAPH_X_STEP_DAYS);
1356
1357 this->InitializeWindow(window_number, STR_GRAPH_CARGO_PAYMENT_RATES_SECONDS, STR_GRAPH_CARGO_PAYMENT_RATES_DAYS);
1358 }
1359
1360 CargoTypes GetCargoTypes(WindowNumber) const override
1361 {

Callers

nothing calls this directly

Calls 1

InitializeWindowMethod · 0.45

Tested by

no test coverage detected