Guest User

Untitled

a guest
Jan 14th, 2013
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         local ClassIcons = {}
  2.         if myClass == "MONK" or myClass == "PRIEST" or myClass == "PALADIN"  then  
  3.           for index = 1, 5 do
  4.             local Icon = CreateFrame("Frame", "coldCI"..index, self)
  5.             Icon.UpdateTexture = dummy
  6.             Icon:SetSize(10, 10)
  7.             Icon:SetBackdrop(backdrop)
  8.             Icon:SetBackdropBorderColor(0,0,0)
  9.             Icon:SetFrameLevel(6)
  10.             ClassIcons[index] = Icon   
  11.           end
  12.           -- Position (made it backwards to right align)
  13.           for backindex = 5, 1, -1 do
  14.             if backindex == 5 then
  15.               ClassIcons[backindex]:SetPoint('BOTTOMRIGHT', Health, 'BOTTOMRIGHT', -2, 2)
  16.             else  
  17.               ClassIcons[backindex]:SetPoint('RIGHT', ClassIcons[backindex+1], 'LEFT', -2, 0)
  18.             end  
  19.           end  
  20.         end
  21.         self.ClassIcons = ClassIcons
RAW Paste Data