From 2e897e86a2b9bc0e252fa69c920bcb070cdb608b Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Thu, 25 Apr 2019 23:21:44 -0500 Subject: [PATCH] fix --- addons/medical/initSettings.sqf | 6 ++--- .../functions/fnc_updateBodyImage.sqf | 27 ++++++++++--------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/addons/medical/initSettings.sqf b/addons/medical/initSettings.sqf index 22a36b6616..f1eb85bc92 100644 --- a/addons/medical/initSettings.sqf +++ b/addons/medical/initSettings.sqf @@ -15,7 +15,7 @@ private _categoryArray = [LELSTRING(medical,Category_DisplayName), "?"]; [ QEGVAR(medical,limping), "LIST", - LSTRING(setting_limping_DisplayName), LSTRING(setting_limping_Description)], + [LSTRING(setting_limping_DisplayName), LSTRING(setting_limping_Description)], _categoryArray, [[0,1,2],[LELSTRING(common,disabled), LLSTRING(setting_limping_limpOnOpenWounds), LLSTRING(setting_limping_limpRequiresStitching)], 1], // [values, titles, defaultIndex] true, // isGlobal @@ -25,9 +25,9 @@ private _categoryArray = [LELSTRING(medical,Category_DisplayName), "?"]; [ QEGVAR(medical,fractures), "LIST", - LSTRING(setting_fractures_DisplayName), LSTRING(setting_fractures_Description)], + [LSTRING(setting_fractures_DisplayName), LSTRING(setting_fractures_Description)], _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 {[QEGVAR(medical,fractures), _this] call EFUNC(common,cbaSettings_settingChanged)}, true // Needs mission restart diff --git a/addons/medical_gui/functions/fnc_updateBodyImage.sqf b/addons/medical_gui/functions/fnc_updateBodyImage.sqf index 6c4ee785fa..63b6b2df9b 100644 --- a/addons/medical_gui/functions/fnc_updateBodyImage.sqf +++ b/addons/medical_gui/functions/fnc_updateBodyImage.sqf @@ -43,18 +43,19 @@ private _bodyPartBloodLoss = [0, 0, 0, 0, 0, 0]; private _ctrlBone = _ctrlGroup controlsGroupCtrl _fractureIDC; switch (_fractures select _forEachIndex) do { case (0): { - _ctrlBone ctrlShow false; - }; + _ctrlBone ctrlShow false; + }; case (1): { _ctrlBone ctrlShow true; _ctrlBone ctrlSetTextColor [1, 0, 0, 1]; }; case (-1): { - if (EGVAR(medical,fractures) == 2) then { - _ctrlBone ctrlShow true; - _ctrlBone ctrlSetTextColor [0, 0, 1, 1]; - } else { - _ctrlBone ctrlShow false; + if (EGVAR(medical,fractures) == 2) then { + _ctrlBone ctrlShow true; + _ctrlBone ctrlSetTextColor [0, 0, 1, 1]; + } else { + _ctrlBone ctrlShow false; + }; }; }; }; @@ -71,10 +72,10 @@ private _bodyPartBloodLoss = [0, 0, 0, 0, 0, 0]; private _ctrlBodyPart = _ctrlGroup controlsGroupCtrl _bodyPartIDC; _ctrlBodyPart ctrlSetTextColor _bodyPartColor; } forEach [ - [IDC_BODY_HEAD], - [IDC_BODY_TORSO], - [IDC_BODY_ARMLEFT, IDC_BODY_ARMLEFT_T, IDC_BODY_ARMLEFT_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_LEGRIGHT, IDC_BODY_LEGRIGHT_T, IDC_BODY_LEGRIGHT_B] +[IDC_BODY_HEAD], +[IDC_BODY_TORSO], +[IDC_BODY_ARMLEFT, IDC_BODY_ARMLEFT_T, IDC_BODY_ARMLEFT_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_LEGRIGHT, IDC_BODY_LEGRIGHT_T, IDC_BODY_LEGRIGHT_B] ];