View Single Post
04-09-09, 02:57 PM   #1
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
frame strata issue for fontstrings

I'm trying to set up a fontstring "strata" that overlays a texture (art) on my unitframes.

I create frames like normal, but with stratas for health and power to have more control of things overlapping each other.
...
self.Health:SetFrameStrata("LOW")
self.Health:SetFrameLevel(3)
...
self.Power:SetFrameStrata("LOW")
self.Power:SetFrameLevel(3)
...
the art code looks like this
Code:
		TargetBG:SetFrameStrata("LOW")
		TargetBG:SetFrameLevel(5)

I'm doing the text strings with tags, like that:
Code:
	local health = self.Health:CreateFontString(nil, 'OVERLAY')
	health:SetFontObject(GameFontNormal)
	health:SetPoint('RIGHT', -3, 10)
	self:Tag(health, '[smarthp]')
	health:SetFont(font, fontsize, "OUTLINE")	
	health:SetDrawLayer("OVERLAY")
I tried it with the red part, but it's still below the art.
Everything looks right, the backdrop is below the bars, the background of the bars is below the bars, too. the bars are below the art texture. ... but the freaking font string is below the art texture, too.

Any ideas ?
  Reply With Quote