I got a question. I will test it later but maybe someone will know the answer already.
Is this possible?
Lua Code:
local bar = self.HealthBar
bar.texture = bar:GetStatusBarTexture() --texture object
--new fake statusbar
bar.newTexture = bar:CreateTexture(nil, "BACKGROUND",nil,-6)
bar.newTexture:SetAllPoints(bar.texture)
bar.newTexture:SetTexture(bar.texture:GetTexture()) --texture file path
bar.newTexture:SetVertexColor(0,1,1)
--old statusbar texture goodbye
bar.texture:SetTexture(nil)
--alternative test..this may destroy the texture reference though
--bar:SetStatusBarTexture(nil)
Basically I want to hide the default statusbar texture and add a new one.
But I do not want to hook the OnValueChanged event to update the setpoint.
So I thought...maybe it is possible to set the setpoints of the new texture to points of the old statusbar texture object. Sounds like it could work.