// This uses the loading screen to transition from the game back to the main menu screen.
        private void ConfirmQuitMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
        {
            var screens = ScreenManager.GetScreens();

            LoadingScreen.Load(ScreenManager, true, null, new BackgroundScreen(), new MainMenuScreen());
        }
 private void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new Hole1());
 }
 // This uses the loading screen to transition from the game back to the main menu screen.
 private void ConfirmRestartMessageBoxAccepted(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, 0, new Hole1());
 }
Beispiel #4
0
 private void ExitToMainEntrySelected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, true, 0, new MainMenuScreen());
 }