diff --git a/Content.Client/Cargo/BUI/CargoShuttleConsoleBoundUserInterface.cs b/Content.Client/Cargo/BUI/CargoShuttleConsoleBoundUserInterface.cs index 86b583206e..f1f102985e 100644 --- a/Content.Client/Cargo/BUI/CargoShuttleConsoleBoundUserInterface.cs +++ b/Content.Client/Cargo/BUI/CargoShuttleConsoleBoundUserInterface.cs @@ -1,12 +1,12 @@ using Content.Client.Cargo.UI; using Content.Shared.Cargo.BUI; -using Content.Shared.Cargo.Events; +using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Shared.Prototypes; -using Robust.Shared.Timing; namespace Content.Client.Cargo.BUI; +[UsedImplicitly] public sealed class CargoShuttleConsoleBoundUserInterface : BoundUserInterface { private CargoShuttleMenu? _menu; @@ -21,9 +21,7 @@ public sealed class CargoShuttleConsoleBoundUserInterface : BoundUserInterface if (collection == null) return; - _menu = new CargoShuttleMenu(collection.Resolve(), collection.Resolve(), collection.Resolve().GetEntitySystem()); - _menu.ShuttleCallRequested += OnShuttleCall; - _menu.ShuttleRecallRequested += OnShuttleRecall; + _menu = new CargoShuttleMenu(collection.Resolve(), collection.Resolve().GetEntitySystem()); _menu.OnClose += Close; _menu.OpenCentered(); @@ -38,24 +36,12 @@ public sealed class CargoShuttleConsoleBoundUserInterface : BoundUserInterface } } - private void OnShuttleRecall() - { - SendMessage(new CargoRecallShuttleMessage()); - } - - private void OnShuttleCall() - { - SendMessage(new CargoCallShuttleMessage()); - } - protected override void UpdateState(BoundUserInterfaceState state) { base.UpdateState(state); if (state is not CargoShuttleConsoleBoundUserInterfaceState cargoState) return; _menu?.SetAccountName(cargoState.AccountName); _menu?.SetShuttleName(cargoState.ShuttleName); - _menu?.SetShuttleETA(cargoState.ShuttleETA); _menu?.SetOrders(cargoState.Orders); - _menu?.SetCanRecall(cargoState.CanRecall); } } diff --git a/Content.Client/Cargo/UI/CargoShuttleMenu.xaml b/Content.Client/Cargo/UI/CargoShuttleMenu.xaml index f789197fa8..c070b90823 100644 --- a/Content.Client/Cargo/UI/CargoShuttleMenu.xaml +++ b/Content.Client/Cargo/UI/CargoShuttleMenu.xaml @@ -22,12 +22,6 @@