From a30308915195de73d2f6d95d9eadcecea2f4ae85 Mon Sep 17 00:00:00 2001 From: worldwidesorrow Date: Wed, 12 Feb 2020 04:57:05 -0600 Subject: [PATCH] Update ui_changeDisplay.sqf --- SQF/dayz_code/compile/ui_changeDisplay.sqf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SQF/dayz_code/compile/ui_changeDisplay.sqf b/SQF/dayz_code/compile/ui_changeDisplay.sqf index f924e5881..72d6be37c 100644 --- a/SQF/dayz_code/compile/ui_changeDisplay.sqf +++ b/SQF/dayz_code/compile/ui_changeDisplay.sqf @@ -1,11 +1,17 @@ disableSerialization; if (profileNamespace getVariable ["statusUI",1] == 1) then { - 3 cutRsc [if (toLower DZE_UI == "vanilla") then {"playerStatusGUI"} else {"playerStatusGUI_epoch"},"PLAIN",0]; + private "_style"; + _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",0]; call player_updateGui; call ui_initDisplay; hintSilent ""; } else { 3 cutRsc ["default","PLAIN",0]; hintSilent ""; -}; \ No newline at end of file +};