OpenTTD Source
20241108-master-g80f628063a
|
GUI for ships. More...
#include "stdafx.h"
#include "vehicle_base.h"
#include "window_gui.h"
#include "gfx_func.h"
#include "vehicle_gui.h"
#include "strings_func.h"
#include "vehicle_func.h"
#include "spritecache.h"
#include "zoom_func.h"
#include "table/strings.h"
#include "safeguards.h"
Go to the source code of this file.
Functions | |
void | DrawShipImage (const Vehicle *v, const Rect &r, VehicleID selection, EngineImageType image_type) |
Draws an image of a ship. More... | |
void | DrawShipDetails (const Vehicle *v, const Rect &r) |
Draw the details for the given vehicle at the given position. More... | |
GUI for ships.
Definition in file ship_gui.cpp.
Draw the details for the given vehicle at the given position.
v | current vehicle |
r | the Rect to draw within |
Definition at line 63 of file ship_gui.cpp.
Referenced by VehicleDetailsWindow::DrawVehicleDetails().
void DrawShipImage | ( | const Vehicle * | v, |
const Rect & | r, | ||
VehicleID | selection, | ||
EngineImageType | image_type | ||
) |
Draws an image of a ship.
v | Front vehicle |
r | Rect to draw at |
selection | Selected vehicle to draw a frame around |
Definition at line 30 of file ship_gui.cpp.
References _current_text_dir, DIR_E, DIR_W, VehicleSpriteSeq::GetBounds(), Vehicle::GetImage(), TD_RTL, UnScaleGUI(), and Rect::Width().
Referenced by DrawVehicleImage().