9 #include "window_type.h" |
9 #include "window_type.h" |
10 #include "vehicle_type.h" |
10 #include "vehicle_type.h" |
11 #include "order_type.h" |
11 #include "order_type.h" |
12 #include "station_type.h" |
12 #include "station_type.h" |
13 #include "engine_type.h" |
13 #include "engine_type.h" |
|
14 #include "waypoint.h" |
14 |
15 |
15 void DrawVehicleProfitButton(const Vehicle *v, int x, int y); |
16 void DrawVehicleProfitButton(const Vehicle *v, int x, int y); |
16 void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order); |
17 void ShowVehicleRefitWindow(const Vehicle *v, VehicleOrderID order); |
17 |
18 |
18 /** Constants of vehicle view widget indices */ |
19 /** Constants of vehicle view widget indices */ |
49 VLW_STANDARD = 0 << 8, |
50 VLW_STANDARD = 0 << 8, |
50 VLW_SHARED_ORDERS = 1 << 8, |
51 VLW_SHARED_ORDERS = 1 << 8, |
51 VLW_STATION_LIST = 2 << 8, |
52 VLW_STATION_LIST = 2 << 8, |
52 VLW_DEPOT_LIST = 3 << 8, |
53 VLW_DEPOT_LIST = 3 << 8, |
53 VLW_GROUP_LIST = 4 << 8, |
54 VLW_GROUP_LIST = 4 << 8, |
|
55 VLM_WAYPOINT_LIST = 5 << 8, |
54 VLW_MASK = 0x700, |
56 VLW_MASK = 0x700, |
55 }; |
57 }; |
56 |
58 |
57 static inline bool ValidVLWFlags(uint16 flags) |
59 static inline bool ValidVLWFlags(uint16 flags) |
58 { |
60 { |
70 |
72 |
71 uint ShowAdditionalText(int x, int y, uint w, EngineID engine); |
73 uint ShowAdditionalText(int x, int y, uint w, EngineID engine); |
72 uint ShowRefitOptionsList(int x, int y, uint w, EngineID engine); |
74 uint ShowRefitOptionsList(int x, int y, uint w, EngineID engine); |
73 |
75 |
74 void ShowVehicleListWindow(const Vehicle *v); |
76 void ShowVehicleListWindow(const Vehicle *v); |
|
77 void ShowVehicleListWindow(const Waypoint *wp); |
75 void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type); |
78 void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type); |
76 void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type, StationID station); |
79 void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type, StationID station); |
77 void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type, TileIndex depot_tile); |
80 void ShowVehicleListWindow(PlayerID player, VehicleType vehicle_type, TileIndex depot_tile); |
78 |
81 |
79 void DrawSmallOrderList(const Vehicle *v, int x, int y); |
82 void DrawSmallOrderList(const Vehicle *v, int x, int y); |