View Single Post
08-30-23, 10:42 PM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,335
SecureActionButtonTemplate supports using a custom type attribute to run a SecureHandler script.

Lua Code:
  1. button:SetAttribute("type1","customscript");-- Can be anything as long as it isn't one of the predefined actions
  2. button:SetAttribute("_customscript",[[-- Attribute name here must match the value of the "type" attribute above prefixed with "_"
  3.     -- Do something
  4. ]]);



(This post was meant to replace my previous one as a better option)
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote