mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 21:29:59 +03:00
Add lower volume / earplugs hotkey and status UI icon
This commit is contained in:
18
SQF/dayz_code/compile/player_muteSound.sqf
Normal file
18
SQF/dayz_code/compile/player_muteSound.sqf
Normal 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;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user