Blockland Forums > Modification Help
Gui Scroll Controll
<< < (2/3) > >>
jes00:
Also how can I toggle wether something is visible or not?
otto-san:

--- Quote from: jes00 on October 22, 2011, 08:17:45 AM ---Also how can I toggle wether something is visible or not?

--- End quote ---
to bring up a GUI do

canvas.popDialog(yourgui);

to close it do

canvas.pushDialog(yourgui);
jes00:

--- Quote from: otto-san on October 22, 2011, 11:31:33 AM ---to bring up a GUI do

canvas.popDialog(yourgui);

to close it do

canvas.pushDialog(yourgui);

--- End quote ---
I know that but I have a GUI with two windows and I want one button to make the second window visible and another to make it invisible.
otto-san:

--- Quote from: jes00 on October 22, 2011, 11:47:15 AM ---I know that but I have a GUI with two windows and I want one button to make the second window visible and another to make it invisible.

--- End quote ---
i think you can do control.setVisible(0); and control.setVisible(1);

but im not sure if that works on TGE
jes00:

--- Quote from: otto-san on October 22, 2011, 12:07:35 PM ---i think you can do control.setVisible(0); and control.setVisible(1);

but im not sure if that works on TGE

--- End quote ---
Didn't work, I know there is a way to do this because that's what the avatar GUI does.
Navigation
Message Index
Next page
Previous page

Go to full version