OpenTTD Source: src/aircraft_gui.cpp File Reference

OpenTTD Source 14.0-beta3

Functions
aircraft_gui.cpp File Reference
`#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, const Rect &r)
| Draw the details for the given vehicle at the given position. More...
void | DrawAircraftImage (const Vehicle *v, const Rect &r, VehicleID selection, EngineImageType image_type)
| Draws an image of an aircraft. More...

## Detailed Description

The GUI of aircraft.

Definition in file aircraft_gui.cpp.

## Function Documentation

## ◆ DrawAircraftDetails()

void DrawAircraftDetails | ( | const Aircraft * | v,
|  | const Rect & | r
| ) |  |

Draw the details for the given vehicle at the given position.

Parameters

  v | current vehicle
  r | the Rect to draw within

Definition at line 30 of file aircraft_gui.cpp.

Referenced by VehicleDetailsWindow::DrawVehicleDetails().

## ◆ DrawAircraftImage()

void DrawAircraftImage | ( | const Vehicle * | v,
|  | const Rect & | r,
|  | VehicleID | selection,
|  | EngineImageType | image_type
| ) |  |

Draws an image of an aircraft.

Parameters

  v | Front vehicle
  r | Rect to draw at
  selection | Selected vehicle to draw a frame around

Definition at line 79 of file aircraft_gui.cpp.

References _current_text_dir, DIR_E, DIR_W, VehicleSpriteSeq::GetBounds(), Vehicle::GetImage(), TD_RTL, UnScaleGUI(), and Rect::Width().

Referenced by DrawVehicleImage().