How to Make a Main Menu on IRRLicht
-
Futon Games
- Posts: 8
- Joined: Wed Mar 10, 2010 7:12 pm
- Location: Rhodes,Greece
How to Make a Main Menu on IRRLicht
How to Make a Main Menu on IRRLicht?
I'm newbie at this engine and i need some help!
I'm newbie at this engine and i need some help!
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
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
-
Futon Games
- Posts: 8
- Joined: Wed Mar 10, 2010 7:12 pm
- Location: Rhodes,Greece
Thanks i will check it out right nowCuteAlien 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.
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
Hmm,Can you do a tutorial or something? I didn't exactly get itAdler1337 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.
Learn the basic firstFuton Games wrote:Hmm,Can you do a tutorial or something? I didn't exactly get itAdler1337 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.
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
My profile: https://zhieng.com
My co-working space: https://deskspace.info
My game engine: https://kemena3d.com
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
-
randomMesh
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
There already areFuton Games wrote:Oh yeah please someone make a tutorial
Tutorial 1.Adler1337 wrote:You just have two devices(windows). You start the first one
Tutorial 5 and Demo.Adler1337 wrote:and it has gui that lets the user choose options like fullscreen, antialiasing, and other options
Demo.Adler1337 wrote:There is a button or something that starts the game.
Combination of the tutorials above.Adler1337 wrote: The first device closes and the second one starts with the setting the user chose from the main menu(first device)
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
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!!randomMesh wrote:There already areFuton Games wrote:Oh yeah please someone make a tutorialTutorial 1.Adler1337 wrote:You just have two devices(windows). You start the first oneTutorial 5 and Demo.Adler1337 wrote:and it has gui that lets the user choose options like fullscreen, antialiasing, and other optionsDemo.Adler1337 wrote:There is a button or something that starts the game.Combination of the tutorials above.Adler1337 wrote: The first device closes and the second one starts with the setting the user chose from the main menu(first device)
Well, programming might be fun, but it is work also.
-
Futon Games
- Posts: 8
- Joined: Wed Mar 10, 2010 7:12 pm
- Location: Rhodes,Greece