Skip to main content
GameDev.net gamedev.net
🔒 Locked

Windows Forms & XNA

Started by Vallar Feb 24, 2009 at 2:29 PM 1 replies 650+ views
Original Post
Vallar
Vallar
Hello there everyone, How do you do? I was wondering if there is any documentation or even videos that can allow me to learn how to design a GUI for a game using windows forms in XNA? It would really help if it isn't a custom engine (stuff like Xwindowsforms and so on)and if it is suited for a beginner... Thanks in advance and Best Wishes.
---------------------------------------------------------------------------------------------------------------------------------- Through the spreading darkness I exchanged vows of revolution, But one day i will show you a world of light...
MJP
MJP
Most games don't use WinForms for their in-game GUI...typically you'll want controls to have a very customized look and behavior, and WinForms isn't very good for that. Instead WinForms is more popular for making tools like map editors or model viewers...if that's what you're looking to do then you'll want to look at this.
Vallar
Vallar
Thanks! But the editor is not the case. I want to create a very very basic simple GUI for the game. It is a text based game actually.

The GUI needs to be nothing more than a simple 200x300 box displaying a simple graphical output (the game world). Around such a screen there is some buttons for inventory, skills, spells, etc..
Underneath the graphical output a label that would contain the details of the fighting events (like X hit you for 7 points, you hit y for 10 points and so on).

I already created such a GUI in the form... Using the WinForm example you provided, however i can't link them both. So for example i could display the fighting scenario text. Can't use the buttons or link them with the game.

If there is any kind of documentation in any format available for such a process.. That would help alot..

Thanks again.
---------------------------------------------------------------------------------------------------------------------------------- Through the spreading darkness I exchanged vows of revolution, But one day i will show you a world of light...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.