Guest User

FreeUI Portraits.

a guest
Jan 27th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1.         local Portrait = CreateFrame('PlayerModel', nil, self)
  2.             Portrait:SetBackdrop(backdrop)
  3.             Portrait:SetBackdropColor(0, 0, 0, .9)
  4.             Portrait:SetWidth(27*3)
  5.             Portrait:SetHeight(27*2)
  6.  
  7.                  FreeUI.CreateBD(Portrait)
  8.            
  9.             if(unit == 'player' or unit == 'focus' or unit == 'pet' or unit == 'party') then
  10.             Portrait:SetPoint('BOTTOMLEFT', self, 'BOTTOMLEFT', -92, -26)
  11.             elseif(unit == 'target') then
  12.             Portrait:SetPoint('BOTTOMLEFT', self, 'BOTTOMRIGHT', 11, -26)
  13.         end
  14.        
  15.         self.Portrait = Portrait
Add Comment
Please, Sign In to add comment