OpenTTD
Functions
aircraft_gui.cpp File Reference

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. More...
 
void DrawAircraftImage (const Vehicle *v, int left, int right, int y, 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,
int  left,
int  right,
int  y 
)

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

Parameters
vcurrent vehicle
leftThe left most coordinate to draw
rightThe right most coordinate to draw
yThe y coordinate

Definition at line 34 of file aircraft_gui.cpp.

◆ DrawAircraftImage()

void DrawAircraftImage ( const Vehicle v,
int  left,
int  right,
int  y,
VehicleID  selection,
EngineImageType  image_type 
)

Draws an image of an aircraft.

Parameters
vFront vehicle
leftThe minimum horizontal position
rightThe maximum horizontal position
yVertical position to draw at
selectionSelected vehicle to draw a frame around

Definition at line 82 of file aircraft_gui.cpp.