View Single Post
11-03-22, 03:00 PM   #8
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,333
For example, you need to call :RegisterForClicks("AnyUp","AnyDown") on all of your buttons that inherit from SecureActionButtonTemplate. The link I posted previously has all of the button event options. Whichever buttons you choose, you need both up and down events for it.

Lua Code:
  1. for _, tbl in ipairs({self.buttons, self.firstrow, self.secondrow, self.thirdrow, self.forthrow}) do
  2.     for _, button in ipairs(tbl) do button:RegisterForClicks("AnyUp", "AnyDown") end
  3. end
__________________
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)

Last edited by SDPhantom : 11-03-22 at 03:13 PM.
  Reply With Quote