| 1234567891011121314151617 |
- using Robust.Shared.Console;
- namespace Content.Client.Audio;
- public sealed class AmbientOverlayCommand : IConsoleCommand
- {
- public string Command => "showambient";
- public string Description => "Shows all AmbientSoundComponents in the viewport";
- public string Help => $"{Command}";
- public void Execute(IConsoleShell shell, string argStr, string[] args)
- {
- var system = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<AmbientSoundSystem>();
- system.OverlayEnabled ^= true;
- shell.WriteLine($"Ambient sound overlay set to {system.OverlayEnabled}");
- }
- }
|