예제 #1
0
        private void UpdateColor(VMEODScoreboardTeam team, VMEODScoreboardColor color)
        {
            //Update the UI
            var targetButton = ColorLHS;

            if (team == VMEODScoreboardTeam.RHS)
            {
                targetButton = ColorRHS;
            }
            Script.ApplyControlProperties(targetButton, "ColorButton" + ((byte)color));
        }
예제 #2
0
        private void SetScore(VMEODScoreboardTeam team, string text)
        {
            short value;

            if (!short.TryParse(text, out value))
            {
                return;
            }

            if (value < 0)
            {
                value = 0;
            }
            if (value > 999)
            {
                value = 999;
            }

            Send("scoreboard_setscore", team.ToString() + "," + value);
        }
예제 #3
0
 private void ChangeColor(VMEODScoreboardTeam team)
 {
     SelectedTeam = team;
     ShowColorPicker(true);
 }
예제 #4
0
 private void Spinner(VMEODScoreboardTeam team, short difference)
 {
     Send("scoreboard_updatescore", team.ToString() + "," + difference);
 }