Skip to main content
GameDev.net gamedev.net
🔒 Locked

Mouse Over Effect

Started by DJ_GL Jan 4, 2002 at 5:59 PM 2 replies 550+ views
Original Post
DJ_GL
DJ_GL
How would i actually have text light up or do an event when the mouse is over it? I have an idea, but i just don''t want to go about things the hard way.
Languages: C/C++ C# JavaAPIs: Win32 OpenGL DirectXWeb: &#106avascript Perl JSP PHP-MySQL Oracle Database Programminghttp://www.ethereal-studios.com
ATronic
ATronic
  
bool MOUSE_OVER = false;
While(!Done)
{
MOUSE_OVER = MyPickingTestFunction(MENU_ITEM);
if(MOUSE_OVER)
DrawBrightMenuItem();
else
DrawPlainItem();
}


To figure out how to do the picking, check out the NeHe tutorial on the subject. Best of luck to you.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
DJ_GL
DJ_GL
Thanks a lot, I really do appreciate your help.
Languages: C/C++ C# JavaAPIs: Win32 OpenGL DirectXWeb: &#106avascript Perl JSP PHP-MySQL Oracle Database Programminghttp://www.ethereal-studios.com
ATronic
ATronic
No problem.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.