equal
deleted
inserted
replaced
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) |