C# Class GameStateManagement.MainMenuScreen

The main menu screen is the first thing displayed when the game starts up.
Inheritance: MenuScreen
Exibir arquivo Open project: GarethIW/LDEngine Class Usage Examples

Public Methods

Method Description
MainMenuScreen ( ) : System

Constructor fills in the menu contents.

OptionsMenuEntrySelected ( object sender, EventArgs e ) : void

Event handler for when the Options menu entry is selected.

PlayGameMenuEntrySelected ( object sender, EventArgs e ) : void

Protected Methods

Method Description
OnCancel ( object sender, EventArgs e ) : void

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

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 ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

OptionsMenuEntrySelected() public method

Event handler for when the Options menu entry is selected.
public OptionsMenuEntrySelected ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

PlayGameMenuEntrySelected() public method

public PlayGameMenuEntrySelected ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void