How to Make a Main Menu on IRRLicht

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
Futon Games
Posts: 8
Joined: Wed Mar 10, 2010 7:12 pm
Location: Rhodes,Greece

How to Make a Main Menu on IRRLicht

Post by Futon Games »

How to Make a Main Menu on IRRLicht?
I'm newbie at this engine and i need some help!
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Check the code of the Demo application (in folder examples/Demo) or the quake viewer example from number 21 (IIRC).
CuteAlien
Admin
Posts: 10021
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

I think a good way to do it is to put all gui-elements used in your main-menu on one background gui-element (either on IGUIWindow or on IGUIStaticText). Then you can enabled/disable the whole menu with a simple setVisible() call to the background element.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Futon Games
Posts: 8
Joined: Wed Mar 10, 2010 7:12 pm
Location: Rhodes,Greece

Post by Futon Games »

hybrid wrote:Check the code of the Demo application (in folder examples/Demo) or the quake viewer example from number 21 (IIRC).
Thanks i will check it out right now
Futon Games
Posts: 8
Joined: Wed Mar 10, 2010 7:12 pm
Location: Rhodes,Greece

Post by Futon Games »

CuteAlien wrote:I think a good way to do it is to put all gui-elements used in your main-menu on one background gui-element (either on IGUIWindow or on IGUIStaticText). Then you can enabled/disable the whole menu with a simple setVisible() call to the background element.
Thanks i will check it out right now
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

I use two devices, one for the main menu and one for the game, but CuteAlien's suggestion would probably be a lot easier. The benefits from doing it with two devices are you can collect all of the settings the user wants from the first device and create a device with those settings for the game. Not all settings can be set while the device is running so having two devices lets the user have more control.
multum in parvo
Futon Games
Posts: 8
Joined: Wed Mar 10, 2010 7:12 pm
Location: Rhodes,Greece

Post by Futon Games »

Adler1337 wrote:I use two devices, one for the main menu and one for the game, but CuteAlien's suggestion would probably be a lot easier. The benefits from doing it with two devices are you can collect all of the settings the user wants from the first device and create a device with those settings for the game. Not all settings can be set while the device is running so having two devices lets the user have more control.
Hmm,Can you do a tutorial or something? I didn't exactly get it
Virion
Competition winner
Posts: 2149
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

Futon Games wrote:
Adler1337 wrote:I use two devices, one for the main menu and one for the game, but CuteAlien's suggestion would probably be a lot easier. The benefits from doing it with two devices are you can collect all of the settings the user wants from the first device and create a device with those settings for the game. Not all settings can be set while the device is running so having two devices lets the user have more control.
Hmm,Can you do a tutorial or something? I didn't exactly get it
Learn the basic first
hybrid wrote:Check the code of the Demo application (in folder examples/Demo) or the quake viewer example from number 21 (IIRC).
My company: https://kloena.com
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
Adler1337
Posts: 471
Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.

Post by Adler1337 »

You just have two devices(windows). You start the first one and it has gui that lets the user choose options like fullscreen, antialiasing, and other options. There is a button or something that starts the game. The first device closes and the second one starts with the setting the user chose from the main menu(first device). Hope this clears it up.
multum in parvo
Futon Games
Posts: 8
Joined: Wed Mar 10, 2010 7:12 pm
Location: Rhodes,Greece

Post by Futon Games »

Oh yeah please someone make a tutorial cause im very nooob at game programming.I wanted to start with Dark GDK which codes are easy but i couldn't compile the project dunno why.Now it's better with Code::Blocks and Irrlicht so can someone please do me this favor?
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

Futon Games wrote:Oh yeah please someone make a tutorial
There already are
Adler1337 wrote:You just have two devices(windows). You start the first one
Tutorial 1.
Adler1337 wrote:and it has gui that lets the user choose options like fullscreen, antialiasing, and other options
Tutorial 5 and Demo.
Adler1337 wrote:There is a button or something that starts the game.
Demo.
Adler1337 wrote: The first device closes and the second one starts with the setting the user chose from the main menu(first device)
Combination of the tutorials above.

Well, programming might be fun, but it is work also. ;)
"Whoops..."
Futon Games
Posts: 8
Joined: Wed Mar 10, 2010 7:12 pm
Location: Rhodes,Greece

Post by Futon Games »

randomMesh wrote:
Futon Games wrote:Oh yeah please someone make a tutorial
There already are
Adler1337 wrote:You just have two devices(windows). You start the first one
Tutorial 1.
Adler1337 wrote:and it has gui that lets the user choose options like fullscreen, antialiasing, and other options
Tutorial 5 and Demo.
Adler1337 wrote:There is a button or something that starts the game.
Demo.
Adler1337 wrote: The first device closes and the second one starts with the setting the user chose from the main menu(first device)
Combination of the tutorials above.

Well, programming might be fun, but it is work also. ;)
Aha thanks a lot.But i have a problm with demo.Even though i have installed IrrKlang or how it is called i have the same problem.I will re-install it and when i finally make it i will start combine the tutorials.THANK YOU AGAIN EVERYONE!!
Futon Games
Posts: 8
Joined: Wed Mar 10, 2010 7:12 pm
Location: Rhodes,Greece

Post by Futon Games »

I did it!!!
THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,THANKS,!!!! :D :D :D :D :D :D :D :D :D :D
Post Reply