mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-12 03:02:56 +03:00
Add loading screen fix by Goose
Thx @IsGoose
This commit is contained in:
@@ -9,7 +9,7 @@ while {true} do {
|
||||
uiSleep 5;
|
||||
endMission "END1";
|
||||
};
|
||||
if ((!isNil "Dayz_loginCompleted") and {(Dayz_loginCompleted)}) exitWith {
|
||||
if ((!isNil "Dayz_loginCompleted") && {(Dayz_loginCompleted)}) exitWith {
|
||||
//diag_log [ __FILE__, __LINE__, "End loop"];
|
||||
|
||||
// Logo watermark: adding a logo in the bottom left corner of the screen with the server name
|
||||
@@ -20,7 +20,7 @@ while {true} do {
|
||||
if (profileNamespace getVariable ["streamerMode",0] == 1) then {_watermark ctrlShow false;};
|
||||
};
|
||||
|
||||
if (dayz_enableRules && (profileNamespace getVariable ["streamerMode",0] == 0)) then {
|
||||
if (dayz_enableRules && {profileNamespace getVariable ["streamerMode",0] == 0}) then {
|
||||
dayz_rulesHandle = execVM "rules.sqf";
|
||||
};
|
||||
|
||||
@@ -28,12 +28,17 @@ while {true} do {
|
||||
};
|
||||
_display = uiNameSpace getVariable "BIS_loadingScreen";
|
||||
if (!isNil "_display") then {
|
||||
_image = _display displayCtrl 1200;
|
||||
_image ctrlSetText getText(missionConfigFile >> "loadScreen");
|
||||
if (dayz_loadScreenMsg != "" ) then {
|
||||
_control1 = _display displayctrl 8400;
|
||||
_control1 ctrlSetText dayz_loadScreenMsg;
|
||||
_control1 ctrlSetStructuredText parseText format["<t align='center'>%1</t>",dayz_loadScreenMsg];
|
||||
};
|
||||
_control2 = _display displayctrl 102;
|
||||
_control2 ctrlSetText format["%1",floor(diag_ticktime - _timeoutStart)];
|
||||
_control2 ctrlSetStructuredText parseText format["<t align='center'>%1</t>",floor(diag_ticktime - _timeoutStart)];
|
||||
|
||||
_bar = _display displayCtrl 1010;
|
||||
_bar progressSetPosition dayz_progressBarValue;
|
||||
};
|
||||
|
||||
uiSleep 0.2;
|
||||
|
||||
Reference in New Issue
Block a user