C# Класс Gonzo.UIScreen

The most basic component of Gonzo. Responsible for drawing, updating and creating UI components. UI components are created from UI scripts (*.uis).
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
IsVitaboyScreen bool
Position Vector2

Защищенные свойства (Protected)

Свойство Тип Описание
m_SBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
m_Walker TreeWalker

Открытые методы

Метод Описание
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

Описание методов

Draw() публичный Метод

public Draw ( ) : void
Результат void

GetImage() публичный Метод

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?
Результат Gonzo.Elements.UIImage

GetString() публичный Метод

Tries to retrieve a string from this UIScreen's loaded strings.
public GetString ( string Name ) : string
Name string Name of string to retrieve.
Результат string

OverrideFocus() публичный Метод

A new UIElement was clicked on and is ready to receive keyboard input.
public OverrideFocus ( UIElement Element ) : void
Element Gonzo.Elements.UIElement
Результат void

UIScreen() публичный Метод

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.
Результат System

Update() публичный Метод

public Update ( InputHelper Input, GameTime GTime ) : void
Input InputHelper
GTime Microsoft.Xna.Framework.GameTime
Результат void

Описание свойств

IsVitaboyScreen публичное свойство

public bool IsVitaboyScreen
Результат bool

Position публичное свойство

public Vector2 Position
Результат Vector2

m_SBatch защищенное свойство

protected SpriteBatch,Microsoft.Xna.Framework.Graphics m_SBatch
Результат Microsoft.Xna.Framework.Graphics.SpriteBatch

m_Walker защищенное свойство

protected TreeWalker,Gonzo m_Walker
Результат TreeWalker