From ee2f1da8c2cda4a52c4d3784cf46c6f2f79fcf91 Mon Sep 17 00:00:00 2001 From: EchoOfNothing <52498373+EchoOfNothing@users.noreply.github.com> Date: Sat, 27 Dec 2025 16:18:45 +0200 Subject: [PATCH] Merge IFF controls into one control. Make syndicate IFF turned off by default. (#42104) * Merge IFF controls into one control. * Implement logic to hide IFF of sydicate IFF console on map load. Add hideOnInit property to IFFConsoleComponent * DataField --------- Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com> --- .../BUI/IFFConsoleBoundUserInterface.cs | 9 ----- .../Shuttles/UI/IFFConsoleWindow.xaml | 6 ---- .../Shuttles/UI/IFFConsoleWindow.xaml.cs | 36 ++----------------- .../Components/IFFConsoleComponent.cs | 3 ++ .../Shuttles/Systems/ShuttleSystem.IFF.cs | 36 ++++++++++++------- .../Shuttles/Events/IFFShowVesselMessage.cs | 9 ----- .../Machines/Computers/computers.yml | 1 + 7 files changed, 29 insertions(+), 71 deletions(-) delete mode 100644 Content.Shared/Shuttles/Events/IFFShowVesselMessage.cs diff --git a/Content.Client/Shuttles/BUI/IFFConsoleBoundUserInterface.cs b/Content.Client/Shuttles/BUI/IFFConsoleBoundUserInterface.cs index 8d84abed8a..704307f06b 100644 --- a/Content.Client/Shuttles/BUI/IFFConsoleBoundUserInterface.cs +++ b/Content.Client/Shuttles/BUI/IFFConsoleBoundUserInterface.cs @@ -23,7 +23,6 @@ public sealed class IFFConsoleBoundUserInterface : BoundUserInterface _window = this.CreateWindowCenteredLeft(); _window.ShowIFF += SendIFFMessage; - _window.ShowVessel += SendVesselMessage; } protected override void UpdateState(BoundUserInterfaceState state) @@ -44,14 +43,6 @@ public sealed class IFFConsoleBoundUserInterface : BoundUserInterface }); } - private void SendVesselMessage(bool obj) - { - SendMessage(new IFFShowVesselMessage() - { - Show = obj, - }); - } - protected override void Dispose(bool disposing) { base.Dispose(disposing); diff --git a/Content.Client/Shuttles/UI/IFFConsoleWindow.xaml b/Content.Client/Shuttles/UI/IFFConsoleWindow.xaml index dab11a7b62..90684889a6 100644 --- a/Content.Client/Shuttles/UI/IFFConsoleWindow.xaml +++ b/Content.Client/Shuttles/UI/IFFConsoleWindow.xaml @@ -9,12 +9,6 @@