Changeset - r12729:d6b952c347d7
[Not reviewed]
master
0 1 0
alberth - 15 years ago 2009-08-16 16:48:59
alberth@openttd.org
(svn r17205) -Fix (r17175): Make year and snow line up/down buttons raise again.
1 file changed with 11 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/genworld_gui.cpp
Show inline comments
 
@@ -789,6 +789,17 @@ struct GenerateLandscapeWindow : public 
 
		}
 
	}
 

	
 
	virtual void OnTimeout()
 
	{
 
		static const int raise_widgets[] = {GLAND_START_DATE_DOWN, GLAND_START_DATE_UP, GLAND_SNOW_LEVEL_UP, GLAND_SNOW_LEVEL_DOWN, WIDGET_LIST_END};
 
		for (const int *widget = raise_widgets; *widget != WIDGET_LIST_END; widget++) {
 
			if (this->IsWidgetLowered(*widget)) {
 
				this->RaiseWidget(*widget);
 
				this->InvalidateWidget(*widget);
 
			}
 
		}
 
	}
 

	
 
	virtual void OnMouseLoop()
 
	{
 
		this->HandleEditBox(GLAND_RANDOM_EDITBOX);
0 comments (0 inline, 0 general)