• Advertisement

Archived

This topic is now archived and is closed to further replies.

Making Menus

This topic is 6215 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Is there a good way to make a menu system? (ala UT) I could map a picture on a quad and grab the mouse position. Is there a better way? And while I''m at it how to I get the mouse buttons states?

Share this post


Link to post
Share on other sites
Advertisement
To get your mouse button states, you check for messages in your WndProc function:

WM_USER + 1 : switch (lParam) {

case WM_RBUTTONDOWN :
// Right Mouse Event
break;

case WM_LBUTTONDOWN :
// Left Mouse Event
break;

}


Regarding your menu, you could build a Display List of Textured Triangle Strips for your buttons, with both normal and highlighted states. I''d use that rather than one big quad, but hey, it''s up to you.



"NPCs will be inherited from the basic Entity class. They will be fully independent, and carry out their own lives oblivious to the world around them ... that is, until you set them on fire ..." -- Merrick

"It is far easier for a camel to pass through the eye of a needle if it first passes through a blender" -- Damocles

Share this post


Link to post
Share on other sites
Thanks for the info on mouse states. But I don''t quite understand what you said about my menu stuff. I barely know what triangle strips are. Could you please go into a little more detail?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You can emial romka and ask for menudemo.zip and menudemo_scr.zip.

Share this post


Link to post
Share on other sites

  • Advertisement