UserInterface Methods |
The UserInterface type exposes the following members.
Name | Description | |
---|---|---|
AddEntity |
Add an entity to screen.
| |
Clear |
Remove all entities from screen.
| |
Deserialize(Stream) |
Deserialize the whole UI from stream.
Note: serialization have some limitation and things that will not be included in xml,
like even handlers. Please read docs carefuly to know what to expect.
| |
Deserialize(String) |
Deserialize the whole UI from filename.
Note: serialization have some limitation and things that will not be included in xml,
like even handlers. Please read docs carefuly to know what to expect.
| |
Dispose |
Dispose unmanaged resources of this user interface.
| |
Draw |
Draw the UI. This function should be called from your Game 'Draw()' function.
Note: if UseRenderTarget is true, this function should be called FIRST in your draw function.
If UseRenderTarget is false, this function should be called LAST in your draw function.
| |
DrawCursor |
Draw the cursor.
| |
DrawMainRenderTarget |
Finalize the draw frame and draw all the UI on screen.
This function only works if we are in UseRenderTarget mode.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetTransformedCursorPos |
Get transformed cursoer position for collision detection.
If have transform matrix and curser is included in render target, will transform cursor position too.
If don't use transform matrix or drawing cursor outside, will not transform cursor position.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize(ContentManager, BuiltinThemes) |
Initialize UI manager (mostly load resources and set some defaults).
| |
Initialize(ContentManager, String) |
Initialize UI manager (mostly load resources and set some defaults).
| |
RemoveEntity |
Remove an entity from screen.
| |
Serialize(Stream) |
Serialize the whole UI to stream.
Note: serialization have some limitation and things that will not be included in xml,
like even handlers. Please read docs carefuly to know what to expect.
| |
Serialize(String) |
Serialize the whole UI to filename.
Note: serialization have some limitation and things that will not be included in xml,
like even handlers. Please read docs carefuly to know what to expect.
| |
SetCursor(CursorType) |
Set cursor style.
| |
SetCursor(Texture2D, Int32, NullablePoint) |
Set cursor graphics from a custom texture.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update |
Update the UI manager. This function should be called from your Game 'Update()' function, as early as possible (eg before you update your game state).
|