Hide all windows when building anything on the map

This commit is contained in:
Sergii Pylypenko
2016-04-04 23:04:39 +03:00
parent 00dc8319eb
commit b0441047aa
6 changed files with 21 additions and 3 deletions

View File

@@ -525,10 +525,12 @@ struct BuildRoadToolbarWindow : Window {
default: NOT_REACHED();
}
MoveAllWindowsOffScreen();
}
virtual void OnPlaceObjectAbort()
{
MoveAllHiddenWindowsBackToScreen();
this->RaiseButtons();
this->SetWidgetsDisabledState(true,
WID_ROT_REMOVE,
@@ -669,6 +671,7 @@ struct BuildRoadToolbarWindow : Window {
CMD_BUILD_ROAD_DEPOT | CMD_MSG(_road_type_infos[_cur_roadtype].err_depot), CcRoadDepot);
break;
}
MoveAllHiddenWindowsBackToScreen();
}
}