示例#1
0
 protected void OnCancel(object sender, PlayerIndexEventArgs e)
 {
     OnCancel(e.PlayerIndex);
 }
 void NewGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     //LoadingScreen.Load(ScreenManager, true, GamerOne.PlayerIndex, new LevelOne());
 }
        void StartMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            resultCheck = StorageDevice.BeginShowSelector(
                            GamerOne.PlayerIndex, null, null);

            gameLoadRequested = true;
        }
        void ExitMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            const string message = "Are you sure you want to exit?";

            MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message, true);

            confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmQuitMessageBox, GamerOne.PlayerIndex);
        }
 void HelpMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     //ScreenManager.AddScreen(new HelpMenuScreen(), GamerOne.PlayerIndex);
 }
 void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
 void ContinueMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     if (LbKStorage.Level == 1)
     {
         LoadingScreen.Load(ScreenManager, true, GamerOne.PlayerIndex, new Level());
     }
     //LoadingScreen.Load(ScreenManager, true, GamerOne.PlayerIndex, new ?"Level")
 }
 void OptionsGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
 void ControlsGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new ControlScreen(), e.PlayerIndex);
 }
 void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, GamerOne.PlayerIndex, new MainMenuScreen(false, false));
 }
 void ResumeGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     this.ExitScreen();
 }
        void QuitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
        {
            const string message = "Don't forget to save before exiting session";

            MessageBoxScreen confirmQuitMessageBox = new MessageBoxScreen(message, true);

            confirmQuitMessageBox.Accepted += ConfirmQuitMessageBoxAccepted;

            ScreenManager.AddScreen(confirmQuitMessageBox, GamerOne.PlayerIndex);
        }