mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-06-09 15:06:34 +02:00
5168b5f3d4
* 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
18 lines
505 B
C#
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)));
|
|
}
|
|
}
|