Using "irrGui->getRootGUIElement()->bringToFront(contextMenu);" worked like a charm, thatsk alot!
Only issue left now is how to get events from the sub-menu of the contextMenu.
Bug? Focused window ruins EGET_MENU_ITEM event?
You do:
Which is not correct for the submenu - the caller is in this case the pointer to the submenu.
Code: Select all
if(event.GUIEvent.Caller == contextMenu)
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
Ahh, so the submenu counts as a different GUI, that explains it ; )
Now everything works as intended, thatnx alot for the help : D
Hopefully i have something to post on the projects page in a while ; )
Code: Select all
if(event.GUIEvent.Caller == contextMenu->getSubMenu(1))
Hopefully i have something to post on the projects page in a while ; )