Skip to content

Instantly share code, notes, and snippets.

@Evilpaul
Created October 12, 2010 10:01
Show Gist options
  • Save Evilpaul/621963 to your computer and use it in GitHub Desktop.
Save Evilpaul/621963 to your computer and use it in GitHub Desktop.
-- 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,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment