Files
MissionTemplate/framework/resupply/functions/fn_addCBASettings.sqf
2024-02-06 01:52:25 -08:00

25 lines
657 B
Plaintext

#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"];
[
QGVAR(setting_allowSupplyBoxScrollWheelSpawning),
_value
] call EFUNC(common,logSettingChanged);
},
true // requires mission restart
] call CBA_fnc_addSetting;
[
LEVEL_INFO,
QUOTE(COMPONENT),
"CREATED SETTINGS",
[]
] call EFUNC(common,log);