From 4ba88483838b56e75f01e67ad6baf37026f0330b Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Thu, 21 Mar 2019 18:03:05 +0100 Subject: [PATCH] Add notify debug command. --- Content.Client/Commands/DebugCommands.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Content.Client/Commands/DebugCommands.cs b/Content.Client/Commands/DebugCommands.cs index b76fe8b948..3ab831798b 100644 --- a/Content.Client/Commands/DebugCommands.cs +++ b/Content.Client/Commands/DebugCommands.cs @@ -1,3 +1,4 @@ +using Content.Client.Interfaces; using Content.Shared.GameObjects.Components.Markers; using SS14.Client.Interfaces.Console; using SS14.Client.Interfaces.GameObjects.Components; @@ -36,4 +37,21 @@ namespace Content.Client.Commands return false; } } + + internal sealed class NotifyCommand : IConsoleCommand + { + public string Command => "notify"; + public string Description => "Send a notify client side."; + public string Help => "notify "; + + public bool Execute(IDebugConsole console, params string[] args) + { + var message = args[0]; + + var notifyManager = IoCManager.Resolve(); + notifyManager.PopupMessage(message); + + return false; + } + } }