Property | Type | Description | |
---|---|---|---|
Image | |||
Name | string | ||
TextDrawingColor | Color | ||
Tracking | int | ||
Visible | bool |
Property | Type | Description | |
---|---|---|---|
m_Font | |||
m_HasFocus | bool | ||
m_ID | int | ||
m_KeyboardInput | bool | ||
m_Opaque | bool | ||
m_Parent | |||
m_Screen | UIScreen | ||
m_Size | Vector2 |
Method | Description | |
---|---|---|
Draw ( |
Handles drawing logic for this UIElement.
|
|
Draw ( |
Handles drawing logic for this UIElement.
|
|
Draw ( |
Handles drawing logic for this UIElement.
|
|
GetLayerDepth ( LayerDepth Depth ) : float |
Gets the value of the corresponding layer depth.
|
|
IsMouseOver ( InputHelper Input ) : bool |
Returns true if the mouse is over this UIElement. Does NOT work for pixel-perfect collision.
|
|
MouseEvents ( InputHelper Helper ) : void |
Mouse interacted with this UIElement.
|
|
UIElement ( UIScreen Screen, |
Constructs a UIElement from a Screen instance and an optional UIElement that acts as a parent.
|
|
UIElement ( string Name, Vector2 Position, Vector2 Size, UIScreen Screen, |
||
Update ( InputHelper Helper, |
Handles update logic for this UIElement.
|
Method | Description | |
---|---|---|
PixelCheck ( InputHelper Input, int Width ) : bool |
public Draw ( |
||
SBatch | A SpriteBatch instance. | |
SourceRect | A source rectangle, for controlling which part of this elenent's texture is drawn. | |
LayerDepth | float | Depth at which to draw, may be null. |
return | void |
public Draw ( |
||
SBatch | A SpriteBatch instance. | |
SourceRect | A source rectangle, for controlling which part of this elenent's texture is drawn. | |
LayerDepth | float | Depth at which to draw, may be null. |
ScaleFactor | Vector2 | Scale at which to draw, may be null. |
return | void |
public Draw ( |
||
SBatch | A SpriteBatch instance. | |
LayerDepth | float | Depth at which to draw, may be null. |
return | void |
public static GetLayerDepth ( LayerDepth Depth ) : float | ||
Depth | LayerDepth | The depth for which to retrieve a value. |
return | float |
public IsMouseOver ( InputHelper Input ) : bool | ||
Input | InputHelper | |
return | bool |
public MouseEvents ( InputHelper Helper ) : void | ||
Helper | InputHelper | InputHelper instance for input data. |
return | void |
protected PixelCheck ( InputHelper Input, int Width ) : bool | ||
Input | InputHelper | |
Width | int | |
return | bool |
public UIElement ( UIScreen Screen, |
||
Screen | UIScreen | A Screen instance. |
Parent | (Optional) UIElement that acts as a parent. | |
Path | string | (Optional) Path to a UI script that will create this UI element. |
return | System |
public UIElement ( string Name, Vector2 Position, Vector2 Size, UIScreen Screen, |
||
Name | string | |
Position | Vector2 | |
Size | Vector2 | |
Screen | UIScreen | |
Parent | ||
return | System |
public Update ( InputHelper Helper, |
||
Helper | InputHelper | InputHelper instance for input data. |
GTime | ||
return | void |
protected SpriteFont,Microsoft.Xna.Framework.Graphics m_Font | ||
return |