Mercurial > hg > openttd
changeset 13585:2d12e2247813 draft
(svn r18109) -Fix: Up-/down-buttons of CreateScenarioWindow were not raised again.
author | frosch <frosch@openttd.org> |
---|---|
date | Sun, 15 Nov 2009 20:37:13 +0000 |
parents | 2443dedd4290 |
children | 6093f71745bf |
files | src/genworld_gui.cpp |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/genworld_gui.cpp +++ b/src/genworld_gui.cpp @@ -987,6 +987,17 @@ } } + 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) {