Property | Type | Description | |
---|---|---|---|
Slicer | |||
Texture | Microsoft.Xna.Framework.Graphics.Texture2D |
Method | Description | |
---|---|---|
Draw ( |
Draws this UIImage to the screen.
|
|
Draw ( |
Draws this UIImage to the screen.
|
|
DrawTextureTo ( |
Draws a part of this image's texture to a specific point in screen space. Used for drawing dialogs (see UIDialog.cs).
|
|
SetSize ( int Width, int Height ) : void |
Sets the size of this UIImage instance.
|
|
UIImage ( DefineImageNode Node, UIScreen Screen ) : Files.Manager |
Constructs a new UIImage instance.
|
|
UIImage ( Microsoft.Xna.Framework.Graphics.Texture2D Tex, UIScreen Screen, |
Constructs a new UIImage instance.
|
|
UIImage ( |
Copy constructor.
|
public Draw ( |
||
SBatch | A SpriteBatch instance to draw with. | |
SourceRect | A rectangle controlling which part of the image to draw. May be null. | |
LayerDepth | float | |
return | void |
public Draw ( |
||
SBatch | A SpriteBatch instance to draw with. | |
SourceRect | A rectangle controlling which part of the image to draw. May be null. | |
LayerDepth | float | Depth at which to draw, may be null. |
ScaleFactor | Scale at which to draw, may be null. | |
return | void |
public DrawTextureTo ( |
||
SBatch | The SpriteBatch used for drawing. | |
Scale | The scale at which to draw. | |
From | A source rectangle that controls which part of the texture is drawn. | |
To | Point in screen space to draw to. | |
LayerDepth | float | Depth at which to render, from 0-1. Set to 0.10f by default. |
return | void |
public SetSize ( int Width, int Height ) : void | ||
Width | int | The width of this UIImage instance. |
Height | int | The height of this UIImage instance. |
return | void |
public UIImage ( DefineImageNode Node, UIScreen Screen ) : Files.Manager | ||
Node | DefineImageNode | A DefineImageNode instance, as generated by an Abstract Syntax Tree (see UIScreen.cs). |
Screen | UIScreen | A UIScreen instance. |
return | Files.Manager |
public UIImage ( Microsoft.Xna.Framework.Graphics.Texture2D Tex, UIScreen Screen, |
||
Tex | Microsoft.Xna.Framework.Graphics.Texture2D | Texture to create image from. |
Screen | UIScreen | UIScreen instance. |
Parent | Parent of this UIImage instance, may be null. | |
return | Files.Manager |
public UIImage ( |
||
Image | A UIImage instance to copy. | |
return | Files.Manager |