View Single Post
Old 04-28-09, 03:25 PM   #1012
Nubsy
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 14
hi im wonder how do you set the strata on portraits as mine seems to over power my bars due to were i have mine,

Code
Code:
if(unit == 'player' or unit == 'target')then
		portrait = CreateFrame("PlayerModel", nil, self)
		portrait:SetScript("OnShow", function(self) self:SetCamera(0)end)
		portrait:SetWidth(290)
		portrait:SetHeight(27)
		portrait:SetPoint("TOPLEFT", self, "TOPLEFT", 4, -4)
		portrait.type = "3D"
		self.Portrait = portrait
end
ive tried adding
Code:
portrait:SetStrata ("LOW")
but it jst gives me an error

Last edited by Nubsy : 04-28-09 at 03:27 PM.
Nubsy is offline