I am making GUI menu using GUI Images. I need to show text when an image is hovered. My problem is when I check if the GUI Image element ID is Hovered I get no response. I'm sure I have the correct ID.
Can a GUI Image be checked for hovering?
Thank you.
Last edited by Dirtbiker on Sun Jul 30, 2006 9:09 pm, edited 1 time in total.
How are you checking that the image is hovered? As far as I see, there is no way to check that a gui control is hovered. An event is generated, and you have to respond to the event that is passed to the user event receiver.
const core::position2d<s32> mouse = //...
if (image.getAbsoluteRect().isPointInside(mouse))
{
// do something
}
That should work to detect mousing over an image. The environment manager is already tracking the element that the mouse is over. If you receive messages with an event receiver, you can respond to the hover event.