Свойство | Тип | Описание | |
---|---|---|---|
MASK_COLORS | uint[] | ||
Visible | bool |
Свойство | Тип | Описание | |
---|---|---|---|
_BlendColor | Color | ||
_HasOpacity | bool | ||
_Mtx | float[] | ||
_MtxDirty | bool | ||
_Opacity | float | ||
_OpacityDirty | bool | ||
_Parent | |||
_Scale | Vector2 | ||
_ScaleParent | Vector2 | ||
_ScaleX | float | ||
_ScaleY | float | ||
_Tooltip | string | ||
_X | float | ||
_Y | float | ||
m_StringID | string |
Свойство | Тип | Описание |
---|
Метод | Описание | |
---|---|---|
AddUpdateHook ( UpdateHookDelegate hook ) : void |
Adds a callback that will be executed every update loop.
|
|
Async ( AsyncHandler handler ) : void |
Little utility to make it easier to do work outside of the UI thread
|
|
Draw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void |
Basic draw method. Your component should implement this and add any drawing behavior it needs.
|
|
DrawLocalString ( |
This utility will draw a line of text onto the UIElement.
|
|
DrawLocalString ( |
This utility will draw a line of text onto the UIElement.
|
|
DrawLocalString ( |
This utility will draw a line of text onto the UIElement.
|
|
DrawLocalString ( |
This utility will draw a line of text onto the UIElement.
|
|
DrawLocalTexture ( |
Draws a texture to the UIElement. This method will deal with the matrix calculations
|
|
DrawLocalTexture ( |
Draws a texture to the UIElement. This method will deal with the matrix calculations
|
|
DrawLocalTexture ( |
Draws a texture to the UIElement. This method will deal with the matrix calculations
|
|
DrawLocalTexture ( |
Draws a texture to the UIElement. This method will deal with the matrix calculations
|
|
DrawTiledTexture ( |
||
FlooredLocalPoint ( Vector2 point ) : Vector2 | ||
GetBounds ( ) : |
Gets the bounding box for the component
|
|
GetMousePosition ( Microsoft.Xna.Framework.Input.MouseState mouse ) : Vector2 |
Gets the local mouse coordinates for the given mouse state
|
|
GetTexture ( |
||
GetTexture ( ulong id ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
GlobalPoint ( Vector2 globalPoint ) : Vector2 |
Converts a point relative to the screen into a point relative to this component
|
|
HitTestArea ( UpdateState state, |
Returns true if the mouse is over the given area
|
|
InvalidateMatrix ( ) : void |
Utility to force the component to recalculate its matrix
|
|
InvalidateOpacity ( ) : void |
Utility to force the component to recalculate its blend colour
|
|
ListenForMouse ( |
||
LocalPoint ( Vector2 point ) : Vector2 |
Converts a point relative to this UIElement into a point relative to the screen
|
|
LocalPoint ( float x, float y ) : Vector2 |
Converts a point relative to this UIElement into a point relative to the screen
|
|
LocalRect ( float x, float y, float w, float h ) : |
Converts a rectangle relative to this UIElement into a rectangle relative to the screen.
|
|
LocalRect ( float x, float y, float w, float h, float mtx ) : |
Converts a rectangle relative to this UIElement into a rectangle relative to the screen.
|
|
PreDraw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void |
May be removed - Called before the draw method.
|
|
RemoveMouseListener ( |
||
RemoveUpdateHook ( UpdateHookDelegate hook ) : void |
Removes a previously added update hook.
|
|
StoreTexture ( ulong id, |
||
StoreTexture ( ulong id, |
||
ToString ( ) : string | ||
Update ( UpdateState state ) : void |
Standard UIElement update method. All sub-classes should call this super method. The argument is an UpdateState object, this object contains everything you may need during update including GameTime, MouseState, KeyboardState etc. This is useful because it means we dont ask for Mouse & Keyboard state in every UIElement which would be wasteful
|
|
WillDraw ( ) : bool |
Scans through parents to determine if this element will be drawn.
|
Метод | Описание | |
---|---|---|
CalculateMatrix ( ) : void |
Calculate a matrix which represents this objects position in screen space
|
|
CalculateOpacity ( ) : void |
When the opacity changes this method is used to calculate the blend colour.
|
|
ManualTextureMask ( Microsoft.Xna.Framework.Graphics.Texture2D &Texture, Color ColorFrom ) : void |
Manually replaces a specified color in a texture with transparent black, thereby masking it.
|
public AddUpdateHook ( UpdateHookDelegate hook ) : void | ||
hook | UpdateHookDelegate | |
Результат | void |
public Async ( AsyncHandler handler ) : void | ||
handler | AsyncHandler | |
Результат | void |
public abstract Draw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void | ||
batch | FSO.Client.UI.Framework.UISpriteBatch | |
Результат | void |
public DrawLocalString ( |
||
batch | The SpriteBatch to draw the text onto | |
text | string | The content of the text |
to | Vector2 | The position of the text. Relative to this UIElement. |
style | The text style | |
Результат | void |
public DrawLocalString ( |
||
batch | The SpriteBatch to draw the text onto | |
text | string | The content of the text |
to | Vector2 | The position of the text. Relative to this UIElement. |
style | The text style | |
bounds | Rectangle relative to this UIElement which the text should be positioned within | |
align | TextAlignment | Alignment of the text within the bounds box. |
Результат | void |
public DrawLocalString ( |
||
batch | The SpriteBatch to draw the text onto | |
text | string | The content of the text |
to | Vector2 | The position of the text. Relative to this UIElement. |
style | The text style | |
bounds | Rectangle relative to this UIElement which the text should be positioned within | |
align | TextAlignment | Alignment of the text within the bounds box. |
margin | Margin offset from the bounding box. | |
Результат | void |
public DrawLocalString ( |
||
batch | The SpriteBatch to draw the text onto | |
text | string | The content of the text |
to | Vector2 | The position of the text. Relative to this UIElement. |
style | The text style | |
bounds | Rectangle relative to this UIElement which the text should be positioned within | |
align | TextAlignment | Alignment of the text within the bounds box. |
margin | Margin offset from the bounding box. | |
state | UIElementState | State of the text, e.g. hover, down, normal |
Результат | void |
public DrawLocalTexture ( |
||
batch | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
from | Nullable |
|
to | Vector2 | |
scale | Vector2 | |
Результат | void |
public DrawLocalTexture ( |
||
batch | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
from | Nullable |
|
to | Vector2 | |
scale | Vector2 | |
blend | Color | |
Результат | void |
public DrawLocalTexture ( |
||
batch | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
from | ||
to | Vector2 | |
Результат | void |
public DrawLocalTexture ( |
||
batch | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
to | Vector2 | |
Результат | void |
public DrawTiledTexture ( |
||
batch | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
dest | ||
blend | Color | |
Результат | void |
public FlooredLocalPoint ( Vector2 point ) : Vector2 | ||
point | Vector2 | |
Результат | Vector2 |
public GetBounds ( ) : |
||
Результат |
public GetMousePosition ( Microsoft.Xna.Framework.Input.MouseState mouse ) : Vector2 | ||
mouse | Microsoft.Xna.Framework.Input.MouseState | |
Результат | Vector2 |
public static GetTexture ( |
||
id | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public static GetTexture ( ulong id ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
id | ulong | |
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public GlobalPoint ( Vector2 globalPoint ) : Vector2 | ||
globalPoint | Vector2 | |
Результат | Vector2 |
public HitTestArea ( UpdateState state, |
||
state | FSO.Common.Rendering.Framework.Model.UpdateState | |
area | ||
cache | bool | |
Результат | bool |
public ListenForMouse ( |
||
region | ||
callback | UIMouseEvent | |
Результат |
public LocalPoint ( Vector2 point ) : Vector2 | ||
point | Vector2 | |
Результат | Vector2 |
public LocalPoint ( float x, float y ) : Vector2 | ||
x | float | |
y | float | |
Результат | Vector2 |
public LocalRect ( float x, float y, float w, float h ) : |
||
x | float | |
y | float | |
w | float | |
h | float | |
Результат |
public LocalRect ( float x, float y, float w, float h, float mtx ) : |
||
x | float | |
y | float | |
w | float | |
h | float | |
mtx | float | |
Результат |
protected ManualTextureMask ( Microsoft.Xna.Framework.Graphics.Texture2D &Texture, Color ColorFrom ) : void | ||
Texture | Microsoft.Xna.Framework.Graphics.Texture2D | The texture on which to apply the mask. |
ColorFrom | Color | The color to mask away. |
Результат | void |
public PreDraw ( FSO.Client.UI.Framework.UISpriteBatch batch ) : void | ||
batch | FSO.Client.UI.Framework.UISpriteBatch | |
Результат | void |
public RemoveMouseListener ( |
||
item | ||
Результат | void |
public RemoveUpdateHook ( UpdateHookDelegate hook ) : void | ||
hook | UpdateHookDelegate | |
Результат | void |
public static StoreTexture ( ulong id, |
||
id | ulong | |
assetData | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public static StoreTexture ( ulong id, |
||
id | ulong | |
assetData | ||
mask | bool | |
cacheOnDisk | bool | |
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public Update ( UpdateState state ) : void | ||
state | FSO.Common.Rendering.Framework.Model.UpdateState | |
Результат | void |
protected UIContainer,FSO.Client.UI.Framework _Parent | ||
Результат |