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.
Gman3344
Posts: 23 Joined: Tue Jul 22, 2008 9:03 pm
Post
by Gman3344 » Wed Jul 23, 2008 1:24 am
I'm making a game menu and i can't seem to get rid of the buttons when I go into the main game, if you want to see my code for hiding it, here it is
Code: Select all
if(Save_Game->isPressed())
{
if(Save_Game->isVisible())
{
Save_Game->setVisible(false);
}
Game();
}
Any help?
radical-dev
Posts: 45 Joined: Thu Apr 24, 2008 7:54 pm
Location: Wickede, Germany
Post
by radical-dev » Wed Jul 23, 2008 6:54 am
Hi Gman3344!
I can't imagine what you're doin there.
Is Save_Game a button? Is this code within your Eventreceiver? And if not, why you don't handle the according Event? Why you're hiding the Save_Game button (if it is one)?
Question over question
Please give us some more infos.
Regards
radical
3DModelerMan
Posts: 1691 Joined: Sun May 18, 2008 9:42 pm
Post
by 3DModelerMan » Wed Jul 23, 2008 5:50 pm
try to see if it even registers when you click on the button, like this
Code: Select all
if(Save_Game->isPressed())
{
if(Save_Game->isVisible())
{
device->drop()
}
Game();
}
if so then try this
Code: Select all
if(Save_Game->isPressed() && (Save_Game->isVisible())
{
Save_Game->setVisible(false);
}
I don't know but it might work and it might not.