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"> + + + + + + +