1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Add missing binding of IsCounting with contained counters

This commit is contained in:
Dean Herbert 2023-04-25 21:31:39 +09:00
parent 0a861ffcee
commit 6b4032e34b

View File

@ -55,7 +55,14 @@ namespace osu.Game.Screens.Play.HUD
/// <summary>
/// Add a <see cref="InputTrigger"/> to this display.
/// </summary>
public void Add(InputTrigger trigger) => KeyFlow.Add(CreateCounter(trigger));
public void Add(InputTrigger trigger)
{
var keyCounter = CreateCounter(trigger);
KeyFlow.Add(keyCounter);
IsCounting.BindTo(keyCounter.IsCounting);
}
/// <summary>
/// Add a range of <see cref="InputTrigger"/> to this display.