Hey guys I need some help adding some lua code to an addon I use that auto shows/hides the right action bar on mouseover.
The addon itself works perfectly except when I click on mage teleport or Portal and mouse off the action bar to click on a city - the action bar disappears (as intended).
Is it possible to add SpellFlyout buttons 1-13 to the following code?
Code:
MultiBarRight:EnableMouse(true)
MultiBarRight:SetAlpha(0)
MultiBarRight:SetScript("OnEnter", function(self) self:SetAlpha(1) end)
MultiBarRight:SetScript("OnLeave", function(self) self:SetAlpha(0) end)
local function hidebar2() MultiBarRight:SetAlpha(0) end
local function showbar2() MultiBarRight:SetAlpha(1) end
for btn=1,12 do
_G["MultiBarRightButton"..btn]:SetScript("OnEnter",showbar2)
_G["MultiBarRightButton"..btn]:SetScript("OnLeave",hidebar2)
end
- - - Updated - - -
*Edit*
If that's not possible - how about adding a 5 second timer to the "OnLeave" event?