Jump to content

  • Log In with Google      Sign In   
  • Create Account

Irrlicht and GUI libs?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 MARS_999   Members   -  Reputation: 1297

Like
0Likes
Like

Posted 27 December 2012 - 07:34 PM

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!



Sponsor:

#2 wqking   Members   -  Reputation: 756

Like
0Likes
Like

Posted 01 January 2013 - 10:01 PM

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.


http://www.cpgf.org/
cpgf library -- free C++ open source library for reflection, serialization, script binding, callbacks, and meta data for OpenGL Box2D, SFML and Irrlicht.
v1.5.5 was released. Now supports tween and timeline for ease animation.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS