Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-24-12, 03:36 AM   #1
Be3f.
A Theradrim Guardian
 
Be3f.'s Avatar
Join Date: Jan 2011
Posts: 65
kgPanels FadeIn/Out (OnClick)

So until mop opens I thought I'd make my UI a little fancier, so I decided to try and make a kgpanel that, when clicked, fades in and out a frame. My extreme coding skills got me this:

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

But this only makes "SLDT_Clock" fade out when clicked and not fade in when clicked again. So the question is: What am I missing?
__________________
-- Be3f.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » kgPanels FadeIn/Out (OnClick)


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