Changeset - r11074:65548b0f2da6
[Not reviewed]
master
0 2 0
rubidium - 15 years ago 2009-02-08 16:03:17
rubidium@openttd.org
(svn r15415) -Change: close the (station) joiner window when pressing the bulldozer.
2 files changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/rail_gui.cpp
Show inline comments
 
@@ -295,12 +295,13 @@ enum RailToolbarWidgets {
 

	
 
/** Toggles state of the Remove button of Build rail toolbar
 
 * @param w window the button belongs to
 
 */
 
static void ToggleRailButton_Remove(Window *w)
 
{
 
	DeleteWindowById(WC_SELECT_STATION, 0);
 
	w->ToggleWidgetLoweredState(RTW_REMOVE);
 
	w->InvalidateWidget(RTW_REMOVE);
 
	_remove_button_clicked = w->IsWidgetLowered(RTW_REMOVE);
 
	SetSelectionRed(_remove_button_clicked);
 
}
 

	
src/road_gui.cpp
Show inline comments
 
@@ -365,12 +365,14 @@ static void BuildRoadClick_Tunnel(Window
 
	HandlePlacePushButton(w, RTW_BUILD_TUNNEL, SPR_CURSOR_ROAD_TUNNEL, VHM_SPECIAL, PlaceRoad_Tunnel);
 
}
 

	
 
static void BuildRoadClick_Remove(Window *w)
 
{
 
	if (w->IsWidgetDisabled(RTW_REMOVE)) return;
 

	
 
	DeleteWindowById(WC_SELECT_STATION, 0);
 
	ToggleRoadButton_Remove(w);
 
	SndPlayFx(SND_15_BEEP);
 
}
 

	
 
/** Array with the handlers of the button-clicks for the road-toolbar */
 
static OnButtonClick * const _build_road_button_proc[] = {
0 comments (0 inline, 0 general)