The pause menu comes up over the top of the game, giving the player options to resume or quit. More...
Public Member Functions | |
| MontyHallPauseMenuScreen () | |
| Constructor. | |
| override void | Draw (GameTime gameTime) |
| Draws the pause menu screen. This darkens down the gameplay screen that is underneath us, and then chains to the base MenuScreen.Draw. | |
The pause menu comes up over the top of the game, giving the player options to resume or quit.
Definition at line 15 of file MontyHallPauseMenuScreen.cs.
| MontyHallGame.MontyHallPauseMenuScreen.MontyHallPauseMenuScreen | ( | ) |
Constructor.
Definition at line 23 of file MontyHallPauseMenuScreen.cs.
00024 : base("Paused") 00025 { 00026 // Flag that there is no need for the game to transition 00027 // off when the pause menu is on top of it. 00028 IsPopup = true; 00029 00030 // Create our menu entries. 00031 MenuEntry resumeGameMenuEntry = new MenuEntry("Resume Game"); 00032 MenuEntry quitGameMenuEntry = new MenuEntry("Quit Game"); 00033 00034 // Hook up menu event handlers. 00035 resumeGameMenuEntry.Selected += OnCancel; 00036 quitGameMenuEntry.Selected += QuitGameMenuEntrySelected; 00037 00038 // Add entries to the menu. 00039 MenuEntries.Add(resumeGameMenuEntry); 00040 MenuEntries.Add(quitGameMenuEntry); 00041 }
| override void MontyHallGame.MontyHallPauseMenuScreen.Draw | ( | GameTime | gameTime | ) | [virtual] |
Draws the pause menu screen. This darkens down the gameplay screen that is underneath us, and then chains to the base MenuScreen.Draw.
Reimplemented from NewGamePhysics.StateManager.MenuScreen.
Definition at line 85 of file MontyHallPauseMenuScreen.cs.
00086 { 00087 ScreenManager.FadeBackBufferToBlack(TransitionAlpha * 2 / 3); 00088 00089 base.Draw(gameTime); 00090 }
1.6.2