C# Class Defend_your_home.UI.Button

Inheritance: IGraphicsControl
Afficher le fichier Open project: MandragoraStudio/Defend-your-home Class Usage Examples

Protected Properties

Свойство Type Description
font Microsoft.Xna.Framework.Graphics.SpriteFont
position Vector2
pressed bool
text string
textSize Vector2
tintColor Color
tintWhenTouched Color

Méthodes publiques

Méthode Description
Button ( string text, SpriteFont font, Vector2 position ) : System
Draw ( SpriteBatch spriteBatch ) : void
Update ( ) : void

Méthodes protégées

Méthode Description
CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool
CheckIfTouchRelease ( Vector2 touchPosition ) : bool
DoOnTouchDown ( ) : void
DoOnTouchRelease ( ) : void
OnClick ( EventArgs e ) : void
OnTouchDown ( EventArgs e ) : void

Method Details

Button() public méthode

public Button ( string text, SpriteFont font, Vector2 position ) : System
text string
font Microsoft.Xna.Framework.Graphics.SpriteFont
position Vector2
Résultat System

CheckIfFirstTouchDown() protected méthode

protected CheckIfFirstTouchDown ( Vector2 touchPosition ) : bool
touchPosition Vector2
Résultat bool

CheckIfTouchRelease() protected méthode

protected CheckIfTouchRelease ( Vector2 touchPosition ) : bool
touchPosition Vector2
Résultat bool

DoOnTouchDown() protected méthode

protected DoOnTouchDown ( ) : void
Résultat void

DoOnTouchRelease() protected méthode

protected DoOnTouchRelease ( ) : void
Résultat void

Draw() public méthode

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void

OnClick() protected méthode

protected OnClick ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnTouchDown() protected méthode

protected OnTouchDown ( EventArgs e ) : void
e System.EventArgs
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

font protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

position protected_oe property

protected Vector2 position
Résultat Vector2

pressed protected_oe property

protected bool pressed
Résultat bool

text protected_oe property

protected string text
Résultat string

textSize protected_oe property

protected Vector2 textSize
Résultat Vector2

tintColor protected_oe property

protected Color tintColor
Résultat Color

tintWhenTouched protected_oe property

protected Color tintWhenTouched
Résultat Color