mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 18:53:51 +08:00
Add missing binding of IsCounting
with contained counters
This commit is contained in:
parent
0a861ffcee
commit
6b4032e34b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user