예제 #1
0
        private void ColorButton_OnButtonClick(UIElement button)
        {
            var index = Array.IndexOf(ColorButtons, button);

            if (index == -1 || index > 7)
            {
                return;
            }
            var color = (VMEODScoreboardColor)index;

            Send("scoreboard_updatecolor", SelectedTeam.ToString() + "," + color.ToString());
            UpdateColor(SelectedTeam, color);
            ShowColorPicker(false);
        }
예제 #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 Spinner(VMEODScoreboardTeam team, short difference)
 {
     Send("scoreboard_updatescore", team.ToString() + "," + difference);
 }