mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-27 02:01:49 +03:00
@@ -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;
|
||||
|
||||
@@ -12,6 +12,7 @@ sched_gui = {
|
||||
if (profileNamespace getVariable ["statusUI",1] == 1) then {
|
||||
3 cutRsc [if (toLower DZE_UI == "vanilla") then {"playerStatusGUI"} else {"playerStatusGUI_epoch"},"PLAIN",3]; // show the whole HUD
|
||||
} else {
|
||||
[] spawn {uiSleep 2; systemChat (localize "STR_UI_STATUS_ICONS_TOOLTIP");};
|
||||
//This can be removed after friendlies system is removed from player_updateGUI
|
||||
uiNamespace setVariable ["DAYZ_GUI_display",displayNull];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user