Quantcast WoWInterface - View Single Post - SecureHandlers and 'equipmentset'
View Single Post
03-19-14, 08:01 PM   #4
Vrul
A Frostmaul Preserver
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 267
That code from SecureHandlers.lua is for handling dragging. The code to handle clicking/using a button is in SecureTemplates.lua, specifically the possible options for "type" are the entries in the SECURE_ACTIONS table. Based on that you will probably want:
Code:
button:SetAttribute("type", "macro")
button:SetAttribute("macrotext", "/equipset test")
  Reply With Quote