C# Class Bug.Display.Button

Inheritance: UiElement
Afficher le fichier Open project: Projectfights/Fight-insect Class Usage Examples

Méthodes publiques

Свойство Type Description
select OnSelect

Méthodes publiques

Méthode Description
Button ( int x, int y, Microsoft.Xna.Framework.Graphics.Texture2D up_, Microsoft.Xna.Framework.Graphics.Texture2D down_ ) : Microsoft.Xna.Framework
Collide ( int pointX, int pointY ) : bool
Draw ( SpriteBatch batch ) : void
SetPressed ( bool pressed_, bool toggle = true ) : void

Private Methods

Méthode Description
IsPressed ( ) : bool

Method Details

Button() public méthode

public Button ( int x, int y, Microsoft.Xna.Framework.Graphics.Texture2D up_, Microsoft.Xna.Framework.Graphics.Texture2D down_ ) : Microsoft.Xna.Framework
x int
y int
up_ Microsoft.Xna.Framework.Graphics.Texture2D
down_ Microsoft.Xna.Framework.Graphics.Texture2D
Résultat Microsoft.Xna.Framework

Collide() public méthode

public Collide ( int pointX, int pointY ) : bool
pointX int
pointY int
Résultat bool

Draw() public méthode

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

SetPressed() public méthode

public SetPressed ( bool pressed_, bool toggle = true ) : void
pressed_ bool
toggle bool
Résultat void

Property Details

select public_oe property

public OnSelect select
Résultat OnSelect