|
@@ -3,24 +3,25 @@
|
|
|
/** @file ship_gui.cpp */
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
#include "openttd.h"
|
|
|
#include "debug.h"
|
|
|
#include "ship.h"
|
|
|
#include "table/strings.h"
|
|
|
#include "table/sprites.h"
|
|
|
#include "gui.h"
|
|
|
#include "window_gui.h"
|
|
|
#include "viewport_func.h"
|
|
|
#include "gfx_func.h"
|
|
|
#include "depot.h"
|
|
|
#include "vehicle_gui.h"
|
|
|
#include "newgrf_engine.h"
|
|
|
#include "strings_func.h"
|
|
|
#include "vehicle_func.h"
|
|
|
|
|
|
#include "table/strings.h"
|
|
|
#include "table/sprites.h"
|
|
|
|
|
|
void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection)
|
|
|
{
|
|
|
DrawSprite(v->GetImage(DIR_W), GetVehiclePalette(v), x + 32, y + 10);
|
|
|
|
|
|
if (v->index == selection) {
|
|
|
DrawFrameRect(x - 5, y - 1, x + 67, y + 21, 15, FR_BORDERONLY);
|