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?
Use of GUI
Re: Use of GUI
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Use of GUI
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.
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