mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
weaponSelect CBA Setting (#5581)
* weaponSelectCBASetting * Update to movedToSQF * Add category
This commit is contained in:
parent
ba5d44b848
commit
eedb9fe614
@ -1,10 +1,6 @@
|
||||
|
||||
class ACE_Settings {
|
||||
class GVAR(displayText) {
|
||||
typeName = "BOOL";
|
||||
isClientSettable = 1;
|
||||
value = 1;
|
||||
displayName = CSTRING(SettingDisplayTextName);
|
||||
description = CSTRING(SettingDisplayTextDesc);
|
||||
movedToSQF = 1;
|
||||
};
|
||||
};
|
||||
|
@ -26,4 +26,6 @@ GVAR(GrenadesNonFrag) = [];
|
||||
false
|
||||
} count getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
|
||||
|
||||
#include "initSettings.sqf"
|
||||
|
||||
ADDON = true;
|
||||
|
8
addons/weaponselect/initSettings.sqf
Normal file
8
addons/weaponselect/initSettings.sqf
Normal 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;
|
Loading…
Reference in New Issue
Block a user