local macroBtn = CreateFrame("Button", "Prospect", UIParent, "SecureActionButtonTemplate");
macroBtn:SetAttribute("type", "spell")
macroBtn:SetAttribute("spell", "Prospecting");
macroBtn:RegisterForClicks("AnyUp")
macroBtn:SetWidth(60); macroBtn:SetHeight(60)
macroBtn:SetPoint("Center")
macroBtn:Show()
macroBtn:EnableMouse("true")
macroBtn:EnableMouseWheel("false")
With the above code using the SecureActionButtonTemplate, i am able to cast Prospecting like i wanted. The problem now is, i can not get the button to show.
I can use /click Prospect and it fires just fine, but obviously im missing something to show the button, just not sure where i went wrong