Hi, I'd like to add a button to the menu that pops up when you right-click a group or a player in group finder.
Currently when right-click on a premade group, the options are "Whisper Leader and Report Group". On players it's "Whisper, Report and Ignore".
How can I add another button in those menus that calls a function and passes the leader's or the player's name as an argument?
On other menus you can do something like:
Code:
UnitPopupButtons["MY_BUTTON"] = { text = "My button", dist = 0 }
table.insert(UnitPopupMenus["PLAYER"], #UnitPopupMenus["PLAYER"], "MY_BUTTON")
hooksecurefunc("UnitPopup_OnClick", myFunc)
I know that I can hardcode it right into LFGList.lua, but I'm looking for a way that wouldn't interfere with other addons.