mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added selected bodypart text
Changed "No injuries on bodypart" to still display if the generic messages have entries
This commit is contained in:
parent
b92978fb80
commit
8d7ac1f930
@ -43,6 +43,10 @@ if (_show) then {
|
||||
|
||||
_allInjuryTexts = [];
|
||||
_genericMessages = [];
|
||||
|
||||
_partText = ["STR_ACE_Interaction_Head", "STR_ACE_Interaction_Torso", "STR_ACE_Interaction_ArmLeft" ,"STR_ACE_Interaction_ArmRight" ,"STR_ACE_Interaction_LegLeft", "STR_ACE_Interaction_LegRight"] select GVAR(currentSelectedSelectionN);
|
||||
_genericMessages pushback [localize _partText, [1, 1, 1, 1]];
|
||||
|
||||
if (_target getvariable[QGVAR(isBleeding), false]) then {
|
||||
_genericMessages pushback [localize "STR_ACE_MEDICAL_STATUS_BLEEDING", [1, 0.1, 0.1, 1]];
|
||||
};
|
||||
@ -123,7 +127,7 @@ if (_show) then {
|
||||
{
|
||||
_lbCtrl lbAdd _x;
|
||||
}foreach _allInjuryTexts;
|
||||
if (count _genericMessages == 0 && {count _allInjuryTexts == 0}) then {
|
||||
if (count _allInjuryTexts == 0) then {
|
||||
_lbCtrl lbAdd "No injuries on this bodypart..";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user