closeOpenDialogs(); toggleGUI(); g_TutorialManager?.toggleVisibility(); toggleConfigBool("silhouettes"); if (!g_IsNetworked) Engine.QuickSave(getSavedGameData()); if (!g_IsNetworked) Engine.QuickLoad(); performCommand(g_Selection.toList().map(ent => GetEntityState(ent)), "delete"); unloadAll(); unloadAllTurrets(); leaveTurretPoints(); stopUnits(g_Selection.toList()); backToWork(); updateSelectionDetails(); updateSelectionDetails(); findIdleUnit(["Builder"]); findIdleUnit(g_MilitaryTypes); findIdleUnit(["!Domestic+!Formation"]); clearSelection(); g_ShowAllStatusBars = !g_ShowAllStatusBars; recalculateStatusBarDisplay();