/// <summary> /// Decrements this team's wins by one. /// </summary> internal void DecrementWins() { if (!Visible) { return; } if (CurrentWins == 0) { return; } CurrentWins--; totalWins--; winsText.Text = CurrentWins.ToString(); if (starsVisible && CurrentWins < max_stars) { filledStars[CurrentWins].FadeOut(200); } }
/// <summary> /// Increases this team's wins by one. /// </summary> internal void IncrementWins() { if (!Visible) { return; } if (CurrentWins == MaxWins || totalWins == BestOf) { return; } CurrentWins++; totalWins++; winsText.Text = CurrentWins.ToString(); winsText.Transformations.RemoveAll(t => t.Type == TransformationType.Scale); winsText.Transformations.Add(new Transformation(TransformationType.Scale, 1.5f, 1.0f, GameBase.Time, GameBase.Time + 100)); if (starsVisible && CurrentWins <= max_stars) { filledStars[CurrentWins - 1].FadeIn(200); } }