mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 21:03:08 +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>
|
/// <summary>
|
||||||
/// Add a <see cref="InputTrigger"/> to this display.
|
/// Add a <see cref="InputTrigger"/> to this display.
|
||||||
/// </summary>
|
/// </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>
|
/// <summary>
|
||||||
/// Add a range of <see cref="InputTrigger"/> to this display.
|
/// Add a range of <see cref="InputTrigger"/> to this display.
|
||||||
|
Loading…
Reference in New Issue
Block a user