Thread: HealPrediction
View Single Post
10-09-13, 08:39 PM   #9
Freebaser
A Molten Kobold Bandit
 
Freebaser's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 135
You can drop the PostUpdate healAbsorbPercent and healAbsorbBar:SetPoint stuff. Use something like this when creating the bar.

Lua Code:
  1. local healAbsorbBar = CreateFrame("StatusBar", nil, self.Health)
  2. healAbsorbBar:SetStatusBarTexture[[Interface\RaidFrame\Absorb-Fill]]
  3. healAbsorbBar:SetPoint("TOP")
  4. healAbsorbBar:SetPoint("BOTTOM")
  5. healAbsorbBar:SetPoint("LEFT", self.Health:GetStatusBarTexture(), "RIGHT", -(self.Health:GetWidth()), 0)
  6. healAbsorbBar:SetWidth(self.Health:GetWidth())
  7. healAbsorbBar:SetReverseFill(true)
  8. healAbsorbBar:Hide()
  Reply With Quote