Auxiliary screens only show for the local player, and not during answer reveal.

This commit is contained in:
2025-08-05 18:04:30 -04:00
parent 33eedb361f
commit 21ed0aaa7f
4 changed files with 428 additions and 271 deletions
@@ -53,6 +53,8 @@ public class GameManagerRound1 : GameManagerBase
for (int i = 0; i < _PlayerPodiums.Length; i++)
{
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.All, "ResetPodium");
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.All, "ShowAuxiliaryVideoScreen", false);
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.All, "ShowAuxiliaryMapScreen", false);
}
_PlayerBuzzInAllowed = new bool[_PlayerPodiums.Length];
@@ -85,8 +87,7 @@ public class GameManagerRound1 : GameManagerBase
return;
}
Interface.HeaderUI.text =
"Case has been loaded. ";
Interface.HeaderUI.text = "Case has been loaded. ";
_GameHasBegun = false;
EnableInteraction("Start Game");
@@ -100,6 +101,10 @@ public class GameManagerRound1 : GameManagerBase
Interface.HeaderUI.text = "Playing intro video...";
_VideoPlayer.VideoURL = _CaseManager.GetIntroVideo();
for (int i = 0; i < _PlayerPodiums.Length; i++)
{
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.Owner, "ShowAuxiliaryVideoScreen", true);
}
EnableInteraction("Assign Points");
}
@@ -156,6 +161,11 @@ public class GameManagerRound1 : GameManagerBase
private void InitialiseCluePresentation()
{
for (int i = 0; i < _PlayerPodiums.Length; i++)
{
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.Owner, "ShowAuxiliaryVideoScreen", true);
}
HostCardBetweenRoundsInterface Interface;
if (!_CurrentQuestion.ContainsKey("Presentation") ||
_CurrentQuestion["Presentation"].TokenType != TokenType.DataDictionary ||
@@ -232,6 +242,11 @@ public class GameManagerRound1 : GameManagerBase
{
_QuestionSubstage = 0;
_VideoPlayer.SubMapIndex = 0;
for (int i = 0; i < _PlayerPodiums.Length; i++)
{
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.All, "ShowAuxiliaryVideoScreen", false);
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.Owner, "ShowAuxiliaryMapScreen", true);
}
HostCardMultipleChoiceInterface Interface =
(HostCardMultipleChoiceInterface)GetHostCardInterface(RoundSegmentType.MultipleChoice);
@@ -340,6 +355,7 @@ public class GameManagerRound1 : GameManagerBase
for (int i = 0; i < _PlayerPodiums.Length; i++)
{
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.All, "LockInChoice");
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.Owner, "ShowAuxiliaryMapScreen", false);
}
HostCardMultipleChoiceInterface Interface =
@@ -364,6 +380,11 @@ public class GameManagerRound1 : GameManagerBase
private void MultipleChoiceRevealAnswersAndAssignPoints()
{
for (int i = 0; i < _PlayerPodiums.Length; i++)
{
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.Owner, "ShowAuxiliaryMapScreen", true);
}
HostCardMultipleChoiceInterface Interface =
(HostCardMultipleChoiceInterface)GetHostCardInterface(RoundSegmentType.MultipleChoice);
@@ -932,6 +953,11 @@ public class GameManagerRound1 : GameManagerBase
DisableRiskCards();
DisableBuzzers();
for (int i = 0; i < _PlayerPodiums.Length; i++)
{
_PlayerPodiums[i].SendCustomNetworkEvent(NetworkEventTarget.Owner, "ShowAuxiliaryMapScreen", false);
}
_VideoPlayer.SendCustomNetworkEvent(NetworkEventTarget.All, "ClearScreen");
_QuestionIndex++;