Guest User

Untitled

a guest
Jun 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. -- Position and size
  2. local mhpb = CreateFrame('StatusBar', nil, self.Health)
  3. mhpb:SetPoint('TOPLEFT', self.Health:GetStatusBarTexture(), 'TOPRIGHT', 0, 0)
  4. mhpb:SetPoint('BOTTOMLEFT', self.Health:GetStatusBarTexture(), 'BOTTOMRIGHT', 0, 0)
  5. mhpb:SetWidth(200)
  6. mhpb:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]])
  7. mhpb:SetStatusBarColor(0, 1, 0.5, 0.25)
  8.  
  9. local ohpb = CreateFrame('StatusBar', nil, self.Health)
  10. ohpb:SetPoint('TOPLEFT', mhpb:GetStatusBarTexture(), 'TOPRIGHT', 0, 0)
  11. ohpb:SetPoint('BOTTOMLEFT', mhpb:GetStatusBarTexture(), 'BOTTOMRIGHT', 0, 0)
  12. ohpb:SetWidth(200)
  13. ohpb:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]])
  14. ohpb:SetStatusBarColor(0, 1, 0, 0.25)
  15.  
  16. -- Register it with oUF
  17. self.HealPrediction = {
  18. -- status bar to show my incoming heals
  19. myBar = mhpb,
  20.  
  21. -- status bar to show other peoples incoming heals
  22. otherBar = ohpb,
  23.  
  24. -- amount of overflow past the end of the health bar
  25. maxOverflow = 1.05,
  26. }
Add Comment
Please, Sign In to add comment