I'm seeing a bug with this pet frame code:
Code:
if unit=="pet" then
self:SetWidth(120)
self:SetHeight(18)
self.Health:SetHeight(14.5)
self.Name:Hide()
self.Health.value:SetPoint("RIGHT", 0, 9)
self.Power:SetHeight(2)
self.Power.value:Show()
self.Power.value:SetPoint("LEFT", self.Health, 0, 9)
self.Power.value:SetJustifyH"LEFT"
self.Level:Hide()
self.Level:Hide()
self.Health.value:Hide()
self.Level:Hide()
self.Name:Hide()
self.disallowVehicleSwap = true
if playerClass=="HUNTER" then
self.Health.colorReaction = false
self.Health.colorClass = false
self.Health.colorHappiness = true
end
--
-- oUF_BarFader
--
self.BarFade = true
self.BarFadeAlpha = 0.2
end
When mounting a vehicle for the first time after login, the pet frame turns black. Exiting and remounting causes the color to return to normal. Any idea what's causing this?