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); }
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); }
private void Spinner(VMEODScoreboardTeam team, short difference) { Send("scoreboard_updatescore", team.ToString() + "," + difference); }