Mercurial > hg > openttd
changeset 17717:c7caf5a58212 draft
(svn r22497) -Codechange: Simplify button handling in airport build GUI
author | planetmaker <planetmaker@openttd.org> |
---|---|
date | Fri, 27 May 2011 16:26:10 +0000 |
parents | 5b5d9580d771 |
children | 6ef16d4870ec |
files | src/airport_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -533,18 +533,6 @@ { CheckRedrawStationCoverage(this); } - - virtual void OnTimeout() - { - if (this->IsWidgetLowered(BAIRW_LAYOUT_DECREASE)) { - this->ToggleWidgetLoweredState(BAIRW_LAYOUT_DECREASE); - this->SetDirty(); - } - if (this->IsWidgetLowered(BAIRW_LAYOUT_INCREASE)) { - this->ToggleWidgetLoweredState(BAIRW_LAYOUT_INCREASE); - this->SetDirty(); - } - } }; static const NWidgetPart _nested_build_airport_widgets[] = { @@ -587,7 +575,7 @@ static const WindowDesc _build_airport_desc( WDP_AUTO, 0, 0, WC_BUILD_STATION, WC_BUILD_TOOLBAR, - WDF_CONSTRUCTION, + WDF_CONSTRUCTION | WDF_UNCLICK_BUTTONS, _nested_build_airport_widgets, lengthof(_nested_build_airport_widgets) );