C# Class PrinceGame.MainMenuScreen

Inheritance: MenuScreen
Afficher le fichier Open project: salvadorc17/Prince-Monogame

Méthodes publiques

Méthode Description
MainMenuScreen ( ) : System

Constructor fills in the menu contents.

Méthodes protégées

Méthode Description
OnCancel ( PlayerIndex playerIndex ) : void

When the user cancels the main menu, ask if they want to exit the sample.

Private Methods

Méthode Description
ConfirmExitMessageBoxAccepted ( object sender, PlayerIndexEventArgs e ) : void

Event handler for when the user selects ok on the "are you sure you want to exit" message box.

OptionsMenuEntrySelected ( object sender, PlayerIndexEventArgs e ) : void

Event handler for when the Options menu entry is selected.

PlayGameMenuEntrySelected ( object sender, PlayerIndexEventArgs e ) : void

Event handler for when the Play Game menu entry is selected.

Method Details

MainMenuScreen() public méthode

Constructor fills in the menu contents.
public MainMenuScreen ( ) : System
Résultat System

OnCancel() protected méthode

When the user cancels the main menu, ask if they want to exit the sample.
protected OnCancel ( PlayerIndex playerIndex ) : void
playerIndex PlayerIndex
Résultat void