From d89a05695b6d6e19cd17eb49d0768edd00e995e6 Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Wed, 12 Feb 2020 04:55:52 -0600 Subject: [PATCH] Update sched_gui.sqf --- SQF/dayz_code/system/scheduler/sched_gui.sqf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/system/scheduler/sched_gui.sqf b/SQF/dayz_code/system/scheduler/sched_gui.sqf index e356d74a7..3cce756a6 100644 --- a/SQF/dayz_code/system/scheduler/sched_gui.sqf +++ b/SQF/dayz_code/system/scheduler/sched_gui.sqf @@ -4,13 +4,18 @@ sched_gui_init = { [false] }; sched_gui = { HIDE_FSM_VARS - private [ "_array", "_initDone" ]; + private [ "_array", "_initDone", "_style"]; _initDone = _this select 0; if ((!_initDone and !isNil 'Dayz_loginCompleted') and {(Dayz_loginCompleted)}) then { 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 + _style = call { + if (toLower DZE_UI == "vanilla") exitWith {"playerStatusGUI";}; + if (toLower DZE_UI in ["whiteborders","greenborders"]) exitWith {"playerStatusGUI_legacy";}; + "playerStatusGUI_epoch"; // default + }; + 3 cutRsc [_style,"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