Quantcast
WoWInterface - View Single Post - Prospecting Lua Script Help
View Single Post
01-07-12, 10:44 AM   #3
Angrysteel
A Murloc Raider
Join Date: Jan 2008
Posts: 6
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
  Reply With Quote