Свойство | Type | Description | |
---|---|---|---|
font | |||
position | Vector2 | ||
pressed | bool | ||
text | string | ||
textSize | Vector2 | ||
tintColor | Color | ||
tintWhenTouched | Color |
Méthode | Description | |
---|---|---|
Button ( string text, |
||
Draw ( |
||
Update ( ) : void |
Méthode | Description | |
---|---|---|
CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool | ||
CheckIfTouchRelease ( Vector2 touchPosition ) : bool | ||
DoOnTouchDown ( ) : void | ||
DoOnTouchRelease ( ) : void | ||
OnClick ( |
||
OnTouchDown ( |
public Button ( string text, |
||
text | string | |
font | ||
position | Vector2 | |
Résultat | System |
protected CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool | ||
touchPosition | Vector2 | |
Résultat | bool |
protected CheckIfTouchRelease ( Vector2 touchPosition ) : bool | ||
touchPosition | Vector2 | |
Résultat | bool |
public Draw ( |
||
spriteBatch | ||
Résultat | void |
protected OnClick ( |
||
e | ||
Résultat | void |
protected OnTouchDown ( |
||
e | ||
Résultat | void |
protected SpriteFont,Microsoft.Xna.Framework.Graphics font | ||
Résultat |