Method | Description | |
---|---|---|
Hover ( ) : void | ||
LeftClick ( ) : void | ||
MSAnimatingButton ( |
Constructs an MSButton.
|
|
MSAnimatingButton ( |
Constructs an MSAnimatingButton with no highlight.
|
|
UnHover ( ) : void | ||
UnLeftClick ( ) : void | ||
Update ( |
public MSAnimatingButton ( |
||
label | Add text to this MSButton with an MSLabel. Use null if you don't need to add text. Make sure to position the MSLabel relative to the upper-left corner of this MSButton. | |
action | MSAction | will be executed when this MSButton is clicked |
boundingRectangle | the bounding Rectangle of thisMSButton | |
unhovered | Microsoft.Xna.Framework.Graphics.Texture2D | will be drawn when this MSButton is unhovered |
clicked | Microsoft.Xna.Framework.Graphics.Texture2D | will be drawn when this MSButton is pressed and hovered |
hovered | Microsoft.Xna.Framework.Graphics.Texture2D | will be drawn when this MSButton is released and hovered |
highlight | Color | the Color to overlay this MSButton with |
toolTip | ||
shape | Shape | the Shape of this MSButton |
spriteBatch | the SpriteBatch that will draw this MSButton | |
game | Microsoft.Xna.Framework.Game | the Game where this MSButton will be used |
return | System |
public MSAnimatingButton ( |
||
label | Add text to this MSAnimatingButton with an MSLabel. Use null if you don't need to add text. Make sure to position the MSLabel relative to the upper-left corner of this MSButton. | |
action | MSAction | will be executed when this MSAnimatingButton is clicked |
boundingRectangle | the bounding Rectangle of this MSAnimatingButton | |
unhovered | Microsoft.Xna.Framework.Graphics.Texture2D | will be drawn when this MSAnimatingButton is unhovered |
clicked | Microsoft.Xna.Framework.Graphics.Texture2D | will be drawn when this MSAnimatingButton is pressed and hovered |
hovered | Microsoft.Xna.Framework.Graphics.Texture2D | will be drawn when this MSAnimatingButton is released and hovered |
toolTip | ||
shape | Shape | the Shape of this MSButton |
spriteBatch | the SpriteBatch that will draw this MSButton | |
game | Microsoft.Xna.Framework.Game | the Game where this MSButton will be used |
return | System |
public Update ( |
||
gameTime | ||
return | void |