Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1.  
  2.  
  3. local ico = WeakAuras.regions[aura_env.id].region.icon
  4. -- ico:SetTexture( GetSpellTexture(aura_env.id) )
  5.  
  6. aura_env.xOff = 0 -- + to right, - to left
  7. aura_env.yOff = 9 -- + goes up, - goes down
  8. aura_env.pointOnStacks = "TOP"
  9. aura_env.pointOnIcon = "TOP"
  10. -- point options are "CENTER", "BOTTOM", "TOP", "LEFT", "RIGHT", "BOTTOMLEFT", "BOTTOMRIGHT", "TOPLEFT", "TOPRIGHT".
  11.  
  12. -- ignore below here.
  13.  
  14. aura_env.reanchor = function()
  15. local stacks = WeakAuras.regions[aura_env.id].region.stacks
  16. local icon = WeakAuras.regions[aura_env.id].region.icon
  17. stacks:ClearAllPoints()
  18. stacks:SetPoint(aura_env.pointOnStacks, icon, aura_env.pointOnIcon, aura_env.xOff, aura_env.yOff)
  19. end
  20.  
  21. aura_env.reanchor()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement