ACE3/addons/finger/initSettings.sqf
Drofseh 70da38cec5
Finger - Add scaling settings (#8676)
* Add scaling settings

- sizeCoef will scale the size directly from the setting value, default 1x is the same as the current size.
- proximityScaling will scale the size based on the distance between the observer and the pointer, 2x as large at maxRange, 0.25x at 0m distance.

* fix slider decimal value

* bug fix
2022-03-07 12:35:49 -06:00

50 lines
1.1 KiB
Plaintext

private _category = format ["ACE %1", localize LSTRING(DisplayName)];
[
QGVAR(enabled), "CHECKBOX",
[LSTRING(enabled_displayName), LSTRING(enabled_description)],
_category,
false,
1
] call CBA_fnc_addSetting;
[
QGVAR(maxRange), "SLIDER",
[LSTRING(maxRange_displayName), LSTRING(maxRange_description)],
_category,
[0, 50, 4, 1],
1
] call CBA_fnc_addSetting;
[
QGVAR(sizeCoef), "SLIDER",
[LSTRING(sizeCoef_displayName), LSTRING(sizeCoef_description)],
_category,
[0.1, 5, 1, 2],
1
] call CBA_fnc_addSetting;
[
QGVAR(proximityScaling), "CHECKBOX",
[LSTRING(proximityScaling_displayName), LSTRING(proximityScaling_description)],
_category,
false,
1
] call CBA_fnc_addSetting;
[
QGVAR(indicatorForSelf), "CHECKBOX",
[LSTRING(indicatorForSelf_name), LSTRING(indicatorForSelf_description)],
_category,
true,
0
] call CBA_fnc_addSetting;
[
QGVAR(indicatorColor), "COLOR",
[LSTRING(indicatorColor_name), LSTRING(indicatorColor_description)],
_category,
[0.83, 0.68, 0.21, 0.75],
0
] call CBA_fnc_addSetting;