ACE3/addons/captives/initSettings.sqf
GhostIsSpooky 998f86f034
General - Move to CBA Settings (#8461)
* first pass

* second pass

* third pass

* final pass

* missing commas

* newlines

* switch to cba eventhandler

* newlines, formatting

* laser - movedToSQF

* add logging to ace_common_fnc_cbaSettings_loadFromConfig

* Update initSettings.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-10-11 15:48:30 -05:00

34 lines
992 B
Plaintext

private _category = format ["ACE %1", localize LSTRING(DisplayName)];
[
QGVAR(allowHandcuffOwnSide), "CHECKBOX",
[LSTRING(ModuleSettings_handcuffSide_name), LSTRING(ModuleSettings_handcuffSide_description)],
_category,
true,
1
] call CBA_fnc_addSetting;
[
QGVAR(requireSurrender), "LIST",
[LSTRING(ModuleSettings_requireSurrender_name), LSTRING(ModuleSettings_requireSurrender_description)],
_category,
[[0, 1, 2], [ELSTRING(common,Disabled), LSTRING(SurrenderOnly), LSTRING(SurrenderOrNoWeapon)], 1],
1
] call CBA_fnc_addSetting;
[
QGVAR(allowSurrender), "CHECKBOX",
[LSTRING(ModuleSettings_allowSurrender_name), LSTRING(ModuleSettings_allowSurrender_description)],
_category,
true,
1
] call CBA_fnc_addSetting;
[
QGVAR(requireSurrenderAi), "CHECKBOX",
[LSTRING(ModuleSettings_requireSurrenderAi_name), LSTRING(ModuleSettings_requireSurrenderAi_description)],
_category,
false,
1
] call CBA_fnc_addSetting;