Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local barX = false
- function Zev:clickThroughBars()
- local clickable = barX
- ElvUI_Bar5:EnableMouse(clickable)
- ElvUI_Bar6:EnableMouse(clickable)
- for i = 1, 7 do
- _G['ElvUI_Bar5Button' .. i]:EnableMouse(clickable)
- _G['ElvUI_Bar6Button' .. i]:EnableMouse(clickable)
- end
- end
- local clickThroughBars = CreateFrame('Frame')
- clickThroughBars:RegisterEvent('PLAYER_ENTERING_WORLD')
- clickThroughBars:SetScript('OnEvent', Zev.clickThroughBars)
- SLASH_ZEVBAR1 = '/bar'
- SlashCmdList['ZEVBAR'] = function()
- barX = not barX
- Zev:clickThroughBars()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement