Property | Type | Description | |
---|---|---|---|
Enabled | bool | ||
m_IsButtonClicked | bool |
Method | Description | |
---|---|---|
AddImage ( |
Adds an image to this button, because (you guessed it) sometimes buttons will be defined without images...
|
|
Draw ( |
||
DrawBorder ( |
Draws a border around this button, for debugging purposes.
|
|
IsMouseOver ( InputHelper Input ) : bool | ||
UIButton ( |
||
UIButton ( string Name, Microsoft.Xna.Framework.Graphics.Texture2D Tex, |
Constructs a new UIButton instance.
|
|
Update ( InputHelper Input, |
Method | Description | |
---|---|---|
ScaleToText ( ) : void |
Scales a button to the size of the button's text. Also repositions a button's text according to the new size.
|
public AddImage ( |
||
Img | The image to add. | |
return | void |
public Draw ( |
||
SBatch | ||
LayerDepth | float | |
return | void |
public DrawBorder ( |
||
SBatch | A Spritebatch to draw with. | |
rectangleToDraw | A rectangle that will make up the border. | |
thicknessOfBorder | int | Thickness of border to be drawn. |
borderColor | Microsoft.Xna.Framework.Color | Color of border. |
return | void |
public IsMouseOver ( InputHelper Input ) : bool | ||
Input | InputHelper | |
return | bool |
public UIButton ( |
||
Node | ||
State | ||
Screen | UIScreen | |
return | Files |
public UIButton ( string Name, Microsoft.Xna.Framework.Graphics.Texture2D Tex, |
||
Name | string | Name of button. |
Tex | Microsoft.Xna.Framework.Graphics.Texture2D | Texture used to display this button. |
Pos | ||
Screen | UIScreen | This button's screen. |
Parent | ||
return | Files |
public Update ( InputHelper Input, |
||
Input | InputHelper | |
GTime | ||
return | void |