mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix
This commit is contained in:
@ -15,7 +15,7 @@ private _categoryArray = [LELSTRING(medical,Category_DisplayName), "?"];
|
|||||||
|
|
||||||
[
|
[
|
||||||
QEGVAR(medical,limping), "LIST",
|
QEGVAR(medical,limping), "LIST",
|
||||||
LSTRING(setting_limping_DisplayName), LSTRING(setting_limping_Description)],
|
[LSTRING(setting_limping_DisplayName), LSTRING(setting_limping_Description)],
|
||||||
_categoryArray,
|
_categoryArray,
|
||||||
[[0,1,2],[LELSTRING(common,disabled), LLSTRING(setting_limping_limpOnOpenWounds), LLSTRING(setting_limping_limpRequiresStitching)], 1], // [values, titles, defaultIndex]
|
[[0,1,2],[LELSTRING(common,disabled), LLSTRING(setting_limping_limpOnOpenWounds), LLSTRING(setting_limping_limpRequiresStitching)], 1], // [values, titles, defaultIndex]
|
||||||
true, // isGlobal
|
true, // isGlobal
|
||||||
@ -25,9 +25,9 @@ private _categoryArray = [LELSTRING(medical,Category_DisplayName), "?"];
|
|||||||
|
|
||||||
[
|
[
|
||||||
QEGVAR(medical,fractures), "LIST",
|
QEGVAR(medical,fractures), "LIST",
|
||||||
LSTRING(setting_fractures_DisplayName), LSTRING(setting_fractures_Description)],
|
[LSTRING(setting_fractures_DisplayName), LSTRING(setting_fractures_Description)],
|
||||||
_categoryArray,
|
_categoryArray,
|
||||||
[[0,1,2],[LELSTRING(common,disabled), LLSTRING(setting_fractures_splintHealsFully), LLSTRING(setting_fractures_splintHasEffects)]"Splints fully heal", "Splints heal (but cannot sprint)"], 1], // [values, titles, defaultIndex]
|
[[0,1,2],[LELSTRING(common,disabled), LLSTRING(setting_fractures_splintHealsFully), LLSTRING(setting_fractures_splintHasEffects)], 1], // [values, titles, defaultIndex]
|
||||||
true, // isGlobal
|
true, // isGlobal
|
||||||
{[QEGVAR(medical,fractures), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
{[QEGVAR(medical,fractures), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
||||||
true // Needs mission restart
|
true // Needs mission restart
|
||||||
|
@ -43,18 +43,19 @@ private _bodyPartBloodLoss = [0, 0, 0, 0, 0, 0];
|
|||||||
private _ctrlBone = _ctrlGroup controlsGroupCtrl _fractureIDC;
|
private _ctrlBone = _ctrlGroup controlsGroupCtrl _fractureIDC;
|
||||||
switch (_fractures select _forEachIndex) do {
|
switch (_fractures select _forEachIndex) do {
|
||||||
case (0): {
|
case (0): {
|
||||||
_ctrlBone ctrlShow false;
|
_ctrlBone ctrlShow false;
|
||||||
};
|
};
|
||||||
case (1): {
|
case (1): {
|
||||||
_ctrlBone ctrlShow true;
|
_ctrlBone ctrlShow true;
|
||||||
_ctrlBone ctrlSetTextColor [1, 0, 0, 1];
|
_ctrlBone ctrlSetTextColor [1, 0, 0, 1];
|
||||||
};
|
};
|
||||||
case (-1): {
|
case (-1): {
|
||||||
if (EGVAR(medical,fractures) == 2) then {
|
if (EGVAR(medical,fractures) == 2) then {
|
||||||
_ctrlBone ctrlShow true;
|
_ctrlBone ctrlShow true;
|
||||||
_ctrlBone ctrlSetTextColor [0, 0, 1, 1];
|
_ctrlBone ctrlSetTextColor [0, 0, 1, 1];
|
||||||
} else {
|
} else {
|
||||||
_ctrlBone ctrlShow false;
|
_ctrlBone ctrlShow false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -71,10 +72,10 @@ private _bodyPartBloodLoss = [0, 0, 0, 0, 0, 0];
|
|||||||
private _ctrlBodyPart = _ctrlGroup controlsGroupCtrl _bodyPartIDC;
|
private _ctrlBodyPart = _ctrlGroup controlsGroupCtrl _bodyPartIDC;
|
||||||
_ctrlBodyPart ctrlSetTextColor _bodyPartColor;
|
_ctrlBodyPart ctrlSetTextColor _bodyPartColor;
|
||||||
} forEach [
|
} forEach [
|
||||||
[IDC_BODY_HEAD],
|
[IDC_BODY_HEAD],
|
||||||
[IDC_BODY_TORSO],
|
[IDC_BODY_TORSO],
|
||||||
[IDC_BODY_ARMLEFT, IDC_BODY_ARMLEFT_T, IDC_BODY_ARMLEFT_B],
|
[IDC_BODY_ARMLEFT, IDC_BODY_ARMLEFT_T, IDC_BODY_ARMLEFT_B],
|
||||||
[IDC_BODY_ARMRIGHT, IDC_BODY_ARMRIGHT_T, IDC_BODY_ARMRIGHT_B],
|
[IDC_BODY_ARMRIGHT, IDC_BODY_ARMRIGHT_T, IDC_BODY_ARMRIGHT_B],
|
||||||
[IDC_BODY_LEGLEFT, IDC_BODY_LEGLEFT_T, IDC_BODY_LEGLEFT_B],
|
[IDC_BODY_LEGLEFT, IDC_BODY_LEGLEFT_T, IDC_BODY_LEGLEFT_B],
|
||||||
[IDC_BODY_LEGRIGHT, IDC_BODY_LEGRIGHT_T, IDC_BODY_LEGRIGHT_B]
|
[IDC_BODY_LEGRIGHT, IDC_BODY_LEGRIGHT_T, IDC_BODY_LEGRIGHT_B]
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user