• Advertisement
Sign in to follow this  

Irrlicht and GUI libs?

This topic is 1843 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying out Irrlicht and was wondering if anyone has a tutorial on making a simple game GUI. e.g. Main menu layout and buttons, which the user clicks Start Game, Options, Credits, Quit ect... and then after clicking them the old menu is not rendered anymore and the new one is, and if user clicks back the old one is rendered again...

 

Or maybe someone has a Lib that is already coded all this up?

 

Thanks!

Share this post


Link to post
Share on other sites
Advertisement

Your question is not Irrlicht specified, but some general UI code design question.

 

I don't know if there is any tutorial, but I myself often use the concept of "scene".

 

A scene is a virtual concept that you draw on. A scene is an object, it renders any stuff that should display on the scene, and never cares how other scenes work.

So in your question, you may have a main menu scene, an options menu scene, a credits scene, a game scene (the game scene is so complicated that you may want to split it to loading scene, game play scene, etc).

 

In your main menu scene, the scene only renders all the buttons you mentioned above, of course beside the background. In credits scene, the scene may animate your credits names.

 

When "credits" button is clicked on main menu scene, the scene is swtiched to credit scene. That's to say, your whole game is just switching between scenes.

 

Just some basic beginning ideas.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement