weaponSelect CBA Setting (#5581)

* weaponSelectCBASetting

* Update to movedToSQF

* Add category
This commit is contained in:
commy2 2018-02-09 21:28:34 +01:00 committed by PabstMirror
parent ba5d44b848
commit eedb9fe614
3 changed files with 11 additions and 5 deletions

View File

@ -1,10 +1,6 @@
class ACE_Settings { class ACE_Settings {
class GVAR(displayText) { class GVAR(displayText) {
typeName = "BOOL"; movedToSQF = 1;
isClientSettable = 1;
value = 1;
displayName = CSTRING(SettingDisplayTextName);
description = CSTRING(SettingDisplayTextDesc);
}; };
}; };

View File

@ -26,4 +26,6 @@ GVAR(GrenadesNonFrag) = [];
false false
} count getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles"); } count getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
#include "initSettings.sqf"
ADDON = true; ADDON = true;

View File

@ -0,0 +1,8 @@
// CBA Settings [ADDON: ace_weaponselect]:
[QGVAR(displayText), "CHECKBOX",
[LSTRING(SettingDisplayTextName), LSTRING(SettingDisplayTextDesc)],
localize ELSTRING(common,ACEKeybindCategoryWeapons),
true, // default value
false, // isGlobal
{[QGVAR(displayText), _this] call EFUNC(common,cbaSettings_settingChanged)}] call CBA_settings_fnc_init;