From e37d2a984de137f5bc7f360022894fbce39c1721 Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Tue, 21 Apr 2020 14:41:48 -0500 Subject: [PATCH] Add files via upload --- SQF/dayz_code/compile/ui_changeDisplay.sqf | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/SQF/dayz_code/compile/ui_changeDisplay.sqf b/SQF/dayz_code/compile/ui_changeDisplay.sqf index 72d6be37c..b78102b52 100644 --- a/SQF/dayz_code/compile/ui_changeDisplay.sqf +++ b/SQF/dayz_code/compile/ui_changeDisplay.sqf @@ -1,17 +1,19 @@ +private "_ui"; disableSerialization; -if (profileNamespace getVariable ["statusUI",1] == 1) then { - private "_style"; - _style = call { - if (toLower DZE_UI == "vanilla") exitWith {"playerStatusGUI"}; - if (toLower DZE_UI in ["whiteborders","greenborders"]) exitWith {"playerStatusGUI_legacy"}; - "playerStatusGUI_epoch"; // default +DZE_UI = (profileNamespace getVariable ["statusUI",1]); + +if !(DZE_UI == 0) then { + _ui = call { + if (DZE_UI == 1) exitWith {"playerStatusGUI"}; + if (DZE_UI == 2) exitWith {"playerStatusGUI_epoch"}; + "playerStatusGUI_legacy"; }; - 3 cutRsc [_style,"PLAIN",0]; + 3 cutRsc [_ui,"PLAIN",0]; call player_updateGui; - call ui_initDisplay; - hintSilent ""; + //call ui_initDisplay; // I think this function is old and no longer necessary - JasonTM. + //hintSilent ""; // not sure why this is here. } else { 3 cutRsc ["default","PLAIN",0]; - hintSilent ""; + //hintSilent ""; // or here. };