summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-12-10 18:16:08 +0000
committertron <tron@openttd.org>2004-12-10 18:16:08 +0000
commit13e8d01dcbc3c7573de1667d5c392d3640197890 (patch)
tree66a06b77592865f6aa9640d6c1ddd3648d89f2d3 /window.h
parent804d6828dd4f8948e121adecf698b13c43a206b5 (diff)
downloadopenttd-13e8d01dcbc3c7573de1667d5c392d3640197890.tar.xz
(svn r1009) -Feature: per-station vehicle lists
This adds a little button per vehicle class to the station window which opens a list of all vehicles that have this station on their schedule. As side effect this gets rid of some global variables.
Diffstat (limited to 'window.h')
-rw-r--r--window.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/window.h b/window.h
index ee955ddf9..68a29fa73 100644
--- a/window.h
+++ b/window.h
@@ -1,6 +1,8 @@
#ifndef WINDOW_H
#define WINDOW_H
+#include "vehicle_gui.h"
+
typedef union WindowEvent WindowEvent;
//typedef void WindowProc(Window *w, int event, int wparam, long lparam);
@@ -288,6 +290,21 @@ typedef struct {
NewsItem *ni;
} news_d;
+typedef enum VehicleListFlags {
+ VL_DESC = 0x01,
+ VL_RESORT = 0x02,
+ VL_REBUILD = 0x04
+} VehicleListFlags;
+
+typedef struct vehiclelist_d {
+ SortStruct *sort_list;
+ uint16 list_length;
+ byte sort_type;
+ VehicleListFlags flags;
+ uint16 resort_timer;
+} vehiclelist_d;
+assert_compile(sizeof(vehiclelist_d) <= WINDOW_CUSTOM_SIZE);
+
enum WindowEvents {
WE_CLICK = 0,
WE_PAINT = 1,