some data handling between challenge main screen and challenge game mode
This commit is contained in:
1 parent
99875f4293
commit
bad4b3a5aa
6 files changed
+128
-16
No files matched your search
@@ -52,6 +52,7 @@ namespace Vocaluxe.PartyModes
|
||||
|
||||
public struct FromScreenMain
|
||||
{
|
||||
public bool FadeToSongSelection;
|
||||
}
|
||||
#endregion FromScreen
|
||||
#endregion Communication
|
||||
@@ -93,9 +94,9 @@ namespace Vocaluxe.PartyModes
|
||||
public PartyModeChallenge()
|
||||
{
|
||||
_ScreenSongOptions.Selection.RandomOnly = false;
|
||||
_ScreenSongOptions.Selection.PartyMode = false;
|
||||
_ScreenSongOptions.Selection.PartyMode = true;
|
||||
_ScreenSongOptions.Selection.CategoryChangeAllowed = true;
|
||||
_ScreenSongOptions.Selection.NumJokers = null;
|
||||
_ScreenSongOptions.Selection.NumJokers = new int[] { 5, 5 };
|
||||
|
||||
_ScreenSongOptions.Sorting.SearchString = String.Empty;
|
||||
_ScreenSongOptions.Sorting.SearchStringVisible = false;
|
||||
@@ -164,8 +165,20 @@ namespace Vocaluxe.PartyModes
|
||||
break;
|
||||
|
||||
case "PartyScreenChallengeMain":
|
||||
_Stage = EStage.Singing;
|
||||
_Base.Graphics.FadeTo(EScreens.ScreenPartyDummy);
|
||||
try
|
||||
{
|
||||
data = (DataFromScreen)Data;
|
||||
if (data.ScreenMain.FadeToSongSelection)
|
||||
_Stage = EStage.Singing;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_Base.Log.LogError("Error in party mode challenge. Can't cast received data from screen " + ScreenName + ". " + e.Message);
|
||||
}
|
||||
|
||||
|
||||
if (_Stage == EStage.Singing)
|
||||
StartNextRound();
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -269,5 +282,11 @@ namespace Vocaluxe.PartyModes
|
||||
{
|
||||
return MaxNumRounds;
|
||||
}
|
||||
|
||||
private void StartNextRound()
|
||||
{
|
||||
|
||||
_Base.Graphics.FadeTo(EScreens.ScreenSong);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user