Gui button disable/Enable on realtime

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
shaim
Posts: 26
Joined: Sun Dec 14, 2008 10:55 am

Gui button disable/Enable on realtime

Post by shaim »

Hi
I used a gui menu in my game.
HOw can I disable/enable its visibility while the program runs.
The gui interface give you only option to addButton() but not to remove.

Thanks
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

What does addButton() return to you? ;)

Always check the API for functions that you're using to see what things can be done!
Image Image Image
skumar
Posts: 201
Joined: Thu Feb 14, 2008 6:24 pm
Location: kerala state india
Contact:

Post by skumar »

Please look in the API doc its has alll...

You shouldnt just add a button....but keep a pointer to it also...then using it call the setVisible(bool) function of it for making it visible or invisible

Please refer all the methods of a class in the api...this will help you to avoid future troubles :D
skumar
shaim
Posts: 26
Joined: Sun Dec 14, 2008 10:55 am

Post by shaim »

thank you, you are genius
Post Reply