diff options
author | bjarni <bjarni@openttd.org> | 2006-08-29 21:36:39 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-08-29 21:36:39 +0000 |
commit | c820704f11daaba961380aee3c6b81bfc50f2025 (patch) | |
tree | 234611243d183da14e1c25351ed48affa3a67365 /vehicle_gui.h | |
parent | 9247868696f602d7a7e075e3f16e9b54b8a19133 (diff) | |
download | openttd-c820704f11daaba961380aee3c6b81bfc50f2025.tar.xz |
(svn r6227) -Codechange: added window type flags to use with PlayerVehWndProc
this makes the list type detection much easier and allowed an if cascade to be turned into a switch case
this also makes it easier to add more list types
Diffstat (limited to 'vehicle_gui.h')
-rw-r--r-- | vehicle_gui.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vehicle_gui.h b/vehicle_gui.h index 3284508f4..5df43c11c 100644 --- a/vehicle_gui.h +++ b/vehicle_gui.h @@ -44,6 +44,14 @@ enum { PLY_WND_PRC__SIZE_OF_ROW_BIG = 36, }; +/* Vehicle List Window type flags */ +enum { + VLW_FLAGS = (1 << 8)|(1 << 9)|(1 << 10), + VLW_STANDARD = 0, + VLW_SHARED_ORDERS = 1 << 8, + VLW_STATION_LIST = 2 << 8, +}; + void PlayerVehWndProc(Window *w, WindowEvent *e); void ShowReplaceVehicleWindow(byte vehicletype); |