summaryrefslogtreecommitdiff
path: root/src/engine_gui.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2014-09-07 16:10:27 +0000
committeralberth <alberth@openttd.org>2014-09-07 16:10:27 +0000
commit0e3647d4e3bd0b29f8bee6b21e690a04781acf22 (patch)
tree74475378260ae49535a52595f7eacac8cc1800fd /src/engine_gui.h
parent83f0b02ff5d61ee7ba9ce37730a9a6a0f67fbf4d (diff)
downloadopenttd-0e3647d4e3bd0b29f8bee6b21e690a04781acf22.tar.xz
(svn r26799) -Codechange: Export vehicle sorting data and functions.
Diffstat (limited to 'src/engine_gui.h')
-rw-r--r--src/engine_gui.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/engine_gui.h b/src/engine_gui.h
index f426413d9..4fe88ec2c 100644
--- a/src/engine_gui.h
+++ b/src/engine_gui.h
@@ -32,4 +32,13 @@ void DrawRoadVehEngine(int left, int right, int preferred_x, int y, EngineID eng
void DrawShipEngine(int left, int right, int preferred_x, int y, EngineID engine, PaletteID pal, EngineImageType image_type);
void DrawAircraftEngine(int left, int right, int preferred_x, int y, EngineID engine, PaletteID pal, EngineImageType image_type);
+extern bool _engine_sort_direction;
+extern byte _engine_sort_last_criteria[];
+extern bool _engine_sort_last_order[];
+extern const StringID _engine_sort_listing[][12];
+extern EngList_SortTypeFunction * const _engine_sort_functions[][11];
+
+uint GetEngineListHeight(VehicleType type);
+void DisplayVehicleSortDropDown(Window *w, VehicleType vehicle_type, int selected, int button);
+
#endif /* ENGINE_GUI_H */