* i'm just gonna put this here. * I'm just gonna do it. * Update ShowHTNCommand.cs * I feel dumb. * may as well with this too. * this does in fact not work * :/
18 lines
506 B
C#
18 lines
506 B
C#
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)));
|
|
}
|
|
}
|