I don't know if this is a bug, or I make a mistake in something, or it is not still implemented.
I am working with c#and Irrlicht 0.11
In my main module I have a device.GUIEnvironment and also a device.EventReceiver.
Also, I have added a button with
Code: Select all
guiEnv.AddButton( new Rect(10, 10, 100, 100), null, 101, "Quit");
Code: Select all
public bool OnEvent(Irrlicht.Event e)
{
if (e.Type == EventType.GUIEvent)
{
switch (e.GUIEventType)
{
case GUIEvent.ELEMENT_HOVERED:
{
// Mi GUI code here
return true;
}
case GUIEvent.BUTTON_CLICKED:
{
// Mi GUI code here
return true;
}
}
return false;
}
Any help, please?
All the best!