hiding a guielement

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

hiding a guielement

Post by Seven »

when a tooltip is visible, hiding the guielement that the tooltip belongs to does not hide / erase the tooltip.

hiding the fileopen dialog that is modal does not hide the dialog. maybe fixed in 1.7 already?

not overly important, but some things I have noticed recently.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Thanks. I can reproduce the tooltip staying visible. (How did you stumble upon this? Do you hide elements as soon as the user tries to find out what they are doing?) ;-)

Hiding fileopen dialog seems to work, so it's probably fixed by now.
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
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

I just assume that the user wont understand what he is trying to do anyways :)

in reality, the demo code we are using allows you to hit the escape key to bounce back to the main menu screen. this action hides all of the guielements that the game loaded (game objects add guielements to the screen) and then we use a seperate smgr for the menu's. this of course allows the user to have the mouse over a guielement (spell icon) and then hit escape, which takes him to the menu, but leaves the tooltip hanging.

Seven
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Hm, that turns out to be harder to fix than expected. It also showed some other problems with tooltips.

I fixed it for the easy cases in 1.7 trunk (along with some other problems). Which means - if you remove it or hide then it will work now. But the hard case here is that it doesn't know if you hide or remove a parent. That probably needs some more functions in IGUIElement first, which I can't add to the 1.7 branch. Also I need to think more about that.
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
Post Reply