(svn r24839) -Feature [FS#5271]: [NewGRF] Support oversized purchase list sprites. (Based on patch by Eddi)

This commit is contained in:
michi_cc
2012-12-23 01:00:25 +00:00
parent c41027fbae
commit 245e32a10e
11 changed files with 141 additions and 49 deletions

View File

@@ -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