Enhancement Request :: Add to Blizzard UI "Add Ons" "Button" (now refers to PR 291)
JPEscher opened this issue · 5 comments
notice this in discussion with another add on i use. hope it is helpful
https://warcraft.wiki.gg/wiki/Addon_compartment
from that, this in "core.lua" causes the button in the addons. im not sure from the code how to get the two interfaces.
AddonCompartmentFrame:RegisterAddon({
text = "Raider.IO Mythic Plus, Raiding, and Recruitment",
icon = "Interface/AddOns/RaiderIO/icons/logo.blp",
notCheckable = true,
func = function(button, menuInputData, menu)
local buttonName = menuInputData.buttonName; -- debugging check line
-- print("Hello from the addon compartment! You clicked " .. buttonName .. "!") -- debugging check line
if buttonName == "LeftButton" then
print("needs left click command")
-- elseif buttonName == "MiddleButton" then
-- command2
elseif buttonName == "RightButton" then
print("needs right click command")
end
end,
funcOnEnter = function(button)
MenuUtil.ShowTooltip(button, function(tooltip)
tooltip:SetText("Raider.IO Mythic Plus, Raiding, and Recruitment")
end)
end,
funcOnLeave = function(button)
MenuUtil.HideTooltip(button)
end,
})
tried to be more helpful. forked, and added what worked with my playing on the local add on.
#291
hope this helps, is liked, and accepted. i completely understand if there's some need for tweaks to make it perfect.