Jump to content
  • Advertisement
Sign in to follow this  
LifeOfTamir

Creating a mini window within a window(solved)

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

Hi everyone, Okay here is the situation. I've got a landscape with lots of creatures running around. When the user clicks on a creature i want a new mini moveable window to pop up with lots of information about the creature and it's own viewport. Now i know how to create a viewport... but i don't know how to create a new window. Or to be more specific i don't know hwo to go about it...i don't know what techniques i should use or anythign so i don't know what i should be looking for for help. Advice would be grateful. [smile] --edit-- Apparantly rollercoaster tycoon and pokemon have something similar although having not played either i wouldn't know for sure [Edited by - LifeOfTamir on September 6, 2004 10:56:08 AM]

Share this post


Link to post
Share on other sites
Advertisement
In my opinion, this could get very complicated. You may have to design your own GUI that caters to multiple windows - you definetly don't want to try using Win32 windows for this. Check out the Developing a GUI Using C++ and DirectX series of articles.

Have you played around with the GUI that came with the Summer Update 2004 SDK? Specifically, check out the user interface in the PostProcess sample. If that is the type of thing that you are trying to get, then the SDK's GUI could be a very good option for you.

This is what I'm talking about:

Share this post


Link to post
Share on other sites
i tried to upgrade to the summer update but it caused me soo much trouble i basically had to redo my project from the start (don't ask)

i was hoping this wouldn't be complicated. Hmm...How much time do you think something like this could take? I'm kind of limited in that department.

I'll have to take a look at those articles in more detail tomorrow. i'm in no state for that now.

Share this post


Link to post
Share on other sites
Quote:
Original post by LifeOfTamir
i tried to upgrade to the summer update but it caused me soo much trouble i basically had to redo my project from the start (don't ask)


You could just use the 9.0c's sample framework GUI, and still compile with 9.0b. There may be some compiler errors, but it shouldn't be too bad.

Share this post


Link to post
Share on other sites
Okay forgive me but i'm going to dig this back out again.

I've had a look at those articles and the 9.0c sample (see other thread about unicode) and i've done some looking around on google (those articles by Mason McCuskey seem to appear *everywhere*).

Those articles really seem a bit too complex for what i need. I mean it's good if i was going for a full blown gui system that is flexible but all i really need is just to create a specific window that has one specific look that can be drawn. Am i still going to have to do somethign complicated or is there a shortcut...( i know i know shortcuts are bad ).

The 9.0c sample seemed most helpful cuz i can just include the class files they have created and use them...but i'm having problems and it might take me awhile to sort them out.

Share this post


Link to post
Share on other sites
Quote:
Original post by LifeOfTamir
The 9.0c sample seemed most helpful cuz i can just include the class files they have created and use them...but i'm having problems and it might take me awhile to sort them out.
What problems? I looked at the Unicode thread, and it appeared to be solved.

Share this post


Link to post
Share on other sites
Quote:
Original post by circlesoft
Quote:
Original post by LifeOfTamir
The 9.0c sample seemed most helpful cuz i can just include the class files they have created and use them...but i'm having problems and it might take me awhile to sort them out.
What problems? I looked at the Unicode thread, and it appeared to be solved.


It's thrown up other problems within my original code... (obviously to do with strings and such like) I'm going through it all now but i don't know what all the correct ways to convert are so it's taking a bit of time. I also don't know if using UNICODE will affect other parts of my code because i don't know what the effect it has when i read in from an ASCII text file.

You've been a big help, i guess from here i just have to fix all these damn errors.

Share this post


Link to post
Share on other sites
I think you ask just how to manage the window, not how to actually render it?
Do you want your windows to just be property sheets ie display information only, or have input capabilities like buttons, textboxes etc. If the former you should be able to do it fairly easily. A fixed 'dialog' which is exactly the same layout everywhere could be hardcoded, or you could create a simple script a bit like HTML/CSS to let you be more flexible.

Share this post


Link to post
Share on other sites
Quote:
Original post by d000hg
I think you ask just how to manage the window, not how to actually render it?
Do you want your windows to just be property sheets ie display information only, or have input capabilities like buttons, textboxes etc. If the former you should be able to do it fairly easily. A fixed 'dialog' which is exactly the same layout everywhere could be hardcoded, or you could create a simple script a bit like HTML/CSS to let you be more flexible.


A property sheet is exactly what i want. The only 'button' i need would be a close button. I could hardcode it but the problem is i don't know how.

Share this post


Link to post
Share on other sites
If you want to keep it really simple, you could probably just use ID3DXSprite to render the information window and close button. Then, use ID3DXFont to draw text about the creature.

Maybe like this:



All it would really require would be a couple sprite calls (for the window itself, the close button, and the creature's image) and a bunch of font calls.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!