Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

FreeUI Portraits.

By: a guest on Jan 27th, 2011  |  syntax: Lua  |  size: 0.58 KB  |  hits: 64  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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