Simple Menus (Download)

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




Answer this question

Simple Menus (Download)

  • Rooster A.

    Are you going to be compiling tutorials and the like on your website. I'd like to contribute. I'm moving back to Canada in a few months and need some "references" when I get back to show I've been keeping up with tech while teaching over here in Korea.

    TIA,

    lushdog

  • Doug DeBug

    I've updated this to 1.0 for the XNA Spot guys.  You can find it here. I've emailed them so hopefully they'll update it on their site.

  • Troy Lundin

    Ok I'm working on a generic Video Config Panel/Launcher, when it's done I'll let you know. I need a job.

  • learningtoprogram22

    bstoker wrote:

    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!

    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

    ok.. its fixed. the post now has a file using a relative path.. thanks!

  • 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

    The example won't run because of these Call Stack Errors:

    > 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

    Did you achieve this today using only XNA, or have you been working on it for some time
  • 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


  • Simple Menus (Download)