GUI Questions

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
Desconocido
Posts: 9
Joined: Mon Aug 31, 2009 12:00 am

GUI Questions

Post by Desconocido »

So I've been using Irrlicht for a bit now, but I haven't hardly touched the GUI until very recently.. I've gone through the tutorial and it makes enough sense on how everything works. What I'm more curious about, that I haven't really seen in the tutorials is 2 things..

first, is there a simple way to create emus in irrlicht? such as the typical file/edit/view/help/etc. menus seen on most programs today?

and secondly, I would like a less generic looking GUI then irrlicht's default. I have some somewhat decent graphics skills, but I'm not exactly sure how to go about skinning the GUI to a more, smoother/sophisticated look? Do I need to create an image for each state of the buttons and such? and if so, how would I go about doing this?

Thank you in advanced,
-Des
Image
CuteAlien
Admin
Posts: 10013
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

For menus check example 09 which has a menu.

By default you can change only colors and sizes for the skin (in IGUISkin). You can also add image to the buttons, but you have to do that for each button. For more advanced skins you have to derive your own class from IGUISkin and overload the drawing functions (best start with CGUISkin). And lastly you can also use own gui-elements which you can code in any way you like.
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
Desconocido
Posts: 9
Joined: Mon Aug 31, 2009 12:00 am

Post by Desconocido »

Thanks, I appreciate it, I will look into those options :)
Image
Post Reply