Esempio n. 1
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void OptionsMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     //ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
Esempio n. 2
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void ResumeGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     BGScreen.ExitScreen();
     ExitScreen();
 }
Esempio n. 3
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void ExitMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, false, e.PlayerIndex, new GameplayScreen(),
                        new MainMenuScreen());
 }
Esempio n. 4
0
 /// <summary>
 /// Helper overload makes it easy to use OnCancel as a MenuEntry event handler.
 /// </summary>
 protected void OnCancel(object sender, PlayerIndexEventArgs e)
 {
     OnCancel(e.PlayerIndex);
 }
Esempio n. 5
0
 /// <summary>
 /// Event handler for when the Options menu entry is selected.
 /// </summary>
 void ExitMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
Esempio n. 6
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void CampaignGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ExitScreen();
 }
Esempio n. 7
0
 void AboutGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     //ScreenManager.AddScreen(new AboutScreen(), e.PlayerIndex);
 }