summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.h
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-12-23 01:00:25 +0000
committermichi_cc <michi_cc@openttd.org>2012-12-23 01:00:25 +0000
commit245e32a10efb0dc924289a8cdec089cd13f3b47d (patch)
tree59f7728808701336fff2999efbd8c1d81e18c2a2 /src/vehicle_gui.h
parentc41027fbaeb3ba722c1477e10d4d3fa7c25a0bff (diff)
downloadopenttd-245e32a10efb0dc924289a8cdec089cd13f3b47d.tar.xz
(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list sprites. (Based on patch by Eddi)
Diffstat (limited to 'src/vehicle_gui.h')
-rw-r--r--src/vehicle_gui.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vehicle_gui.h b/src/vehicle_gui.h
index 99155464b..83e098dcd 100644
--- a/src/vehicle_gui.h
+++ b/src/vehicle_gui.h
@@ -66,6 +66,15 @@ static inline uint GetVehicleHeight(VehicleType type)
int GetVehicleWidth(Vehicle *v, EngineImageType image_type);
+/** Dimensions of a cell in the purchase/depot windows. */
+struct VehicleCellSize {
+ uint height; ///< Vehicle cell height.
+ uint extend_left; ///< Extend of the cell to the left.
+ uint extend_right; ///< Extend of the cell to the right.
+};
+
+VehicleCellSize GetVehicleImageCellSize(VehicleType type, EngineImageType image_type);
+
/**
* Get WindowClass for vehicle list of given vehicle type
* @param vt vehicle type to check