Add lower volume / earplugs hotkey and status UI icon

This commit is contained in:
ebaydayz
2016-04-30 21:19:06 -04:00
parent ba751dad4a
commit ab7254a121
11 changed files with 42 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
private ["_control","_display"];
disableSerialization;
_display = uiNamespace getVariable "DAYZ_GUI_display";
if (!isNil "_display") then {
_control = _display displayCtrl 1204;
if (dayz_soundMuted) then {
dayz_soundMuted = false;
1 fadeSound 1;
_control ctrlShow false;
} else {
dayz_soundMuted = true;
1 fadeSound 0.25;
_control ctrlShow true;
};
};