Hi guys,
I am new here, but i believe this is a good forum about Irrlicht, and so i will now spend here a lot of time .
My first Question is, i am coding a GUI for a little game.
There are many ways to create Buttons. but if i do it this way.
IGUIButton* pbutton =env->addbutton(...parameters...);
than i can change the font and other things with the *pbutton.
But i didnt find i Way how i can Hide it, or set visible or not.
If someone knows a way to hide it, say it please, it would be a pleasure for me. if not someone can say me how to drop the button ?
greetz xasz
IGUIButton* -> set visible or not ?
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere
This actually belongs in the Beginner Help area.
Anyway, to change the visibility, it's as easy as:
where bool is, of course, true or false.
Hope this helps.
Anyway, to change the visibility, it's as easy as:
Code: Select all
pbutton->setVisible(bool);
Hope this helps.
-
- Posts: 368
- Joined: Tue Aug 21, 2007 1:43 am
- Location: The Middle of Nowhere
Right, and the docu is also included to the sdk (it's the help file) and it contains all functions of all objects in Irrlicht !!!Dark_Kilauea wrote:Might be a good idea to check out the API documentation on the main site. You never know, you might be able to answer many of your own questions
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java