Elric Gui

From Elric

Jump to: navigation, search

Elric's gui system is being updated and reworked to produce a new, proper gui for .net based engines. It is designed to work both with, and independant from the other Elric Engine components.

Contents

Supported Controls

Here is a list of the currently supported controls in the Elric7 Gui system. Where stated as fully functional, they are working as expected in the test environment and no obvious problems are known.

Window

The master for all other controls. Each control should be placed upon a window. You can do this with Control.Parent= or Window.Add(), they are functionally identical.

  • Fully functional

Button

Creates a basic (3 State) clickable button.

  • Fully functional

Label

A place to put text. They are actually quite a bit more powerful than you first think.

  • Fully functional

TickBox

A nice (4+2 state graphic) toggle box

  • Functional
  • Load/Save not fully supported

CloseBox

A close icon for a Window.

  • Fully functional

TitleBar

A simple titlebar for a window

  • Fully functional

DragBox

Allows windows to be dragged around the screen with the mouse

  • Fully functional
  • Can be any size/position on the window

SplashScreen

A full screen image.. Don't forget to make it go away afterwards.

  • Fully functional

Create

The create class contains methods to create all types of controls in one place and to auto-attach them to a window as specified. For example:

Window w=new Window();
w.CreateControl();
Create create=new Create();
Button b=create.Button(w);
b.CreateControl();

..will create a window of the default size, and create will attach a button to it in the default location.

Software Drivers

  1. SoftGuiSystem
    • Complete software based driver for the Elric gui system for windows forms
    • For an example of implementation, please check Example 1 (Soft)
  2. SoftMouseData
    • Complete mouse driver for the Elric gui system for windows forms
  3. NullGuiSystem
    • I'll lay odds this is completely useless.
  4. NullMouseData
    • I'll lay odds this is completely useless.
Personal tools