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:
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? |
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:
Ekat |
Quote:
|
Fixed! Thanks suicidalkatt
|
Just to make it clear, your sintax for 'IsShown' is that it's a function, meaning just as I showed above, IsShown() requires ()'s.
Lua Code:
should be.. Lua Code:
|
Quote:
|
Quote:
Example would be place with the OnLoad for that frame: Lua Code:
Then OnClick would be: Lua Code:
|
Error
This error pops up:
Code:
Message: Interface\FrameXML\UIParent.lua:2720: attempt to compare number with table |
All times are GMT -6. The time now is 10:53 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI