Thread: Healthbar
View Single Post
10-25-10, 02:30 PM   #1
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 196
Healthbar

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?
__________________
  Reply With Quote