|
|
/* $Id$ */
|
|
|
|
|
|
/** @file roadveh_gui.cpp */
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
#include "openttd.h"
|
|
|
#include "debug.h"
|
|
|
#include "functions.h"
|
|
|
#include "roadveh.h"
|
|
|
#include "table/sprites.h"
|
|
|
#include "table/strings.h"
|
|
|
#include "gui.h"
|
|
|
#include "window_gui.h"
|
|
|
#include "vehicle.h"
|
|
|
#include "viewport.h"
|
|
|
#include "command_func.h"
|
|
|
#include "depot.h"
|
|
|
#include "vehicle_gui.h"
|
|
|
#include "newgrf_engine.h"
|
|
|
#include "strings_func.h"
|
|
|
|
|
|
|
|
|
void DrawRoadVehDetails(const Vehicle *v, int x, int y)
|
|
|
{
|
|
|
uint y_offset = RoadVehHasArticPart(v) ? 15 :0;
|
|
|
StringID str;
|
|
|
|
|
|
SetDParam(0, v->engine_type);
|
|
|
SetDParam(1, v->build_year);
|
|
|
SetDParam(2, v->value);
|
|
|
DrawString(x, y + y_offset, STR_9011_BUILT_VALUE, TC_FROMSTRING);
|
|
|
|