Hello there!
Im very new to this and i already got my first problem c:.
I want to provide backgrounds for some things with a onclick event but im not sure how to do it.
I got this script:
Code:
if pressed then
if kgPanels:FetchFrame("stance_closed"):IsVisible() then
kgPanels:FetchFrame("stance_open"):Hide()
else
kgPanels:FetchFrame("stance_closed"):Show()
end
end
It is very simple and i know what it does but im not sure how to do the Frames. I created two active panels one (stance_closed) contains the image for the closed stance background and the otherone (stance_opened) contains the opened image.
I did put the scripts in the OnClick part of both panels and just switched the names in the script. I also enabled the register clicks on image thing but currently it isnt working. I belive i dont have to do two panels or something like that. Could someone explain me what i did wrong?