diff --git a/Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs b/Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs index aea0ce41e8..3f7f1e73ee 100644 --- a/Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs +++ b/Content.Client/Atmos/Monitor/UI/AirAlarmBoundUserInterface.cs @@ -31,6 +31,7 @@ public sealed class AirAlarmBoundUserInterface : BoundUserInterface _window.OnClose += Close; _window.AtmosDeviceDataChanged += OnDeviceDataChanged; + _window.AtmosDeviceDataCopied += OnDeviceDataCopied; _window.AtmosAlarmThresholdChanged += OnThresholdChanged; _window.AirAlarmModeChanged += OnAirAlarmModeChanged; _window.AutoModeChanged += OnAutoModeChanged; @@ -47,6 +48,11 @@ public sealed class AirAlarmBoundUserInterface : BoundUserInterface { SendMessage(new AirAlarmUpdateDeviceDataMessage(address, data)); } + + private void OnDeviceDataCopied(IAtmosDeviceData data) + { + SendMessage(new AirAlarmCopyDeviceDataMessage(data)); + } private void OnAirAlarmModeChanged(AirAlarmMode mode) { diff --git a/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs b/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs index 105394b648..de26eb5f19 100644 --- a/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs +++ b/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml.cs @@ -18,6 +18,7 @@ namespace Content.Client.Atmos.Monitor.UI; public sealed partial class AirAlarmWindow : FancyWindow { public event Action? AtmosDeviceDataChanged; + public event Action? AtmosDeviceDataCopied; public event Action? AtmosAlarmThresholdChanged; public event Action? AirAlarmModeChanged; public event Action? AutoModeChanged; @@ -137,6 +138,7 @@ public sealed partial class AirAlarmWindow : FancyWindow { var control= new PumpControl(pump, addr); control.PumpDataChanged += AtmosDeviceDataChanged!.Invoke; + control.PumpDataCopied += AtmosDeviceDataCopied!.Invoke; _pumps.Add(addr, control); CVentContainer.AddChild(control); } @@ -151,6 +153,7 @@ public sealed partial class AirAlarmWindow : FancyWindow { var control = new ScrubberControl(scrubber, addr); control.ScrubberDataChanged += AtmosDeviceDataChanged!.Invoke; + control.ScrubberDataCopied += AtmosDeviceDataCopied!.Invoke; _scrubbers.Add(addr, control); CScrubberContainer.AddChild(control); } diff --git a/Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml b/Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml index ad0e31fbfd..632e44a458 100644 --- a/Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml +++ b/Content.Client/Atmos/Monitor/UI/Widgets/PumpControl.xaml @@ -19,7 +19,7 @@ - + + +