I use this script to hide the micromenu when now mouseovered:
Code:
local function showFoo(self)
for _, v in ipairs(MICRO_BUTTONS) do
_G[v]:SetAlpha(1)
end
end
local function hideFoo(self)
for _, v in ipairs(MICRO_BUTTONS) do
_G[v]:SetAlpha(0)
end
end
for _, v in ipairs(MICRO_BUTTONS) do
v = _G[v]
v:HookScript("OnEnter", showFoo)
v:HookScript("OnLeave", hideFoo)
v:SetAlpha(0)
end
My problem is that the achievement button doesn't hide on login, I need to hover it once for it to fade:
http://i.imgur.com/h18nkpF.jpg
How do I make the achievement button fade on login like the rest of the micromenu buttons?