diff --git a/addons/gui/data/body_image/head_guedeltube.paa b/addons/gui/data/body_image/head_guedeltube.paa new file mode 100644 index 000000000..7a9652eb3 Binary files /dev/null and b/addons/gui/data/body_image/head_guedeltube.paa differ diff --git a/addons/gui/data/body_image/head_kinglt.paa b/addons/gui/data/body_image/head_kinglt.paa new file mode 100644 index 000000000..08857dc25 Binary files /dev/null and b/addons/gui/data/body_image/head_kinglt.paa differ diff --git a/addons/gui/data/body_image/leftarm_iv.paa b/addons/gui/data/body_image/leftarm_iv.paa new file mode 100644 index 000000000..f9e1694be Binary files /dev/null and b/addons/gui/data/body_image/leftarm_iv.paa differ diff --git a/addons/gui/data/body_image/leftleg_iv.paa b/addons/gui/data/body_image/leftleg_iv.paa new file mode 100644 index 000000000..6962ecb58 Binary files /dev/null and b/addons/gui/data/body_image/leftleg_iv.paa differ diff --git a/addons/gui/data/body_image/rightarm_iv.paa b/addons/gui/data/body_image/rightarm_iv.paa new file mode 100644 index 000000000..ccb346a7a Binary files /dev/null and b/addons/gui/data/body_image/rightarm_iv.paa differ diff --git a/addons/gui/data/body_image/rightleg_iv.paa b/addons/gui/data/body_image/rightleg_iv.paa new file mode 100644 index 000000000..5a5f1702d Binary files /dev/null and b/addons/gui/data/body_image/rightleg_iv.paa differ diff --git a/addons/gui/data/body_image/torso_io.paa b/addons/gui/data/body_image/torso_io.paa new file mode 100644 index 000000000..831265081 Binary files /dev/null and b/addons/gui/data/body_image/torso_io.paa differ diff --git a/addons/gui/functions/fnc_updateBodyImage.sqf b/addons/gui/functions/fnc_updateBodyImage.sqf index c5efc3421..d0bb0e1cc 100644 --- a/addons/gui/functions/fnc_updateBodyImage.sqf +++ b/addons/gui/functions/fnc_updateBodyImage.sqf @@ -81,6 +81,25 @@ private _bodyPartBloodLoss = [0, 0, 0, 0, 0, 0]; [IDC_BODY_LEGRIGHT, IDC_BODY_LEGRIGHT_T, IDC_BODY_LEGRIGHT_B, -1] ]; +// Airway +private _ctrlGuedelTube = _ctrlGroup controlsGroupCtrl IDC_BODY_HEAD_GUEDELTUBE; +private _ctrlKingLT = _ctrlGroup controlsGroupCtrl IDC_BODY_HEAD_KINGLT; + +private _airwayItem = _target getVariable [QEGVAR(airway,airway_item), ""]; + +if !(_airwayItem isEqualTo "") then { + if (_airwayItem isEqualTo "Larynxtubus") then { + _ctrlGuedelTube ctrlShow false; + _ctrlKingLT ctrlShow true; + } else { + _ctrlGuedelTube ctrlShow true; + _ctrlKingLT ctrlShow false; + }; +} else { + _ctrlGuedelTube ctrlShow false; + _ctrlKingLT ctrlShow false; +}; + // Breathing private _ctrlPulseOximeterRight = _ctrlGroup controlsGroupCtrl IDC_BODY_RIGHTARM_PULSEOX; private _ctrlPulseOximeterLeft = _ctrlGroup controlsGroupCtrl IDC_BODY_LEFARM_PULSEOX; @@ -153,4 +172,30 @@ if (_target getVariable [QEGVAR(circulation,AED_X_VitalsMonitor_Connected), fals } else { _ctrlAEDVitalsMonitorRight ctrlShow false; _ctrlAEDVitalsMonitorLeft ctrlShow false; +}; + +// Pharmacy +private _ctrlIVLeftArm = _ctrlGroup controlsGroupCtrl IDC_BODY_LEFTARM_IV; +private _ctrlIVRightArm = _ctrlGroup controlsGroupCtrl IDC_BODY_RIGHTARM_IV; +private _ctrlIVLeftLeg = _ctrlGroup controlsGroupCtrl IDC_BODY_LEFTLEG_IV; +private _ctrlIVRightLeg = _ctrlGroup controlsGroupCtrl IDC_BODY_RIGHTLEG_IV; +private _ctrlIO = _ctrlGroup controlsGroupCtrl IDC_BODY_TORSO_IO; + +private _IVArray = _target getVariable [QEGVAR(pharma,IV), [0,0,0,0,0,0]]; + +{ + switch (_IVArray select (_forEachIndex + 2)) do { + case 0: { + _x ctrlShow false; + }; + default { + _x ctrlShow true; + }; + }; +} forEach [_ctrlIVLeftArm, _ctrlIVRightArm, _ctrlIVLeftLeg, _ctrlIVRightLeg]; + +if ((_IVArray select 1) isEqualTo 1) then { + _ctrlIO ctrlShow true; +} else { + _ctrlIO ctrlShow false; }; \ No newline at end of file diff --git a/addons/gui/gui.hpp b/addons/gui/gui.hpp index 2a5ce52a6..6670a6b1b 100644 --- a/addons/gui/gui.hpp +++ b/addons/gui/gui.hpp @@ -37,6 +37,15 @@ class ACEGVAR(medical_gui,BodyImage): RscControlsGroupNoScrollbars { colorText[] = {1, 0.95, 0, 1}; show = 0; }; + class Head_GuedelTube: Torso_ChestSeal { + idc = IDC_BODY_HEAD_GUEDELTUBE; + text = QPATHTOF(data\body_image\head_guedeltube.paa); + colorText[] = {0.1, 1, 1, 1}; + }; + class Head_KingLT: Head_GuedelTube { + idc = IDC_BODY_HEAD_KINGLT; + text = QPATHTOF(data\body_image\head_kinglt.paa); + }; class RightArm_PulseOximeter: Background { idc = IDC_BODY_RIGHTARM_PULSEOX; text = QPATHTOF(data\body_image\rightarm_pulseoximeter.paa); @@ -61,11 +70,32 @@ class ACEGVAR(medical_gui,BodyImage): RscControlsGroupNoScrollbars { idc = IDC_BODY_LEFTARM_AED_VITALS; text = QPATHTOF(data\body_image\leftarm_aed_vitals_monitor.paa); }; + class Torso_IO: Torso_ChestSeal { + idc = IDC_BODY_TORSO_IO; + text = QPATHTOF(data\body_image\torso_io.paa); + colorText[] = {0.3, 0.6, 0.3, 1}; + }; class Torso_Pneumothorax: Torso_ChestSeal { idc = IDC_BODY_TORSO_PNEUMOTHORAX; text = QPATHTOF(data\body_image\torso_pneumothorax.paa); colorText[] = {1, 1, 1, 1}; }; + class RightArm_IV: Torso_IO { + idc = IDC_BODY_RIGHTARM_IV; + text = QPATHTOF(data\body_image\rightarm_iv.paa); + }; + class LeftArm_IV: RightArm_IV { + idc = IDC_BODY_LEFTARM_IV; + text = QPATHTOF(data\body_image\leftarm_iv.paa); + }; + class RightLeg_IV: RightArm_IV { + idc = IDC_BODY_RIGHTLEG_IV; + text = QPATHTOF(data\body_image\rightleg_iv.paa); + }; + class LeftLeg_IV: RightArm_IV { + idc = IDC_BODY_LEFTLEG_IV; + text = QPATHTOF(data\body_image\leftleg_iv.paa); + }; }; }; diff --git a/addons/gui/script_component.hpp b/addons/gui/script_component.hpp index 8d4df9b82..358cdcbb9 100644 --- a/addons/gui/script_component.hpp +++ b/addons/gui/script_component.hpp @@ -88,13 +88,22 @@ #define IDC_TRIAGE_SELECT 7100 -#define IDC_BODY_TORSO_I 70100 +#define IDC_BODY_TORSO_I 70100 -#define IDC_BODY_TORSO_AED_PADS 70120 -#define IDC_BODY_TORSO_CHESTSEAL 70121 -#define IDC_BODY_TORSO_PNEUMOTHORAX 70122 +#define IDC_BODY_HEAD_GUEDELTUBE 70110 +#define IDC_BODY_HEAD_KINGLT 70111 + +#define IDC_BODY_TORSO_AED_PADS 70120 +#define IDC_BODY_TORSO_CHESTSEAL 70121 +#define IDC_BODY_TORSO_PNEUMOTHORAX 70122 +#define IDC_BODY_TORSO_IO 70123 #define IDC_BODY_RIGHTARM_AED_VITALS 70130 #define IDC_BODY_LEFTARM_AED_VITALS 70131 -#define IDC_BODY_RIGHTARM_PULSEOX 70132 -#define IDC_BODY_LEFTARM_PULSEOX 70133 \ No newline at end of file +#define IDC_BODY_RIGHTARM_PULSEOX 70132 +#define IDC_BODY_LEFTARM_PULSEOX 70133 +#define IDC_BODY_RIGHTARM_IV 70134 +#define IDC_BODY_LEFTARM_IV 70135 + +#define IDC_BODY_RIGHTLEG_IV 70141 +#define IDC_BODY_LEFTLEG_IV 70142 \ No newline at end of file