mirror of
https://github.com/ppy/osu
synced 2025-02-09 14:47:33 +00:00
Add ResetCount method for Counter.
This commit is contained in:
parent
b4bb3d6317
commit
bb13da2b32
@ -120,5 +120,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
textLayer.FadeColour(KeyUpTextColor, FadeTime);
|
||||
}
|
||||
}
|
||||
|
||||
public void ResetCount() => Count = 0;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user