Skip to content

Commit

Permalink
Merge pull request #1455 from CBATeam/attachment-swap-close-menu
Browse files Browse the repository at this point in the history
Make Attachment Swap Close Item Action Menu
  • Loading branch information
commy2 committed May 21, 2021
2 parents 6e94a90 + 2537cc3 commit f22af1a
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 f22af1a

Please sign in to comment.