mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Merge pull request #1411 from hogscraper/test_branch
Additional update to UI
This commit is contained in:
@@ -87,32 +87,49 @@ if (!canStand player) then {
|
|||||||
/*
|
/*
|
||||||
Flashing:
|
Flashing:
|
||||||
*/
|
*/
|
||||||
if (_combatVal == 1) then {
|
_ctrl_Array=[];
|
||||||
_ctrlCombat call player_guiControlFlash;
|
if (_combatVal > 0) then {
|
||||||
|
_ctrl_Array=_ctrl_Array + [_ctrlCombat];
|
||||||
|
}else {
|
||||||
|
_ctrlCombat ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_bloodVal < 0.2) then {
|
|
||||||
_ctrlBlood call player_guiControlFlash;
|
if (_bloodVal < 0.4) then {
|
||||||
|
_ctrl_Array=_ctrl_Array + [_ctrlBlood];
|
||||||
|
}else {
|
||||||
|
_ctrlBlood ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
if (_thirstVal > 0.8) then {
|
if (_thirstVal > 0.8) then {
|
||||||
_ctrlThirst call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlThirst];
|
||||||
|
}else {
|
||||||
|
_ctrlThirst ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_foodVal > 0.8) then {
|
if (_foodVal > 0.8) then {
|
||||||
_ctrlFood call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlFood];
|
||||||
|
}else {
|
||||||
|
_ctrlFood ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_tempVal < 0.2) then { //TeeChange
|
if (_tempVal < 0.2) then { //TeeChange
|
||||||
_ctrlTemp call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlTemp];
|
||||||
} else {
|
} else {
|
||||||
_ctrlTemp ctrlShow true;
|
_ctrlTemp ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (r_player_injured) then {
|
if (r_player_injured) then {
|
||||||
_ctrlBleed call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlBleed];
|
||||||
|
}else {
|
||||||
|
_ctrlBleed ctrlShow false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if((count _ctrl_Array) > 0) then
|
||||||
|
{
|
||||||
|
_ctrl_Array call player_guiControlFlash;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -226,30 +243,48 @@ if (!canStand player) then {
|
|||||||
/*
|
/*
|
||||||
Flashing:
|
Flashing:
|
||||||
*/
|
*/
|
||||||
|
_ctrl_Array=[];
|
||||||
if (_combatVal == 0) then {
|
if (_combatVal == 0) then {
|
||||||
_ctrlCombat call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlCombat];
|
||||||
|
}else {
|
||||||
|
_ctrlCombat ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_bloodVal < 0.2) then {
|
|
||||||
_ctrlBlood call player_guiControlFlash;
|
if (_bloodVal < 0.4) then {
|
||||||
|
_ctrl_Array=_ctrl_Array + [_ctrlBlood];
|
||||||
|
}else {
|
||||||
|
_ctrlBlood ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
if (_thirstVal < 0.2) then {
|
if (_thirstVal < 0.2) then {
|
||||||
_ctrlThirst call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlThirst];
|
||||||
|
}else {
|
||||||
|
_ctrlThirst ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_foodVal < 0.2) then {
|
if (_foodVal < 0.2) then {
|
||||||
_ctrlFood call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlFood];
|
||||||
|
}else {
|
||||||
|
_ctrlFood ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_tempVal > 0.8) then { //TeeChange
|
if (_tempVal > 0.8) then { //TeeChange
|
||||||
_ctrlTemp call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlTemp];
|
||||||
} else {
|
} else {
|
||||||
_ctrlTemp ctrlShow true;
|
_ctrlTemp ctrlShow true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (r_player_injured) then {
|
if (r_player_injured) then {
|
||||||
_ctrlBleed call player_guiControlFlash;
|
_ctrl_Array=_ctrl_Array + [_ctrlBleed];
|
||||||
|
}else {
|
||||||
|
_ctrlBleed ctrlShow false;
|
||||||
|
};
|
||||||
|
|
||||||
|
if((count _ctrl_Array) > 0) then
|
||||||
|
{
|
||||||
|
_ctrl_Array call player_guiControlFlash;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -285,15 +285,15 @@ if (!isDedicated) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
player_guiControlFlash = {
|
player_guiControlFlash = {
|
||||||
private["_control"];
|
private["_control"];
|
||||||
_control = _this;
|
_control = _this;
|
||||||
if (ctrlShown _control) then {
|
if (ctrlShown (_control select 0)) then {
|
||||||
_control ctrlShow false;
|
{_x ctrlShow false} foreach _control;
|
||||||
} else {
|
} else {
|
||||||
_control ctrlShow true;
|
{_x ctrlShow true} foreach _control;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gearDialog_create = {
|
gearDialog_create = {
|
||||||
private ["_i","_dialog"];
|
private ["_i","_dialog"];
|
||||||
|
|||||||
Reference in New Issue
Block a user