View difference between Paste ID: MdbgD78e and
SHOW: | | - or go back to the newest paste.
1-
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