IGUIButton* -> set visible or not ?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
xasz
Posts: 4
Joined: Thu Oct 25, 2007 2:43 pm

IGUIButton* -> set visible or not ?

Post by xasz »

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 :D.
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
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

This actually belongs in the Beginner Help area.

Anyway, to change the visibility, it's as easy as:

Code: Select all

pbutton->setVisible(bool);
where bool is, of course, true or false.

Hope this helps.
xasz
Posts: 4
Joined: Thu Oct 25, 2007 2:43 pm

Post by xasz »

ty for fast answer, yes sure bool is xD normal,
i only thought its advanced help because i didnt foud a visible standart function, so i thought i had to do one byself
but ty
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

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 :)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

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 :)
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 !!! ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply