Use of GUI

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
aeronmike
Posts: 45
Joined: Thu May 24, 2012 5:00 am
Location: Rio de Janeiro, Brazil

Use of GUI

Post by aeronmike »

Hey,

I got some trouble when handling the GUI.
I just didn't get it very well.

I want to add a "panel" with button on it. But then they will be destroyed. Like a simple "pause game screen" with a resume and exit button.
My question is:
MUST the button be child of that panel element, for my case?

...
I tried out somethings, but I really got confused about how it works. I'm not talking about receiving events. Just CREATING simple interfaces, as a panel with a child button, for instance.
'Cause when I tried, the button were NOT created (at least for my eyes LoL).

Could you give me a light, please?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Use of GUI

Post by CuteAlien »

Can't help you much without seeing code. But take a look at example 09 - I think that one has a panel with buttons.
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
teto
Posts: 159
Joined: Thu Dec 03, 2009 9:37 pm
Location: /home
Contact:

Re: Use of GUI

Post by teto »

if you set your buttons as child of the tab, its coordinate become relative to its parent, that might be why you don't see them.

A tip is to use EGET_ELEMENT_HOVERED event to understand if the button is here but not visible.
Using trunk with mingw/gcc 4.6, Windows 7 64 bits driver opengl
Post Reply