Files
ss14-wl/Content.Client/Audio/AmbientOverlayCommand.cs
T
Pieter-Jan Briers 5168b5f3d4 IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00

18 lines
505 B
C#

using Robust.Shared.Console;
namespace Content.Client.Audio;
public sealed partial class AmbientOverlayCommand : LocalizedEntityCommands
{
[Dependency] private 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)));
}
}