1
0
Fork 0

(svn r22497) -Codechange: Simplify button handling in airport build GUI

release/1.2
planetmaker 2011-05-27 16:26:10 +00:00
parent 00e65d1a4d
commit 8828acd722
1 changed files with 1 additions and 13 deletions

View File

@ -533,18 +533,6 @@ public:
{ {
CheckRedrawStationCoverage(this); 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[] = { static const NWidgetPart _nested_build_airport_widgets[] = {
@ -587,7 +575,7 @@ static const NWidgetPart _nested_build_airport_widgets[] = {
static const WindowDesc _build_airport_desc( static const WindowDesc _build_airport_desc(
WDP_AUTO, 0, 0, WDP_AUTO, 0, 0,
WC_BUILD_STATION, WC_BUILD_TOOLBAR, WC_BUILD_STATION, WC_BUILD_TOOLBAR,
WDF_CONSTRUCTION, WDF_CONSTRUCTION | WDF_UNCLICK_BUTTONS,
_nested_build_airport_widgets, lengthof(_nested_build_airport_widgets) _nested_build_airport_widgets, lengthof(_nested_build_airport_widgets)
); );