WoW:SecureUnitButtonTemplate: Difference between revisions

menufunc parameters?
(Created page with '{{uitech}} '''SecureUnitButtonTemplate''' is one of the SecureTemplates introduced in Patch 2.0. It's purpose is to allow creation of unit frames, executing certain protected...')
 
(menufunc parameters?)
Line 10: Line 10:
:; unit : String - unit this unit frame is showing/acting on.
:; unit : String - unit this unit frame is showing/acting on.
:; menuFunc : Function - menu function to show when the frame is right clicked.
:; menuFunc : Function - menu function to show when the frame is right clicked.
The function sets a limited number of attributes on a frame to make it behave like the default unit frames: left clicks target the unit, and right clicks open the menu by calling menuFunc with (self, button) arguments.
The function sets a limited number of attributes on a frame to make it behave like the default unit frames: left clicks target the unit, and right clicks open the menu by calling menuFunc with (self, button) arguments (''possibly incorrect, see discussion'').




Anonymous user