mirror of https://github.com/OpenTTD/OpenTTD
(svn r22497) -Codechange: Simplify button handling in airport build GUI
parent
00e65d1a4d
commit
8828acd722
|
@ -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)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue