Guest User

Untitled

a guest
May 26th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. -- Position and size
  2. local Health = CreateFrame("StatusBar", nil, self)
  3. Health:SetHeight(20)
  4. Health:SetPoint('TOP')
  5. Health:SetPoint('LEFT')
  6. Health:SetPoint('RIGHT')
  7.  
  8. -- Add a background
  9. local Background = Health:CreateTexture(nil, 'BACKGROUND')
  10. Background:SetAllPoints(Health)
  11. Background:SetTexture(1, 1, 1, .5)
  12.  
  13. -- Options
  14. Health.frequentUpdates = true
  15. Health.colorTapping = true
  16. Health.colorDisconnected = true
  17. Health.colorHappiness = true
  18. Health.colorClass = true
  19. Health.colorReaction = true
  20. Health.colorHealth = true
  21.  
  22. -- Make the background darker.
  23. Background.multiplier = .5
  24.  
  25. -- Register it with oUF
  26. self.Health = Health
  27. self.Health.bg = Background
Add Comment
Please, Sign In to add comment