C# Class PrinceGame.MainMenuScreen

Inheritance: MenuScreen
Show file Open project: salvadorc17/Prince-Monogame

Public Methods

Method Description
MainMenuScreen ( ) : System

Constructor fills in the menu contents.

Protected Methods

Method Description
OnCancel ( PlayerIndex playerIndex ) : void

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

Private Methods

Method 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 method

Constructor fills in the menu contents.
public MainMenuScreen ( ) : System
return System

OnCancel() protected method

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