summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-25 06:05:47 +0000
committertron <tron@openttd.org>2004-11-25 06:05:47 +0000
commitb07357373fb3eee283758af8f5376ec8e5bd5426 (patch)
tree09d8755ee0352625d309086b596276a9fb3183e6 /vehicle_gui.c
parente35a0b1c4437905648f3ea8e08924c8f6a658afe (diff)
downloadopenttd-b07357373fb3eee283758af8f5376ec8e5bd5426.tar.xz
(svn r813) Push two tables from vehicle_gui.h into vehicle_gui.c - they were in the binary 48 (!) times.
While here change the type for one table from uint16 to StringID.
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 5d0536d76..2b3e27916 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -3,6 +3,31 @@
#include "vehicle.h"
+VehicleSortListingTypeFunctions * const _vehicle_sorter[] = {
+ &VehicleUnsortedSorter,
+ &VehicleNumberSorter,
+ &VehicleNameSorter,
+ &VehicleAgeSorter,
+ &VehicleProfitThisYearSorter,
+ &VehicleProfitLastYearSorter,
+ &VehicleCargoSorter,
+ &VehicleReliabilitySorter,
+ &VehicleMaxSpeedSorter
+};
+
+const StringID _vehicle_sort_listing[] = {
+ STR_SORT_BY_UNSORTED,
+ STR_SORT_BY_NUMBER,
+ STR_SORT_BY_DROPDOWN_NAME,
+ STR_SORT_BY_AGE,
+ STR_SORT_BY_PROFIT_THIS_YEAR,
+ STR_SORT_BY_PROFIT_LAST_YEAR,
+ STR_SORT_BY_TOTAL_CAPACITY_PER_CARGOTYPE,
+ STR_SORT_BY_RELIABILITY,
+ STR_SORT_BY_MAX_SPEED,
+ INVALID_STRING_ID
+};
+
/* General Vehicle GUI based procedures that are independent of vehicle types */
void InitializeVehiclesGuiList()
{