mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Add option to mute audio on unfocus (#44377)
This commit is contained in:
parent
efb8c3d2fe
commit
0f9610d748
3 changed files with 3 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
<CheckBox Name="AdminSoundsCheckBox" Text="{Loc 'ui-options-admin-sounds'}" />
|
||||
<CheckBox Name="BwoinkSoundCheckBox" Text="{Loc 'ui-options-bwoink-sound'}" />
|
||||
<CheckBox Name="AudioHrtfCheckBox" Text="{Loc 'ui-options-audio-hrtf'}" />
|
||||
<CheckBox Name="MuteUnfocusedCheckBox" Text="{Loc 'ui-options-mute-unfocused'}" />
|
||||
</BoxContainer>
|
||||
</BoxContainer>
|
||||
<ui:OptionsTabControlRow Name="Control" Access="Public" />
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ public sealed partial class AudioTab : Control
|
|||
Control.AddOptionCheckBox(CCVars.AdminSoundsEnabled, AdminSoundsCheckBox);
|
||||
Control.AddOptionCheckBox(CCVars.BwoinkSoundEnabled, BwoinkSoundCheckBox);
|
||||
Control.AddOptionCheckBox(CCVars.AudioHrtf, AudioHrtfCheckBox);
|
||||
Control.AddOptionCheckBox(CVars.AudioMuteUnfocused, MuteUnfocusedCheckBox);
|
||||
|
||||
Control.Initialize();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ ui-options-restart-sounds = Round Restart Sounds
|
|||
ui-options-event-music = Event Music
|
||||
ui-options-admin-sounds = Play Admin Sounds
|
||||
ui-options-bwoink-sound = Play AHelp Notification Sound
|
||||
ui-options-mute-unfocused = Mute audio when unfocused
|
||||
ui-options-audio-device = Output device:
|
||||
ui-options-audio-device-default = System default
|
||||
ui-options-audio-hrtf = Enable HRTF Audio Processing (Requires Restart)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue