diff options
author | frosch <frosch@openttd.org> | 2009-11-15 20:37:13 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-11-15 20:37:13 +0000 |
commit | e41c2e128bb8177613d664eddee9f7396d6ae842 (patch) | |
tree | 1d96c77b759fc7d45e7230d00d1bcdd669eec98c /src | |
parent | 95af4f40f34534f4ff557c9ab9e54ce9ab835abc (diff) | |
download | openttd-e41c2e128bb8177613d664eddee9f7396d6ae842.tar.xz |
(svn r18109) -Fix: Up-/down-buttons of CreateScenarioWindow were not raised again.
Diffstat (limited to 'src')
-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 98ffa9e82..5cc6ee931 100644 --- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -987,6 +987,17 @@ struct CreateScenarioWindow : public Window } } + 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) { |