C# Class Defend_your_home.UI.ButtonImage

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

Protected Properties

Свойство Type Description
image Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
pressed bool
rotation float
textSize Vector2
tintColor Color
tintWhenTouched Color

Méthodes publiques

Méthode Description
ButtonImage ( string imagen, Vector2 position, Color c ) : System
ButtonImage ( string imagen, Vector2 position, Color c, float rotation ) : 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

ButtonImage() public méthode

public ButtonImage ( string imagen, Vector2 position, Color c ) : System
imagen string
position Vector2
c Color
Résultat System

ButtonImage() public méthode

public ButtonImage ( string imagen, Vector2 position, Color c, float rotation ) : System
imagen string
position Vector2
c Color
rotation float
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

image protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics image
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

position protected_oe property

protected Vector2 position
Résultat Vector2

pressed protected_oe property

protected bool pressed
Résultat bool

rotation protected_oe property

protected float rotation
Résultat float

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