C# Class CrisisAtSwissStation.MenuScreen

Afficher le fichier Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Méthodes publiques

Свойство Type Description
Disabled Color
Selected Color
Unselected Color
controller MenuController
ms Microsoft.Xna.Framework.Input.MouseState
selected int

Protected Properties

Свойство Type Description
distY float
font Microsoft.Xna.Framework.Graphics.SpriteFont
initialX float
initialY float
options List
returnSelected bool
sgconnect bool
title string

Méthodes publiques

Méthode 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 méthode

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

LoadContent() public méthode

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager Content ) : void
Content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

MenuScreen() public méthode

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
Résultat System

ReturnCommand() public méthode

Returns selected command. Null if not returning command.
public ReturnCommand ( ) : MenuOption
Résultat MenuOption

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

Disabled public_oe static_oe property

public static Color Disabled
Résultat Color

Selected public_oe static_oe property

public static Color Selected
Résultat Color

Unselected public_oe static_oe property

public static Color Unselected
Résultat Color

controller public_oe property

public MenuController,CrisisAtSwissStation controller
Résultat MenuController

distY protected_oe property

Y distance between menu options
protected float distY
Résultat float

font protected_oe property

protected SpriteFont,Microsoft.Xna.Framework.Graphics font
Résultat Microsoft.Xna.Framework.Graphics.SpriteFont

initialX protected_oe property

protected float initialX
Résultat float

initialY protected_oe property

protected float initialY
Résultat float

ms public_oe property

public MouseState,Microsoft.Xna.Framework.Input ms
Résultat Microsoft.Xna.Framework.Input.MouseState

options protected_oe property

Options player has to choose
protected List options
Résultat List

returnSelected protected_oe property

protected bool returnSelected
Résultat bool

selected public_oe property

public int selected
Résultat int

sgconnect protected_oe property

protected bool sgconnect
Résultat bool

title protected_oe property

Title of menu
protected string title
Résultat string