31 lines
724 B
Plaintext
31 lines
724 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"];
|
|
[
|
|
QUOTE(COMPONENT),
|
|
"SETTING CHANGED",
|
|
[
|
|
[
|
|
"setting",
|
|
QGVAR(setting_allowSupplyBoxScrollWheelSpawning)
|
|
],
|
|
["newValue", _value]
|
|
]
|
|
] call EFUNC(util,log);
|
|
},
|
|
true // requires mission restart
|
|
] call CBA_fnc_addSetting;
|
|
|
|
[
|
|
QUOTE(COMPONENT),
|
|
"CREATED SETTINGS",
|
|
[]
|
|
] call EFUNC(util,log); |