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.
Hovering a GUI Image. *Solved
Hovering a GUI Image. *Solved
Last edited by Dirtbiker on Sun Jul 30, 2006 9:09 pm, edited 1 time in total.
So you did something like this...
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.
Travis
Code: Select all
const core::position2d<s32> mouse = //...
if (image.getAbsoluteRect().isPointInside(mouse))
{
// do something
}
Travis