2019-03-24 05:37:39 +00:00
|
|
|
[
|
2019-03-24 22:17:48 +00:00
|
|
|
QGVAR(enableActions),
|
|
|
|
"LIST",
|
|
|
|
[LSTRING(EnableActions_DisplayName), LSTRING(EnableActions_Description)],
|
2019-06-03 15:31:46 +00:00
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
2019-03-24 22:17:48 +00:00
|
|
|
[[0, 1, 2], [LSTRING(Selections3D), LSTRING(Radial), ELSTRING(common,Disabled)], 0],
|
|
|
|
false
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2019-03-24 05:37:39 +00:00
|
|
|
|
|
|
|
[
|
2019-03-24 22:17:48 +00:00
|
|
|
QGVAR(enableSelfActions),
|
|
|
|
"CHECKBOX",
|
|
|
|
[LSTRING(EnableSelfActions_DisplayName), LSTRING(EnableSelfActions_Description)],
|
2019-06-03 15:31:46 +00:00
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
2019-03-24 22:17:48 +00:00
|
|
|
true,
|
|
|
|
false
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2019-03-24 05:37:39 +00:00
|
|
|
|
|
|
|
[
|
2019-03-24 22:17:48 +00:00
|
|
|
QGVAR(enableMedicalMenu),
|
|
|
|
"LIST",
|
|
|
|
[LSTRING(EnableMedicalMenu_DisplayName), LSTRING(EnableMedicalMenu_Description)],
|
2019-06-03 15:31:46 +00:00
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
2019-03-24 22:17:48 +00:00
|
|
|
[[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(common,Enabled), ELSTRING(common,VehiclesOnly)], 1],
|
|
|
|
false
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2019-03-24 05:37:39 +00:00
|
|
|
|
|
|
|
[
|
2019-03-24 22:17:48 +00:00
|
|
|
QGVAR(openAfterTreatment),
|
|
|
|
"CHECKBOX",
|
|
|
|
[LSTRING(OpenAfterTreatment_DisplayName), LSTRING(OpenAfterTreatment_Description)],
|
2019-06-03 15:31:46 +00:00
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
2019-03-24 22:17:48 +00:00
|
|
|
true,
|
|
|
|
false
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2019-03-24 05:37:39 +00:00
|
|
|
|
|
|
|
[
|
2019-03-24 22:17:48 +00:00
|
|
|
QGVAR(maxDistance),
|
|
|
|
"SLIDER",
|
|
|
|
[LSTRING(MaxDistance_DisplayName), LSTRING(MaxDistance_Description)],
|
2019-06-03 15:31:46 +00:00
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
2019-03-24 22:17:48 +00:00
|
|
|
[0, 10, 3, 1],
|
2019-07-03 15:40:42 +00:00
|
|
|
true
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2020-10-29 00:08:00 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(interactionMenuShowTriage),
|
|
|
|
"LIST",
|
|
|
|
[LSTRING(InteractionMenuShowTriage_DisplayName), LSTRING(InteractionMenuShowTriage_Description)],
|
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
|
|
[[0, 1, 2], [ELSTRING(common,Disabled), ELSTRING(Medical_Treatment,Anyone), ELSTRING(Medical_Treatment,Medics)], 1],
|
|
|
|
false
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2021-10-12 08:11:55 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Default blood loss colouring follows a "white, yellow, red" colour scale with 10 steps, Bezier interpolation and Correct lightness gradient.
|
|
|
|
* See: https://gka.github.io/palettes
|
|
|
|
*/
|
|
|
|
private _bloodLossColors = [
|
|
|
|
[1.00, 1.00, 1.00, 1],
|
|
|
|
[1.00, 0.95, 0.64, 1],
|
|
|
|
[1.00, 0.87, 0.46, 1],
|
|
|
|
[1.00, 0.80, 0.33, 1],
|
|
|
|
[1.00, 0.72, 0.24, 1],
|
|
|
|
[1.00, 0.63, 0.15, 1],
|
|
|
|
[1.00, 0.54, 0.08, 1],
|
|
|
|
[1.00, 0.43, 0.02, 1],
|
|
|
|
[1.00, 0.30, 0.00, 1],
|
|
|
|
[1.00, 0.00, 0.00, 1]
|
|
|
|
];
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Default damage colouring follows a "white, cyan, blue" colour scale with 10 steps, Bezier interpolation and Correct lightness gradient.
|
|
|
|
* See: https://gka.github.io/palettes
|
|
|
|
*/
|
|
|
|
private _damageColors = [
|
|
|
|
[1.00, 1.00, 1.00, 1],
|
|
|
|
[0.75, 0.95, 1.00, 1],
|
|
|
|
[0.62, 0.86, 1.00, 1],
|
|
|
|
[0.54, 0.77, 1.00, 1],
|
|
|
|
[0.48, 0.67, 1.00, 1],
|
|
|
|
[0.42, 0.57, 1.00, 1],
|
|
|
|
[0.37, 0.47, 1.00, 1],
|
|
|
|
[0.31, 0.36, 1.00, 1],
|
|
|
|
[0.22, 0.23, 1.00, 1],
|
|
|
|
[0.00, 0.00, 1.00, 1]
|
|
|
|
];
|
|
|
|
|
2021-10-30 21:42:47 +00:00
|
|
|
private _categoryColors = [ELSTRING(medical,Category), format ["| %1 |", LELSTRING(common,subcategory_colors)]];
|
2021-10-12 08:11:55 +00:00
|
|
|
{
|
|
|
|
[
|
2021-10-30 21:42:03 +00:00
|
|
|
format ["%1_%2", QGVAR(bloodLossColor), _forEachIndex],
|
2021-10-12 08:11:55 +00:00
|
|
|
"COLOR",
|
|
|
|
[format [localize LSTRING(BloodLossColorX_DisplayName), _forEachIndex], LSTRING(BloodLossColor_Description)],
|
2021-10-30 21:42:47 +00:00
|
|
|
_categoryColors,
|
2021-10-12 08:11:55 +00:00
|
|
|
_x,
|
|
|
|
false // isGlobal
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
} forEach _bloodLossColors;
|
|
|
|
|
|
|
|
{
|
|
|
|
[
|
|
|
|
format ["%1_%2", QGVAR(damageColor), _forEachIndex],
|
|
|
|
"COLOR",
|
|
|
|
[format [localize LSTRING(DamageColorX_DisplayName), _forEachIndex], LSTRING(DamageColor_Description)],
|
2021-10-30 21:42:47 +00:00
|
|
|
_categoryColors,
|
2021-10-12 08:11:55 +00:00
|
|
|
_x,
|
|
|
|
false // isGlobal
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
} forEach _damageColors;
|
2022-03-07 18:23:53 +00:00
|
|
|
|
2023-06-30 22:37:08 +00:00
|
|
|
[
|
|
|
|
QGVAR(showDamageEntry),
|
|
|
|
"CHECKBOX",
|
|
|
|
[LSTRING(showDamageEntry_DisplayName), LSTRING(showDamageEntry_Description)],
|
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
|
|
false,
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
2022-03-07 18:23:53 +00:00
|
|
|
[
|
|
|
|
QGVAR(showBloodlossEntry),
|
|
|
|
"CHECKBOX",
|
|
|
|
[LSTRING(ShowBloodlossEntry_DisplayName), LSTRING(ShowBloodlossEntry_Description)],
|
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
|
|
true,
|
|
|
|
true // isGlobal
|
|
|
|
] call CBA_fnc_addSetting;
|
2023-10-08 21:34:51 +00:00
|
|
|
|
2023-10-11 09:25:28 +00:00
|
|
|
[
|
|
|
|
QGVAR(bodyPartOutlineColor),
|
|
|
|
"COLOR",
|
|
|
|
[LSTRING(bodyPartOutlineColor_DisplayName), LSTRING(bodyPartOutlineColor_Description)],
|
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
|
|
[1.00, 1.00, 1.00, 1],
|
|
|
|
false
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
2023-10-08 21:34:51 +00:00
|
|
|
[
|
|
|
|
QGVAR(peekMedicalInfoReleaseDelay),
|
|
|
|
"TIME",
|
|
|
|
[LSTRING(PeekMedicalInfoReleaseDelay_DisplayName), LSTRING(PeekMedicalInfoReleaseDelay_Description)],
|
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
|
|
[0, 5, 1],
|
|
|
|
false
|
|
|
|
] call CBA_fnc_addSetting;
|
2023-10-09 17:57:47 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(peekMedicalOnHit),
|
|
|
|
"CHECKBOX",
|
|
|
|
[LSTRING(PeekMedicalOnHit_DisplayName), LSTRING(PeekMedicalOnHit_Description)],
|
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
|
|
false,
|
|
|
|
false // isGlobal
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(peekMedicalOnHitDuration),
|
|
|
|
"TIME",
|
|
|
|
[LSTRING(PeekMedicalOnHitDuration_DisplayName), LSTRING(PeekMedicalOnHitDuration_Description)],
|
|
|
|
[ELSTRING(medical,Category), LSTRING(SubCategory)],
|
|
|
|
[0, 5, 1],
|
|
|
|
false
|
|
|
|
] call CBA_fnc_addSetting;
|