src/road_gui.cpp
changeset 9188 2c86cddd8bb8
parent 9082 8217cb013e23
child 9281 d8cd9ac52a68
equal deleted inserted replaced
9187:fb40599719f1 9188:2c86cddd8bb8
   416 	 * by the other buttons so they don't act on themselfs.
   416 	 * by the other buttons so they don't act on themselfs.
   417 	 * Both are only valid if they are able to apply as options. */
   417 	 * Both are only valid if they are able to apply as options. */
   418 	switch (clicked_widget) {
   418 	switch (clicked_widget) {
   419 		case RTW_REMOVE:
   419 		case RTW_REMOVE:
   420 			w->RaiseWidget(RTW_ONE_WAY);
   420 			w->RaiseWidget(RTW_ONE_WAY);
       
   421 			w->InvalidateWidget(RTW_ONE_WAY);
   421 			break;
   422 			break;
   422 		case RTW_ONE_WAY:
   423 		case RTW_ONE_WAY:
   423 			w->RaiseWidget(RTW_REMOVE);
   424 			w->RaiseWidget(RTW_REMOVE);
       
   425 			w->InvalidateWidget(RTW_REMOVE);
   424 			break;
   426 			break;
   425 		case RTW_BUS_STATION:
   427 		case RTW_BUS_STATION:
   426 		case RTW_TRUCK_STATION:
   428 		case RTW_TRUCK_STATION:
   427 			w->DisableWidget(RTW_ONE_WAY);
   429 			w->DisableWidget(RTW_ONE_WAY);
   428 			w->SetWidgetDisabledState(RTW_REMOVE, !w->IsWidgetLowered(clicked_widget));
   430 			w->SetWidgetDisabledState(RTW_REMOVE, !w->IsWidgetLowered(clicked_widget));