mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Localize partial wound, fix injury list color flashing (#7196)
This commit is contained in:
parent
35a4ffbad6
commit
8b8ec19828
@ -72,7 +72,7 @@ switch (GET_FRACTURES(_target) select _selectionN) do {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Indicate the amount of pain the unit is in
|
// 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);
|
private _pain = GET_PAIN_PERCEIVED(_target);
|
||||||
if (_pain > 0) then {
|
if (_pain > 0) then {
|
||||||
private _painText = switch (true) do {
|
private _painText = switch (true) do {
|
||||||
@ -113,7 +113,7 @@ private _fnc_getWoundDescription = {
|
|||||||
if (_amountOf >= 1) then {
|
if (_amountOf >= 1) then {
|
||||||
format ["%1x %2", ceil _amountOf, _woundName];
|
format ["%1x %2", ceil _amountOf, _woundName];
|
||||||
} else {
|
} else {
|
||||||
format ["Partial %1", _woundName];
|
format [localize LSTRING(PartialX), _woundName];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -156,7 +156,8 @@ lbClear _ctrl;
|
|||||||
|
|
||||||
{
|
{
|
||||||
_x params ["_text", "_color"];
|
_x params ["_text", "_color"];
|
||||||
private _index = _ctrl lbAdd _text;
|
|
||||||
_ctrl lbSetColor [_index, _color];
|
_ctrl lbSetColor [_ctrl lbAdd _text, _color];
|
||||||
_ctrl lbSetSelectColor [_index, _color];
|
|
||||||
} forEach _entries;
|
} forEach _entries;
|
||||||
|
|
||||||
|
_ctrl lbSetCurSel -1;
|
||||||
|
@ -932,5 +932,8 @@
|
|||||||
<Chinesesimp>检伤分类卡</Chinesesimp>
|
<Chinesesimp>检伤分类卡</Chinesesimp>
|
||||||
<Chinese>檢傷分類卡</Chinese>
|
<Chinese>檢傷分類卡</Chinese>
|
||||||
</Key>
|
</Key>
|
||||||
|
<Key ID="STR_ACE_Medical_GUI_PartialX">
|
||||||
|
<English>Partial %1</English>
|
||||||
|
</Key>
|
||||||
</Package>
|
</Package>
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user