mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
Add blood type support for all differnt GUI versions
This commit is contained in:
@@ -501,6 +501,15 @@ class RscTitles
|
|||||||
w = 0.075;
|
w = 0.075;
|
||||||
h = 0.10;
|
h = 0.10;
|
||||||
};
|
};
|
||||||
|
class RscPicture_1310: RscPictureGUI
|
||||||
|
{
|
||||||
|
idc = 1310;
|
||||||
|
// blood type
|
||||||
|
x = 0.955313 * safezoneW + safezoneX;
|
||||||
|
y = 0.79 * safezoneH + safezoneY;
|
||||||
|
w = 0.075;
|
||||||
|
h = 0.10;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
class playerStatusGUI_legacy {
|
class playerStatusGUI_legacy {
|
||||||
@@ -685,6 +694,15 @@ class RscTitles
|
|||||||
w = 0.075;
|
w = 0.075;
|
||||||
h = 0.10;
|
h = 0.10;
|
||||||
};
|
};
|
||||||
|
class RscPicture_1310: RscPictureGUI
|
||||||
|
{
|
||||||
|
idc = 1310;
|
||||||
|
// blood type
|
||||||
|
x = 0.951613 * safezoneW + safezoneX;
|
||||||
|
y = 0.79 * safezoneH + safezoneY;
|
||||||
|
w = 0.075;
|
||||||
|
h = 0.10;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
class DZ_BlackScreen {
|
class DZ_BlackScreen {
|
||||||
|
|||||||
@@ -157,14 +157,6 @@ if (DZE_UI == 1) then { // Vanilla
|
|||||||
};
|
};
|
||||||
|
|
||||||
_ctrlTempBorder ctrlSetText _tempText;
|
_ctrlTempBorder ctrlSetText _tempText;
|
||||||
|
|
||||||
local _bloodTestdone = player getVariable ["blood_testdone", false];
|
|
||||||
if (_bloodTestdone) then {
|
|
||||||
local _bloodType = player getVariable ["blood_type", "O"];
|
|
||||||
local _rhFactor = if (player getVariable ["rh_factor", false]) then { "pos" } else { "neg" };
|
|
||||||
_ctrlBloodType = _display displayCtrl 1310;
|
|
||||||
_ctrlBloodType ctrlSetText ("\z\addons\dayz_code\gui\status\status_blood_type_"+_bloodType+"_"+_rhFactor+"_ca.paa");
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
local _path = if (DZE_UI == 1) then {"\z\addons\dayz_code\gui\status\"} else {"\z\addons\dayz_code\gui\status_epoch\"};
|
local _path = if (DZE_UI == 1) then {"\z\addons\dayz_code\gui\status\"} else {"\z\addons\dayz_code\gui\status_epoch\"};
|
||||||
@@ -214,6 +206,19 @@ if (DZE_UI in [1,3]) then {
|
|||||||
_ctrlEar ctrlSetText _audibletext;
|
_ctrlEar ctrlSetText _audibletext;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if !(dayz_classicBloodBagSystem) then {
|
||||||
|
local _bloodTestdone = player getVariable ["blood_testdone", false];
|
||||||
|
if (_bloodTestdone) then {
|
||||||
|
local _bloodType = player getVariable ["blood_type", "O"];
|
||||||
|
local _rhFactor = if (player getVariable ["rh_factor", false]) then { "pos" } else { "neg" };
|
||||||
|
_ctrlBloodType = _display displayCtrl 1310;
|
||||||
|
if (DZE_UI == 3) then {
|
||||||
|
_ctrlBloodType ctrlSetTextColor [1,1,1,1];
|
||||||
|
};
|
||||||
|
_ctrlBloodType ctrlSetText ("\z\addons\dayz_code\gui\status\status_blood_type_"+_bloodType+"_"+_rhFactor+"_ca.paa");
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
// Fracture/Broken Legs
|
// Fracture/Broken Legs
|
||||||
if !(canStand player) then {
|
if !(canStand player) then {
|
||||||
_ctrlFracture ctrlShow true;
|
_ctrlFracture ctrlShow true;
|
||||||
|
|||||||
Reference in New Issue
Block a user