public override bool UpdateGame() { CheckStartIntroVideos(); if (CSettings.GameState == EGameState.EditTheme) { _timer.Stop(); } else { _timer.Start(); } bool next = ((CConfig.CoverLoading == ECoverLoading.TR_CONFIG_COVERLOADING_ATSTART && CSongs.CoverLoaded) || CConfig.CoverLoading != ECoverLoading.TR_CONFIG_COVERLOADING_ATSTART); if ((_IntroOutPlayed || _SkipIntro) && next && CSettings.GameState != EGameState.EditTheme && CSongs.SongsLoaded) { CSettings.GameState = EGameState.Normal; } if (CSettings.GameState == EGameState.Normal) { CGraphics.FadeTo(EScreens.ScreenMain); } Texts[htTexts(TextStatus)].Text = CLanguage.Translate("TR_SCREENLOAD_TOTAL") + ": " + CSongs.NumAllSongs.ToString() + " " + CLanguage.Translate("TR_SCREENLOAD_SONGS") + " (" + CSongs.NumSongsWithCoverLoaded + " " + CLanguage.Translate("TR_SCREENLOAD_LOADED") + ")"; if (CSongs.SongsLoaded && CConfig.BackgroundMusic == EOffOn.TR_CONFIG_ON && CConfig.BackgroundMusicSource != EBackgroundMusicSource.TR_CONFIG_NO_OWN_MUSIC) { CBackgroundMusic.AddOwnMusic(); if (!CBackgroundMusic.IsPlaying()) { CBackgroundMusic.Next(); } } return(true); }
public override void OnShowFinish() { base.OnShowFinish(); if (CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON) { for (int i = 0; i < _Intros.Length; i++) { _Intros[i].PreLoad(); } } CLog.StartBenchmark(3, "Load Cover"); _SongLoaderThread.IsBackground = true; _SongLoaderThread.Start(); _timer.Start(); if (!CBackgroundMusic.IsPlaying()) { CBackgroundMusic.Next(); } }