mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Update keyboard.sqf
Pressing the F3 increases variable DZE_UI by one each time. The variable gets reset to zero when it reaches 6.
This commit is contained in:
@@ -69,13 +69,10 @@ if (isNil "keyboard_keys") then {
|
|||||||
_handled = true;
|
_handled = true;
|
||||||
};
|
};
|
||||||
_statusUI = {
|
_statusUI = {
|
||||||
if (profileNamespace getVariable ["statusUI",1] == 1) then {
|
DZE_UI = DZE_UI + 1;
|
||||||
profileNamespace setVariable ["statusUI",0];
|
if (DZE_UI == 6) then {DZE_UI = 0; [format[localize "STR_UI_STATUS_ICONS" + " %1",localize "STR_DISABLED"],1] call dayz_rollingMessages;};
|
||||||
[format[localize "STR_UI_STATUS_ICONS" + " %1",localize "STR_DISABLED"],1] call dayz_rollingMessages;
|
if (DZE_UI == 1) then {[format[localize "STR_UI_STATUS_ICONS" + " %1",localize "STR_ENABLED"],1] call dayz_rollingMessages;};
|
||||||
} else {
|
profileNamespace setVariable ["statusUI",DZE_UI];
|
||||||
profileNamespace setVariable ["statusUI",1];
|
|
||||||
[format[localize "STR_UI_STATUS_ICONS" + " %1",localize "STR_ENABLED"],1] call dayz_rollingMessages;
|
|
||||||
};
|
|
||||||
saveProfileNamespace;
|
saveProfileNamespace;
|
||||||
call ui_changeDisplay;
|
call ui_changeDisplay;
|
||||||
_handled = true;
|
_handled = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user