Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. local kn = LibStub('AceAddon-3.0'):GetAddon('KuiNameplates')
  2. local mod = kn:NewModule('CustomInjector', 'AceEvent-3.0')
  3. ------------------------------------------------------------------------ Show --
  4. function mod:PostShow(msg, f)
  5. -- move health.p to centre
  6. f.health.p:ClearAllPoints()
  7. f.health.p:SetJustifyH('CENTER')
  8. f.health.p:SetJustifyV('CENTER')
  9. f.health.p:SetPoint('CENTER')
  10.  
  11. if f.level.enabled then
  12. -- change boss level text
  13. if f.level:GetText() == 'Boss' then
  14. f.level:SetText('??')
  15. end
  16.  
  17. -- move level back to top left
  18. f.level:ClearAllPoints()
  19. f.level:SetPoint('BOTTOMRIGHT', f.health, 'BOTTOMRIGHT',
  20. 2.5, 0)
  21. end
  22. end
  23.  
  24. -------------------------------------------------------------------- Register --
  25. mod:RegisterMessage('KuiNameplates_PostShow', 'PostShow')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement