Getting a strange texture problem with my portraits, i'm trying to put my overlay on top of the 2D portrait, but the overlay texture won't appear at all. Yes, the texture is the right size to be loaded by Wow, and yes, i've tried multiple attempts to get it working, including reverting back to my original portrait code which definitely did work.
Here's the code i'm using at the mo.
Code:
if(unit=='player' or unit=='target') then
self.Portraitbg = CreateFrame("Frame",nil,self)
if unit=='player' then
self.Portraitbg:SetPoint('CENTER', UIParent, 'CENTER', -322, -54)
else
self.Portraitbg:SetPoint('CENTER', UIParent, 'CENTER', -322, 36)
end
self.Portraitbg:SetWidth(30)
self.Portraitbg:SetHeight(30)
self.Portrait = self.Portraitbg:CreateTexture(nil, "BACKGROUND")
self.Portrait:SetPoint("TOPLEFT",self.Portraitbg,"TOPLEFT",0,-0)
self.Portrait:SetPoint("BOTTOMRIGHT",self.Portraitbg,"BOTTOMRIGHT",-0,0)
self.Portraitglossf = CreateFrame("Frame",nil,self.Portraitbg)
self.Portraitglossf:SetAllPoints(self.Portraitbg)
self.Portraitglosst = self.Portraitglossf:CreateTexture(nil, "BACKGROUND")
if unit=='player' then
self.Portraitglosst:SetPoint('CENTER', UIParent, 'CENTER', -340, -58)
else
self.Portraitglosst:SetPoint('CENTER', UIParent, 'CENTER', -340, 32)
end
self.Portraitglosst:SetTexture[=[Interface\AddOns\oUF_obble\textures\portoverlay.tga]=]
self.Portraitglosst:SetHeight(70)
self.Portraitglosst:SetWidth(70)
self.Portraitglosst:SetVertexColor(90/255,208/255,243/255)
And i'l attach the texture, just in case i have got the wrong size and gimps messing about with me
Also, is there some way to set Strata on a FontString?
thanks.