src/autoreplace_gui.cpp
changeset 6398 35d30aee9e8c
parent 6259 471b91a4b1d8
child 6638 09c5d7bf69a5
equal deleted inserted replaced
6397:8caa242118b6 6398:35d30aee9e8c
   259 				/* set on/off for renew_keep_length */
   259 				/* set on/off for renew_keep_length */
   260 				SetDParam(1, p->renew_keep_length ? STR_CONFIG_PATCHES_ON : STR_CONFIG_PATCHES_OFF);
   260 				SetDParam(1, p->renew_keep_length ? STR_CONFIG_PATCHES_ON : STR_CONFIG_PATCHES_OFF);
   261 
   261 
   262 				/* set wagon/engine button */
   262 				/* set wagon/engine button */
   263 				SetDParam(2, WP(w, replaceveh_d).wagon_btnstate ? STR_ENGINES : STR_WAGONS);
   263 				SetDParam(2, WP(w, replaceveh_d).wagon_btnstate ? STR_ENGINES : STR_WAGONS);
       
   264 
       
   265 				/* sets the colour of that art thing */
       
   266 				w->widget[13].color = _player_colors[_local_player];
       
   267 				w->widget[16].color = _player_colors[_local_player];
   264 			}
   268 			}
   265 
   269 
   266 			w->widget[13].color = _player_colors[_local_player]; // sets the colour of that art thing
       
   267 			w->widget[16].color = _player_colors[_local_player]; // sets the colour of that art thing
       
   268 
       
   269 			DrawWindowWidgets(w);
   270 			DrawWindowWidgets(w);
   270 
       
   271 
   271 
   272 			if (w->window_number == VEH_TRAIN) {
   272 			if (w->window_number == VEH_TRAIN) {
   273 				/* Draw the selected railtype in the pulldown menu */
   273 				/* Draw the selected railtype in the pulldown menu */
   274 				RailType railtype = _railtype_selected_in_replace_gui;
   274 				RailType railtype = _railtype_selected_in_replace_gui;
   275 				DrawString(157, w->widget[14].top + 1, _rail_types_list[railtype], 0x10);
   275 				DrawString(157, w->widget[14].top + 1, _rail_types_list[railtype], 0x10);