OpenTTD Source
20241108-master-g80f628063a
|
GUI for road vehicles. More...
#include "stdafx.h"
#include "core/backup_type.hpp"
#include "roadveh.h"
#include "window_gui.h"
#include "strings_func.h"
#include "vehicle_func.h"
#include "string_func.h"
#include "zoom_func.h"
#include "table/strings.h"
#include "safeguards.h"
Go to the source code of this file.
Functions | |
void | DrawRoadVehDetails (const Vehicle *v, const Rect &r) |
Draw the details for the given vehicle at the given position. More... | |
void | DrawRoadVehImage (const Vehicle *v, const Rect &r, VehicleID selection, EngineImageType image_type, int skip) |
Draws an image of a road vehicle chain. More... | |
GUI for road vehicles.
Definition in file roadveh_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 29 of file roadveh_gui.cpp.
Referenced by VehicleDetailsWindow::DrawVehicleDetails().
void DrawRoadVehImage | ( | const Vehicle * | v, |
const Rect & | r, | ||
VehicleID | selection, | ||
EngineImageType | image_type, | ||
int | skip | ||
) |
Draws an image of a road vehicle chain.
v | Front vehicle |
r | Rect to draw at |
selection | Selected vehicle to draw a frame around |
skip | Number of pixels to skip at the front (for scrolling) |
Definition at line 122 of file roadveh_gui.cpp.
References _current_text_dir, DIR_E, DIR_W, FillDrawPixelInfo(), SpecializedVehicle< T, Type >::From(), TD_RTL, and Rect::Width().
Referenced by DrawVehicleImage().