Keep up to date!
URL Description
Blog Blog posts pertaining to game and software development in general.
Twitter Tweets from the Author


Project Description
X-Forms is a Graphical User Interface Framework to aid in the creation of User Interfaces within Games created using the Microsoft XNA Framework.
X-Forms is built to reflect how .NET Windows Forms work. It provides support for full screen Forms and Controls. The project aims to help with rapid GUI development and currently works on Windows PC and Windows Phone 7.0

What is X-Forms?

If you've ever used the Visual Studio Designer, you know how simple it is to create Windows Forms Applications. You drag a control onto your form and write your code. That is the design goal for X-Forms. Instead of Windows forms X-Forms allows you to create complete forms and controls within a XNA based game. A complete button can be created and displayed to the user with less than a handful of lines wrote by the developer.
Once you've created your control, you can create your own even methods that get called each time an event is fired by the control. With multiple events available for you to use, you can really create a custom and complete GUI with much less leg work.

You can create the following Form & button with only 4 lines of code!
X-Forms.png
Code
        protected override void Initialize()
        {
            StandardForm form = new StandardForm(this, "New Form");
            Button button = new Button(this, "Button", form);
            this.Components.Add(form);
            
            base.Initialize();

            form.Show();
        }

Current Features

  1. Forms: This is the equivalent to Windows Forms. You may populate a Form with Controls, make the Form transparent, full screen, remove the title bar and a lot more.
  2. Controls: Controls can be anything you want the user to interact with. The Framework supports Controls being placed on a Form or directly on your games viewport. More will be included as the framework is updated.
  3. Movement: Static or non-static UI Components
  4. Theming: All Forms and Controls can be customized to a either a solid color of your choice or a Textured material.
  5. Events: You can use event methods to execute code when a Form or Control performs a certain action.
  6. Transparency: Each Control and Form can have it's Transparency value adjusted so you can have fully transparent UI Components or partial.

Planned Features

  • Additional Controls
    • Label
    • Text Box
    • Tabbed Container
    • Icon Buttons
    • Hyperlink Labels

Latest Blog Posts from Scionwest:
 Scionwest Blogging News Feed 
Sunday, February 10, 2013  |  From Scionwest Blogging
 Scionwest Blogging News Feed 

Last edited Jan 19, 2012 at 11:44 PM by Scionwest, version 25