Changeset - r16796:a39fb717b144
[Not reviewed]
master
0 1 0
alberth - 13 years ago 2010-12-19 13:44:09
alberth@openttd.org
(svn r21539) -Fix [FS#4315]: Show 'plant trees' button lowering of terraform toolbar.
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/terraform_gui.cpp
Show inline comments
 
@@ -200,6 +200,7 @@ static void TerraformClick_BuyLand(Windo
 
static void TerraformClick_Trees(Window *w)
 
{
 
	/* This button is NOT a place-push-button, so don't treat it as such */
 
	w->HandleButtonClick(TTW_PLANT_TREES);
 
	ShowBuildTreesToolbar();
 
}
 

	
 
@@ -250,6 +251,12 @@ struct TerraformToolbarWindow : Window {
 
		if (widget >= TTW_BUTTONS_START) _terraform_button_proc[widget - TTW_BUTTONS_START](this);
 
	}
 

	
 
	virtual void OnTimeout()
 
	{
 
		this->RaiseWidget(TTW_PLANT_TREES);
 
		this->SetWidgetDirty(TTW_PLANT_TREES);
 
	}
 

	
 
	virtual EventState OnKeyPress(uint16 key, uint16 keycode)
 
	{
 
		int num = CheckHotkeyMatch(terraform_hotkeys, keycode, this);
0 comments (0 inline, 0 general)