Erase queued command also when depot direction/airport type/station type changes.
This commit is contained in:
@@ -423,6 +423,8 @@ public:
|
|||||||
|
|
||||||
void UpdateSelectSize()
|
void UpdateSelectSize()
|
||||||
{
|
{
|
||||||
|
EraseQueuedTouchCommand();
|
||||||
|
|
||||||
if (_selected_airport_index == -1) {
|
if (_selected_airport_index == -1) {
|
||||||
SetTileSelectSize(1, 1);
|
SetTileSelectSize(1, 1);
|
||||||
this->DisableWidget(WID_AP_LAYOUT_DECREASE);
|
this->DisableWidget(WID_AP_LAYOUT_DECREASE);
|
||||||
|
|||||||
@@ -474,6 +474,7 @@ public:
|
|||||||
_settings_client.gui.station_show_coverage = (widget != BDSW_LT_OFF);
|
_settings_client.gui.station_show_coverage = (widget != BDSW_LT_OFF);
|
||||||
this->LowerWidget(_settings_client.gui.station_show_coverage + BDSW_LT_OFF);
|
this->LowerWidget(_settings_client.gui.station_show_coverage + BDSW_LT_OFF);
|
||||||
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
||||||
|
EraseQueuedTouchCommand();
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1369,6 +1369,8 @@ public:
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EraseQueuedTouchCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void OnTick()
|
virtual void OnTick()
|
||||||
@@ -1723,6 +1725,7 @@ struct BuildRailDepotWindow : public PickerWindowBase {
|
|||||||
_build_depot_direction = (DiagDirection)(widget - WID_BRAD_DEPOT_NE);
|
_build_depot_direction = (DiagDirection)(widget - WID_BRAD_DEPOT_NE);
|
||||||
this->LowerWidget(_build_depot_direction + WID_BRAD_DEPOT_NE);
|
this->LowerWidget(_build_depot_direction + WID_BRAD_DEPOT_NE);
|
||||||
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
||||||
|
EraseQueuedTouchCommand();
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -881,6 +881,7 @@ struct BuildRoadDepotWindow : public PickerWindowBase {
|
|||||||
_road_depot_orientation = (DiagDirection)(widget - WID_BROD_DEPOT_NE);
|
_road_depot_orientation = (DiagDirection)(widget - WID_BROD_DEPOT_NE);
|
||||||
this->LowerWidget(_road_depot_orientation + WID_BROD_DEPOT_NE);
|
this->LowerWidget(_road_depot_orientation + WID_BROD_DEPOT_NE);
|
||||||
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
||||||
|
EraseQueuedTouchCommand();
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -1027,6 +1028,7 @@ struct BuildRoadStationWindow : public PickerWindowBase {
|
|||||||
_settings_client.gui.station_show_coverage = (widget != WID_BROS_LT_OFF);
|
_settings_client.gui.station_show_coverage = (widget != WID_BROS_LT_OFF);
|
||||||
this->LowerWidget(_settings_client.gui.station_show_coverage + WID_BROS_LT_OFF);
|
this->LowerWidget(_settings_client.gui.station_show_coverage + WID_BROS_LT_OFF);
|
||||||
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP);
|
||||||
|
EraseQueuedTouchCommand();
|
||||||
this->SetDirty();
|
this->SetDirty();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user