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.
das heck
Posts: 6 Joined: Thu Feb 11, 2010 12:14 pm
Post
by das heck » Fri Jan 14, 2011 10:46 pm
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
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:
Post
by CuteAlien » Sat Jan 15, 2011 9:27 am
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...
das heck
Posts: 6 Joined: Thu Feb 11, 2010 12:14 pm
Post
by das heck » Sat Jan 15, 2011 9:53 am
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*
RPGBomber - A bomberman like game
System: 80%
Game: 20%
Map editor: 90%
Check this website for current release:
http://www.rpdev.net