Свойство | Тип | Описание | |
---|---|---|---|
Image | |||
Name | string | ||
TextDrawingColor | Color | ||
Tracking | int | ||
Visible | bool |
Свойство | Тип | Описание | |
---|---|---|---|
m_Font | |||
m_HasFocus | bool | ||
m_ID | int | ||
m_KeyboardInput | bool | ||
m_Opaque | bool | ||
m_Parent | |||
m_Screen | UIScreen | ||
m_Size | Vector2 |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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. |
Результат | 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. |
Результат | void |
public Draw ( |
||
SBatch | A SpriteBatch instance. | |
LayerDepth | float | Depth at which to draw, may be null. |
Результат | void |
public static GetLayerDepth ( LayerDepth Depth ) : float | ||
Depth | LayerDepth | The depth for which to retrieve a value. |
Результат | float |
public IsMouseOver ( InputHelper Input ) : bool | ||
Input | InputHelper | |
Результат | bool |
public MouseEvents ( InputHelper Helper ) : void | ||
Helper | InputHelper | InputHelper instance for input data. |
Результат | void |
protected PixelCheck ( InputHelper Input, int Width ) : bool | ||
Input | InputHelper | |
Width | int | |
Результат | 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. |
Результат | System |
public UIElement ( string Name, Vector2 Position, Vector2 Size, UIScreen Screen, |
||
Name | string | |
Position | Vector2 | |
Size | Vector2 | |
Screen | UIScreen | |
Parent | ||
Результат | System |
public Update ( InputHelper Helper, |
||
Helper | InputHelper | InputHelper instance for input data. |
GTime | ||
Результат | void |
protected SpriteFont,Microsoft.Xna.Framework.Graphics m_Font | ||
Результат |