Mercurial > hg > openttd
comparison src/depot_gui.cpp @ 13628:2123810ad874 draft
(svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets
author | rubidium <rubidium@openttd.org> |
---|---|
date | Tue, 17 Nov 2009 19:16:48 +0000 |
parents | 495608777888 |
children | 40489a4d0822 |
comparison
equal
deleted
inserted
replaced
13627:159d7fbe4130 | 13628:2123810ad874 |
---|---|
90 NWidget(WWT_RESIZEBOX, COLOUR_GREY, DEPOT_WIDGET_RESIZE), SetFill(false, true), | 90 NWidget(WWT_RESIZEBOX, COLOUR_GREY, DEPOT_WIDGET_RESIZE), SetFill(false, true), |
91 EndContainer(), | 91 EndContainer(), |
92 }; | 92 }; |
93 | 93 |
94 static const WindowDesc _train_depot_desc( | 94 static const WindowDesc _train_depot_desc( |
95 WDP_AUTO, WDP_AUTO, 36, 27, 362, 123, | 95 WDP_AUTO, WDP_AUTO, 362, 123, |
96 WC_VEHICLE_DEPOT, WC_NONE, | 96 WC_VEHICLE_DEPOT, WC_NONE, |
97 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, | 97 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, |
98 _nested_train_depot_widgets, lengthof(_nested_train_depot_widgets) | 98 _nested_train_depot_widgets, lengthof(_nested_train_depot_widgets) |
99 ); | 99 ); |
100 | 100 |
101 static const WindowDesc _road_depot_desc( | 101 static const WindowDesc _road_depot_desc( |
102 WDP_AUTO, WDP_AUTO, 36, 27, 316, 97, | 102 WDP_AUTO, WDP_AUTO, 316, 97, |
103 WC_VEHICLE_DEPOT, WC_NONE, | 103 WC_VEHICLE_DEPOT, WC_NONE, |
104 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, | 104 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, |
105 _nested_train_depot_widgets, lengthof(_nested_train_depot_widgets) | 105 _nested_train_depot_widgets, lengthof(_nested_train_depot_widgets) |
106 ); | 106 ); |
107 | 107 |
108 static const WindowDesc _ship_depot_desc( | 108 static const WindowDesc _ship_depot_desc( |
109 WDP_AUTO, WDP_AUTO, 36, 27, 306, 99, | 109 WDP_AUTO, WDP_AUTO, 306, 99, |
110 WC_VEHICLE_DEPOT, WC_NONE, | 110 WC_VEHICLE_DEPOT, WC_NONE, |
111 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, | 111 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, |
112 _nested_train_depot_widgets, lengthof(_nested_train_depot_widgets) | 112 _nested_train_depot_widgets, lengthof(_nested_train_depot_widgets) |
113 ); | 113 ); |
114 | 114 |
115 static const WindowDesc _aircraft_depot_desc( | 115 static const WindowDesc _aircraft_depot_desc( |
116 WDP_AUTO, WDP_AUTO, 36, 27, 332, 99, | 116 WDP_AUTO, WDP_AUTO, 332, 99, |
117 WC_VEHICLE_DEPOT, WC_NONE, | 117 WC_VEHICLE_DEPOT, WC_NONE, |
118 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, | 118 WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS | WDF_STICKY_BUTTON | WDF_RESIZABLE, |
119 _nested_train_depot_widgets, lengthof(_nested_train_depot_widgets) | 119 _nested_train_depot_widgets, lengthof(_nested_train_depot_widgets) |
120 ); | 120 ); |
121 | 121 |