src/depot_gui.cpp
branchcpp_gui
changeset 6268 4b5241e5dd10
parent 6263 19dab6a68886
child 6285 187e3ef04cc9
equal deleted inserted replaced
6267:7c8ec33959b1 6268:4b5241e5dd10
     1 /* $Id$ */
     1 /* $Id$ */
       
     2 
       
     3 /** depot_gui.cpp */
     2 
     4 
     3 #include "stdafx.h"
     5 #include "stdafx.h"
     4 #include "openttd.h"
     6 #include "openttd.h"
     5 #include "functions.h"
     7 #include "functions.h"
     6 #include "train.h"
     8 #include "train.h"
    34 	DEPOT_WIDGET_SELL,
    36 	DEPOT_WIDGET_SELL,
    35 	DEPOT_WIDGET_SELL_CHAIN,
    37 	DEPOT_WIDGET_SELL_CHAIN,
    36 	DEPOT_WIDGET_SELL_ALL,
    38 	DEPOT_WIDGET_SELL_ALL,
    37 	DEPOT_WIDGET_AUTOREPLACE,
    39 	DEPOT_WIDGET_AUTOREPLACE,
    38 	DEPOT_WIDGET_MATRIX,
    40 	DEPOT_WIDGET_MATRIX,
    39 	DEPOT_WIDGET_V_SCROLL, // Vertical scrollbar
    41 	DEPOT_WIDGET_V_SCROLL, ///< Vertical scrollbar
    40 	DEPOT_WIDGET_H_SCROLL, // Horizontal scrollbar
    42 	DEPOT_WIDGET_H_SCROLL, ///< Horizontal scrollbar
    41 	DEPOT_WIDGET_BUILD,
    43 	DEPOT_WIDGET_BUILD,
    42 	DEPOT_WIDGET_CLONE,
    44 	DEPOT_WIDGET_CLONE,
    43 	DEPOT_WIDGET_LOCATION,
    45 	DEPOT_WIDGET_LOCATION,
    44 	DEPOT_WIDGET_VEHICLE_LIST,
    46 	DEPOT_WIDGET_VEHICLE_LIST,
    45 	DEPOT_WIDGET_STOP_ALL,
    47 	DEPOT_WIDGET_STOP_ALL,
   634 uint _block_sizes[4][2];
   636 uint _block_sizes[4][2];
   635 
   637 
   636 /* Array to hold the default resize capacities
   638 /* Array to hold the default resize capacities
   637 * First part is the vehicle type, while the last is 0 = x, 1 = y */
   639 * First part is the vehicle type, while the last is 0 = x, 1 = y */
   638 const uint _resize_cap[][2] = {
   640 const uint _resize_cap[][2] = {
   639 /* VEH_Train */    {6, 10 * 29 + 36}, // flags, unitnumber and unit count uses a total of 36 pixels and we set default to 10 units
   641 /* VEH_Train */    {6, 10 * 29 + 36}, ///< flags, unitnumber and unit count uses a total of 36 pixels and we set default to 10 units
   640 /* VEH_Road */     {5, 5},
   642 /* VEH_Road */     {5, 5},
   641 /* VEH_Ship */     {3, 3},
   643 /* VEH_Ship */     {3, 3},
   642 /* VEH_Aircraft */ {3, 4},
   644 /* VEH_Aircraft */ {3, 4},
   643 };
   645 };
   644 
   646