IGUIStaticText

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
jf03cg
Posts: 14
Joined: Sun Apr 24, 2005 12:12 am
Location: Ontario, Canada
Contact:

IGUIStaticText

Post by jf03cg »

Hello, I am having a problem with Irrlicht and the EventReceiver.

I have the following code to add menu options:

Code: Select all

            mmenu->bNew = dotdCore->getGUIEnvironment()->addStaticText(L"New Game",rect<s32>(0*space+50,dotdCore->getConfig()->height - 40, 0*space+150,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_NEWGAME);
            mmenu->bLoad = dotdCore->getGUIEnvironment()->addStaticText(L"Load Game",rect<s32>(1*space+150,dotdCore->getConfig()->height - 40, 1*space+250,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_LOADGAME);
            mmenu->bOptions = dotdCore->getGUIEnvironment()->addStaticText(L"Options",rect<s32>(2*space+250,dotdCore->getConfig()->height - 40, 2*space+350,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_OPTIONS);
            mmenu->bAbout = dotdCore->getGUIEnvironment()->addStaticText(L"About",rect<s32>(3*space+350,dotdCore->getConfig()->height - 40, 3*space+450,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_ABOUT);
            mmenu->bExit = dotdCore->getGUIEnvironment()->addStaticText(L"Exit",rect<s32>(4*space+450,dotdCore->getConfig()->height - 40, 4*space+550,dotdCore->getConfig()->height-20),false,false,0,100+_MENU_EXIT);

I used to be able to use the EET_GUI_EVENT to detect hovering, hoever when I recompiled with Irrlicht 0.11.0 it no longer worked? Is this because the event it raises is different than in 0.9?

Thanks.
There is no such thing as a stupid question, ...
There are quite inquisitive idiots however...
Midnight
Posts: 1772
Joined: Fri Jul 02, 2004 2:37 pm
Location: Wonderland

Post by Midnight »

it's because now there is EGUI_HOVERED or some poop... I guess.
Post Reply