Jump to content
  • Advertisement
Sign in to follow this  
Deus Ex Otium

Custom GUI's ? [vc++]

This topic is 4901 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've seen many games made with DirectX that have textured buttons. Is it possible that they were part of a dialog box? Or were they rendered and tested for clicks on them? Anyway, if they were part of a dialog, how were they textured? I tried with CBitmapButton, but it interfered with DirectX... Any suggestions? [Edited by - Deus Ex Otium on May 21, 2005 10:33:18 PM]

Share this post


Link to post
Share on other sites
Advertisement
Well.. Diablo 2, Conquer, and Tibia

Just about any game that has a menu, really :/



P.S. looking back: I see that some of these do not really look like something created from a dialog. Silly me. Can you point me into the direction of a guide on making GUI's?

Share this post


Link to post
Share on other sites
These are made manually using DirectX. No dialogs involved.

Unfortunatly I know of no tutorials and I don't use DirectX. But some DirectX people are sure to come and tell you the details.

Basically, it works something like this: In DirectDraw, the GUI would be drawn as sprites over the top of the game.

I'm not sure of the Direct3D specifics, but if it's like OpenGL (which one would assume it is), then it basically involves setting up an orthographic projection matrix, clearing or ignoring the depth buffer, and just drawing textured quads on the screen in the way you want them.

Input, of course, is whatever your application uses. If you get mouse deltas, you just track the cursor position yourself, if you get absolute position, then you just draw your own cursor there.

Share this post


Link to post
Share on other sites
That's what I was afraid of...

Should I post in the game section? (Since this involves DirectX) Or should I wait in this section because it would be too close to double posting?

Share this post


Link to post
Share on other sites
I'd wait here (and try the DirectX forum later if necessay).

You could stary by describing exactly what you need help with. Is it just how to design your code?

Share this post


Link to post
Share on other sites
Yes, I do need how to design my code. Things like finding where the mouse is being clicked at and how to send/receive messages using this kind of method.

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!