C# Class ScreenManagement.Screens.MenuScreen

Inheritance: GameScreen
Afficher le fichier Open project: giladgray/XNA-ScreenManager Class Usage Examples

Protected Properties

Свойство Type Description
DefaultAlignment Alignment

Méthodes publiques

Méthode Description
AddMenuEntry ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, EventHandler selected, bool inherit ) : MenuEntry
AddMenuLabel ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, Color textColor ) : MenuEntry
Draw ( Microsoft gameTime ) : void
HandleInput ( InputState input ) : void
LoadContent ( ) : void
MenuScreen ( string title ) : System
UnloadContent ( ) : void
Update ( Microsoft gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Méthodes protégées

Méthode Description
OnCancel ( object sender, MenuSelectionEventArgs args ) : void

Handler for when the user has cancelled the menu.

OnSelectEntry ( int entryIndex, PlayerIndex playerIndex ) : void

Handler for when the user has chosen a menu entry.

Method Details

AddMenuEntry() public méthode

public AddMenuEntry ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, EventHandler selected, bool inherit ) : MenuEntry
text string
background Microsoft.Xna.Framework.Graphics.Texture2D
selected EventHandler
inherit bool
Résultat MenuEntry

AddMenuLabel() public méthode

public AddMenuLabel ( string text, Microsoft.Xna.Framework.Graphics.Texture2D background, Color textColor ) : MenuEntry
text string
background Microsoft.Xna.Framework.Graphics.Texture2D
textColor Color
Résultat MenuEntry

Draw() public méthode

public Draw ( Microsoft gameTime ) : void
gameTime Microsoft
Résultat void

HandleInput() public méthode

public HandleInput ( InputState input ) : void
input InputState
Résultat void

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

MenuScreen() public méthode

public MenuScreen ( string title ) : System
title string
Résultat System

OnCancel() protected méthode

Handler for when the user has cancelled the menu.
protected OnCancel ( object sender, MenuSelectionEventArgs args ) : void
sender object
args MenuSelectionEventArgs
Résultat void

OnSelectEntry() protected méthode

Handler for when the user has chosen a menu entry.
protected OnSelectEntry ( int entryIndex, PlayerIndex playerIndex ) : void
entryIndex int
playerIndex PlayerIndex
Résultat void

UnloadContent() public méthode

public UnloadContent ( ) : void
Résultat void

Update() public méthode

public Update ( Microsoft gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft
otherScreenHasFocus bool
coveredByOtherScreen bool
Résultat void

Property Details

DefaultAlignment protected_oe property

protected Alignment DefaultAlignment
Résultat Alignment