mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Private array
This commit is contained in:
@@ -10,6 +10,7 @@ _btnRespawn ctrlEnable false;
|
|||||||
_btnAbort ctrlEnable false;
|
_btnAbort ctrlEnable false;
|
||||||
_btnAbortText = ctrlText _btnAbort;
|
_btnAbortText = ctrlText _btnAbort;
|
||||||
_isPZombie = player isKindOf "PZombie_VB";
|
_isPZombie = player isKindOf "PZombie_VB";
|
||||||
|
_testTime = diag_tickTime;
|
||||||
|
|
||||||
if (r_fracture_legs or _isPZombie) then {_btnRespawn ctrlEnable true;};
|
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;
|
[localize "str_epoch_player_12",1] call dayz_rollingMessages;
|
||||||
};
|
};
|
||||||
default {
|
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 ctrlEnable true;
|
||||||
_btnAbort ctrlSetText _btnAbortText;
|
_btnAbort ctrlSetText _btnAbortText;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -543,8 +543,10 @@ if (!isDedicated) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
dayz_rollingMessages = {
|
dayz_rollingMessages = {
|
||||||
|
private ["_displayText","_message"];
|
||||||
disableSerialization;
|
disableSerialization;
|
||||||
_displayText = {
|
_displayText = {
|
||||||
|
private ["_display","_textLine"];
|
||||||
4099999 cutrsc ["RSC_DZ_Messages","plain"];
|
4099999 cutrsc ["RSC_DZ_Messages","plain"];
|
||||||
_display = uinamespace getvariable "DZ_Messages";
|
_display = uinamespace getvariable "DZ_Messages";
|
||||||
_textLine = _display displayctrl 4099998;
|
_textLine = _display displayctrl 4099998;
|
||||||
|
|||||||
Reference in New Issue
Block a user