View Single Post
09-24-12, 06:21 AM   #3
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 331
Originally Posted by Ekaterina View Post
Hi,
I think that the problem is that the frame is still shown, it hasn't explicitly been hidden, just the alpha has changed.

Try this instead:

Lua Code:
  1. if pressed then
  2.     if SLDT_Clock:GetAlpha > 0 then
  3.         UIFrameFadeOut(SLDT_Clock, 1, 1, 0)
  4.     else
  5.         UIFrameFadeIn(SLDT_Clock, 1, 0, 1)
  6.     end
  7. end

Ekat
SLDT_Clock:GetAlpha() **
  Reply With Quote