OpenTTD
|
The GUI of aircraft. More...
#include "stdafx.h"
#include "aircraft.h"
#include "vehicle_gui.h"
#include "newgrf_engine.h"
#include "strings_func.h"
#include "vehicle_func.h"
#include "window_gui.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 | DrawAircraftDetails (const Aircraft *v, int left, int right, int y) |
Draw the details for the given vehicle at the given position. | |
void | DrawAircraftImage (const Vehicle *v, int left, int right, int y, VehicleID selection, EngineImageType image_type) |
Draws an image of an aircraft. |
The GUI of aircraft.
Definition in file aircraft_gui.cpp.
void DrawAircraftDetails | ( | const Aircraft * | v, |
int | left, | ||
int | right, | ||
int | y | ||
) |
Draw the details for the given vehicle at the given position.
v | current vehicle |
left | The left most coordinate to draw |
right | The right most coordinate to draw |
y | The y coordinate |
Definition at line 34 of file aircraft_gui.cpp.
References Vehicle::cargo_cap, DrawString(), FONT_HEIGHT_NORMAL, GetCargoSubtypeText(), SpecializedVehicle< T, Type >::Next(), and SetDParam().
Referenced by VehicleDetailsWindow::DrawVehicleDetails().
void DrawAircraftImage | ( | const Vehicle * | v, |
int | left, | ||
int | right, | ||
int | y, | ||
VehicleID | selection, | ||
EngineImageType | image_type | ||
) |
Draws an image of an aircraft.
v | Front vehicle |
left | The minimum horizontal position |
right | The maximum horizontal position |
y | Vertical position to draw at |
selection | Selected vehicle to draw a frame around |
Definition at line 82 of file aircraft_gui.cpp.
References _current_text_dir, AIR_HELICOPTER, DIR_E, DIR_W, VehicleSpriteSeq::Draw(), DrawFrameRect(), FR_BORDERONLY, SpecializedVehicle< Aircraft, VEH_AIRCRAFT >::From(), VehicleSpriteSeq::GetBounds(), Vehicle::GetImage(), GetVehiclePalette(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, VehicleSpriteSeq::IsValid(), PALETTE_CRASH, ScaleGUITrad(), VehicleSpriteSeq::Set(), Vehicle::subtype, TD_RTL, UnScaleGUI(), Vehicle::vehstatus, and VS_CRASHED.
Referenced by DrawVehicleImage(), and DepotWindow::DrawVehicleInDepot().