weird GUI bug

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
das heck
Posts: 6
Joined: Thu Feb 11, 2010 12:14 pm

weird GUI bug

Post by das heck »

Hi there,

I dunno if its really a bug, but can't deal with it. I have some various gui elements and when I try to evaluate the events there is something weird.

Code: Select all

	if(event.EventType == EET_GUI_EVENT)
	{
		cout << event.GUIEvent.EventType << endl;
	}
I get some godd data be hovering (2) and dehovering (3) the guielements. But if I for example click a Button (that should generate a EGET_BUTTON_CLICKED - 5) I get a 0 and then a 1 (focus lost and focus set). So it should be something intern. What could this be?

best regards

p.s.: I use Irrlicht 1.7.1
Image

RPGBomber - A bomberman like game
  • System: 80%
  • Game: 20%
  • Map editor: 90%
Check this website for current release: http://www.rpdev.net
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: weird GUI bug

Post by CuteAlien »

das heck wrote:But if I for example click a Button (that should generate a EGET_BUTTON_CLICKED - 5) I get a 0 and then a 1 (focus lost and focus set).
*confused* ... why the "-5"? You get indeed 0 and 1 if you subtract 5 for some reason...
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
das heck
Posts: 6
Joined: Thu Feb 11, 2010 12:14 pm

Post by das heck »

I got it! Well, at least I found out, that this is not an Irrlicht bug, but a bug made by me. I didn't find the bug itself by now.

I create a map object, which renders tiles (IGUIImages). And that causes this behavior.

Anyway... thanks for reading *cheers*
Image

RPGBomber - A bomberman like game
  • System: 80%
  • Game: 20%
  • Map editor: 90%
Check this website for current release: http://www.rpdev.net
Post Reply