C# Class TraceRacer.PhoneMenuScreen

Provides a basic base screen for menus on Windows Phone leveraging the Button class.
Inheritance: GameScreen
ファイルを表示 Open project: alexcoco/trace_racer

Public Methods

Method Description
Activate ( bool instancePreserved ) : void
Draw ( GameTime gameTime ) : void
HandleInput ( GameTime gameTime, InputState input ) : void
PhoneMenuScreen ( string title ) : System

Creates the PhoneMenuScreen with a particular title.

Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void

Protected Methods

Method Description
OnCancel ( ) : void

An overrideable method called whenever the menuCancel action is triggered

Method Details

Activate() public method

public Activate ( bool instancePreserved ) : void
instancePreserved bool
return void

Draw() public method

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

HandleInput() public method

public HandleInput ( GameTime gameTime, InputState input ) : void
gameTime Microsoft.Xna.Framework.GameTime
input InputState
return void

OnCancel() protected method

An overrideable method called whenever the menuCancel action is triggered
protected OnCancel ( ) : void
return void

PhoneMenuScreen() public method

Creates the PhoneMenuScreen with a particular title.
public PhoneMenuScreen ( string title ) : System
title string The title of the screen
return System

Update() public method

public Update ( GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen ) : void
gameTime Microsoft.Xna.Framework.GameTime
otherScreenHasFocus bool
coveredByOtherScreen bool
return void