Private array

This commit is contained in:
icomrade
2016-09-23 17:22:57 -04:00
parent cabf978fe7
commit 770378b3af
2 changed files with 4 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ _btnRespawn ctrlEnable false;
_btnAbort ctrlEnable false;
_btnAbortText = ctrlText _btnAbort;
_isPZombie = player isKindOf "PZombie_VB";
_testTime = diag_tickTime;
if (r_fracture_legs or _isPZombie) then {_btnRespawn ctrlEnable true;};
@@ -46,6 +47,7 @@ while {(!isNull _display) && !r_player_dead} do {
[localize "str_epoch_player_12",1] call dayz_rollingMessages;
};
default {
waitUntil {_btnAbort ctrlSetText format["%1%2%3%4",_btnAbortText," (", str(10 - ((diag_tickTime - _testTime))), ")"]; uiSleep 0.1; ((diag_tickTime - _testTime) >= 10);};
_btnAbort ctrlEnable true;
_btnAbort ctrlSetText _btnAbortText;
};

View File

@@ -543,8 +543,10 @@ if (!isDedicated) then {
};
dayz_rollingMessages = {
private ["_displayText","_message"];
disableSerialization;
_displayText = {
private ["_display","_textLine"];
4099999 cutrsc ["RSC_DZ_Messages","plain"];
_display = uinamespace getvariable "DZ_Messages";
_textLine = _display displayctrl 4099998;