src/station_gui.cpp
branchcpp_gui
changeset 6239 925a1bba771f
parent 6237 bce32e54c993
child 6240 8d4ea2d6befc
equal deleted inserted replaced
6238:1ff56ccccbb5 6239:925a1bba771f
   681 				y += 10;
   681 				y += 10;
   682 			}
   682 			}
   683 		}
   683 		}
   684 	} while (pos > -5 && ++i != NUM_CARGO);
   684 	} while (pos > -5 && ++i != NUM_CARGO);
   685 
   685 
   686 	if (IsWindowOfPrototype(w, _station_view_widgets)) {
   686 	if (w->IsWindowOfPrototype(_station_view_widgets)) {
   687 		char *b = _userstring;
   687 		char *b = _userstring;
   688 		bool first = true;
   688 		bool first = true;
   689 
   689 
   690 		b = InlineString(b, STR_000C_ACCEPTS);
   690 		b = InlineString(b, STR_000C_ACCEPTS);
   691 
   691 
   740 
   740 
   741 		case 8:
   741 		case 8:
   742 			w->SetDirty();
   742 			w->SetDirty();
   743 
   743 
   744 			/* toggle height/widget set */
   744 			/* toggle height/widget set */
   745 			if (IsWindowOfPrototype(w, _station_view_expanded_widgets)) {
   745 			if (w->IsWindowOfPrototype(_station_view_expanded_widgets)) {
   746 				w->AssignWidgetToWindow(_station_view_widgets);
   746 				w->AssignWidgetToWindow(_station_view_widgets);
   747 				w->height = 110;
   747 				w->height = 110;
   748 			} else {
   748 			} else {
   749 				w->AssignWidgetToWindow(_station_view_expanded_widgets);
   749 				w->AssignWidgetToWindow(_station_view_expanded_widgets);
   750 				w->height = 210;
   750 				w->height = 210;