RamGec XNA Controls

Lightweight, ultra-high performance and flexible library for displaying and managing Window Controls for XNA system. Features its own Window Designer for creating custom windows and controls.

Preview

Preview1
Preview2

Features

  • Provides own Window Designer application for creating Windows.
  • Flexible and Extensible. Fully documented code, following OOP paradigms yet keeping performance a top priority.
  • Skinnable GUI.
  • Small footprint. GUIManager class takes full control of Drawing and Updating controls.
  • Extended controls such as: FileDialog, ColorDialog, MessageBox

Currently Supported Controls

Quick Start Guide

// namespace
using RamGecXNAControls;
using RamGecXNAControls.ExtendedControls;

// define GUIManager
GUIManager guiManager;

protected override void LoadContent()
{
    // ...
    // create our GUIManager passing Game class as a parameter
    guiManager = new GUIManager(this);

    // we can load our Window with its controls from XML file
    guiManager.LoadControls("path\\window.xml");
    // or/and we can create them at run-time
    Window myWindow = new Window(new Rectangle(10, 10, 300, 200), "Window Title");
    guiManager.Controls.Add(myWindow);
    // ...
}

protected override void Update(GameTime gameTime)
{
    // ...
    // update all controls
    guiManager.Update(gameTime);
    // ...
}

protected override void Draw(GameTime gameTime)
{   
    // ...
    // draw all controls
    spriteBatch.Begin();
    guiManager.Draw(spriteBatch);
    spriteBatch.End();
    // ...
}

Last edited Apr 4, 2012 at 3:17 AM by qisur, version 9