# HG changeset patch # User alberth # Date 2009-08-16 16:48:59 # Node ID d6b952c347d731092268a1ed26c6af5eca47fdb0 # Parent b00231c59b7c8e1cc7a863aac11d621e00c600e7 (svn r17205) -Fix (r17175): Make year and snow line up/down buttons raise again. diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -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);