and everything is going smooth except for setting up GUI events.
This is what I have so far (well part of it and it does work) but my problem is in the if statement I only see isPressed (). How would I extend this to isReleased () or isHover () ? I looked through the Api and I dont see anything simular to this if any one can help me or has some tips about the GUI sytem in genral please let me know
IGUIButton * MyButton = env->addButton(rect<s32>(10,240,110,240 + 32), 0);
MyButton->setText(L"button");
//this is in the game loop
if(MyButton->isPressed()) // would like a few alternative events
{
ISceneNode* Billboard = smgr->addBillboardSceneNode();
Billboard->setPosition(vector3df(0,0,45));
Billboard->setMaterialFlag(video::EMF_LIGHTING, false);
Billboard->setMaterialTexture(0, driver->getTexture("../../media/particle.bmp"));
}