Changeset - r15510:c67eca43678e
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2010-07-17 15:06:28
frosch@openttd.org
(svn r20174) -Codechange [FS#3955]: Allow horizontal resizing for all vehicle lists.
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/vehicle_gui.cpp
Show inline comments
 
@@ -863,7 +863,7 @@ static const NWidgetPart _nested_vehicle
 
	EndContainer(),
 

	
 
	NWidget(NWID_HORIZONTAL),
 
		NWidget(WWT_MATRIX, COLOUR_GREY, VLW_WIDGET_LIST), SetMinimalSize(248, 0), SetFill(1, 0),
 
		NWidget(WWT_MATRIX, COLOUR_GREY, VLW_WIDGET_LIST), SetMinimalSize(248, 0), SetFill(1, 0), SetResize(1, 1),
 
		NWidget(WWT_SCROLLBAR, COLOUR_GREY, VLW_WIDGET_SCROLLBAR),
 
	EndContainer(),
 

	
 
@@ -1089,13 +1089,10 @@ public:
 
	{
 
		switch (widget) {
 
			case VLW_WIDGET_LIST:
 
				resize->width = 0;
 
				resize->height = GetVehicleListHeight(this->vehicle_type, 1);
 

	
 
				switch (this->vehicle_type) {
 
					case VEH_TRAIN:
 
						resize->width = 1;
 
						/* Fallthrough */
 
					case VEH_ROAD:
 
						size->height = 6 * resize->height;
 
						break;
0 comments (0 inline, 0 general)