Show buy cost and running cost in template windows

See: #312
This commit is contained in:
Jonathan G Rennison
2021-08-22 13:52:13 +01:00
parent d67f63a04e
commit 5afa1b93eb
7 changed files with 30 additions and 0 deletions

View File

@@ -742,6 +742,10 @@ public:
short top = ScaleGUITrad(4) - this->vscroll[2]->GetPosition();
short left = ScaleGUITrad(8);
SetDParam(0, CalculateOverallTemplateDisplayRunningCost(tmp));
DrawString(left, r.right, top, STR_TMPL_TEMPLATE_OVR_RUNNING_COST);
top += FONT_HEIGHT_NORMAL;
/* Draw vehicle performance info */
const bool original_acceleration = (_settings_game.vehicle.train_acceleration_model == AM_ORIGINAL ||
GetRailTypeInfo(tmp->railtype)->acceleration_type == 2);