Help with GUI

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
Gman3344
Posts: 23
Joined: Tue Jul 22, 2008 9:03 pm

Help with GUI

Post 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?
radical-dev
Posts: 45
Joined: Thu Apr 24, 2008 7:54 pm
Location: Wickede, Germany

Post 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
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

hmmmm

Post 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.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Post Reply