Page 1 of 1
Help with GUI
Posted: Wed Jul 23, 2008 1:24 am
by Gman3344
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?
Posted: Wed Jul 23, 2008 6:54 am
by radical-dev
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
hmmmm
Posted: Wed Jul 23, 2008 5:50 pm
by 3DModelerMan
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.