Loading...

Minimap Aura Fade

#1
So far, I've run across a forum post that had the following Lua. It works well, but can someone provide some Lua to help me cause the buff bar to set alpha to 1 when mouseover?

Code: Select all

local HideMinimap = CreateFrame("Frame")
HideMinimap:RegisterEvent("PLAYER_REGEN_ENABLED")
HideMinimap:RegisterEvent("PLAYER_REGEN_DISABLED")
HideMinimap:RegisterEvent("PLAYER_ENTERING_WORLD")
HideMinimap:SetScript("OnEvent", function(self, event)
	if event == "PLAYER_REGEN_DISABLED" then
		ElvUIPlayerBuffs:Show()
	elseif event == "PLAYER_ENTERING_WORLD" then
		ElvUIPlayerBuffs:SetAlpha(0.4)
	elseif event == "PLAYER_REGEN_ENABLED" then
		ElvUIPlayerBuffs:SetAlpha(0.4)
	end
end)

Who is online

Users browsing this forum: No registered users and 1 guest