/// <summary> /// Event handler for when the Quit Game menu entry is selected. /// </summary> private void QuitGameMenuEntrySelected(object sender, PlayerIndexEventArgs e) { BackgroundScreen background = new BackgroundScreen("Textures/hiscore", TransitionType.Fade); MainMenuScreen mainMenu = new MainMenuScreen("Space Hordes"); Manager.AddScreen(background, ControllingPlayer); Manager.AddScreen(mainMenu, null); }
private void HowToSelected(object sender, PlayerIndexEventArgs e) { bossBackdrop = new ExitableBackgroundScreen("Textures/howtoplay", TransitionType.Slide); Manager.AddScreen(bossBackdrop, e.PlayerIndex); }
private void IntroMenuEntrySelected(object sender, PlayerIndexEventArgs e) { bossBackdrop = new BackgroundScreen("Textures/GameMenu", TransitionType.Slide); Manager.AddScreen(bossBackdrop, e.PlayerIndex); IntroScreen intro = new IntroScreen(); intro.OnExit += new EventHandler(BossScreenExited); Manager.AddScreen(intro, e.PlayerIndex); }
private void BossMenuEntrySelected(object sender, PlayerIndexEventArgs e) { bool storage = true; #if XBOX storage = StorageHelper.CheckStorage(); #endif if (storage) { bossBackdrop = new BackgroundScreen("Textures/GameMenu", TransitionType.Slide); Manager.AddScreen(bossBackdrop, e.PlayerIndex); } BossScreen bosses = new BossScreen(ScreenHelper.SpriteSheet); bosses.OnExit += new EventHandler(BossScreenExited); Manager.AddScreen(bosses, e.PlayerIndex); }