mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Medical GUI - Add setting to show blood loss (#8450)
* add setting to show bloodloss * Update initSettings.sqf * Update stringtable.xml * Update initSettings.sqf * Update addons/medical_gui/stringtable.xml Co-authored-by: Serg Vergun <1197314+severgun@users.noreply.github.com> Co-authored-by: Serg Vergun <1197314+severgun@users.noreply.github.com>
This commit is contained in:
@ -38,8 +38,9 @@ if (IS_BLEEDING(_target)) then {
|
|||||||
_entries pushBack [localize LSTRING(Status_Bleeding), [1, 0, 0, 1]];
|
_entries pushBack [localize LSTRING(Status_Bleeding), [1, 0, 0, 1]];
|
||||||
};
|
};
|
||||||
|
|
||||||
// Give a qualitative description of the blood volume lost
|
if (GVAR(showBloodlossEntry)) then {
|
||||||
switch (GET_HEMORRHAGE(_target)) do {
|
// Give a qualitative description of the blood volume lost
|
||||||
|
switch (GET_HEMORRHAGE(_target)) do {
|
||||||
case 1: {
|
case 1: {
|
||||||
_entries pushBack [localize LSTRING(Lost_Blood1), [1, 1, 0, 1]];
|
_entries pushBack [localize LSTRING(Lost_Blood1), [1, 1, 0, 1]];
|
||||||
};
|
};
|
||||||
@ -52,6 +53,7 @@ switch (GET_HEMORRHAGE(_target)) do {
|
|||||||
case 4: {
|
case 4: {
|
||||||
_entries pushBack [localize LSTRING(Lost_Blood4), [1, 0, 0, 1]];
|
_entries pushBack [localize LSTRING(Lost_Blood4), [1, 0, 0, 1]];
|
||||||
};
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
// Indicate if a tourniquet is applied
|
// Indicate if a tourniquet is applied
|
||||||
|
@ -108,3 +108,12 @@ private _categoryColors = [ELSTRING(medical,Category), format ["| %1 |", LELSTRI
|
|||||||
false // isGlobal
|
false // isGlobal
|
||||||
] call CBA_fnc_addSetting;
|
] call CBA_fnc_addSetting;
|
||||||
} forEach _damageColors;
|
} forEach _damageColors;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(showBloodlossEntry),
|
||||||
|
"CHECKBOX",
|
||||||
|
[LSTRING(ShowBloodlossEntry_DisplayName), LSTRING(ShowBloodlossEntry_Description)],
|
||||||
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
||||||
|
true,
|
||||||
|
true // isGlobal
|
||||||
|
] call CBA_fnc_addSetting;
|
||||||
|
@ -1224,5 +1224,13 @@
|
|||||||
<Chinesesimp>负伤颜色 %1</Chinesesimp>
|
<Chinesesimp>负伤颜色 %1</Chinesesimp>
|
||||||
<Korean>피해 색상 %1</Korean>
|
<Korean>피해 색상 %1</Korean>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_GUI_ShowBloodlossEntry_DisplayName">
|
||||||
|
<English>Show Blood Loss</English>
|
||||||
|
<German>Blutverlust anzeigen</German>
|
||||||
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_GUI_ShowBloodlossEntry_Description">
|
||||||
|
<English>Show qualitative blood loss in the injury list.</English>
|
||||||
|
<German>Qualitativen Blutverlust in der Verletzungsliste anzeigen.</German>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
Reference in New Issue
Block a user