Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medical GUI - Display IV Type #9817

Merged
merged 3 commits into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 25 additions & 3 deletions addons/medical_gui/functions/fnc_updateInjuryList.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,35 @@ if (GVAR(showBloodlossEntry)) then {
};
// Show receiving IV volume remaining
private _totalIvVolume = 0;
private _saline = 0;
private _blood = 0;
private _plasma = 0;
{
_x params ["_volumeRemaining"];
_x params ["_volumeRemaining", "_type"];
switch (_type) do {
case "Saline": {
_saline = _saline + _volumeRemaining;
};
case "Blood": {
_blood = _blood + _volumeRemaining;
};
case "Plasma": {
_plasma = _plasma + _volumeRemaining;
};
};
_totalIvVolume = _totalIvVolume + _volumeRemaining;
} forEach (_target getVariable [QEGVAR(medical,ivBags), []]);

if (_totalIvVolume >= 1) then {
_entries pushBack [format [localize ELSTRING(medical_treatment,receivingIvVolume), floor _totalIvVolume], [1, 1, 1, 1]];
if (_totalIvVolume > 0) then {
if (_saline > 0) then {
_entries pushBack [format [localize ELSTRING(medical_treatment,receivingSalineIvVolume), floor _saline], [1, 1, 1, 1]];
};
if (_blood > 0) then {
_entries pushBack [format [localize ELSTRING(medical_treatment,receivingBloodIvVolume), floor _blood], [1, 1, 1, 1]];
};
if (_plasma > 0) then {
_entries pushBack [format [localize ELSTRING(medical_treatment,receivingPlasmaIvVolume), floor _plasma], [1, 1, 1, 1]];
};
} else {
_entries pushBack [localize ELSTRING(medical_treatment,Status_NoIv), _nonissueColor];
};
Expand Down
62 changes: 47 additions & 15 deletions addons/medical_treatment/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3570,21 +3570,53 @@
<Chinese>軍用止血帶</Chinese>
<Turkish>Turnike [CAT]</Turkish>
</Key>
<Key ID="STR_ACE_Medical_Treatment_receivingIvVolume">
<English>Receiving IV [%1ml]</English>
<German>Erhalte IV [%1ml]</German>
<Spanish>Recibiendo IV [%1ml]</Spanish>
<Russian>Принимается переливание [%1 мл]</Russian>
<Polish>Otrzymywanie IV [pozostało %1ml]</Polish>
<French>Transfusion : [%1 ml]</French>
<Czech>Přijímání transfúze [%1ml]</Czech>
<Hungarian>Infúzióra kötve [%1ml]</Hungarian>
<Italian>Ricevendo EV [%1ml]</Italian>
<Portuguese>Recebendo IV [%1ml]</Portuguese>
<Japanese>IV [%1ml] を投与中</Japanese>
<Korean>IV로 [%1ml] 수혈중</Korean>
<Chinesesimp>正在接受静脉注射 [%1毫升]</Chinesesimp>
<Chinese>接收靜脈注射液中 [%1毫升]</Chinese>
<Key ID="STR_ACE_Medical_Treatment_receivingSalineIvVolume">
<English>Receiving Saline IV [%1ml]</English>
<German>Erhalte Saline IV [%1ml]</German>
<Spanish>Recibiendo Salina IV [%1ml]</Spanish>
<Russian>Принимается солевой раствор IV [%1 мл]</Russian>
<Polish>Otrzymywanie soli IV [%1ml]</Polish>
<French>Transfusion de sérum salé : [%1 ml]</French>
<Czech>Přijímání soli IV [%1ml]</Czech>
<Hungarian>Saline Infúzióra kötve [%1ml]</Hungarian>
<Italian>Ricevendo Salina EV [%1ml]</Italian>
<Portuguese>Recebendo Salina IV [%1ml]</Portuguese>
<Japanese>生理食塩水 IV [%1ml] を投与中</Japanese>
<Korean>생리식염수 IV로 [%1ml] 수혈중</Korean>
<Chinesesimp>正在接受生理盐水静脉注射 [%1毫升]</Chinesesimp>
<Chinese>接收生理鹽水靜脈注射液中 [%1毫升]</Chinese>
</Key>
<Key ID="STR_ACE_Medical_Treatment_receivingBloodIvVolume">
<English>Receiving Blood IV [%1ml]</English>
<German>Erhalte Blut IV [%1ml]</German>
<Spanish>Recibiendo Sangre IV [%1ml]</Spanish>
<Russian>Принимается кровь IV [%1 мл]</Russian>
<Polish>Otrzymywanie krwi IV [%1ml]</Polish>
<French>Transfusion de sang : [%1 ml]</French>
<Czech>Přijímání krve IV [%1ml]</Czech>
<Hungarian>Vér Infúzióra kötve [%1ml]</Hungarian>
<Italian>Ricevendo Sangue EV [%1ml]</Italian>
<Portuguese>Recebendo Sangue IV [%1ml]</Portuguese>
<Japanese>血液 IV [%1ml] を投与中</Japanese>
<Korean>혈액 IV로 [%1ml] 수혈중</Korean>
<Chinesesimp>正在接受血液静脉注射 [%1毫升]</Chinesesimp>
<Chinese>接收血液靜脈注射液中 [%1毫升]</Chinese>
</Key>
<Key ID="STR_ACE_Medical_Treatment_receivingPlasmaIvVolume">
<English>Receiving Plasma IV [%1ml]</English>
<German>Erhalte Plasma IV [%1ml]</German>
<Spanish>Recibiendo Plasma IV [%1ml]</Spanish>
<Russian>Принимается плазма IV [%1 мл]</Russian>
<Polish>Otrzymywanie plazmy IV [%1ml]</Polish>
<French>Transfusion de plasma : [%1 ml]</French>
<Czech>Přijímání plazmy IV [%1ml]</Czech>
<Hungarian>Plazma Infúzióra kötve [%1ml]</Hungarian>
<Italian>Ricevendo Plasma EV [%1ml]</Italian>
<Portuguese>Recebendo Plasma IV [%1ml]</Portuguese>
<Japanese>プラズマ IV [%1ml] を投与中</Japanese>
<Korean>혈장 IV로 [%1ml] 수혈중</Korean>
<Chinesesimp>正在接受血浆静脉注射 [%1毫升]</Chinesesimp>
<Chinese>接收血漿靜脈注射液中 [%1毫升]</Chinese>
</Key>
<Key ID="STR_ACE_Medical_Treatment_Status_NoIv">
<English>No IV</English>
Expand Down