diff options
author | rubidium <rubidium@openttd.org> | 2009-11-16 21:28:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-11-16 21:28:12 +0000 |
commit | e438fc6a8070a1bd4b4b0a9df6db96cd23d1a7f0 (patch) | |
tree | 5f1f89e722a4ba499ebca5c339d2166a52b3c4d1 /src/vehicle_gui_base.h | |
parent | d499aa0187940a980891c095d843a2e5c358fb0d (diff) | |
download | openttd-e438fc6a8070a1bd4b4b0a9df6db96cd23d1a7f0.tar.xz |
(svn r18130) -Codechange: initial steps into making the vehicle/group lists big font and RTL aware
Diffstat (limited to 'src/vehicle_gui_base.h')
-rw-r--r-- | src/vehicle_gui_base.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/vehicle_gui_base.h b/src/vehicle_gui_base.h index 21ea8de6a..6ce4b65ac 100644 --- a/src/vehicle_gui_base.h +++ b/src/vehicle_gui_base.h @@ -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; |