C# Class CrisisAtSwissStation.MenuScreen

Datei anzeigen Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Properties

Property Type Description
Disabled Color
Selected Color
Unselected Color
controller MenuController
ms Microsoft.Xna.Framework.Input.MouseState
selected int

Protected Properties

Property Type Description
distY float
font Microsoft.Xna.Framework.Graphics.SpriteFont
initialX float
initialY float
options List
returnSelected bool
sgconnect bool
title string

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void

Draw current menu, including state

LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
MenuScreen ( float x, float y, float vertDist, bool sgConnect = false ) : System

ReturnCommand ( ) : MenuOption

Returns selected command. Null if not returning command.

Update ( ) : void

Method Details

Draw() public method

Draw current menu, including state
public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
return void

MenuScreen() public method

public MenuScreen ( float x, float y, float vertDist, bool sgConnect = false ) : System
x float X coordinate of first option
y float Y coordinate of first option
vertDist float Y distance to next option
sgConnect bool
return System

ReturnCommand() public method

Returns selected command. Null if not returning command.
public ReturnCommand ( ) : MenuOption
return MenuOption

Update() public method

public Update ( ) : void
return void

Property Details

Disabled public_oe static_oe property

public static Color Disabled
return Color

Selected public_oe static_oe property

public static Color Selected
return Color

Unselected public_oe static_oe property

public static Color Unselected
return Color

controller public_oe property

public MenuController,CrisisAtSwissStation controller
return MenuController

distY protected_oe property

Y distance between menu options
protected float distY
return float

font protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
return Microsoft.Xna.Framework.Graphics.SpriteFont

initialX protected_oe property

protected float initialX
return float

initialY protected_oe property

protected float initialY
return float

ms public_oe property

public MouseState,Microsoft.Xna.Framework.Input ms
return Microsoft.Xna.Framework.Input.MouseState

options protected_oe property

Options player has to choose
protected List options
return List

returnSelected protected_oe property

protected bool returnSelected
return bool

selected public_oe property

public int selected
return int

sgconnect protected_oe property

protected bool sgconnect
return bool

title protected_oe property

Title of menu
protected string title
return string