예제 #1
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);
 }
예제 #2
0
 /// <summary>
 /// Event handler for when the Frobnicate menu entry is selected.
 /// </summary>
 void SoundMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     sound = !(bool)IsolatedStorageSettings.ApplicationSettings["sound"];
     IsolatedStorageSettings.ApplicationSettings["sound"] = sound;
     IsolatedStorageSettings.ApplicationSettings.Save();
     SetMenuEntryText();
 }
예제 #3
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);
 }
예제 #4
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new GameplayScreen());
 }
예제 #5
0
 /// <summary>
 /// Event handler for when the Play Game menu entry is selected.
 /// </summary>
 void HelpMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex,
                        new HelpScreen());
 }