(svn r18130) -Codechange: initial steps into making the vehicle/group lists big font and RTL aware

This commit is contained in:
rubidium
2009-11-16 21:28:12 +00:00
parent d499aa0187
commit e438fc6a80
4 changed files with 62 additions and 32 deletions

View File

@@ -14,13 +14,6 @@
#include "sortlist_type.h"
/** Start of functions regarding vehicle list windows */
enum {
PLY_WND_PRC__SIZE_OF_ROW_TINY = 13, ///< Height of rows in group list
PLY_WND_PRC__SIZE_OF_ROW_SMALL = 26, ///< Height of rows in train/roadvehicle list
PLY_WND_PRC__SIZE_OF_ROW_BIG = 39, ///< Height of rows in ship/aircraft list
};
typedef GUIList<const Vehicle*> GUIVehicleList;
struct BaseVehicleListWindow: public Window {
@@ -41,6 +34,8 @@ struct BaseVehicleListWindow: public Window {
void BuildVehicleList(Owner owner, uint16 index, uint16 window_type);
};
uint GetVehicleListHeight(VehicleType type, uint divisor = 1);
struct Sorting {
Listing aircraft;
Listing roadveh;