button linking (or somthing like that)

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
trex666
Posts: 18
Joined: Sat Dec 23, 2006 1:15 pm
Contact:

button linking (or somthing like that)

Post by trex666 »

he guys how are you i have a litle (big) probelem

i'm making a interface for my game (i whant to make an fps game)
and i have a problem i can make the buttons but only a quit butten that close the device and a new window that makes a popup screen
but i whant to make to more difrent buttons
1: a Start Game button (that runs the game then)
2: a Options window for the the options and that stuff

but now the question is how do i make those things (like if i klick on the option screen it opens a new screen (NOT A POPUP) whit the settings and that stuf)
pleas help me Grts TreX
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

For the options screen you can just remove all the items from the gui environment and then add in your options menu stuff (or you may want to make your main menu invisible instead of removing it as no doubt you'll want to bring it back again after you're finished with the options menu).

And with the start game thing you could have a state based approach where you have states like MainMenu, RunGame etc. and then in your rendering loop you just render the required things depending on that state variable and you change that state variable to the RunGame one when the start game button is pressed etc.
Image Image Image
Post Reply