Navigation menu

WoW:SecureActionButtonTemplate: Difference between revisions

Jump to navigation Jump to search
m
mNo edit summary
Line 21: Line 21:
  </Button>
  </Button>
   
   
* All secure frames must set a "unit" attribute, even if your intended usage of the button doesn't use a unit. Any secure frame that does not have a [[UnitId]] will fail to perform any action.  
* Any secure frame that does not have a [[UnitId]] will fail to perform any action that requires one for the action.  
  myButton:SetAttribute("unit", [[UnitId]])
  myButton:SetAttribute("unit", [[UnitId]])


Anonymous user