C# Class CastleEscape.TextMenu

Allows the user to select from a list of options. Author: Dennis Honeyman
Show file Open project: Daminvar/CastleEscape Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch, int x, int y, Color textColor ) : void
TextMenu ( SpriteFont font, string options ) : System
Update ( GameTime gameTime, KeyboardState state ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch, int x, int y, Color textColor ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
x int
y int
textColor Color
return void

TextMenu() public method

public TextMenu ( SpriteFont font, string options ) : System
font Microsoft.Xna.Framework.Graphics.SpriteFont
options string
return System

Update() public method

public Update ( GameTime gameTime, KeyboardState state ) : void
gameTime Microsoft.Xna.Framework.GameTime
state Microsoft.Xna.Framework.Input.KeyboardState
return void