Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. -------------------------------------------------------------------------------
  2. local function IterateUnitButtons( name )
  3. local unitid = UnitInRaid( name )
  4. if unitid == nil then return end
  5. unitid = "raid" .. unitid
  6.  
  7. local frame = nil
  8.  
  9. return function()
  10.  
  11. while true do
  12.  
  13. frame = EnumerateFrames( frame )
  14. if frame == nil then return end
  15.  
  16. if frame:GetAttribute( "unit" ) == unitid
  17. and frame:GetScript( "OnClick" ) == SecureUnitButton_OnClick then
  18.  
  19. return frame
  20. end
  21. end
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement