2022-06-03 20:42:35 +10:00
|
|
|
using Robust.Shared.Console;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Audio;
|
|
|
|
|
|
2025-06-17 14:08:12 -04:00
|
|
|
public sealed class AmbientOverlayCommand : LocalizedEntityCommands
|
2022-06-03 20:42:35 +10:00
|
|
|
{
|
2025-06-17 14:08:12 -04:00
|
|
|
[Dependency] private readonly AmbientSoundSystem _ambient = default!;
|
|
|
|
|
|
|
|
|
|
public override string Command => "showambient";
|
|
|
|
|
|
|
|
|
|
public override void Execute(IConsoleShell shell, string argStr, string[] args)
|
2022-06-03 20:42:35 +10:00
|
|
|
{
|
2025-06-17 14:08:12 -04:00
|
|
|
_ambient.OverlayEnabled ^= true;
|
2022-06-03 20:42:35 +10:00
|
|
|
|
2025-06-17 14:08:12 -04:00
|
|
|
shell.WriteLine(Loc.GetString($"cmd-showambient-status", ("status", _ambient.OverlayEnabled)));
|
2022-06-03 20:42:35 +10:00
|
|
|
}
|
|
|
|
|
}
|