ACE3/addons/interact_menu/initSettings.sqf
Dystopian 08472f6343
Interact Menu - Combine parent menu with single child (#8060)
* Combine parent menu with single child

* Adapt fastroping Cut ropes action for the setting

* Change setting name and description

* Fix action object when child action has different object

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Adapt quickmount Change Seat actions

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-02-04 11:01:35 -06:00

90 lines
2.6 KiB
Plaintext

[
QGVAR(selectorColor),
"COLOR",
LSTRING(SelectorColor),
format ["ACE %1", LLSTRING(Category_InteractionMenu)],
[1, 0, 0],
false,
{GVAR(selectorColorHex) = _this call BIS_fnc_colorRGBtoHTML} // Stored in Hex to avoid constant conversion
] call CBA_settings_fnc_init;
[
QGVAR(consolidateSingleChild),
"CHECKBOX",
[LSTRING(consolidateSingleChild), LSTRING(consolidateSingleChild_Description)],
format ["ACE %1", LLSTRING(Category_InteractionMenu)],
false
] call CBA_fnc_addSetting;
[
QGVAR(alwaysUseCursorInteraction),
"CHECKBOX",
LSTRING(AlwaysUseCursorInteraction),
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)],
false,
false
] call CBA_settings_fnc_init;
[
QGVAR(cursorKeepCentered),
"CHECKBOX",
[LSTRING(cursorKeepCentered), LSTRING(cursorKeepCenteredDescription)],
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)],
false,
false
] call CBA_settings_fnc_init;
[
QGVAR(useListMenu),
"CHECKBOX",
LSTRING(UseListMenu),
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)],
false,
false
] call CBA_settings_fnc_init;
[
QGVAR(menuBackground),
"LIST",
LSTRING(background),
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LLSTRING(Category_InteractionMenu)],
[[0, 1, 2], ["STR_A3_OPTIONS_DISABLED", LLSTRING(backgroundBlur), LLSTRING(backgroundBlack)], 0],
false
] call CBA_settings_fnc_init;
[
QGVAR(alwaysUseCursorSelfInteraction),
"CHECKBOX",
LSTRING(AlwaysUseCursorInteraction),
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)],
true,
false
] call CBA_settings_fnc_init;
[
QGVAR(cursorKeepCenteredSelfInteraction),
"CHECKBOX",
[LSTRING(cursorKeepCentered), LSTRING(cursorKeepCenteredDescription)],
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)],
false,
false
] call CBA_settings_fnc_init;
[
QGVAR(useListMenuSelf),
"CHECKBOX",
LSTRING(UseListMenu),
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)],
false,
false
] call CBA_settings_fnc_init;
[
QGVAR(menuBackgroundSelf),
"LIST",
LSTRING(background),
[format ["ACE %1", LLSTRING(Category_InteractionMenu)], LELSTRING(Interaction,InteractionMenuSelf)],
[[0, 1, 2], ["STR_A3_OPTIONS_DISABLED", LLSTRING(backgroundBlur), LLSTRING(backgroundBlack)], 0],
false
] call CBA_settings_fnc_init;