]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Client commands: clean up and localize (#22897)
authorPrPleGoo <PrPleGoo@users.noreply.github.com>
Wed, 3 Jan 2024 22:29:37 +0000 (23:29 +0100)
committerGitHub <noreply@github.com>
Wed, 3 Jan 2024 22:29:37 +0000 (17:29 -0500)
* action commands

* atmos debug commands

* comming

* credits command

* debug commands

* usage

* usings

* debug pathfinding command

* grouping entity menu command

* hide mechanisms command

* commit

* mapping client side setup command

* open ahelp command

* set menu visibility command

* commit

* show mechanisms command

* toggle health overlay command

* toggle outline command

* stage

* disable once

* ioc

* namespaces

* WriteError

* clean up command usage

* don't abbriviate

* ActionsCommands

* AtmosDebugCommands

* the rest

* oops

* undo

28 files changed:
Content.Client/Commands/ActionsCommands.cs
Content.Client/Commands/AtmosDebugCommands.cs
Content.Client/Commands/CreditsCommand.cs
Content.Client/Commands/DebugCommands.cs
Content.Client/Commands/DebugPathfindingCommand.cs
Content.Client/Commands/GroupingEntityMenuCommand.cs
Content.Client/Commands/HideMechanismsCommand.cs
Content.Client/Commands/MappingClientSideSetupCommand.cs
Content.Client/Commands/OpenAHelpCommand.cs
Content.Client/Commands/SetMenuVisibilityCommand.cs
Content.Client/Commands/ShowMechanismsCommand.cs
Content.Client/Commands/ToggleHealthOverlayCommand.cs
Content.Client/Commands/ToggleOutlineCommand.cs
Content.Client/Commands/ZoomCommand.cs
Resources/Locale/en-US/commands/actions-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/atmos-debug-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/credits-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/debug-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/debug-pathfinding-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/grouping-entity-menu-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/hide-mechanisms-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/mapping-client-side-setup-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/open-a-help-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/set-menu-visibility-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/show-mechanisms-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/toggle-health-overlay-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/toggle-outline-command.ftl [new file with mode: 0644]
Resources/Locale/en-US/commands/zoom-command.ftl

index f8eb67d78a34507f4f86180de3abf62e3d00893c..3d8e906e09e0dd97573ed5e779cadb505a1b5091 100644 (file)
@@ -1,4 +1,4 @@
-using Content.Client.Actions;
+using Content.Client.Actions;
 using Content.Client.Mapping;
 using Content.Shared.Administration;
 using Robust.Shared.Console;
@@ -12,11 +12,8 @@ namespace Content.Client.Commands;
 public sealed class SaveActionsCommand : IConsoleCommand
 {
     public string Command => "saveacts";
-
     public string Description => "Saves the current action toolbar assignments to a file";
-
     public string Help => $"Usage: {Command} <user resource path>";
-
     public void Execute(IConsoleShell shell, string argStr, string[] args)
     {
         if (args.Length != 1)
@@ -38,15 +35,15 @@ public sealed class SaveActionsCommand : IConsoleCommand
 */
 
 [AnyCommand]
-public sealed class LoadActionsCommand : IConsoleCommand
+public sealed class LoadActionsCommand : LocalizedCommands
 {
-    public string Command => "loadacts";
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
 
-    public string Description => "Loads action toolbar assignments from a user-file.";
+    public override string Command => "loadacts";
 
-    public string Help => $"Usage: {Command} <user resource path>";
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
 
-    public void Execute(IConsoleShell shell, string argStr, string[] args)
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
         if (args.Length != 1)
         {
@@ -56,33 +53,35 @@ public sealed class LoadActionsCommand : IConsoleCommand
 
         try
         {
-            EntitySystem.Get<ActionsSystem>().LoadActionAssignments(args[0], true);
+            _entitySystemManager.GetEntitySystem<ActionsSystem>().LoadActionAssignments(args[0], true);
         }
         catch
         {
-            shell.WriteLine("Failed to load action assignments");
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error"));
         }
     }
 }
 
 [AnyCommand]
-public sealed class LoadMappingActionsCommand : IConsoleCommand
+public sealed class LoadMappingActionsCommand : LocalizedCommands
 {
-    public string Command => "loadmapacts";
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
 
-    public string Description => "Loads the mapping preset action toolbar assignments.";
+    public const string CommandName = "loadmapacts";
 
-    public string Help => $"Usage: {Command}";
+    public override string Command => CommandName;
 
-    public void Execute(IConsoleShell shell, string argStr, string[] args)
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
         try
         {
-            EntitySystem.Get<MappingSystem>().LoadMappingActions();
+            _entitySystemManager.GetEntitySystem<MappingSystem>().LoadMappingActions();
         }
         catch
         {
-            shell.WriteLine("Failed to load action assignments");
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error"));
         }
     }
 }
index ba95e74287820188aaf6efbb893e163736abb5c7..b6f1aab09bee2476aa7ec227134de68f4ce13a87 100644 (file)
-using JetBrains.Annotations;
-using Content.Shared.Atmos;
-using System;
 using Content.Client.Atmos.EntitySystems;
+using Content.Shared.Atmos;
+using JetBrains.Annotations;
 using Robust.Shared.Console;
-using Robust.Shared.GameObjects;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+[UsedImplicitly]
+internal sealed class AtvRangeCommand : LocalizedCommands
 {
-    [UsedImplicitly]
-    internal sealed class AtvRangeCommand : IConsoleCommand
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+
+    public override string Command => "atvrange";
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        public string Command => "atvrange";
-        public string Description => "Sets the atmos debug range (as two floats, start [red] and end [blue])";
-        public string Help => "atvrange <start> <end>";
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
+        if (args.Length != 2)
         {
-            if (args.Length != 2)
-            {
-                shell.WriteLine(Help);
-                return;
-            }
-            if (!float.TryParse(args[0], out var xStart))
-            {
-                shell.WriteLine("Bad float START");
-                return;
-            }
-            if (!float.TryParse(args[1], out var xEnd))
-            {
-                shell.WriteLine("Bad float END");
-                return;
-            }
-            if (xStart == xEnd)
-            {
-                shell.WriteLine("Scale cannot be zero, as this would cause a division by zero in AtmosDebugOverlay.");
-                return;
-            }
-            var sys = EntitySystem.Get<AtmosDebugOverlaySystem>();
-            sys.CfgBase = xStart;
-            sys.CfgScale = xEnd - xStart;
+            shell.WriteLine(Help);
+            return;
         }
+        if (!float.TryParse(args[0], out var xStart))
+        {
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error-start"));
+            return;
+        }
+        if (!float.TryParse(args[1], out var xEnd))
+        {
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error-end"));
+            return;
+        }
+        if (xStart == xEnd)
+        {
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error-zero"));
+            return;
+        }
+        var sys = _entitySystemManager.GetEntitySystem<AtmosDebugOverlaySystem>();
+        sys.CfgBase = xStart;
+        sys.CfgScale = xEnd - xStart;
     }
+}
 
-    [UsedImplicitly]
-    internal sealed class AtvModeCommand : IConsoleCommand
+[UsedImplicitly]
+internal sealed class AtvModeCommand : LocalizedCommands
+{
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+
+    public override string Command => "atvmode";
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        public string Command => "atvmode";
-        public string Description => "Sets the atmos debug mode. This will automatically reset the scale.";
-        public string Help => "atvmode <TotalMoles/GasMoles/Temperature> [<gas ID (for GasMoles)>]";
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
+        if (args.Length < 1)
+        {
+            shell.WriteLine(Help);
+            return;
+        }
+        if (!Enum.TryParse<AtmosDebugOverlayMode>(args[0], out var xMode))
+        {
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error-invalid"));
+            return;
+        }
+        int xSpecificGas = 0;
+        float xBase = 0;
+        float xScale = Atmospherics.MolesCellStandard * 2;
+        if (xMode == AtmosDebugOverlayMode.GasMoles)
         {
-            if (args.Length < 1)
+            if (args.Length != 2)
             {
-                shell.WriteLine(Help);
+                shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error-target-gas"));
                 return;
             }
-            if (!Enum.TryParse<AtmosDebugOverlayMode>(args[0], out var xMode))
+            if (!AtmosCommandUtils.TryParseGasID(args[1], out xSpecificGas))
             {
-                shell.WriteLine("Invalid mode");
+                shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error-out-of-range"));
                 return;
             }
-            int xSpecificGas = 0;
-            float xBase = 0;
-            float xScale = Atmospherics.MolesCellStandard * 2;
-            if (xMode == AtmosDebugOverlayMode.GasMoles)
+        }
+        else
+        {
+            if (args.Length != 1)
             {
-                if (args.Length != 2)
-                {
-                    shell.WriteLine("A target gas must be provided for this mode.");
-                    return;
-                }
-                if (!AtmosCommandUtils.TryParseGasID(args[1], out xSpecificGas))
-                {
-                    shell.WriteLine("Gas ID not parsable or out of range.");
-                    return;
-                }
+                shell.WriteLine(LocalizationManager.GetString($"cmd-{Command}-error-info"));
+                return;
             }
-            else
+            if (xMode == AtmosDebugOverlayMode.Temperature)
             {
-                if (args.Length != 1)
-                {
-                    shell.WriteLine("No further information is required for this mode.");
-                    return;
-                }
-                if (xMode == AtmosDebugOverlayMode.Temperature)
-                {
-                    // Red is 100C, Green is 20C, Blue is -60C
-                    xBase = Atmospherics.T20C + 80;
-                    xScale = -160;
-                }
+                // Red is 100C, Green is 20C, Blue is -60C
+                xBase = Atmospherics.T20C + 80;
+                xScale = -160;
             }
-            var sys = EntitySystem.Get<AtmosDebugOverlaySystem>();
-            sys.CfgMode = xMode;
-            sys.CfgSpecificGas = xSpecificGas;
-            sys.CfgBase = xBase;
-            sys.CfgScale = xScale;
         }
+        var sys = _entitySystemManager.GetEntitySystem<AtmosDebugOverlaySystem>();
+        sys.CfgMode = xMode;
+        sys.CfgSpecificGas = xSpecificGas;
+        sys.CfgBase = xBase;
+        sys.CfgScale = xScale;
     }
+}
 
-    [UsedImplicitly]
-    internal sealed class AtvCBMCommand : IConsoleCommand
+[UsedImplicitly]
+internal sealed class AtvCBMCommand : LocalizedCommands
+{
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+
+    public override string Command => "atvcbm";
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        public string Command => "atvcbm";
-        public string Description => "Changes from red/green/blue to greyscale";
-        public string Help => "atvcbm <true/false>";
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
+        if (args.Length != 1)
         {
-            if (args.Length != 1)
-            {
-                shell.WriteLine(Help);
-                return;
-            }
-            if (!bool.TryParse(args[0], out var xFlag))
-            {
-                shell.WriteLine("Invalid flag");
-                return;
-            }
-            var sys = EntitySystem.Get<AtmosDebugOverlaySystem>();
-            sys.CfgCBM = xFlag;
+            shell.WriteLine(Help);
+            return;
+        }
+        if (!bool.TryParse(args[0], out var xFlag))
+        {
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error"));
+            return;
         }
+        var sys = _entitySystemManager.GetEntitySystem<AtmosDebugOverlaySystem>();
+        sys.CfgCBM = xFlag;
     }
 }
index f61c80c1d52c4a0843486342c7207792fea1f0ed..12f461cefeec2674ba8e4e76698caaa2b4480dd7 100644 (file)
@@ -1,21 +1,19 @@
 using Content.Client.Credits;
-using Content.Client.UserInterface;
 using Content.Shared.Administration;
 using JetBrains.Annotations;
 using Robust.Shared.Console;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+[UsedImplicitly, AnyCommand]
+public sealed class CreditsCommand : LocalizedCommands
 {
-    [UsedImplicitly, AnyCommand]
-    public sealed class CreditsCommand : IConsoleCommand
-    {
-        public string Command => "credits";
-        public string Description => "Opens the credits window";
-        public string Help => "credits";
+    public override string Command => "credits";
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
-        {
-            new CreditsWindow().Open();
-        }
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
+    {
+        new CreditsWindow().Open();
     }
 }
index a29a090ce0a2b84d7810907b6f994455f1baefd3..20d763a0e90c7dcf3247c81a56b2ad2cc90664e7 100644 (file)
@@ -6,66 +6,71 @@ using Robust.Client.GameObjects;
 using Robust.Shared.Console;
 using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+internal sealed class ShowMarkersCommand : LocalizedCommands
 {
-    internal sealed class ShowMarkersCommand : IConsoleCommand
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+
+    public override string Command => "showmarkers";
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        // ReSharper disable once StringLiteralTypo
-        public string Command => "showmarkers";
-        public string Description => "Toggles visibility of markers such as spawn points.";
-        public string Help => "";
+        _entitySystemManager.GetEntitySystem<MarkerSystem>().MarkersVisible ^= true;
+    }
+}
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
-        {
-            IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<MarkerSystem>().MarkersVisible ^= true;
-        }
+internal sealed class ShowSubFloor : LocalizedCommands
+{
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+
+    public override string Command => "showsubfloor";
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
+    {
+        _entitySystemManager.GetEntitySystem<SubFloorHideSystem>().ShowAll ^= true;
     }
+}
 
-    internal sealed class ShowSubFloor : IConsoleCommand
+internal sealed class ShowSubFloorForever : LocalizedCommands
+{
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+
+    public const string CommandName = "showsubfloorforever";
+    public override string Command => CommandName;
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        // ReSharper disable once StringLiteralTypo
-        public string Command => "showsubfloor";
-        public string Description => "Makes entities below the floor always visible.";
-        public string Help => $"Usage: {Command}";
+        _entitySystemManager.GetEntitySystem<SubFloorHideSystem>().ShowAll = true;
+
+        var entMan = IoCManager.Resolve<IEntityManager>();
+        var components = entMan.EntityQuery<SubFloorHideComponent, SpriteComponent>(true);
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
+        foreach (var (_, sprite) in components)
         {
-            IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<SubFloorHideSystem>().ShowAll ^= true;
+            sprite.DrawDepth = (int) DrawDepth.Overlays;
         }
     }
+}
 
-    internal sealed class ShowSubFloorForever : IConsoleCommand
-    {
-        // ReSharper disable once StringLiteralTypo
-        public string Command => "showsubfloorforever";
-        public string Description => "Makes entities below the floor always visible until the client is restarted.";
-        public string Help => $"Usage: {Command}";
-
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
-        {
-            EntitySystem.Get<SubFloorHideSystem>().ShowAll = true;
+internal sealed class NotifyCommand : LocalizedCommands
+{
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
 
-            var entMan = IoCManager.Resolve<IEntityManager>();
-            var components = entMan.EntityQuery<SubFloorHideComponent, SpriteComponent>(true);
+    public override string Command => "notify";
 
-            foreach (var (_, sprite) in components)
-            {
-                sprite.DrawDepth = (int) DrawDepth.Overlays;
-            }
-        }
-    }
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
 
-    internal sealed class NotifyCommand : IConsoleCommand
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        public string Command => "notify";
-        public string Description => "Send a notify client side.";
-        public string Help => "notify <message>";
+        var message = args[0];
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
-        {
-            var message = args[0];
-
-            IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<PopupSystem>().PopupCursor(message);
-        }
+        _entitySystemManager.GetEntitySystem<PopupSystem>().PopupCursor(message);
     }
 }
index 9071ea40a7fb5e3cff41be95a5538cf6f68a4271..e02b6dcbbda4a07f29db42b5fa34c38a1521be35 100644 (file)
@@ -1,61 +1,61 @@
-using System.Linq;
 using Content.Client.NPC;
 using Content.Shared.NPC;
 using JetBrains.Annotations;
 using Robust.Shared.Console;
+using System.Linq;
+
+namespace Content.Client.Commands;
 
-namespace Content.Client.Commands
+[UsedImplicitly]
+public sealed class DebugPathfindingCommand : LocalizedCommands
 {
-    [UsedImplicitly]
-    public sealed class DebugPathfindingCommand : IConsoleCommand
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+
+    public override string Command => "pathfinder";
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        // ReSharper disable once StringLiteralTypo
-        public string Command => "pathfinder";
-        public string Description => "Toggles visibility of pathfinding debuggers.";
-        public string Help => "pathfinder [options]";
+        var system = _entitySystemManager.GetEntitySystem<PathfindingSystem>();
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
+        if (args.Length == 0)
         {
-            var system = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<PathfindingSystem>();
+            system.Modes = PathfindingDebugMode.None;
+            return;
+        }
 
-            if (args.Length == 0)
+        foreach (var arg in args)
+        {
+            if (!Enum.TryParse<PathfindingDebugMode>(arg, out var mode))
             {
-                system.Modes = PathfindingDebugMode.None;
-                return;
+                shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error", ("arg", arg)));
+                continue;
             }
 
-            foreach (var arg in args)
-            {
-                if (!Enum.TryParse<PathfindingDebugMode>(arg, out var mode))
-                {
-                    shell.WriteError($"Unrecognised pathfinder args {arg}");
-                    continue;
-                }
-
-                system.Modes ^= mode;
-                shell.WriteLine($"Toggled {arg} to {(system.Modes & mode) != 0x0}");
-            }
+            system.Modes ^= mode;
+            shell.WriteLine(LocalizationManager.GetString($"cmd-{Command}-notify", ("arg", arg), ("newMode", (system.Modes & mode) != 0x0)));
         }
+    }
 
-        public CompletionResult GetCompletion(IConsoleShell shell, string[] args)
+    public CompletionResult GetCompletion(IConsoleShell shell, string[] args)
+    {
+        if (args.Length > 1)
         {
-            if (args.Length > 1)
-            {
-                return CompletionResult.Empty;
-            }
-
-            var values = Enum.GetValues<PathfindingDebugMode>().ToList();
-            var options = new List<CompletionOption>();
+            return CompletionResult.Empty;
+        }
 
-            foreach (var val in values)
-            {
-                if (val == PathfindingDebugMode.None)
-                    continue;
+        var values = Enum.GetValues<PathfindingDebugMode>().ToList();
+        var options = new List<CompletionOption>();
 
-                options.Add(new CompletionOption(val.ToString()));
-            }
+        foreach (var val in values)
+        {
+            if (val == PathfindingDebugMode.None)
+                continue;
 
-            return CompletionResult.FromOptions(options);
+            options.Add(new CompletionOption(val.ToString()));
         }
+
+        return CompletionResult.FromOptions(options);
     }
 }
index 92315735ec2095e21ee78284624b3b88e05c2459..3bd2ca41e667dc203b6d691a4c46400778497635 100644 (file)
@@ -2,42 +2,40 @@ using Content.Client.ContextMenu.UI;
 using Content.Shared.CCVar;
 using Robust.Shared.Configuration;
 using Robust.Shared.Console;
-using Robust.Shared.IoC;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+public sealed class GroupingEntityMenuCommand : LocalizedCommands
 {
-    public sealed class GroupingEntityMenuCommand : IConsoleCommand
+    [Dependency] private readonly IConfigurationManager _configurationManager = default!;
+
+    public override string Command => "entitymenug";
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command), ("groupingTypesCount", EntityMenuUIController.GroupingTypesCount));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        public string Command => "entitymenug";
+        if (args.Length != 1)
+        {
+            shell.WriteLine(Help);
+            return;
+        }
 
-        public string Description => "Sets the entity menu grouping type.";
+        if (!int.TryParse(args[0], out var id))
+        {
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error", ("arg", args[0])));
+            return;
+        }
 
-        public string Help => $"Usage: entitymenug <0:{EntityMenuUIController.GroupingTypesCount}>";
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
+        if (id < 0 || id > EntityMenuUIController.GroupingTypesCount - 1)
         {
-            if (args.Length != 1)
-            {
-                shell.WriteLine(Help);
-                return;
-            }
-
-            if (!int.TryParse(args[0], out var id))
-            {
-                shell.WriteLine($"{args[0]} is not a valid integer.");
-                return;
-            }
-
-            if (id < 0 ||id > EntityMenuUIController.GroupingTypesCount - 1)
-            {
-                shell.WriteLine($"{args[0]} is not a valid integer.");
-                return;
-            }
-
-            var configurationManager = IoCManager.Resolve<IConfigurationManager>();
-            var cvar = CCVars.EntityMenuGroupingType;
-
-            configurationManager.SetCVar(cvar, id);
-            shell.WriteLine($"Context Menu Grouping set to type: {configurationManager.GetCVar(cvar)}");
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error", ("arg", args[0])));
+            return;
         }
+
+        var cvar = CCVars.EntityMenuGroupingType;
+
+        _configurationManager.SetCVar(cvar, id);
+        shell.WriteLine(LocalizationManager.GetString($"cmd-{Command}-notify", ("cvar", _configurationManager.GetCVar(cvar))));
     }
 }
index 28433d2337f6af198638b6ada7955f8316d4e15f..5f9afc78b982348133e2ba79695972bd1cf7826c 100644 (file)
@@ -1,46 +1,45 @@
-using Content.Shared.Body.Organ;
-using Robust.Client.Console;
+using Content.Shared.Body.Organ;
 using Robust.Client.GameObjects;
 using Robust.Shared.Console;
 using Robust.Shared.Containers;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+public sealed class HideMechanismsCommand : LocalizedCommands
 {
-    public sealed class HideMechanismsCommand : IConsoleCommand
+    [Dependency] private readonly IEntityManager _entityManager = default!;
+
+    public override string Command => "hidemechanisms";
+
+    public override string Description => LocalizationManager.GetString($"cmd-{Command}-desc", ("showMechanismsCommand", ShowMechanismsCommand.CommandName));
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        public string Command => "hidemechanisms";
-        public string Description => $"Reverts the effects of {ShowMechanismsCommand.CommandName}";
-        public string Help => $"{Command}";
+        var containerSys = _entityManager.System<SharedContainerSystem>();
+        var query = _entityManager.AllEntityQueryEnumerator<OrganComponent>();
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
+        while (query.MoveNext(out var uid, out _))
         {
-            var entityManager = IoCManager.Resolve<IEntityManager>();
-            var containerSys = entityManager.System<SharedContainerSystem>();
-            var query = entityManager.AllEntityQueryEnumerator<OrganComponent>();
-
-            while (query.MoveNext(out var uid, out _))
+            if (!_entityManager.TryGetComponent(uid, out SpriteComponent? sprite))
             {
-                if (!entityManager.TryGetComponent(uid, out SpriteComponent? sprite))
-                {
-                    continue;
-                }
+                continue;
+            }
 
-                sprite.ContainerOccluded = false;
+            sprite.ContainerOccluded = false;
 
-                var tempParent = uid;
-                while (containerSys.TryGetContainingContainer(tempParent, out var container))
+            var tempParent = uid;
+            while (containerSys.TryGetContainingContainer(tempParent, out var container))
+            {
+                if (!container.ShowContents)
                 {
-                    if (!container.ShowContents)
-                    {
-                        sprite.ContainerOccluded = true;
-                        break;
-                    }
-
-                    tempParent = container.Owner;
+                    sprite.ContainerOccluded = true;
+                    break;
                 }
-            }
 
-            IoCManager.Resolve<IClientConsoleHost>().ExecuteCommand("hidecontainedcontext");
+                tempParent = container.Owner;
+            }
         }
     }
 }
index a90afc5b9c0c3cc524be366ac22bc631e28b7e16..39268c6284782c7b609cce7be16ebc79f0d9b25e 100644 (file)
@@ -1,33 +1,28 @@
-using JetBrains.Annotations;
-using System;
 using Content.Client.Markers;
+using JetBrains.Annotations;
 using Robust.Client.Graphics;
 using Robust.Shared.Console;
-using Robust.Shared.GameObjects;
 
 namespace Content.Client.Commands;
 
-/// <summary>
-/// Sent by mapping command to client.
-/// This is because the debug commands for some of these options are on toggles.
-/// </summary>
 [UsedImplicitly]
-internal sealed class MappingClientSideSetupCommand : IConsoleCommand
+internal sealed class MappingClientSideSetupCommand : LocalizedCommands
 {
-    // ReSharper disable once StringLiteralTypo
-    public string Command => "mappingclientsidesetup";
-    public string Description => "Sets up the lighting control and such settings client-side. Sent by 'mapping' to client.";
-    public string Help => "";
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+    [Dependency] private readonly ILightManager _lightManager = default!;
+
+    public override string Command => "mappingclientsidesetup";
+
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
 
-    public void Execute(IConsoleShell shell, string argStr, string[] args)
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
-        var mgr = IoCManager.Resolve<ILightManager>();
-        if (!mgr.LockConsoleAccess)
+        if (!_lightManager.LockConsoleAccess)
         {
-            EntitySystem.Get<MarkerSystem>().MarkersVisible = true;
-            mgr.Enabled = false;
-            shell.ExecuteCommand("showsubfloorforever");
-            shell.ExecuteCommand("loadmapacts");
+            _entitySystemManager.GetEntitySystem<MarkerSystem>().MarkersVisible = true;
+            _lightManager.Enabled = false;
+            shell.ExecuteCommand(ShowSubFloorForever.CommandName);
+            shell.ExecuteCommand(LoadMappingActionsCommand.CommandName);
         }
     }
 }
index 3d098f28a76d1d3765c2965d969e019f70bdb459..114ca51bc92a014e54872c2f645e2e38e91d137d 100644 (file)
@@ -1,45 +1,41 @@
-using System;
-using Content.Client.Administration;
-using Content.Client.Administration.Systems;
 using Content.Client.UserInterface.Systems.Bwoink;
-using Content.Client.UserInterface.Systems.EscapeMenu;
 using Content.Shared.Administration;
 using Robust.Client.UserInterface;
 using Robust.Shared.Console;
-using Robust.Shared.GameObjects;
 using Robust.Shared.Network;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+[AnyCommand]
+public sealed class OpenAHelpCommand : LocalizedCommands
 {
-    [AnyCommand]
-    public sealed class OpenAHelpCommand : IConsoleCommand
-    {
-        public string Command => "openahelp";
-        public string Description => $"Opens AHelp channel for a given NetUserID, or your personal channel if none given.";
-        public string Help => $"{Command} [<netuserid>]";
+    [Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
+
+    public override string Command => "openahelp";
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
+    {
+        if (args.Length >= 2)
         {
-            if (args.Length >= 2)
-            {
-                shell.WriteLine(Help);
-                return;
-            }
-            if (args.Length == 0)
+            shell.WriteLine(Help);
+            return;
+        }
+        if (args.Length == 0)
+        {
+            _userInterfaceManager.GetUIController<AHelpUIController>().Open();
+        }
+        else
+        {
+            if (Guid.TryParse(args[0], out var guid))
             {
-                IoCManager.Resolve<IUserInterfaceManager>().GetUIController<AHelpUIController>().Open();
+                var targetUser = new NetUserId(guid);
+                _userInterfaceManager.GetUIController<AHelpUIController>().Open(targetUser);
             }
             else
             {
-                if (Guid.TryParse(args[0], out var guid))
-                {
-                    var targetUser = new NetUserId(guid);
-                    IoCManager.Resolve<IUserInterfaceManager>().GetUIController<AHelpUIController>().Open(targetUser);
-                }
-                else
-                {
-                    shell.WriteLine("Bad GUID!");
-                }
+                shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error"));
             }
         }
     }
index 91df58a37496375e7d72db8df793c34f951969ab..ddfb0b16920628a247fe64d6a48197396fe6ed7a 100644 (file)
@@ -1,54 +1,54 @@
 using Content.Client.Verbs;
 using JetBrains.Annotations;
 using Robust.Shared.Console;
-using Robust.Shared.GameObjects;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+[UsedImplicitly]
+internal sealed class SetMenuVisibilityCommand : LocalizedCommands
 {
-    [UsedImplicitly]
-    internal sealed class SetMenuVisibilityCommand : IConsoleCommand
-    {
-        public const string CommandName = "menuvis";
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
 
-        public string Command => CommandName;
-        public string Description => "Set restrictions about what entities to show on the entity context menu.";
-        public string Help => $"Usage: {Command} [NoFoV] [InContainer] [Invisible] [All]";
+    public override string Command => "menuvis";
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
-        {
-            if (!TryParseArguments(shell, args, out var visibility))
-                return;
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
 
-            EntitySystem.Get<VerbSystem>().Visibility = visibility;
-        }
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
+    {
+        if (!TryParseArguments(shell, args, out var visibility))
+            return;
 
-        private bool TryParseArguments(IConsoleShell shell, string[] args, out MenuVisibility visibility)
-        {
-            visibility = MenuVisibility.Default;
+        _entitySystemManager.GetEntitySystem<VerbSystem>().Visibility = visibility;
+    }
+
+    private bool TryParseArguments(IConsoleShell shell, string[] args, out MenuVisibility visibility)
+    {
+        visibility = MenuVisibility.Default;
 
-            foreach (var arg in args)
+        foreach (var arg in args)
+        {
+            switch (arg.ToLower())
             {
-                switch (arg.ToLower())
-                {
-                    case "nofov":
-                        visibility |= MenuVisibility.NoFov;
-                        break;
-                    case "incontainer":
-                        visibility |= MenuVisibility.InContainer;
-                        break;
-                    case "invisible":
-                        visibility |= MenuVisibility.Invisible;
-                        break;
-                    case "all":
-                        visibility |= MenuVisibility.All;
-                        break;
-                    default:
-                        shell.WriteLine($"Unknown visibility argument '{arg}'. Only 'NoFov', 'InContainer', 'Invisible' or 'All' are valid. Provide no arguments to set to default.");
-                        return false;
-                }
+                // ReSharper disable once StringLiteralTypo
+                case "nofov":
+                    visibility |= MenuVisibility.NoFov;
+                    break;
+                // ReSharper disable once StringLiteralTypo
+                case "incontainer":
+                    visibility |= MenuVisibility.InContainer;
+                    break;
+                case "invisible":
+                    visibility |= MenuVisibility.Invisible;
+                    break;
+                case "all":
+                    visibility |= MenuVisibility.All;
+                    break;
+                default:
+                    shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error", ("arg", arg)));
+                    return false;
             }
-
-            return true;
         }
+
+        return true;
     }
 }
index b94278f8c9efb3c3f26bbc9ae2816e39aca9bf7f..4e3bb17cb6e777343a6f89139caf95459c46a77c 100644 (file)
@@ -1,30 +1,26 @@
-using Content.Shared.Body.Organ;
-using Robust.Client.Console;
+using Content.Shared.Body.Organ;
 using Robust.Client.GameObjects;
 using Robust.Shared.Console;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+public sealed class ShowMechanismsCommand : LocalizedCommands
 {
-    public sealed class ShowMechanismsCommand : IConsoleCommand
-    {
-        public const string CommandName = "showmechanisms";
+    [Dependency] private readonly IEntityManager _entManager = default!;
 
-        // ReSharper disable once StringLiteralTypo
-        public string Command => CommandName;
-        public string Description => "Makes mechanisms visible, even when they shouldn't be.";
-        public string Help => $"{Command}";
+    public const string CommandName = "showmechanisms";
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
-        {
-            var entityManager = IoCManager.Resolve<IEntityManager>();
-            var query = entityManager.AllEntityQueryEnumerator<OrganComponent, SpriteComponent>();
+    public override string Command => CommandName;
 
-            while (query.MoveNext(out _, out var sprite))
-            {
-                sprite.ContainerOccluded = false;
-            }
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
 
-            IoCManager.Resolve<IClientConsoleHost>().ExecuteCommand("showcontainedcontext");
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
+    {
+        var query = _entManager.AllEntityQueryEnumerator<OrganComponent, SpriteComponent>();
+
+        while (query.MoveNext(out _, out var sprite))
+        {
+            sprite.ContainerOccluded = false;
         }
     }
 }
index 76000f42a1a2f0fb5a120c963cc14b19a29739cf..2a9490eb6263437036e8ff767f24e27495feb204 100644 (file)
@@ -1,21 +1,21 @@
-using Content.Client.HealthOverlay;
+using Content.Client.HealthOverlay;
 using Robust.Shared.Console;
-using Robust.Shared.GameObjects;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+public sealed class ToggleHealthOverlayCommand : LocalizedCommands
 {
-    public sealed class ToggleHealthOverlayCommand : IConsoleCommand
-    {
-        public string Command => "togglehealthoverlay";
-        public string Description => "Toggles a health bar above mobs.";
-        public string Help => $"Usage: {Command}";
+    [Dependency] private readonly IEntitySystemManager _entitySystemManager = default!;
+
+    public override string Command => "togglehealthoverlay";
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
-        {
-            var system = EntitySystem.Get<HealthOverlaySystem>();
-            system.Enabled = !system.Enabled;
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
+
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
+    {
+        var system = _entitySystemManager.GetEntitySystem<HealthOverlaySystem>();
+        system.Enabled = !system.Enabled;
 
-            shell.WriteLine($"Health overlay system {(system.Enabled ? "enabled" : "disabled")}.");
-        }
+        shell.WriteLine(LocalizationManager.GetString($"cmd-{Command}-notify", ("state", system.Enabled ? "enabled" : "disabled")));
     }
 }
index 3f02435493e7191f47e2ec10481105aebae7733c..834c3cc995c01903a10a8adf09200920783a6f0b 100644 (file)
@@ -2,27 +2,24 @@ using Content.Shared.Administration;
 using Content.Shared.CCVar;
 using Robust.Shared.Configuration;
 using Robust.Shared.Console;
-using Robust.Shared.IoC;
 
-namespace Content.Client.Commands
+namespace Content.Client.Commands;
+
+[AnyCommand]
+public sealed class ToggleOutlineCommand : LocalizedCommands
 {
-    [AnyCommand]
-    public sealed class ToggleOutlineCommand : IConsoleCommand
-    {
-        public string Command => "toggleoutline";
+    [Dependency] private readonly IConfigurationManager _configurationManager = default!;
 
-        public string Description => "Toggles outline drawing on entities.";
+    public override string Command => "toggleoutline";
 
-        public string Help => "";
+    public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
 
-        public void Execute(IConsoleShell shell, string argStr, string[] args)
-        {
-            var configurationManager = IoCManager.Resolve<IConfigurationManager>();
-            var cvar = CCVars.OutlineEnabled;
-            var old = configurationManager.GetCVar(cvar);
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
+    {
+        var cvar = CCVars.OutlineEnabled;
+        var old = _configurationManager.GetCVar(cvar);
 
-            configurationManager.SetCVar(cvar, !old);
-            shell.WriteLine($"Draw outlines set to: {configurationManager.GetCVar(cvar)}");
-        }
+        _configurationManager.SetCVar(cvar, !old);
+        shell.WriteLine(LocalizationManager.GetString($"cmd-{Command}-notify", ("state", _configurationManager.GetCVar(cvar))));
     }
 }
index 2b8cdcbca97bde54b2e184330a9300d007dc80d1..2bdc85e1fee51e2c9958214623125c387152b99a 100644 (file)
@@ -1,26 +1,23 @@
-using System.Numerics;
 using Content.Client.Movement.Systems;
 using Content.Shared.Movement.Components;
-using Content.Shared.Movement.Systems;
 using JetBrains.Annotations;
 using Robust.Client.Graphics;
 using Robust.Client.Player;
 using Robust.Shared.Console;
+using System.Numerics;
 
 namespace Content.Client.Commands;
 
 [UsedImplicitly]
-public sealed class ZoomCommand : IConsoleCommand
+public sealed class ZoomCommand : LocalizedCommands
 {
-    [Dependency] private readonly IEntityManager _entManager = default!;
-    [Dependency] private readonly IEyeManager _eyeMan = default!;
+    [Dependency] private readonly IEntityManager _entityManager = default!;
+    [Dependency] private readonly IEyeManager _eyeManager = default!;
     [Dependency] private readonly IPlayerManager _playerManager = default!;
 
-    public string Command => "zoom";
-    public string Description => Loc.GetString("zoom-command-description");
-    public string Help => Loc.GetString("zoom-command-help");
+    public override string Command => "zoom";
 
-    public void Execute(IConsoleShell shell, string argStr, string[] args)
+    public override void Execute(IConsoleShell shell, string argStr, string[] args)
     {
         Vector2 zoom;
         if (args.Length is not (1 or 2))
@@ -31,7 +28,7 @@ public sealed class ZoomCommand : IConsoleCommand
 
         if (!float.TryParse(args[0], out var arg0))
         {
-            shell.WriteError(Loc.GetString("cmd-parse-failure-float", ("arg", args[0])));
+            shell.WriteError(LocalizationManager.GetString("cmd-parse-failure-float", ("arg", args[0])));
             return;
         }
 
@@ -39,7 +36,7 @@ public sealed class ZoomCommand : IConsoleCommand
             zoom = new(arg0, arg0);
         else
         {
-            shell.WriteError(Loc.GetString("zoom-command-error"));
+            shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error"));
             return;
         }
 
@@ -47,7 +44,7 @@ public sealed class ZoomCommand : IConsoleCommand
         {
             if (!float.TryParse(args[1], out var arg1))
             {
-                shell.WriteError(Loc.GetString("cmd-parse-failure-float", ("arg", args[1])));
+                shell.WriteError(LocalizationManager.GetString("cmd-parse-failure-float", ("arg", args[1])));
                 return;
             }
 
@@ -55,19 +52,19 @@ public sealed class ZoomCommand : IConsoleCommand
                 zoom.Y = arg1;
             else
             {
-                shell.WriteError(Loc.GetString("zoom-command-error"));
+                shell.WriteError(LocalizationManager.GetString($"cmd-{Command}-error"));
                 return;
             }
         }
 
-        var player = _playerManager.LocalPlayer?.ControlledEntity;
+        var player = _playerManager.LocalSession?.AttachedEntity;
 
-        if (_entManager.TryGetComponent<ContentEyeComponent>(player, out var content))
+        if (_entityManager.TryGetComponent<ContentEyeComponent>(player, out var content))
         {
-            _entManager.System<ContentEyeSystem>().RequestZoom(player.Value, zoom, true, content);
+            _entityManager.System<ContentEyeSystem>().RequestZoom(player.Value, zoom, true, content);
             return;
         }
 
-        _eyeMan.CurrentEye.Zoom = zoom;
+        _eyeManager.CurrentEye.Zoom = zoom;
     }
 }
diff --git a/Resources/Locale/en-US/commands/actions-command.ftl b/Resources/Locale/en-US/commands/actions-command.ftl
new file mode 100644 (file)
index 0000000..b369da0
--- /dev/null
@@ -0,0 +1,7 @@
+cmd-loadacts-desc = Loads action toolbar assignments from a user-file.
+cmd-loadacts-help = Usage: {$command} <user resource path>
+cmd-loadacts-error = Failed to load action assignments
+
+cmd-loadmapacts-desc = Loads the mapping preset action toolbar assignments.
+cmd-loadmapacts-help = Usage: {$command} <user resource path>
+cmd-loadmapacts-error = Failed to load action assignments
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/atmos-debug-command.ftl b/Resources/Locale/en-US/commands/atmos-debug-command.ftl
new file mode 100644 (file)
index 0000000..291a2cf
--- /dev/null
@@ -0,0 +1,16 @@
+cmd-atvrange-desc = Sets the atmos debug range (as two floats, start [red] and end [blue])
+cmd-atvrange-help = Usage: {$command} <start> <end>
+cmd-atvrange-error-start = Bad float START
+cmd-atvrange-error-end = Bad float END
+cmd-atvrange-error-zero = Scale cannot be zero, as this would cause a division by zero in AtmosDebugOverlay.
+
+cmd-atvmode-desc = Sets the atmos debug mode. This will automatically reset the scale.
+cmd-atvmode-help = Usage: {$command} <TotalMoles/GasMoles/Temperature> [<gas ID (for GasMoles)>]
+cmd-atvmode-error-invalid = Invalid mode
+cmd-atvmode-error-target-gas = A target gas must be provided for this mode.
+cmd-atvmode-error-out-of-range = Gas ID not parsable or out of range.
+cmd-atvmode-error-info = No further information is required for this mode.
+
+cmd-atvcbm-desc = Changes from red/green/blue to greyscale
+cmd-atvcbm-help = Usage: {$command} <true/false>
+cmd-atvcbm-error = Invalid flag
diff --git a/Resources/Locale/en-US/commands/credits-command.ftl b/Resources/Locale/en-US/commands/credits-command.ftl
new file mode 100644 (file)
index 0000000..9e506fc
--- /dev/null
@@ -0,0 +1,2 @@
+cmd-credits-desc = Opens the credits window
+cmd-credits-help = Usage: {$command}
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/debug-command.ftl b/Resources/Locale/en-US/commands/debug-command.ftl
new file mode 100644 (file)
index 0000000..a99cc2b
--- /dev/null
@@ -0,0 +1,11 @@
+cmd-showmarkers-desc = Toggles visibility of markers such as spawn points.
+cmd-showmarkers-help = Usage: {$command}
+
+cmd-showsubfloor-desc = Makes entities below the floor always visible.
+cmd-showsubfloor-help = Usage: {$command}
+
+cmd-showsubfloorforever-desc = Makes entities below the floor always visible until the client is restarted.
+cmd-showsubfloorforever-help = Usage: {$command}
+
+cmd-notify-desc = Send a notify client side.
+cmd-notify-help = Usage: {$command} <message>
diff --git a/Resources/Locale/en-US/commands/debug-pathfinding-command.ftl b/Resources/Locale/en-US/commands/debug-pathfinding-command.ftl
new file mode 100644 (file)
index 0000000..c1f0df9
--- /dev/null
@@ -0,0 +1,4 @@
+cmd-pathfinder-desc = Toggles visibility of pathfinding debuggers.
+cmd-pathfinder-help = Usage: {$command} [options]
+cmd-pathfinder-error = Unrecognised pathfinder args {$arg}
+cmd-pathfinder-notify = Toggled {$arg} to {$newMode}
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/grouping-entity-menu-command.ftl b/Resources/Locale/en-US/commands/grouping-entity-menu-command.ftl
new file mode 100644 (file)
index 0000000..eb519ae
--- /dev/null
@@ -0,0 +1,4 @@
+cmd-entitymenug-desc = Sets the entity menu grouping type.
+cmd-entitymenug-help = Usage: {$command} <0:{$groupingTypesCount}>
+cmd-entitymenug-error = {$arg} is not a valid integer.
+cmd-entitymenug-notify = Context Menu Grouping set to type: {$cvar}
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/hide-mechanisms-command.ftl b/Resources/Locale/en-US/commands/hide-mechanisms-command.ftl
new file mode 100644 (file)
index 0000000..75c9cbc
--- /dev/null
@@ -0,0 +1,2 @@
+cmd-hidemechanisms-desc = Reverts the effects of {$showMechanismsCommand}
+cmd-hidemechanisms-help = Usage: {$command}
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/mapping-client-side-setup-command.ftl b/Resources/Locale/en-US/commands/mapping-client-side-setup-command.ftl
new file mode 100644 (file)
index 0000000..955d077
--- /dev/null
@@ -0,0 +1,2 @@
+cmd-mappingclientsidesetup-desc = Sets up the lighting control and such settings client-side. Sent by 'mapping' to client.
+cmd-mappingclientsidesetup-help = Usage: {$command}
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/open-a-help-command.ftl b/Resources/Locale/en-US/commands/open-a-help-command.ftl
new file mode 100644 (file)
index 0000000..a7e0e76
--- /dev/null
@@ -0,0 +1,3 @@
+cmd-openahelp-desc = Opens AHelp channel for a given NetUserID, or your personal channel if none given.
+cmd-openahelp-help = Usage: {$command} [<netuserid>]
+cmd-openahelp-error = Bad GUID!
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/set-menu-visibility-command.ftl b/Resources/Locale/en-US/commands/set-menu-visibility-command.ftl
new file mode 100644 (file)
index 0000000..e3bcd51
--- /dev/null
@@ -0,0 +1,3 @@
+cmd-menuvis-desc = Set restrictions about what entities to show on the entity context menu.
+cmd-menuvis-help = Usage: {Command} [NoFoV] [InContainer] [Invisible] [All]
+cmd-menuvis-error = Unknown visibility argument '{$arg}'. Only 'NoFov', 'InContainer', 'Invisible' or 'All' are valid. Provide no arguments to set to default.
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/show-mechanisms-command.ftl b/Resources/Locale/en-US/commands/show-mechanisms-command.ftl
new file mode 100644 (file)
index 0000000..0512381
--- /dev/null
@@ -0,0 +1,2 @@
+cmd-showmechanisms-desc = Makes mechanisms visible, even when they shouldn't be.
+cmd-showmechanisms-help = Usage: {$command}
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/toggle-health-overlay-command.ftl b/Resources/Locale/en-US/commands/toggle-health-overlay-command.ftl
new file mode 100644 (file)
index 0000000..dd54e11
--- /dev/null
@@ -0,0 +1,3 @@
+cmd-togglehealthoverlay-desc = Toggles a health bar above mobs.
+cmd-togglehealthoverlay-help = Usage: {$command}
+cmd-togglehealthoverlay-notify = Health overlay system {$state}.
\ No newline at end of file
diff --git a/Resources/Locale/en-US/commands/toggle-outline-command.ftl b/Resources/Locale/en-US/commands/toggle-outline-command.ftl
new file mode 100644 (file)
index 0000000..ac323f4
--- /dev/null
@@ -0,0 +1,3 @@
+cmd-toggleoutline-desc = Toggles outline drawing on entities.
+cmd-toggleoutline-help = Usage: {$command}
+cmd-toggleoutline-notify = Draw outlines set to: {$cvar}
\ No newline at end of file
index 981ebe94905e30360f9fd1bb7e8a917e82f7899f..0132f222405465ce8ad46c9b03e510fb92c7a26d 100644 (file)
@@ -1,3 +1,3 @@
-zoom-command-description = Sets the zoom of the main eye.
-zoom-command-help = zoom ( <scale> | <X-scale> <Y-scale> )
-zoom-command-error = scale has to be greater than 0
+cmd-zoom-desc = Sets the zoom of the main eye.
+cmd-zoom-help = zoom ( <scale> | <X-scale> <Y-scale> )
+cmd-zoom-error = scale has to be greater than 0