SHARE
TWEET

FreeUI Portraits.

a guest Jan 27th, 2011 66 Never
  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
RAW Paste Data
Top