public override void Update(GameTime gametime) { base.Update(gametime); if (m_over == true) { return; } if (FightEngine.TickCount >= m_recording.Data.Count) { if (MenuSystem.GetSubSystem <InitializationSettings>().QuitAfterReplay == true) { MenuSystem.PostEvent(new Events.FadeScreen(FadeDirection.Out)); } m_over = true; return; } InjectRecordingInput(); if (Pause == PauseState.Unpaused || Pause == PauseState.PauseStep) { FightEngine.Update(gametime); } if (Pause == PauseState.PauseStep) { m_pause = PauseState.Paused; } }
void CheckReady() { if (m_isdone == true) { return; } if (m_stageselected == false || m_p1info.IsSelected == false || m_p2info.IsSelected == false) { return; } m_isdone = true; if (m_currentstage == -1) { m_currentstage = MenuSystem.GetSubSystem <Random>().NewInt(0, StageProfiles.Count - 1); } Int32 p1index = (m_p1info.CurrentCell.Y * m_gridsize.X) + m_p1info.CurrentCell.X; Int32 p2index = (m_p2info.CurrentCell.Y * m_gridsize.X) + m_p2info.CurrentCell.X; PlayerSelect p1 = PlayerProfiles[p1index]; PlayerSelect p2 = PlayerProfiles[p2index]; StageProfile stage = StageProfiles[m_currentstage]; Combat.EngineInitialization init = new Combat.EngineInitialization(CombatMode.Versus, p1.Profile, m_p1info.PaletteIndex, p2.Profile, m_p2info.PaletteIndex, stage); MenuSystem.PostEvent(new Events.SetupCombat(init)); MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Versus)); }
private void SelectActiveMenuItem(bool pressed) { if (pressed) { SoundManager.Play(m_soundselect); switch (m_currentmenuitem) { case (int)MainMenuOption.Arcade: MenuSystem.PostEvent(new Events.SetupCombatMode(CombatMode.Arcade)); MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Select)); break; case (int)MainMenuOption.Versus: MenuSystem.PostEvent(new Events.SetupCombatMode(CombatMode.Versus)); MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Select)); break; case (int)MainMenuOption.TeamArcade: MenuSystem.PostEvent(new Events.SetupCombatMode(CombatMode.TeamArcade)); MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Select)); break; case (int)MainMenuOption.TeamVersus: MenuSystem.PostEvent(new Events.SetupCombatMode(CombatMode.TeamVersus)); MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Select)); break; case (int)MainMenuOption.Quit: QuitGame(true); break; } } }
public override void Update(GameTime gametime) { Storyboard?.Update(); if (Storyboard?.IsFinished == true) { MenuSystem.PostEvent(Event); } }
void CancelCombat(Boolean pressed) { if (pressed == true) { Pause = PauseState.Unpaused; MenuSystem.PostEvent(new Events.FadeScreen(FadeDirection.Out)); } }
private void QuitGame(bool pressed) { if (pressed) { m_quitselected = true; SoundManager.Play(m_soundcancel); MenuSystem.PostEvent(new Events.FadeScreen(FadeDirection.Out)); } }
private void BackToTitleScreen(bool pressed) { if (pressed) { SoundManager.Play(m_soundCancel); MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Title)); } }
void CancelCombat(Boolean pressed) { if (pressed == true) { Pause = PauseState.Unpaused; MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Title)); } }
private void CancelCombat(bool pressed) { if (pressed) { Pause = PauseState.Unpaused; MenuSystem.PostEvent(new Events.FadeScreen(FadeDirection.Out)); } }
private void CancelCombat(bool pressed) { if (pressed) { Pause = PauseState.Unpaused; MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Title)); } }
void SelectActiveMenuItem(Boolean pressed) { if (pressed == true) { SoundManager.Play(m_soundselect); if (m_currentmenuitem == (Int32)MainMenuOption.Versus) { MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Select)); } else if (m_currentmenuitem == (Int32)MainMenuOption.Quit) { QuitGame(true); } } }
private void ShowTimeComplete(object sender, EventArgs args) { MenuSystem.PostEvent(new Events.SwitchScreen(ScreenType.Combat)); }