src/depot_gui.cpp
changeset 9188 58cb2dd94fab
parent 9143 029e126e3439
child 9201 b9f31e062da8
equal deleted inserted replaced
9187:ea1ad8a526a4 9188:58cb2dd94fab
    98 	{ WWT_PUSHIMGBTN,   RESIZE_LRTB,    14,    12,    23,    15,    26, SPR_FLAG_VEH_RUNNING,STR_NULL},                         // DEPOT_WIDGET_START_ALL
    98 	{ WWT_PUSHIMGBTN,   RESIZE_LRTB,    14,    12,    23,    15,    26, SPR_FLAG_VEH_RUNNING,STR_NULL},                         // DEPOT_WIDGET_START_ALL
    99 	{  WWT_RESIZEBOX,   RESIZE_LRTB,    14,    24,    35,    15,    26, 0x0,                 STR_RESIZE_BUTTON},                // DEPOT_WIDGET_RESIZE
    99 	{  WWT_RESIZEBOX,   RESIZE_LRTB,    14,    24,    35,    15,    26, 0x0,                 STR_RESIZE_BUTTON},                // DEPOT_WIDGET_RESIZE
   100 	{   WIDGETS_END},
   100 	{   WIDGETS_END},
   101 };
   101 };
   102 
   102 
       
   103 
       
   104 struct depot_d {
       
   105 	VehicleID sel;
       
   106 	VehicleType type;
       
   107 	bool generate_list;
       
   108 	uint16 engine_list_length;
       
   109 	uint16 wagon_list_length;
       
   110 	uint16 engine_count;
       
   111 	uint16 wagon_count;
       
   112 	Vehicle **vehicle_list;
       
   113 	Vehicle **wagon_list;
       
   114 };
       
   115 assert_compile(WINDOW_CUSTOM_SIZE >= sizeof(depot_d));
       
   116 
   103 static void DepotWndProc(Window *w, WindowEvent *e);
   117 static void DepotWndProc(Window *w, WindowEvent *e);
   104 
   118 
   105 static const WindowDesc _train_depot_desc = {
   119 static const WindowDesc _train_depot_desc = {
   106 	WDP_AUTO, WDP_AUTO, 36, 27, 36, 27,
   120 	WDP_AUTO, WDP_AUTO, 36, 27, 36, 27,
   107 	WC_VEHICLE_DEPOT, WC_NONE,
   121 	WC_VEHICLE_DEPOT, WC_NONE,