Files
Delta-v/Content.Client/Audio/AmbientOverlayCommand.cs
T
Kyle Tyo 965ec9269d Command resolve killing, LEC conversions, and general cleanup. (#38338)
* 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

* :/
2025-08-07 19:16:35 +02:00

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)));
}
}