Advertisement
myspacemax

weakaura stacks topmid | actions custom

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