From 11d974a9f151a723c9c8578f1b0f76dd3b8bf9ad Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 16 Aug 2009 16:48:59 +0000 Subject: (svn r17205) -Fix (r17175): Make year and snow line up/down buttons raise again. --- src/genworld_gui.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp index 9f9939d62..aa3c513b5 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -789,6 +789,17 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow { } } + 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); -- cgit v1.2.3-70-g09d2