C# Class UHSampleGame.MenuSystem.MenuScreen

Inheritance: UHSampleGame.ScreenManagement.Screen
Afficher le fichier Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Méthodes publiques

Méthode Description
AddMenuEntry ( MenuEntry menuEntry ) : void
Draw ( GameTime gameTime ) : void

Draws the menu.

HandleInput ( ) : void
HandleInput ( InputManager input ) : void
LoadContent ( ) : void
MenuScreen ( string menuTitle ) : System
Reload ( ) : void
UnloadContent ( ) : void
Update ( GameTime gameTime ) : void

Méthodes protégées

Méthode Description
OnCancel ( ) : void

Handler for when the user has cancelled the menu.

OnCancel ( object sender, EventArgs e ) : void

Helper overload makes it easy to use OnCancel as a MenuEntry event handler.

OnSelectEntry ( int entryIndex ) : void

Handler for when the user has chosen a menu entry.

Method Details

AddMenuEntry() public méthode

public AddMenuEntry ( MenuEntry menuEntry ) : void
menuEntry MenuEntry
Résultat void

Draw() public méthode

Draws the menu.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void

HandleInput() public méthode

public HandleInput ( ) : void
Résultat void

HandleInput() public méthode

public HandleInput ( InputManager input ) : void
input UHSampleGame.InputManagement.InputManager
Résultat void

LoadContent() public méthode

public LoadContent ( ) : void
Résultat void

MenuScreen() public méthode

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

OnCancel() protected méthode

Handler for when the user has cancelled the menu.
protected OnCancel ( ) : void
Résultat void

OnCancel() protected méthode

Helper overload makes it easy to use OnCancel as a MenuEntry event handler.
protected OnCancel ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Résultat void

OnSelectEntry() protected méthode

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

Reload() public méthode

public Reload ( ) : void
Résultat void

UnloadContent() public méthode

public UnloadContent ( ) : void
Résultat void

Update() public méthode

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Résultat void