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 (CConfig.BackgroundMusic == EOffOn.TR_CONFIG_ON && CConfig.BackgroundMusicSource == EBackgroundMusicSource.TR_CONFIG_NO_OWN_MUSIC && !_BGMusicStartet) { CBackgroundMusic.AddOwnMusic(); if (!CBackgroundMusic.Playing) { CBackgroundMusic.Next(); } _BGMusicStartet = true; } CBackgroundMusic.CanSing = false; }
public override bool HandleInput(KeyEvent KeyEvent) { base.HandleInput(KeyEvent); if (KeyEvent.KeyPressed && !Char.IsControl(KeyEvent.Unicode)) { } else { switch (KeyEvent.Key) { case Keys.Escape: case Keys.Back: CGraphics.HidePopup(EPopupScreens.PopupPlayerControl); return(false); case Keys.Enter: if (Buttons[htButtons(ButtonNext)].Selected) { CBackgroundMusic.Next(); } if (Buttons[htButtons(ButtonPrevious)].Selected) { CBackgroundMusic.Previous(); } if (Buttons[htButtons(ButtonPlay)].Selected) { CBackgroundMusic.Play(); } if (Buttons[htButtons(ButtonPause)].Selected) { CBackgroundMusic.Pause(); } if (Buttons[htButtons(ButtonRepeat)].Selected) { CBackgroundMusic.RepeatSong = !CBackgroundMusic.RepeatSong; } if (Buttons[htButtons(ButtonShowVideo)].Selected) { VideoPreview = !VideoPreview; } if (Buttons[htButtons(ButtonSing)].Selected) { StartSong(CBackgroundMusic.SongID, CBackgroundMusic.Duet); } if (Buttons[htButtons(ButtonToBackgroundVideo)].Selected) { VideoBackground = !VideoBackground; } break; } } return(true); }
public override bool HandleMouse(MouseEvent MouseEvent) { base.HandleMouse(MouseEvent); if (MouseEvent.LB && IsMouseOver(MouseEvent)) { if (Buttons[htButtons(ButtonNext)].Selected) { CBackgroundMusic.Next(); } if (Buttons[htButtons(ButtonPrevious)].Selected) { CBackgroundMusic.Previous(); } if (Buttons[htButtons(ButtonPlay)].Selected) { CBackgroundMusic.Play(); } if (Buttons[htButtons(ButtonPause)].Selected) { CBackgroundMusic.Pause(); } if (Buttons[htButtons(ButtonRepeat)].Selected) { CBackgroundMusic.RepeatSong = !CBackgroundMusic.RepeatSong; } if (Buttons[htButtons(ButtonShowVideo)].Selected) { VideoPreview = !VideoPreview; } if (Buttons[htButtons(ButtonSing)].Selected) { StartSong(CBackgroundMusic.SongID, CBackgroundMusic.Duet); } if (Buttons[htButtons(ButtonToBackgroundVideo)].Selected) { VideoBackground = !VideoBackground; } } else if (MouseEvent.LB) { //CGraphics.HidePopup(EPopupScreens.PopupPlayerControl); return(false); } else if (MouseEvent.RB) { //CGraphics.HidePopup(EPopupScreens.PopupPlayerControl); return(false); } return(true); }
public override bool HandleMouse(SMouseEvent mouseEvent) { base.HandleMouse(mouseEvent); if (mouseEvent.LB && _IsMouseOverCurSelection(mouseEvent)) { if (_Buttons[_ButtonNext].Selected) { CBackgroundMusic.Next(); } if (_Buttons[_ButtonPrevious].Selected) { CBackgroundMusic.Previous(); } if (_Buttons[_ButtonPlay].Selected) { CBackgroundMusic.Play(); } if (_Buttons[_ButtonPause].Selected) { CBackgroundMusic.Pause(); } if (_Buttons[_ButtonRepeat].Selected) { CBackgroundMusic.RepeatSong = !CBackgroundMusic.RepeatSong; } if (_Buttons[_ButtonShowVideo].Selected) { _VideoPreview = !_VideoPreview; } if (_Buttons[_ButtonSing].Selected) { _StartSong(CBackgroundMusic.SongID); } if (_Buttons[_ButtonToBackgroundVideo].Selected) { _VideoBackground = !_VideoBackground; } } else if (mouseEvent.LB) { //CGraphics.HidePopup(EPopupScreens.PopupPlayerControl); return(false); } else if (mouseEvent.RB) { //CGraphics.HidePopup(EPopupScreens.PopupPlayerControl); return(false); } return(true); }
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 && !_BGMusicStartet) { CBackgroundMusic.AddOwnMusic(); if (!CBackgroundMusic.Playing) { CBackgroundMusic.Next(); } _BGMusicStartet = true; } 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(); } }