public override void HandleInput(InputState input) { PlayerIndex player; if (input.IsNewButtonPress(Buttons.Back, ControllingPlayer, out player) || input.IsNewKeyPress(Keys.Escape, ControllingPlayer, out player)) { switch (Mode) { case GameplayDrawMode.Puzzle: LoadingScreen.Load(ScreenManager, false, ControllingPlayer, previewScreen, gameOptionsScreen); break; case GameplayDrawMode.Congratulations: LoadingScreen.Load(ScreenManager, true, ControllingPlayer, GameScreenFactory.Create <BackgroundScreen>(), GameScreenFactory.Create <MainMenuScreen>()); break; default: break; } } }
void PlayGameMenuEntrySelected(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, GameScreenFactory.Create <GameplayScreen>()); }
void OptionsSelected(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, GameScreenFactory.Create <BackgroundScreen>(), GameScreenFactory.Create <OptionsMenuScreen>()); }
protected override void OnCancel(PlayerIndex playerIndex) { LoadingScreen.Load(ScreenManager, true, playerIndex, GameScreenFactory.Create <BackgroundScreen>(), GameScreenFactory.Create <MainMenuScreen>()); }
protected override void OnCancel(PlayerIndex playerIndex) { LoadingScreen.Load(ScreenManager, true, playerIndex, gameplayScreen); }
//void OnPreviewSelected(object sender, PlayerIndexEventArgs e) //{ // LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, new PreviewScreen(gameplayScreen)); //} void OnResumeGameSelected(object sender, PlayerIndexEventArgs e) { LoadingScreen.Load(ScreenManager, true, e.PlayerIndex, gameplayScreen); }