Adds context menu option to inventory display.
_item | Item classname STRING Can be base class. |
[“Equipment”,”Headgear”] -> “#Equipment” and/or “##Headgear”
#All
_slots | Relevant slots <ARRAY, STRING> Values: ALL GROUND CARGO CONTAINER UNIFORM_CONTAINER VEST_CONTAINER BACKPACK_CONTAINER |
CLOTHES UNIFORM VEST BACKPACK HEADGEAR GOGGLES
WEAPON RIFLE LAUNCHER PISTOL BINOCULAR
SILENCER RIFLE_SILENCER LAUNCHER_SILENCER PISTOL_SILENCER
BIPOD RIFLE_BIPOD LAUNCHER_BIPOD PISTOL_BIPOD
OPTIC RIFLE_OPTIC LAUNCHER_OPTIC PISTOL_OPTIC
POINTER RIFLE_POINTER LAUNCHER_POINTER PISTOL_POINTER
MAGAZINE RIFLE_MAGAZINE RIFLE_MAGAZINE_GL LAUNCHER_MAGAZINE PISTOL_MAGAZINE
ASSIGNED_ITEM MAP GPS RADIO COMPASS WATCH HMD
_displayName String keys are automatically translated. <STRING, ARRAY> 0: _displayName - Option display name STRING 1: _tooltip - Option tooltip STRING
_color | Option text color. Default alpha is 1. (default: [] = default color) ARRAY |
_icon | Path to icon. (default: “” = no icon) STRING |
_condition <CODE, ARRAY> 0: _conditionEnable - Menu option is enabled and executed only if this condition reports ‘true’ (default: {true}) <CODE> 1: _conditionShow - Menu option is shown only if this condition reports ‘true’. (optional, default: {true}) <CODE>
_statement | Option statement (default: {}) <CODE> Return true to keep context menu opened. |
_consume | Remove the item before executing the statement code. (default: false) <BOOLEAN> |
_params | Arguments passed as ‘_this select 4’ to condition and statement (optional, default: []) <ANY> |
Nothing/Undefined.
["#All", "ALL", ">DEBUG ACTION<", nil, nil, {true}, { params ["_unit", "_container", "_item", "_slot", "_params"]; systemChat str [name _unit, typeOf _container, _item, _slot, _params]; true }, false, [0,1,2]] call CBA_fnc_addItemContextMenuOption;
commy2