Originally Posted by syncrow
you have to create a texture on top of the statusbar instead of using :SetStatusBarTexture()
|
How so, exactly? I'm hunching that the way I've done it here is not quite how you mean with that, because this just seems to create a white texture frame underneath the bar.
Lua Code:
lib.CreateHealth = function(frame,unit,width,height,point,x,y)
local hp = CreateFrame('StatusBar', nil, frame)
hp:SetSize(width,height)
hp:SetPoint(point,frame,x,y)
hp:SetFrameLevel(2)
local bar = hp:CreateTexture(nil, 'ARTWORK')
bar:SetAllPoints(hp)
bar:SetTexture('Interface\\TargetingFrame\\UI-StatusBar')
if (unit == 'target') then
hp:SetReverseFill(true)
end
-- Register it with oUF
frame.Health = hp
end