void save_Selected(object sender, PlayerIndexEventArgs e)
        {
#if PC
            if (options.IsFullscreen != DarkHavocGame.GameOptions.IsFullscreen)
				DarkHavocGame.ToggleFullScreen(options.IsFullscreen);
#endif

            DarkHavocGame.GameOptions = options;

			Options.SerializeToFile(DarkHavocGame.AppDataLocation, DarkHavocGame.GameOptions);
        }
        void credits_CreditsEnd(object sender, PlayerIndexEventArgs e)
        {
            Debug.WriteLine("[Dark Havoc] Credits finished.");

            foreach (GameScreen screen in ScreenManager.GetScreens())
            {
                ScreenManager.RemoveScreen(screen);
            }

            ScreenManager.Game.IsMouseVisible = true;

            LoadingScreen.Load(ScreenManager, false, ControllingPlayer, new MenuBackgroundScreen(), new TitleScreen(), new MainMenuScreen());

            //JoshoEngine.MusicPlayer.Play("./Resources/Music/kool-gro.xm");
        }
        void arcade_Selected(object sender, PlayerIndexEventArgs e)
        {
            // Remove the previous screens.
            foreach (GameScreen screen in ScreenManager.GetScreens())
            {
                // We want to fade out of the other screens, but instantly remove the background screen.
                if (screen is MenuBackgroundScreen)
                {
                    ScreenManager.RemoveScreen(screen);
                    break;
                }
            }

            // Make the mouse invisible.
            ScreenManager.Game.IsMouseVisible = false;

            // Add new instance of the ArcadeMode.
            LoadingScreen.Load(ScreenManager, false, null, new ArcadeMode());
        }
        void credits_Selected(object sender, PlayerIndexEventArgs e)
        {
            // Remove the previous screens.
            foreach (GameScreen screen in ScreenManager.GetScreens())
            {
                // We want to fade out of the other screens, but instantly remove the background screen.
                if (screen is MenuBackgroundScreen)
                {
                    ScreenManager.RemoveScreen(screen);
                    break;
                }
            }

            // Make the mouse invisible.
            ScreenManager.Game.IsMouseVisible = false;

            // Stop Menu Music
            //JoshoEngine.MusicPlayer.Stop();

            // Add new instance of the CreditsScreen
            CreditsScreen credits = new CreditsScreen(DarkHavocGame.creditsFile, "./Resources/Music/betrayer_-_one.xm");
            credits.CreditsEnd += new EventHandler<PlayerIndexEventArgs>(credits_CreditsEnd);
            LoadingScreen.Load(ScreenManager, false, null, credits);
        }
 void options_Selected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new OptionsMenuScreen(), e.PlayerIndex);
 }
 void help_Selected(object sender, PlayerIndexEventArgs e)
 {
     throw new NotImplementedException();
 }
 void exit_Selected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.Game.Exit();
 }
 void play_Selected(object sender, PlayerIndexEventArgs e)
 {
     ScreenManager.AddScreen(new PlayGameMenuScreen(), e.PlayerIndex);
 }
 void sound_Selected(object sender, PlayerIndexEventArgs e)
 {
     options.ChangeSetting(Options.Setting.Sound, !options.IsSound);
     SetMenuText();
 }
 void fullscreen_Selected(object sender, PlayerIndexEventArgs e)
 {
     options.ChangeSetting(Options.Setting.Fullscreen, !options.IsFullscreen);
     SetMenuText();
 }
 void music_Selected(object sender, PlayerIndexEventArgs e)
 {
     options.ChangeSetting(Options.Setting.Music, !options.IsMusic);
     SetMenuText();
 }
 void quitToMenu_Selected(object sender, PlayerIndexEventArgs e)
 {
     LoadingScreen.Load(ScreenManager, false, e.PlayerIndex, new MenuBackgroundScreen(), new TitleScreen(), new MainMenuScreen());
 }