Skip to content

Commit

Permalink
Localize partial wound, fix injury list color flashing (#7196)
Browse files Browse the repository at this point in the history
  • Loading branch information
mharis001 authored and PabstMirror committed Sep 28, 2019
1 parent 35a4ffb commit 8b8ec19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 6 additions & 5 deletions addons/medical_gui/functions/fnc_updateInjuryList.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ switch (GET_FRACTURES(_target) select _selectionN) do {
};

// Indicate the amount of pain the unit is in
if ([_target] call EFUNC(common,isAwake)) then {
if (_target call EFUNC(common,isAwake)) then {
private _pain = GET_PAIN_PERCEIVED(_target);
if (_pain > 0) then {
private _painText = switch (true) do {
Expand Down Expand Up @@ -113,7 +113,7 @@ private _fnc_getWoundDescription = {
if (_amountOf >= 1) then {
format ["%1x %2", ceil _amountOf, _woundName];
} else {
format ["Partial %1", _woundName];
format [localize LSTRING(PartialX), _woundName];
};
};

Expand Down Expand Up @@ -156,7 +156,8 @@ lbClear _ctrl;

{
_x params ["_text", "_color"];
private _index = _ctrl lbAdd _text;
_ctrl lbSetColor [_index, _color];
_ctrl lbSetSelectColor [_index, _color];

_ctrl lbSetColor [_ctrl lbAdd _text, _color];
} forEach _entries;

_ctrl lbSetCurSel -1;
3 changes: 3 additions & 0 deletions addons/medical_gui/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -932,5 +932,8 @@
<Chinesesimp>检伤分类卡</Chinesesimp>
<Chinese>檢傷分類卡</Chinese>
</Key>
<Key ID="STR_ACE_Medical_GUI_PartialX">
<English>Partial %1</English>
</Key>
</Package>
</Project>

0 comments on commit 8b8ec19

Please sign in to comment.