Property | Type | Description | |
---|---|---|---|
action | MSAction | ||
clickedTexture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
hoveredTexture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
unhoveredTexture | Microsoft.Xna.Framework.Graphics.Texture2D |
Method | Description | |
---|---|---|
Draw ( |
||
HandleKeyboardInput ( |
||
Hover ( ) : void | ||
LeftClick ( ) : void | ||
MSButton ( |
Constructs an MSButton.
|
|
MSButton ( |
Constructs an MSButton with no highlight.
|
|
MiddleClick ( ) : void | ||
RightClick ( ) : void | ||
UnHover ( ) : void | ||
UnLeftClick ( ) : void | ||
UnLeftClickNoAction ( ) : void | ||
UnMiddleClick ( ) : void | ||
UnRightClick ( ) : void |
public Draw ( |
||
gameTime | ||
return | void |
public HandleKeyboardInput ( |
||
oldKeyboardState | ||
return | void |
public MSButton ( |
||
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 MSButton ( |
||
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 this MSButton | |
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 |
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 |
protected Texture2D,Microsoft.Xna.Framework.Graphics clickedTexture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
protected Texture2D,Microsoft.Xna.Framework.Graphics hoveredTexture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |