From a857205f8e47de802a3d0c9d72e33778bab42b85 Mon Sep 17 00:00:00 2001 From: Odleer Date: Tue, 10 Mar 2026 11:48:26 +0500 Subject: [PATCH] Port --- .../PointCannons/TargetingConsoleBUI.cs | 7 + .../PointCannons/TargetingConsoleWindow.xaml | 20 +- .../TargetingConsoleWindow.xaml.cs | 3 + .../_Crescent/Hardpoint/HardpointSystem.cs | 66 --- .../PointCannons/PointCannonSystem.cs | 389 ++++++++++-------- .../PointCannons/TargetingConsoleComponent.cs | 8 +- .../Hardpoints/SharedHardpointSystem.cs | 4 - .../PointCannons/TargetingConsoleBUIState.cs | 6 + 8 files changed, 252 insertions(+), 251 deletions(-) diff --git a/Content.Client/_Crescent/PointCannons/TargetingConsoleBUI.cs b/Content.Client/_Crescent/PointCannons/TargetingConsoleBUI.cs index 6ba5ce6dc5c..8c87540289d 100644 --- a/Content.Client/_Crescent/PointCannons/TargetingConsoleBUI.cs +++ b/Content.Client/_Crescent/PointCannons/TargetingConsoleBUI.cs @@ -60,6 +60,8 @@ protected override void Open() _window.OpenCentered(); _window.OnClose += Close; + _window.OnServerRefresh += OnRefreshServer; + _window.Radar.OnRadarClick += (coords) => { _coords = _formSys.ToMapCoordinates(coords).Position; @@ -103,4 +105,9 @@ protected override void UpdateState(BoundUserInterfaceState state) _controlled = consoleState.ControlledCannons; _window?.UpdateState(consoleState); } + + private void OnRefreshServer() + { + SendMessage(new FireControlConsoleRefreshServerMessage()); + } } diff --git a/Content.Client/_Crescent/PointCannons/TargetingConsoleWindow.xaml b/Content.Client/_Crescent/PointCannons/TargetingConsoleWindow.xaml index 23ea68c323e..60369ef28c9 100644 --- a/Content.Client/_Crescent/PointCannons/TargetingConsoleWindow.xaml +++ b/Content.Client/_Crescent/PointCannons/TargetingConsoleWindow.xaml @@ -13,13 +13,29 @@ MaxWidth="300" Margin="5 5 5 5" Orientation="Vertical"> + + + + + + +