C# Class Blink.GUI.TextButton

A button with text
Inheritance: Button
Show file Open project: dah6ce/Blink

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
SetText ( String text ) : void
TextButton ( String text, SpriteFont font, Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D up, Microsoft.Xna.Framework.Graphics.Texture2D down, Vector2 center = default(Vector2) ) : System

Method Details

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

SetText() public method

public SetText ( String text ) : void
text String
return void

TextButton() public method

public TextButton ( String text, SpriteFont font, Vector2 pos, Microsoft.Xna.Framework.Graphics.Texture2D up, Microsoft.Xna.Framework.Graphics.Texture2D down, Vector2 center = default(Vector2) ) : System
text String
font Microsoft.Xna.Framework.Graphics.SpriteFont
pos Vector2
up Microsoft.Xna.Framework.Graphics.Texture2D
down Microsoft.Xna.Framework.Graphics.Texture2D
center Vector2
return System