I have some problems with my healthbars.
After leaving a vehicle it stays gray my (d/c) color.
Same happens to my pet once I mount-up and dismount.
Code:
local hp = CreateFrame("StatusBar", nil, self)
hp:SetHeight(cfg.heightHP)
hp:SetStatusBarTexture(cfg.Gentex)
hp:SetPoint"TOP"
hp:SetPoint"LEFT"
hp:SetPoint"RIGHT"
hp:SetStatusBarColor(0.09, 0.09, 0.09)
hp.colorDisconnected = true
hp.colorTapping = true
hp:GetStatusBarTexture():SetHorizTile(true)
hp.frequentUpdates = true
self.Health = hp
self.Health.PostUpdate = PostUpdateHealth
the code that does coloring, I don't have a clue what is causing this.
any suggestions?