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 +};