C# Class NScumm.MonoGame.MenuScreen

Base public class for screens that contain a menu of options. The user can move up and down to select an entry, or cancel to back out of the screen.
This public class is similar to one in the GameStateManagement sample.
Inheritance: GameScreen
Afficher le fichier Open project: scemino/nscumm

Méthodes publiques

Méthode Description
Draw ( GameTime gameTime ) : void

Draws the menu.

HandleInput ( InputState input ) : void

Responds to user input, changing the selected entry and accepting or cancelling the menu.

Méthodes protégées

Méthode Description
MenuScreen ( ) : System

Constructor.

OnCancel ( ) : void

Notifies derived classes that the menu has been cancelled.

OnSelectEntry ( int entryIndex ) : void

Notifies derived classes that a menu entry has been chosen.

Method Details

Draw() public méthode

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

HandleInput() public méthode

Responds to user input, changing the selected entry and accepting or cancelling the menu.
public HandleInput ( InputState input ) : void
input InputState
Résultat void

MenuScreen() protected méthode

Constructor.
protected MenuScreen ( ) : System
Résultat System

OnCancel() protected abstract méthode

Notifies derived classes that the menu has been cancelled.
protected abstract OnCancel ( ) : void
Résultat void

OnSelectEntry() protected abstract méthode

Notifies derived classes that a menu entry has been chosen.
protected abstract OnSelectEntry ( int entryIndex ) : void
entryIndex int
Résultat void