src/window_gui.h
changeset 8222 ce0457729295
parent 8214 971f861d5543
child 8223 2f64b8462e66
equal deleted inserted replaced
8221:59791d0e0c04 8222:ce0457729295
     3 /** @file window_gui.h Functions, definitions and such used only by the GUI. */
     3 /** @file window_gui.h Functions, definitions and such used only by the GUI. */
     4 
     4 
     5 #ifndef WINDOW_GUI_H
     5 #ifndef WINDOW_GUI_H
     6 #define WINDOW_GUI_H
     6 #define WINDOW_GUI_H
     7 
     7 
     8 #include "order.h"
     8 #include "core/bitmath_func.hpp"
     9 #include "rail_type.h"
     9 #include "rail_type.h"
    10 #include "road_type.h"
    10 #include "road_type.h"
    11 #include "airport.h"
       
    12 #include "vehicle_type.h"
    11 #include "vehicle_type.h"
    13 #include "viewport.h"
    12 #include "viewport.h"
    14 
    13 
    15 /**
    14 /**
    16  * The maximum number of windows that can be opened.
    15  * The maximum number of windows that can be opened.
   325 	byte paramcount;
   324 	byte paramcount;
   326 	uint64 params[5];
   325 	uint64 params[5];
   327 };
   326 };
   328 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tooltips_d));
   327 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(tooltips_d));
   329 
   328 
   330 struct buildvehicle_d {
       
   331 	VehicleType vehicle_type;
       
   332 	union {
       
   333 		RailTypeByte railtype;
       
   334 		AirportFTAClass::Flags flags;
       
   335 		RoadTypes roadtypes;
       
   336 	} filter;
       
   337 	byte sel_index;  ///< deprecated value, used for 'unified' ship and road
       
   338 	bool descending_sort_order;
       
   339 	byte sort_criteria;
       
   340 	bool regenerate_list;
       
   341 	EngineID sel_engine;
       
   342 	EngineID rename_engine;
       
   343 	EngineList eng_list;
       
   344 };
       
   345 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(buildvehicle_d));
       
   346 
       
   347 struct replaceveh_d {
   329 struct replaceveh_d {
   348 	byte sel_index[2];
   330 	byte sel_index[2];
   349 	EngineID sel_engine[2];
   331 	EngineID sel_engine[2];
   350 	uint16 count[2];
   332 	uint16 count[2];
   351 	bool wagon_btnstate; ///< true means engine is selected
   333 	bool wagon_btnstate; ///< true means engine is selected