Add status icons disabled notification

Vanilla commit:
fe063a8896
This commit is contained in:
ebayShopper
2018-01-17 17:17:33 -05:00
parent 634a01a8d3
commit e04f0fcac5
3 changed files with 12 additions and 2 deletions

View File

@@ -69,7 +69,13 @@ if (isNil "keyboard_keys") then {
_handled = true;
};
_statusUI = {
profileNamespace setVariable ["statusUI",(if (profileNamespace getVariable ["statusUI",1] == 1) then {0} else {1})];
if (profileNamespace getVariable ["statusUI",1] == 1) then {
profileNamespace setVariable ["statusUI",0];
[format[localize "STR_UI_STATUS_ICONS" + " %1",localize "STR_DISABLED"],1] call dayz_rollingMessages;
} else {
profileNamespace setVariable ["statusUI",1];
[format[localize "STR_UI_STATUS_ICONS" + " %1",localize "STR_ENABLED"],1] call dayz_rollingMessages;
};
saveProfileNamespace;
call ui_changeDisplay;
_handled = true;