Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-28-13, 06:08 AM   #1
laukond
A Black Drake
Join Date: Dec 2011
Posts: 87
Hide MicroBars Mouseover / Achievement Button

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?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Hide MicroBars Mouseover / Achievement Button


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off