#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);

		if (_value && hasInterface && time > 0) then {
			[] call FUNC(addArsenalObjectSpawnBoxActions);
		};
	},
	true // requires mission restart
] call CBA_fnc_addSetting;

[
	LEVEL_INFO,
	QUOTE(COMPONENT),
	"CREATED SETTINGS",
	[]
] call EFUNC(common,log);