Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Item Context Menu Framework #1303

Merged
merged 20 commits into from
Mar 19, 2020
Merged

Add Item Context Menu Framework #1303

merged 20 commits into from
Mar 19, 2020

Conversation

commy2
Copy link
Contributor

@commy2 commy2 commented Mar 6, 2020

When merged this pull request will:

When double clicking an item in inventory, it reports the classname and container type (CONTAINER, GROUND, UNIFORM, VEST, BACKPACK) in chat.

@commy2 commy2 added the WIP label Mar 6, 2020
@commy2
Copy link
Contributor Author

commy2 commented Mar 7, 2020

Need feedback for syntax:

Some options for testing:

["#All", "ALL", ">DEBUG ACTION<", nil, nil, {true}, {
    params ["_unit", "_container", "_item", "_slot", "_params"];
    systemChat str [name _unit, typeOf _container, _item, _slot, _params];
    true
}] call CBA_fnc_addItemContextMenuOption;
["FirstAidKit", ["CONTAINER"], ["HEAL", "Heal yourself"], [], "", {
    params ["_unit", "_container", "_item", "_slot", "_damage"];
    damage _unit > _damage
}, {
    params ["_unit", "_container", "_item", "_slot", "_damage"];
    _unit setDamage _damage;
}, true, 0.1] call CBA_fnc_addItemContextMenuOption;

@commy2 commy2 changed the title report item classname and selected container on 2x click Add Item Context Menu Framework Mar 7, 2020
@commy2
Copy link
Contributor Author

commy2 commented Mar 8, 2020

Updated the last post for the new syntax.

@commy2 commy2 added this to the 3.15 milestone Mar 13, 2020
@commy2 commy2 merged commit 72cf499 into master Mar 19, 2020
@commy2 commy2 deleted the item-contextMenu branch March 19, 2020 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inventory Framework
3 participants