public override void LockForJudging()
    {
        base.LockForJudging();

        RoundData Round = Global.AllData.AllDivisions[(int)CurDivision].Rounds[(int)CurRound];

        string SpeechText = "Judging ready for " + GetTeamNameString() + ", " + CurDivision.ToString() + ", " +
                            CurRound.ToString() + ", " + ((int)Round.RoutineLengthMinutes).ToString() + " minutes.";

        Global.PlayTextToSpeech(SpeechText);
    }
Example #2
0
    // Update is called once per frame
    public void Update()
    {
        UpdateQuitGesture();

        Global.NetObj.UpdateUdpListener();

        Global.NetObj.UpdateClientJudgeState();

        if (bIsJudging && HeaderDrawer.RoutineTime / 60f >= GetRoutineLengthMinutes())
        {
            bRoutineTimeEnded = true;
        }

        TestReadyTimer -= Time.deltaTime;

        if (Global.AllData == null || Global.AllNameData == null)
        {
            return;
        }

        if (CurPool != EPool.None)
        {
            int NameId = GetJudgeNameId();
            if (NameId != -1)
            {
                HeaderDrawer.JudgeName = NameDatabase.FindInDatabase(NameId).DisplayName;
            }
        }

        HeaderDrawer.DivisionString        = CurDivision.ToString();
        HeaderDrawer.RoutineTime           = bIsJudging ? (float)(DateTime.Now - RoutineStartTime).TotalSeconds : 0;
        HeaderDrawer.bShowReadyButton      = bHeadJudgeRequestingReady && !bLockedForJudging && !bRoutineTimeEnded && !bClientReadyToBeLocked;
        HeaderDrawer.bShowFinishedButton   = bRoutineTimeEnded;
        HeaderDrawer.WaitingForJudgesCount = WaitingForJudgesCount;
        HeaderDrawer.bShowWaitingForJudges = WaitingForJudgesCount > 0 && !bLockedForJudging &&
                                             !bIsJudging && !HeaderDrawer.bShowFinishedButton && !HeaderDrawer.bShowReadyButton && !bIsEditing;

        bIsDataDirty = false;
    }