The pause menu comes up over the top of the game, giving the player options to resume or quit. More...
Public Member Functions | |
| PendulumPauseMenuScreen () | |
| 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 16 of file PendulumPauseMenuScreen.cs.
| PendulumGame.PendulumPauseMenuScreen.PendulumPauseMenuScreen | ( | ) |
Constructor.
Definition at line 24 of file PendulumPauseMenuScreen.cs.
00025 : base("Paused") 00026 { 00027 // Flag that there is no need for the game to transition 00028 // off when the pause menu is on top of it. 00029 IsPopup = true; 00030 00031 // Create our menu entries. 00032 MenuEntry resumeGameMenuEntry = new MenuEntry("Resume Game"); 00033 MenuEntry quitGameMenuEntry = new MenuEntry("Quit Game"); 00034 00035 // Hook up menu event handlers. 00036 resumeGameMenuEntry.Selected += OnCancel; 00037 quitGameMenuEntry.Selected += QuitGameMenuEntrySelected; 00038 00039 // Add entries to the menu. 00040 MenuEntries.Add(resumeGameMenuEntry); 00041 MenuEntries.Add(quitGameMenuEntry); 00042 }
| override void PendulumGame.PendulumPauseMenuScreen.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 PendulumPauseMenuScreen.cs.
00086 { 00087 ScreenManager.FadeBackBufferToBlack(TransitionAlpha * 2 / 3); 00088 00089 base.Draw(gameTime); 00090 }
1.6.2