C# Class UHSampleGame.MenuSystem.MenuScreen

Inheritance: UHSampleGame.ScreenManagement.Screen
Mostra file Open project: holtkampw/UH-Sample-XNA-Project Class Usage Examples

Public Methods

Method 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

Protected Methods

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

public AddMenuEntry ( MenuEntry menuEntry ) : void
menuEntry MenuEntry
return void

Draw() public method

Draws the menu.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

HandleInput() public method

public HandleInput ( ) : void
return void

HandleInput() public method

public HandleInput ( InputManager input ) : void
input UHSampleGame.InputManagement.InputManager
return void

LoadContent() public method

public LoadContent ( ) : void
return void

MenuScreen() public method

public MenuScreen ( string menuTitle ) : System
menuTitle string
return System

OnCancel() protected method

Handler for when the user has cancelled the menu.
protected OnCancel ( ) : void
return void

OnCancel() protected method

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
return void

OnSelectEntry() protected method

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

Reload() public method

public Reload ( ) : void
return void

UnloadContent() public method

public UnloadContent ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void