Thread: WiP
View Single Post
12-31-13, 02:01 AM   #16
MoonWitch
A Firelord
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 455
Originally Posted by Phanx View Post
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:
  1. local textpanes = {}
  2. textpanes = BottomPanel:GetChildren()
  3. tinsert(textpanes, BottomPanel)
  4.  
  5. for index = 1, #textpanes do
  6.   textpanes[index]:SetScript("OnEnter", function()
  7.     UIFrameFadeIn(BottomPanel, 2.0, 0.0, 1.0)
  8.   end)
  9.   textpanes[index]:SetScript("OnLeave", function()
  10.     UIFrameFadeOut(BottomPanel, 2.0, 1.0, 0.0)
  11.   end)
  12. end
__________________
  Reply With Quote