src/autoreplace_gui.cpp
branchcpp_gui
changeset 6307 f40e88cff863
parent 6298 c30fe89622df
equal deleted inserted replaced
6306:036aa28ca80e 6307:f40e88cff863
   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 			w->DrawWidgets();
   270 			w->DrawWidgets();
   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);