WoW:USERAPI Frame SetManyAttributes: Difference between revisions

m
Move page script moved page USERAPI Frame SetManyAttributes to WoW:USERAPI Frame SetManyAttributes without leaving a redirect
No edit summary
 
m (Move page script moved page USERAPI Frame SetManyAttributes to WoW:USERAPI Frame SetManyAttributes without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{userfunc}}
{{usermethod}}
__NOTOC__
 
Small function to be attached to secure frames to allow for setting many attributes in a single call.
Small function to be attached to secure frames to allow for setting many attributes in a single call.


Line 22: Line 20:
  frames[1]:SetManyAttributes("type1", "macro", "macrotext", "/equip Hydrocane")
  frames[1]:SetManyAttributes("type1", "macro", "macrotext", "/equip Hydrocane")
  frames[2]:SetManyAttributes("type1", "spell", "spell", "Greater Heal")
  frames[2]:SetManyAttributes("type1", "spell", "spell", "Greater Heal")
Or to just use the function on a random frame:
  SetManyAttributes(someFrame, "type1", "macro", "macrotext", "/equip Hydrocane");
Anonymous user