Client commands: clean up and localize (#22897)
* 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
This commit is contained in:
@@ -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
|
||||
{
|
||||
[UsedImplicitly, AnyCommand]
|
||||
public sealed class CreditsCommand : IConsoleCommand
|
||||
{
|
||||
public string Command => "credits";
|
||||
public string Description => "Opens the credits window";
|
||||
public string Help => "credits";
|
||||
namespace Content.Client.Commands;
|
||||
|
||||
public void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
new CreditsWindow().Open();
|
||||
}
|
||||
[UsedImplicitly, AnyCommand]
|
||||
public sealed class CreditsCommand : LocalizedCommands
|
||||
{
|
||||
public override string Command => "credits";
|
||||
|
||||
public override string Help => LocalizationManager.GetString($"cmd-{Command}-help", ("command", Command));
|
||||
|
||||
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
||||
{
|
||||
new CreditsWindow().Open();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user