Jump to content
  • Advertisement

Archived

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

lordjarl

Buttons and games

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

Howdy, my question is about buttons and other such controls in games. My query is that are buttons (like the ones featured on diablo 2''s mainmenu and baldur''s gate) based on a whole new class or are they derived from a standard windows object class such as Cbutton, can anyone point me in the direction of some sample code or explaination, because up until now i have been writing my own classes however they do not deliever the professional fell of the buttons in these gui''s. If this is so for buttons am am presuming the things such as textfields are all bound by the same rules. Assitance would be greatly Appreciated, thanks lordjarl

Share this post


Link to post
Share on other sites
Advertisement
You could override the MFC if you were so inclined, but I think a lot of games probably use their own button functions for a) cleanliness/compatability with their other custom UI code b) more control and c) simplicity. And perhaps d) to avoid windows messaging.

Share this post


Link to post
Share on other sites

  • 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!