mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
@@ -1,5 +1,4 @@
|
||||
private ["_array","_combatVal","_ctrlCombatBorder","_ctrlCombat","_uiNumber","_bloodText","_blood","_bloodType","_rhFactor","_thirstLvl","_foodLvl","_tempImg","_tempText","_visual","_audible","_id","_rID","_color","_string","_humanity","_size","_friendlies","_rfriendlies","_rfriendlyTo","_distance","_targetControl","_flash","_foodVal","_thirstVal","_tempVal","_display","_ctrlBloodOuter","_ctrlFoodBorder","_ctrlThirstBorder","_ctrlTempBorder","_ctrlBlood","_ctrlBloodType","_ctrlBleed","_bloodVal","_ctrlFood","_ctrlThirst","_ctrlTemp","_ctrlEar","_ctrlEye","_ctrlFracture","_ctrlMuteBackground","_ctrlMuteIcon","_thirst","_food","_temp","_bloodLvl","_tempLvl","_bloodTestdone","_humanityTarget"];
|
||||
disableSerialization;
|
||||
private ["_combatVal","_ctrlCombatBorder","_ctrlCombat","_uiNumber","_bloodText","_blood","_bloodType","_rhFactor","_thirstLvl","_foodLvl","_tempImg","_tempText","_visual","_audible","_id","_rID","_color","_string","_humanity","_size","_friendlies","_rfriendlies","_rfriendlyTo","_distance","_targetControl","_flash","_foodVal","_thirstVal","_tempVal","_display","_ctrlBloodOuter","_ctrlFoodBorder","_ctrlThirstBorder","_ctrlTempBorder","_ctrlBlood","_ctrlBloodType","_ctrlBleed","_bloodVal","_ctrlFood","_ctrlThirst","_ctrlTemp","_ctrlEar","_ctrlEye","_ctrlFracture","_ctrlMuteBackground","_ctrlMuteIcon","_thirst","_food","_temp","_bloodLvl","_tempLvl","_bloodTestdone","_humanityTarget"];
|
||||
|
||||
_flash = {
|
||||
if (ctrlShown _this) then {
|
||||
@@ -9,17 +8,14 @@ _flash = {
|
||||
};
|
||||
};
|
||||
|
||||
disableSerialization;
|
||||
|
||||
_foodVal = 1 - (dayz_hunger / SleepFood);
|
||||
_thirstVal = 1 - (dayz_thirst / SleepWater);
|
||||
_tempVal = 1 - ((dayz_temperatur - dayz_temperaturmin)/(dayz_temperaturmax - dayz_temperaturmin)); // Normalise to [0,1]
|
||||
|
||||
if (uiNamespace getVariable ['DZ_displayUI', 0] == 1) exitWith {
|
||||
_array = [_foodVal,_thirstVal];
|
||||
_array
|
||||
};
|
||||
|
||||
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||
if (isNil "_display") exitWith { [_foodVal,_thirstVal] }; // not ready
|
||||
if (isNil "_display") exitWith {}; // not ready
|
||||
|
||||
_ctrlBloodOuter = _display displayCtrl 1200;
|
||||
_ctrlFoodBorder = _display displayCtrl 1201;
|
||||
@@ -55,7 +51,10 @@ _ctrlFracture = _display displayCtrl 1203;
|
||||
_ctrlMuteBackground = _display displayCtrl 1904;
|
||||
_ctrlMuteIcon = _display displayCtrl 1204;
|
||||
|
||||
if (!dayz_soundMuted) then {
|
||||
if (dayz_soundMuted) then {
|
||||
_ctrlMuteBackground ctrlShow true;
|
||||
_ctrlMuteIcon ctrlShow true;
|
||||
} else {
|
||||
_ctrlMuteBackground ctrlShow false;
|
||||
_ctrlMuteIcon ctrlShow false;
|
||||
};
|
||||
@@ -302,7 +301,4 @@ if (dayz_humanitytarget != _string) then {
|
||||
_targetControl = _display displayCtrl 1199;
|
||||
_targetControl ctrlSetStructuredText (parseText _string);
|
||||
dayz_humanitytarget = _string;
|
||||
};
|
||||
|
||||
_array = [_foodVal,_thirstVal];
|
||||
_array
|
||||
};
|
||||
Reference in New Issue
Block a user