Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Position and size
- local mhpb = CreateFrame('StatusBar', nil, self.Health)
- mhpb:SetPoint('TOPLEFT', self.Health:GetStatusBarTexture(), 'TOPRIGHT', 0, 0)
- mhpb:SetPoint('BOTTOMLEFT', self.Health:GetStatusBarTexture(), 'BOTTOMRIGHT', 0, 0)
- mhpb:SetWidth(200)
- mhpb:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]])
- mhpb:SetStatusBarColor(0, 1, 0.5, 0.25)
- local ohpb = CreateFrame('StatusBar', nil, self.Health)
- ohpb:SetPoint('TOPLEFT', mhpb:GetStatusBarTexture(), 'TOPRIGHT', 0, 0)
- ohpb:SetPoint('BOTTOMLEFT', mhpb:GetStatusBarTexture(), 'BOTTOMRIGHT', 0, 0)
- ohpb:SetWidth(200)
- ohpb:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]])
- ohpb:SetStatusBarColor(0, 1, 0, 0.25)
- -- Register it with oUF
- self.HealPrediction = {
- -- status bar to show my incoming heals
- myBar = mhpb,
- -- status bar to show other peoples incoming heals
- otherBar = ohpb,
- -- amount of overflow past the end of the health bar
- maxOverflow = 1.05,
- }
Add Comment
Please, Sign In to add comment