As our first sample we have created a simple menu system that loads from xml. The menus can resize, move, and write text to the titlebar. Check back for the variable width font sample coming soon. Please let us know what you think Submit@XNASpot.com
Download:
http://www.xnaspot.com/Sample_SimpleMenu.aspx

Simple Menus (Download)
Rooster A.
TIA,
lushdog
Doug DeBug
Troy Lundin
learningtoprogram22
I hear ya. I've spent the last 3 months writing a gui in C# (granted I have about a half hour a day to spend on it). I just gave up a few weeks back and bought Torque because I just want to get on with my game and now I see you do this in a day... But its about time it happened. I'm happy about that.
Edward1
Jamie Thomson
Change the string on line 18 of Game1.cs to use your path.
public static string Path = @"C:\Documents and Settings\UserNameHere\Desktop\MenuSample\MenuSample\";
VipulShah
lushdog: We are compiling tutorials on our site. Send something to submit@xnaspot.com, and if it is useful we will post it up. Please send em in!
Locke355
> MenuSample.exe!MenuSample.Game1.Game_Starting(object sender = {MenuSample.Game1}, Microsoft.Xna.Framework.GameEventArgs e = {Microsoft.Xna.Framework.GameEventArgs}) Line 71 C#
MenuSample.exe!MenuSample.Program.Main(string[] args = {Dimensions:[0]}) Line 14 + 0xb bytes C#
edit - If I pursue the execution, I get an exception error on this line of UI.cs:
Stream stream = File.OpenRead(filename);
(DirectoryNotFoundException.....it tries to open the file using your path in your Documents and Settings (with your windowsXP account name, which I won't write here)).
CollegeSeniorProjectNeedsHelp
Started when I woke up this morning. The best part is that this is the first C# I have written in almost two years. Several of the classes are taken straight out of the sample that comes with the package. Microsoft is making lives easy as usual. The only thing I'm worried about is that ten year old kids will be taking the job I want.
I can't wait to see the content pipeline!
msdobrescu
The Version that you have there was designed for the Beta 1 version, you will need to convert it to the Full Release. Note that Beta 1 code will not work with the full release as there were many changes. If you have a look at the xna team blogs you should be able to find some information on converting or at least the changes.
holzer
c_shah
You guys rock!
Thanks much, especially for the prompt reply.
Shane Poppleton
I was unable to use the source download for the sample you have provided:
Error:
The Project file was saved with an incompatible version of XNA Game Studio Express or the project file has become corrupted.
I'm too much of a noob at the moment to troubleshoot it and figure out for myself (but I'm trying).
The rest of the files open individually, and it seems only the solution file (MenuSample.sln) is the problem.
Any chance you can rebuild the download or provide a quick fix
Using:
Microsoft Visual C# 2005
Microsoft XNA Game Studio Express 1.0.61118.0