diff options
author | alberth <alberth@openttd.org> | 2009-08-16 16:48:59 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-08-16 16:48:59 +0000 |
commit | 11d974a9f151a723c9c8578f1b0f76dd3b8bf9ad (patch) | |
tree | 9a969ed118dcb7bd6ba1b8cf03d2c8c373eab1da | |
parent | 4f1758b51a9b0c74a63f9dafaabba51860189ba8 (diff) | |
download | openttd-11d974a9f151a723c9c8578f1b0f76dd3b8bf9ad.tar.xz |
(svn r17205) -Fix (r17175): Make year and snow line up/down buttons raise again.
-rw-r--r-- | src/genworld_gui.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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); |