C# Class Gonzo.UIScreen

The most basic component of Gonzo. Responsible for drawing, updating and creating UI components. UI components are created from UI scripts (*.uis).
Exibir arquivo Open project: Afr0Games/Project-Dollhouse Class Usage Examples

Public Properties

Property Type Description
IsVitaboyScreen bool
Position Vector2

Protected Properties

Property Type Description
m_SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
m_Walker TreeWalker

Public Methods

Method Description
Draw ( ) : void
GetImage ( string Name, bool Copy = false ) : UIImage

Gets a UIImage instance.

GetString ( string Name ) : string

Tries to retrieve a string from this UIScreen's loaded strings.

OverrideFocus ( UIElement Element ) : void

A new UIElement was clicked on and is ready to receive keyboard input.

UIScreen ( ScreenManager Manager, string Name, SpriteBatch SBatch, Vector2 ScreenPosition, Vector2 ScreenSize, string UIScriptPath = "" ) : System

Creates a new UIScreen instance.

Update ( InputHelper Input, GameTime GTime ) : void

Method Details

Draw() public method

public Draw ( ) : void
return void

GetImage() public method

Gets a UIImage instance.
public GetImage ( string Name, bool Copy = false ) : UIImage
Name string Name of the UIImage instance to get.
Copy bool Should this element be deep copied?
return Gonzo.Elements.UIImage

GetString() public method

Tries to retrieve a string from this UIScreen's loaded strings.
public GetString ( string Name ) : string
Name string Name of string to retrieve.
return string

OverrideFocus() public method

A new UIElement was clicked on and is ready to receive keyboard input.
public OverrideFocus ( UIElement Element ) : void
Element Gonzo.Elements.UIElement
return void

UIScreen() public method

Creates a new UIScreen instance.
public UIScreen ( ScreenManager Manager, string Name, SpriteBatch SBatch, Vector2 ScreenPosition, Vector2 ScreenSize, string UIScriptPath = "" ) : System
Manager ScreenManager A ScreenManager instance.
Name string The name of this UIScreen instance.
SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch A SpriteBatch instance.
ScreenPosition Vector2 Position of this UIScreen instance.
ScreenSize Vector2 Size of this UIScreen instance.
UIScriptPath string Path of script (*.uis) from which to create UI elements.
return System

Update() public method

public Update ( InputHelper Input, GameTime GTime ) : void
Input InputHelper
GTime Microsoft.Xna.Framework.GameTime
return void

Property Details

IsVitaboyScreen public_oe property

public bool IsVitaboyScreen
return bool

Position public_oe property

public Vector2 Position
return Vector2

m_SBatch protected_oe property

protected SpriteBatch,Microsoft.Xna.Framework.Graphics m_SBatch
return Microsoft.Xna.Framework.Graphics.SpriteBatch

m_Walker protected_oe property

protected TreeWalker,Gonzo m_Walker
return TreeWalker