Originally Posted by Phanx
You don't need to name them. Assuming your plugin frame is a direct child of your panel/bar frame, this quick adaptation of my watch frame fading code should work for your panel. The parts in orange will need to be adapated to your specific code.
|
First off, you're awesome.
Secondly, I was trying from this angle, but turns out -- doesn't work well :P
Lua Code:
local textpanes = {}
textpanes = BottomPanel:GetChildren()
tinsert(textpanes, BottomPanel)
for index = 1, #textpanes do
textpanes[index]:SetScript("OnEnter", function()
UIFrameFadeIn(BottomPanel, 2.0, 0.0, 1.0)
end)
textpanes[index]:SetScript("OnLeave", function()
UIFrameFadeOut(BottomPanel, 2.0, 1.0, 0.0)
end)
end