diff --git a/osu.Game/Graphics/UserInterface/KeyCounter.cs b/osu.Game/Graphics/UserInterface/KeyCounter.cs index 4ac7ae017d..6159b9ab05 100644 --- a/osu.Game/Graphics/UserInterface/KeyCounter.cs +++ b/osu.Game/Graphics/UserInterface/KeyCounter.cs @@ -120,5 +120,7 @@ namespace osu.Game.Graphics.UserInterface textLayer.FadeColour(KeyUpTextColor, FadeTime); } } + + public void ResetCount() => Count = 0; } } diff --git a/osu.Game/Graphics/UserInterface/KeyCounterCollection.cs b/osu.Game/Graphics/UserInterface/KeyCounterCollection.cs index 60ebd7671d..ee1447c03b 100644 --- a/osu.Game/Graphics/UserInterface/KeyCounterCollection.cs +++ b/osu.Game/Graphics/UserInterface/KeyCounterCollection.cs @@ -28,6 +28,12 @@ namespace osu.Game.Graphics.UserInterface base.Add(key); } + public void ResetCount() + { + foreach (var counter in counters) + counter.ResetCount(); + } + public override bool Contains(Vector2 screenSpacePos) => true; //further: change default values here and in KeyCounter if needed, instead of passing them in every constructor