Changeset - r13575:e0b44d5fcc8d
[Not reviewed]
master
0 1 0
frosch - 15 years ago 2009-11-15 20:37:13
frosch@openttd.org
(svn r18109) -Fix: Up-/down-buttons of CreateScenarioWindow were not raised again.
1 file changed with 11 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/genworld_gui.cpp
Show inline comments
 
@@ -987,6 +987,17 @@ struct CreateScenarioWindow : public Win
 
		}
 
	}
 

	
 
	virtual void OnTimeout()
 
	{
 
		static const int raise_widgets[] = {CSCEN_START_DATE_DOWN, CSCEN_START_DATE_UP, CSCEN_FLAT_LAND_HEIGHT_DOWN, CSCEN_FLAT_LAND_HEIGHT_UP, WIDGET_LIST_END};
 
		for (const int *widget = raise_widgets; *widget != WIDGET_LIST_END; widget++) {
 
			if (this->IsWidgetLowered(*widget)) {
 
				this->RaiseWidget(*widget);
 
				this->SetWidgetDirty(*widget);
 
			}
 
		}
 
	}
 

	
 
	virtual void OnDropdownSelect(int widget, int index)
 
	{
 
		switch (widget) {
0 comments (0 inline, 0 general)