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:
if pressed then
if SLDT_Clock:IsShown then
UIFrameFadeOut(SLDT_Clock, 1, 1, 0)
else
UIFrameFadeIn(SLDT_Clock, 1, 0, 1)
end
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?