using System; using UnityEngine; using UnityEngine.UIElements; namespace Soundings { public sealed partial class SoundingsApp { private static readonly Vector2[][] FleetWorldBounds = { new[] { new Vector2(-180, -76), new Vector2(180, 61) } }; private static readonly Color FleetSeaColor = new(.41f, .78f, .93f); private static readonly Color FleetDockColor = new(.43f, .82f, .70f); private bool fleetWorldView; private sealed class FleetRow { public Ship Ship; public Button Control; public Label Status, Readout; public Voyage Voyage; public HelmNavigation Helm; public Vector2[] Route; public int Group = -1; } private void ToggleFleetOverview() { fleetOpen = !fleetOpen; shipActionsOpen = false; if (fleetOpen) voyageMapOpen = false; Render(); string focus = fleetOpen ? "fleet-close" : "fleet-toggle"; root.schedule.Execute(() => root.Q