change root level folder name to framework, update resupply+vehicleflags
tested locally
This commit is contained in:
25
framework/resupply/functions/fn_addCBASettings.sqf
Normal file
25
framework/resupply/functions/fn_addCBASettings.sqf
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
[
|
||||
QGVAR(setting_allowSupplyBoxScrollWheelSpawning), // variable
|
||||
"CHECKBOX", // type
|
||||
["Allow Spawning Boxes from Arsenal Box", "If true, adds scroll wheel options to arsenal boxes to spawn supply boxes"], // title
|
||||
[QUOTE(SETTINGS_GROUP_NAME), QUOTE(COMPONENT_BEAUTIFIED)], // category
|
||||
false, // default value
|
||||
true, // global setting
|
||||
{
|
||||
params ["_value"];
|
||||
[
|
||||
QUOTE(COMPONENT),
|
||||
"SETTING CHANGED",
|
||||
[
|
||||
[
|
||||
"setting",
|
||||
QGVAR(setting_allowSupplyBoxScrollWheelSpawning)
|
||||
],
|
||||
["newValue", _value]
|
||||
]
|
||||
] call EFUNC(util,log);
|
||||
},
|
||||
true // requires mission restart
|
||||
] call CBA_fnc_addSetting;
|
||||
Reference in New Issue
Block a user