Thanks Baertram, your snippet works well. I looked at your WishList AddOn and my code looks like this.
Is there something here that also needs to be addressed or is the code okay?
Lua Code:
function ESOFarmBuddy.LinkContextMenu(link, button, _, _, linkType, ...)
if button == MOUSE_BUTTON_INDEX_RIGHT and linkType == ITEM_LINK_TYPE then
zo_callLater(
function()
AddCustomMenuItem(GetString(ESOFB_MENU_TRACK), function() ESOFarmBuddy.TrackItemFromLink(link) end, MENU_ADD_OPTION_LABEL)
ShowMenu()
end
, 4)
end
end
LINK_HANDLER:RegisterCallback(LINK_HANDLER.LINK_MOUSE_UP_EVENT, ESOFarmBuddy.LinkContextMenu)
Another question: Is there any way to add a context menu entry to auction house result items?
Keldor