|
@@ -138,30 +138,30 @@ static void TrainDetailsCargoTab(const V
|
|
|
* Draw the details info tab for the given vehicle at the given position
|
|
|
*
|
|
|
* @param v current vehicle
|
|
|
* @param left The left most coordinate to draw
|
|
|
* @param right The right most coordinate to draw
|
|
|
* @param y The y coordinate
|
|
|
*/
|
|
|
static void TrainDetailsInfoTab(const Vehicle *v, int left, int right, int y)
|
|
|
{
|
|
|
if (RailVehInfo(v->engine_type)->railveh_type == RAILVEH_WAGON) {
|
|
|
SetDParam(0, v->engine_type);
|
|
|
SetDParam(1, v->value);
|
|
|
DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_WAGON_VALUE, TC_BLACK);
|
|
|
DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_WAGON_VALUE);
|
|
|
} else {
|
|
|
SetDParam(0, v->engine_type);
|
|
|
SetDParam(1, v->build_year);
|
|
|
SetDParam(2, v->value);
|
|
|
DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_ENGINE_BUILT_AND_VALUE, TC_BLACK);
|
|
|
DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_ENGINE_BUILT_AND_VALUE);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* Draw the details capacity tab for the given vehicle at the given position
|
|
|
*
|
|
|
* @param v current vehicle
|
|
|
* @param left The left most coordinate to draw
|
|
|
* @param right The right most coordinate to draw
|
|
|
* @param y The y coordinate
|
|
|
*/
|
|
|
static void TrainDetailsCapacityTab(const Vehicle *v, int left, int right, int y)
|