Feature: Add existing station coverage area display when placing new station parts.

This commit is contained in:
peter1138
2019-03-30 16:58:40 +00:00
committed by Niels Martin Hansen
parent b6733edd17
commit 81f0f97406
7 changed files with 88 additions and 0 deletions

View File

@@ -327,6 +327,7 @@ struct BuildRoadToolbarWindow : Window {
~BuildRoadToolbarWindow()
{
if (this->IsWidgetLowered(WID_ROT_BUS_STATION) || this->IsWidgetLowered(WID_ROT_TRUCK_STATION)) SetViewportCatchmentStation(nullptr, true);
if (_settings_client.gui.link_terraform_toolbar) DeleteWindowById(WC_SCEN_LAND_GEN, 0, false);
}
@@ -545,6 +546,8 @@ struct BuildRoadToolbarWindow : Window {
void OnPlaceObjectAbort() override
{
if (this->IsWidgetLowered(WID_ROT_BUS_STATION) || this->IsWidgetLowered(WID_ROT_TRUCK_STATION)) SetViewportCatchmentStation(nullptr, true);
this->RaiseButtons();
this->SetWidgetsDisabledState(true,
WID_ROT_REMOVE,