diff --git a/Content.Client/Ghost/GhostSystem.cs b/Content.Client/Ghost/GhostSystem.cs index 09e0331cdf..b701c0d498 100644 --- a/Content.Client/Ghost/GhostSystem.cs +++ b/Content.Client/Ghost/GhostSystem.cs @@ -155,5 +155,10 @@ namespace Content.Client.Ghost { _console.RemoteExecuteCommand(null, "ghostroles"); } + + public void ToggleGhostVisibility() + { + _console.RemoteExecuteCommand(null, "toggleghosts"); + } } } diff --git a/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs b/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs index c379cbf643..9f10d0dfe2 100644 --- a/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs +++ b/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs @@ -99,6 +99,7 @@ public sealed class GhostUIController : UIController, IOnSystemChanged