diff options
author | bjarni <bjarni@openttd.org> | 2006-08-29 17:41:13 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-08-29 17:41:13 +0000 |
commit | 92582f09608201458d39d158da52e28f68b1d6e0 (patch) | |
tree | 6bd7b8dec4df9ca775c81f928c7666eaeb156301 /vehicle_gui.h | |
parent | 459ce0a3f1a394bc2d16f54c34f19d6e6aec5b01 (diff) | |
download | openttd-92582f09608201458d39d158da52e28f68b1d6e0.tar.xz |
(svn r6215) -Codechange: [vehicle list windows] unified Player(vehicle)WndProc into PlayerVehWndProc
Those 4 unified functions were really much alike, so there was no reason to have so much dublicated code
Diffstat (limited to 'vehicle_gui.h')
-rw-r--r-- | vehicle_gui.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/vehicle_gui.h b/vehicle_gui.h index 95149b12c..3284508f4 100644 --- a/vehicle_gui.h +++ b/vehicle_gui.h @@ -5,6 +5,7 @@ #include "station.h" #include "vehicle.h" +#include "window.h" struct vehiclelist_d; @@ -43,6 +44,8 @@ enum { PLY_WND_PRC__SIZE_OF_ROW_BIG = 36, }; +void PlayerVehWndProc(Window *w, WindowEvent *e); + void ShowReplaceVehicleWindow(byte vehicletype); void DrawTrainEnginePurchaseInfo(int x, int y, EngineID engine_number); @@ -51,6 +54,19 @@ void DrawRoadVehPurchaseInfo(int x, int y, EngineID engine_number); void DrawAircraftPurchaseInfo(int x, int y, EngineID engine_number); void DrawShipPurchaseInfo(int x, int y, EngineID engine_number); +void DrawTrainImage(const Vehicle *v, int x, int y, int count, int skip, VehicleID selection); +void DrawRoadVehImage(const Vehicle *v, int x, int y, VehicleID selection); +void DrawShipImage(const Vehicle *v, int x, int y, VehicleID selection); +void DrawSmallOrderListShip(const Vehicle *v, int x, int y); + +void ShowBuildTrainWindow(TileIndex tile); +void ShowBuildRoadVehWindow(TileIndex tile); +void ShowBuildShipWindow(TileIndex tile); +void ShowBuildAircraftWindow(TileIndex tile); + +void DrawAircraftImage(const Vehicle *v, int x, int y, VehicleID selection); +void DrawSmallOrderListAircraft(const Vehicle *v, int x, int y); + void ChangeVehicleViewWindow(const Vehicle *from_v, const Vehicle *to_v); int ShowAdditionalText(int x, int y, int w, EngineID engine_number); |