Play song-preview instead of bg-music (if enabled) on names-, score- and highscore-screen.

This commit is contained in:
Florian Küpper committed 2014-08-09 19:50:40 +02:00
1 parent 04c2b85e2b
commit 8e8fdc1277
12 files changed
+48 -12

No files matched your search

@@ -376,10 +376,11 @@ namespace VocaluxeLib.Menu.SongMenu
}
public virtual void OnShow() {}
public virtual void OnHide()
{
_ResetPreview();
if(CBase.Graphics.GetNextScreen() != EScreens.ScreenNames || CBase.Config.GetBackgroundMusicStatus() == EOffOn.TR_CONFIG_OFF)
_ResetPreview();
}
public abstract bool HandleInput(ref SKeyEvent keyEvent, SScreenSongOptions options);
@@ -110,7 +110,11 @@ namespace VocaluxeLib.Menu.SongMenu
set
{
if (value == base._PreviewNr)
{
if (!CBase.PreviewPlayer.IsPlaying())
CBase.PreviewPlayer.Play();
return;
}
base._PreviewNr = value;
_UpdatePreview();
}