Jump to content
  • Advertisement
Sign in to follow this  
Waaayoff

Creating Main Menus in Direct3d?

This topic is 3047 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

I want to add a main menu to my game and was wondering which approach is the best: 1- Just render a sprite of the menu (background, buttons and text) over everything, and check if cursor is above a 'button' whenever the user clicks the mouse. Or: 2- Use Win32 to create a child window containing real buttons. The problem with the second approach is that the buttons and the menu window will look too 'windowsy' for a game. Unless i can use certain style flags to make it look game like? Also, can i add a sprite to a button window? Or is there a better method? 3- ?? PS: I'm not experienced enough to create my own GUI so.. don't ask me to ;) Thanks for your help :)

Share this post


Link to post
Share on other sites
Advertisement
You can use the first methold; Render a sprite/quad with your button texture.

If you use one button texture the button cannot be resized or it will look ucly. If you want to resize buttons you can use multiple sprites for that, but you need to move multiple sprites if you want to move the control.

You can do this will all controls, unless you dont care for resolution you can just use one sprite for each control :D

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!