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