Added master volume slider in audio options (#2642)

Co-authored-by: Manel Navola <ManelNavola@users.noreply.github.com>
This commit is contained in:
Manel Navola
2020-12-05 21:14:16 +01:00
committed by GitHub
parent 2b59159363
commit 7265c53391
2 changed files with 151 additions and 7 deletions

View File

@@ -1,4 +1,5 @@
using Robust.Client.UserInterface.Controls;
using Robust.Client.Interfaces.Graphics;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Shared.Interfaces.Configuration;
using Robust.Shared.IoC;
@@ -12,6 +13,7 @@ namespace Content.Client.UserInterface
public sealed partial class OptionsMenu : SS14Window
{
[Dependency] private readonly IConfigurationManager _configManager = default!;
[Dependency] private readonly IClydeAudio _clydeAudio = default!;
protected override Vector2? CustomSize => (800, 450);
@@ -31,7 +33,7 @@ namespace Content.Client.UserInterface
{
(graphicsControl = new GraphicsControl(_configManager)),
(rebindControl = new KeyRebindControl()),
(audioControl = new AudioControl(_configManager)),
(audioControl = new AudioControl(_configManager, _clydeAudio)),
}
};