Skip to content

Commit

Permalink
Make Attachment Swap Close Item Action Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 committed May 21, 2021
1 parent 6e94a90 commit 2537cc3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/accessory/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ if (!hasInterface) exitWith {};
params ["", "", "_item"];
count (_item call CBA_fnc_switchableAttachments) > 1 // return
}, {
[1, "next"] call FUNC(switchAttachment) // return
[1, "next"] call FUNC(switchAttachment);
false
}
] call CBA_fnc_addItemContextMenuOption;

Expand All @@ -34,6 +35,7 @@ if (!hasInterface) exitWith {};
params ["", "", "_item"];
count (_item call CBA_fnc_switchableAttachments) > 1 // return
}, {
[2, "next"] call FUNC(switchAttachment) // return
[2, "next"] call FUNC(switchAttachment);
false
}
] call CBA_fnc_addItemContextMenuOption;

0 comments on commit 2537cc3

Please sign in to comment.