C# Class Blink.GUI.Button

An empty button for a menu, only draws a button background, used as a base for more complex buttons.
Afficher le fichier Open project: dah6ce/Blink

Protected Properties

Свойство Type Description
selected bool

Méthodes publiques

Méthode Description
Button ( Vector2 pos, Vector2 size, Microsoft.Xna.Framework.Graphics.Texture2D up, Microsoft.Xna.Framework.Graphics.Texture2D down, Vector2 center = default(Vector2) ) : System
Draw ( SpriteBatch sb ) : void
Select ( ) : void
Toggle ( ) : void
UnSelect ( ) : void

Method Details

Button() public méthode

public Button ( Vector2 pos, Vector2 size, Microsoft.Xna.Framework.Graphics.Texture2D up, Microsoft.Xna.Framework.Graphics.Texture2D down, Vector2 center = default(Vector2) ) : System
pos Vector2
size Vector2
up Microsoft.Xna.Framework.Graphics.Texture2D
down Microsoft.Xna.Framework.Graphics.Texture2D
center Vector2
Résultat System

Draw() public méthode

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

Select() public méthode

public Select ( ) : void
Résultat void

Toggle() public méthode

public Toggle ( ) : void
Résultat void

UnSelect() public méthode

public UnSelect ( ) : void
Résultat void

Property Details

selected protected_oe property

protected bool selected
Résultat bool