Files
crystall-punk-14/Content.Client/Audio/AmbientOverlayCommand.cs

18 lines
506 B
C#
Raw Permalink Normal View History

using Robust.Shared.Console;
namespace Content.Client.Audio;
public sealed class AmbientOverlayCommand : LocalizedEntityCommands
{
[Dependency] private readonly AmbientSoundSystem _ambient = default!;
public override string Command => "showambient";
public override void Execute(IConsoleShell shell, string argStr, string[] args)
{
_ambient.OverlayEnabled ^= true;
shell.WriteLine(Loc.GetString($"cmd-showambient-status", ("status", _ambient.OverlayEnabled)));
}
}