do not play intro videos if background videos are off
This commit is contained in:
1 parent
91ee1e3083
commit
5bf8bebb9d
2 files changed
+22
-10
No files matched your search
@@ -4,7 +4,7 @@
|
||||
<ScreenVersion>1</ScreenVersion>
|
||||
<Background1>
|
||||
<!--<Type>: Background type: None, Color, Texture, Video-->
|
||||
<Type>None</Type>
|
||||
<Type>Texture</Type>
|
||||
<!--<Video>: Background video name-->
|
||||
<Video>BG_Video</Video>
|
||||
<!--<Skin>: Background Texture name-->
|
||||
|
||||
@@ -113,20 +113,25 @@ namespace Vocaluxe.Screens
|
||||
_CurrentIntroVideoNr = -1;
|
||||
_IntroOutPlayed = false;
|
||||
|
||||
for (int i = 0; i < _Intros.Length; i++)
|
||||
if (CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
_Intros[i].Load(IntroVideo[i]);
|
||||
for (int i = 0; i < _Intros.Length; i++)
|
||||
{
|
||||
_Intros[i].Load(IntroVideo[i]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public override void OnShowFinish()
|
||||
{
|
||||
base.OnShowFinish();
|
||||
|
||||
for (int i = 0; i < _Intros.Length; i++)
|
||||
if (CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON)
|
||||
{
|
||||
_Intros[i].PreLoad();
|
||||
for (int i = 0; i < _Intros.Length; i++)
|
||||
{
|
||||
_Intros[i].PreLoad();
|
||||
}
|
||||
}
|
||||
|
||||
CLog.StartBenchmark(3, "Load Cover");
|
||||
@@ -154,7 +159,7 @@ namespace Vocaluxe.Screens
|
||||
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)
|
||||
if ((_IntroOutPlayed || _SkipIntro) && next && CSettings.GameState != EGameState.EditTheme && CSongs.SongsLoaded)
|
||||
{
|
||||
CSettings.GameState = EGameState.Normal;
|
||||
}
|
||||
@@ -198,9 +203,10 @@ namespace Vocaluxe.Screens
|
||||
_timer.Stop();
|
||||
_timer.Reset();
|
||||
|
||||
_Intros[0].Close();
|
||||
_Intros[1].Close();
|
||||
_Intros[2].Close();
|
||||
for (int i = 0; i < _Intros.Length; i++)
|
||||
{
|
||||
_Intros[i].Close();
|
||||
}
|
||||
|
||||
CLog.StopBenchmark(3, "Load Cover");
|
||||
}
|
||||
@@ -210,6 +216,12 @@ namespace Vocaluxe.Screens
|
||||
if (_IntroOutPlayed)
|
||||
return;
|
||||
|
||||
if (CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_OFF)
|
||||
{
|
||||
_IntroOutPlayed = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (_CurrentIntroVideoNr < 0)
|
||||
{
|
||||
_CurrentIntroVideoNr = 0;
|
||||
|
||||
Reference in new issue
Block a user