mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-12 01:24:54 +00:00
(svn r22497) -Codechange: Simplify button handling in airport build GUI
This commit is contained in:
parent
00e65d1a4d
commit
8828acd722
@ -533,18 +533,6 @@ public:
|
||||
{
|
||||
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 NWidgetPart _nested_build_airport_widgets[] = {
|
||||
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)
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user