Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-22-10, 08:01 AM   #1
Lyelu
A Cyclonian
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 44
Portrait options

Hi,
I'm trying to place the 3d Portrait into a round border (square peg in round hole). Since I could not find any easy way to do this, I thought maybe I could change the z-axis, to zoom out, so that my PlayerModel isn't "cut off" into a square. So, I found all of these options for PlayerModel:
http://wowprogramming.com/docs/widgets/PlayerModel

Problem is, I can only get one of them to actually work. I can turn myself red, but nothing else:

Code:
	self.Portrait = CreateFrame("PlayerModel", nil, self.Container)
	self.Portrait:SetWidth(48)
	self.Portrait:SetHeight(48)
	self.Portrait:SetPoint("LEFT", self.Portraitborder, "LEFT", 14, 0)
	--Working: Can turn myself red.
	self.Portrait:SetLight(1, 0, 1, 1, 1, 1 , .8, .2, .2, 1, .8, .8, .64) 
	-- Not working: Everything else.
	self.Portrait:SetModelScale(20)
	self.Portrait:SetPosition(12, 12,-5.0)
Zoom and all other functions didn't work either.
Am I missing something obvious?
Thanks.
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Portrait options


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off