WoWInterface - View Single Post - Having issues with secureactionbuttontemplate.
View Single Post
04-13-20, 06:25 AM   #4
A Flamescale Wyrmkin
Join Date: Aug 2011
Posts: 128
Using secure template doesn't mean you can use features like CastSpellByName, the template handle the OnClick for you, so you can only set attributes on the button.

For simple, we can bind the macro to the button:

Lua Code:
  1. btn:SetAttribute("type", "macro")
  2. btn:SetAttribute("macrotext", "/cast disenchant\n/run OpenAllBags()")
  Reply With Quote