diff --git a/Content.Client/Sandbox/SandboxSystem.cs b/Content.Client/Sandbox/SandboxSystem.cs index 99a84fa23ba..039f2fed69e 100644 --- a/Content.Client/Sandbox/SandboxSystem.cs +++ b/Content.Client/Sandbox/SandboxSystem.cs @@ -83,6 +83,11 @@ namespace Content.Client.Sandbox RaiseNetworkEvent(new MsgSandboxSuicide()); } + public void ToggleThermalVision() + { + RaiseNetworkEvent(new MsgSandboxThermalVision()); + } + public bool Copy(ICommonSession? session, EntityCoordinates coords, EntityUid uid) { if (!SandboxAllowed) diff --git a/Content.Client/UserInterface/Systems/Sandbox/SandboxUIController.cs b/Content.Client/UserInterface/Systems/Sandbox/SandboxUIController.cs index 8315ad1ded0..425e5576c86 100644 --- a/Content.Client/UserInterface/Systems/Sandbox/SandboxUIController.cs +++ b/Content.Client/UserInterface/Systems/Sandbox/SandboxUIController.cs @@ -1,4 +1,4 @@ -using System.Numerics; +using System.Numerics; using Content.Client.Administration.Managers; using Content.Client.Gameplay; using Content.Client.Sandbox; @@ -137,6 +137,7 @@ public sealed class SandboxUIController : UIController, IOnStateChanged _sandbox.ToggleSubFloor(); _window.ShowMarkersButton.OnPressed += _ => _sandbox.ShowMarkers(); _window.ShowBbButton.OnPressed += _ => _sandbox.ShowBb(); + _window.ToggleThermalVisionButton.OnToggled += _ => _sandbox.ToggleThermalVision(); } private void CheckSandboxVisibility() diff --git a/Content.Client/UserInterface/Systems/Sandbox/Windows/SandboxWindow.xaml b/Content.Client/UserInterface/Systems/Sandbox/Windows/SandboxWindow.xaml index bec1d6b4d6f..5a7e940302f 100644 --- a/Content.Client/UserInterface/Systems/Sandbox/Windows/SandboxWindow.xaml +++ b/Content.Client/UserInterface/Systems/Sandbox/Windows/SandboxWindow.xaml @@ -1,4 +1,4 @@ -