|
| Button (Texture2D normal, Texture2D selected, Texture2D pressed) |
| Initializes a new instance of the T:MB2D.UI.Button class. More...
|
|
| Button () |
| Initializes a new instance of the T:MB2D.UI.Button class with no associated textures More...
|
|
override void | Update () |
| Updates the button state. More...
|
|
| UIControlElement (Texture2D normal, Texture2D selected, Texture2D pressed) |
| Initializes a new instance of the T:MB2D.UI.UIControlElement class. More...
|
|
| UIControlElement () |
| Initializes a new instance of the T:MB2D.UI.UIControlElement class with no textures associated More...
|
|
override void | Update () |
| Update the UIState of the control element based on mouse position More...
|
|
override void | Draw (SpriteBatch spriteBatch) |
| Draws the texture associated with the elements current UIState and then its TextContent on top of the texture More...
|
|
void | SetRelativeSize (UIContent parent, Point at, Point span) |
| Sets the size of the element relative to its parent More...
|
|
void | SetRelativeSize (UIContent parent, int atRow, int atCol, int rowSpan, int colSpan) |
| Sets the size of the element relative to its parent More...
|
|
|
SoundEffectInstance | PressedSound [get, set] |
| Gets or sets the sound fired when transitioning to the pressed state. More...
|
|
Color | NormalTextColor [get, set] |
| Gets or sets the TextContent color associated with the Normal UIState of the element. More...
|
|
Color | HighlightedTextColor [get, set] |
| Gets or sets the TextContent color associated with the Selected UIState of the element. More...
|
|
Texture2D | NormalTexture [get, set] |
| Gets or sets the normal UIState texture. More...
|
|
Texture2D | HighlightedTexture [get, set] |
| Gets or sets the selected UIState texture. More...
|
|
Texture2D | PressedTexture [get, set] |
| Gets or sets the pressed UIState texture. More...
|
|
SoundEffect | HighlightedSound [get, set] |
| Gets or sets the sound played when an element switches to the selected state. More...
|
|
UIContent | Content [get] |
| Gets the UIContent of the element, only available in container elements More...
|
|
Vector2 | Size [get] |
| Gets the column and row count of the element More...
|
|
Rectangle | BoundingBox [get] |
| Gets the bounding box of this element More...
|
|
bool | Fill [get, set] |
| Gets or sets a value that indicates the element should be stretched or shrunk to fill its parents bounds exactly More...
|
|
Color | BackgroundColor [get, set] |
| Gets or sets the color of the elements background. More...
|
|
string | TextContent [get, set] |
| Gets or sets the string rendered by the element. More...
|
|
Color | TextColor [get, set] |
| Gets or sets the current color of the text. More...
|
|
SpriteFont | Font [get, set] |
| Gets or sets the font used in rendering the elements TextContent More...
|
|
bool | BorderDisplayed [get, set] |
| Gets or sets a value indicating whether this T:MB2D.UI.UIElement has itsborder displayed. More...
|
|
int | BorderWidth [get, set] |
| Gets or sets the width of the border. More...
|
|
Color | BorderColor [get, set] |
| Gets or sets the color of the border. More...
|
|
Color | BorderTopColor [get, set] |
| Gets or sets the color of the border top. More...
|
|
Color | BorderRightColor [get, set] |
| Gets or sets the color of the border right. More...
|
|
Color | BorderBottomColor [get, set] |
| Gets or sets the color of the border bottom. More...
|
|
Color | BorderLeftColor [get, set] |
| Gets or sets the color of the border left. More...
|
|
string | Tag [get, set] |
| Gets or sets the tag used to quickly access this element and uniquely identify it. More...
|
|
A pressable ui element with a single OnPress event