1 Replies - 5190 Views - Last Post: 28 December 2012 - 03:55 PM

Trying to efficiently make windows in XNA

Posted 27 December 2012 - 09:26 AM

Hi there!

I'm working on a game and I've just made a little prototype window which I'd like a little feedback on.
It functions wonderfully but I'm not too convinced on how I'm going to manipulate this to work for multiple windows; ie, one window for an inventory which features a list of items, and the other for a chat log and so on.

Replies To: Trying to efficiently make windows in XNA

Re: Trying to efficiently make windows in XNA

Posted 28 December 2012 - 03:55 PM

I watched your video, but I have not looked deeply at the code. The window seems functional enough - nice work What are you unsure about? How to give the windows different behaviours? If so, my recommendation would be to create classes that inherit from your window class. This way you can add window specific methods (such as displaying text, or a list of images for an inventory) and keep the functionality you have already built that allows you to move and interact with the window frames.