src/newgrf_gui.cpp
branchcpp_gui
changeset 6247 67e881450cf3
parent 6246 2a4c2c4d66f0
child 6258 a2f86b8fd99b
equal deleted inserted replaced
6246:2a4c2c4d66f0 6247:67e881450cf3
   252 	);
   252 	);
   253 	w->SetWidgetDisabledState(SNGRFS_SET_PARAMETERS, !WP(w, newgrf_d).show_params || disable_all);
   253 	w->SetWidgetDisabledState(SNGRFS_SET_PARAMETERS, !WP(w, newgrf_d).show_params || disable_all);
   254 
   254 
   255 	if (!disable_all) {
   255 	if (!disable_all) {
   256 		/* All widgets are now enabled, so disable widgets we can't use */
   256 		/* All widgets are now enabled, so disable widgets we can't use */
   257 		if (WP(w, newgrf_d).sel == *WP(w, newgrf_d).list) DisableWindowWidget(w, SNGRFS_MOVE_UP);
   257 		if (WP(w, newgrf_d).sel == *WP(w, newgrf_d).list) w->DisableWidget(SNGRFS_MOVE_UP);
   258 		if (WP(w, newgrf_d).sel->next == NULL) DisableWindowWidget(w, SNGRFS_MOVE_DOWN);
   258 		if (WP(w, newgrf_d).sel->next == NULL) w->DisableWidget(SNGRFS_MOVE_DOWN);
   259 	}
   259 	}
   260 }
   260 }
   261 
   261 
   262 
   262 
   263 static void SetupNewGRFWindow(Window *w)
   263 static void SetupNewGRFWindow(Window *w)