Advertisement
Guest User

aaa

a guest
Apr 25th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. local barX = false
  2. function Zev:clickThroughBars()
  3. local clickable = barX
  4. ElvUI_Bar5:EnableMouse(clickable)
  5. ElvUI_Bar6:EnableMouse(clickable)
  6. for i = 1, 7 do
  7. _G['ElvUI_Bar5Button' .. i]:EnableMouse(clickable)
  8. _G['ElvUI_Bar6Button' .. i]:EnableMouse(clickable)
  9. end
  10. end
  11. local clickThroughBars = CreateFrame('Frame')
  12. clickThroughBars:RegisterEvent('PLAYER_ENTERING_WORLD')
  13. clickThroughBars:SetScript('OnEvent', Zev.clickThroughBars)
  14. SLASH_ZEVBAR1 = '/bar'
  15. SlashCmdList['ZEVBAR'] = function()
  16. barX = not barX
  17. Zev:clickThroughBars()
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement