public IntroGameScreen(IntroFinished setIntroFinished, bool setUseVoiceOver = true) { useVoiceOver = setUseVoiceOver; curTexture = null; introFinished = setIntroFinished; MouseCursor.State = MouseCursorState.None; if (useVoiceOver) { storyboard = new IntroStoryboardWithVO(); MainGame.SoundManager.LoadSound(546); MainGame.SoundManager.LoadSound(547); MainGame.SoundManager.LoadSound(548); MainGame.SoundManager.LoadSound(549); MainGame.SoundManager.LoadSound(550); } else { storyboard = new IntroStoryboardNoVO(); } storyboard.OnStageSwitched += storyboard_OnStageSwitched; storyboard.OnChangeMovieStatus += storyboard_OnChangeMovieStatus; storyboard.OnAudioStageSwitched += Storyboard_OnAudioStageSwitched; player = new FLCPlayer(MainGame.Device); player.OnFrameUpdated += player_OnFrameUpdated; player.OnPlaybackFinished += player_OnPlaybackFinished; }
/// <summary></summary> private void OnMonologueFinished(Monologue monologue) { if (activeIntroduction != null) { IsActive = false; activeIntroduction.Finish(); activeIntroduction = null; IntroFinished?.Invoke(); } }
public IntroGameScreen(IntroFinished setIntroFinished) { curTexture = null; introFinished = setIntroFinished; MouseCursor.State = MouseCursorState.None; storyboard = new IntroStoryboard(); storyboard.OnStageSwitched += storyboard_OnStageSwitched; storyboard.OnChangeMovieStatus += storyboard_OnChangeMovieStatus; player = new FLCPlayer(MainGame.Device); player.OnFrameUpdated += player_OnFrameUpdated; player.OnPlaybackFinished += player_OnPlaybackFinished; }
/// <summary>Called when a introduction has been finished to fire event and set active state</summary> private void OnIntroFinished(Introduction introduction) { IsActive = false; ActiveIntro = null; IntroFinished?.Invoke(introduction); }