52 void ShowVehicleListWindow(
const Vehicle *v);
88 default: NOT_REACHED();
void ShowVehicleViewWindow(const Vehicle *v)
Shows the vehicle view window of the given vehicle.
Vehicle composition was changed.
Types related to windows.
Other order modifications.
uint ShowRefitOptionsList(int left, int right, int y, EngineID engine)
Display list of cargo types of the engine, for the purchase information window.
Types related to engines.
Tab with cargo capacity of the vehicles.
uint extend_right
Extend of the cell to the right.
uint height
Vehicle cell height.
WindowClass
Window classes.
StringID GetCargoSubtypeText(const Vehicle *v)
Get the cargo subtype text from NewGRF for the vehicle details window.
static const VehicleID INVALID_VEHICLE
Constant representing a non-existing vehicle.
void SetMouseCursorVehicle(const Vehicle *v, EngineImageType image_type)
Set the mouse cursor to look like a vehicle.
EngineImageType
Visualisation contexts of vehicles and engines.
void StartStopVehicle(const Vehicle *v, bool texteffect)
Executes CMD_START_STOP_VEHICLE for given vehicle.
Data structure for an opened window.
Autoreplace replaced the vehicle.
Types related to stations.
void DrawVehicleImage(const Vehicle *v, int left, int right, int y, VehicleID selection, EngineImageType image_type, int skip)
Draws an image of a vehicle chain.
VehicleType
Available vehicle types.
bool VehicleClicked(const Vehicle *v)
Dispatch a "vehicle selected" event if any window waits for it.
uint32 VehicleID
The type all our vehicle IDs have.
int GetVehicleWidth(const Vehicle *v, EngineImageType image_type)
Get the width of a vehicle (including all parts of the consist) in pixels.
Removed / replaced all orders (after deleting / sharing).
VehicleInvalidateWindowData
Special values for vehicle-related windows for the data parameter of InvalidateWindowData.
int DrawVehiclePurchaseInfo(int left, int right, int y, EngineID engine_number)
Draw the purchase info details of a vehicle at a given location.
void DrawAircraftImage(const Vehicle *v, int left, int right, int y, VehicleID selection, EngineImageType image_type)
Draws an image of an aircraft.
Road vehicle list; Window numbers:
void DrawRoadVehImage(const Vehicle *v, int left, int right, int y, VehicleID selection, EngineImageType image_type, int skip=0)
Draws an image of a road vehicle chain.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
Tab with cargo carried by the vehicles.
void DrawShipImage(const Vehicle *v, int left, int right, int y, VehicleID selection, EngineImageType image_type)
Draws an image of a ship.
'Train' is either a loco or a wagon.
TrainDetailsWindowTabs
The tabs in the train details window.
Data structure for viewport, display of a part of the world.
void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order, Window *parent, bool auto_refit=false)
Show the refit window for a vehicle.
uint16 EngineID
Unique identification number of an engine.
Ships list; Window numbers:
uint32 TileIndex
The index/ID of a Tile.
Tab with sum of total cargo transported.
Types related to vehicles.
Trains list; Window numbers:
Dimensions of a cell in the purchase/depot windows.
VehicleCellSize GetVehicleImageCellSize(VehicleType type, EngineImageType image_type)
Get the GUI cell size for a vehicle image.
Vehicle * CheckClickOnVehicle(const ViewPort *vp, int x, int y)
Find the vehicle close to the clicked coordinates.
static uint GetVehicleHeight(VehicleType type)
Get the height of a single vehicle in the GUIs.
Aircraft list; Window numbers:
void DrawTrainImage(const Train *v, int left, int right, int y, VehicleID selection, EngineImageType image_type, int skip, VehicleID drag_dest=INVALID_VEHICLE)
Draws an image of a whole train.
static WindowClass GetWindowClassForVehicleType(VehicleType vt)
Get WindowClass for vehicle list of given vehicle type.
Types related to companies.
byte VehicleOrderID
The index of an order within its current vehicle (not pool related)
uint extend_left
Extend of the cell to the left.
Owner
Enum for all companies/owners.
int GetSingleVehicleWidth(const Vehicle *v, EngineImageType image_type)
Get the width of a vehicle (part) in pixels.
Tab with name and value of the vehicles.