1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 23:27:15 +08:00

Bind to button's activation delay directly

This commit is contained in:
Bartłomiej Dach
2022-05-06 10:04:36 +02:00
Unverified
parent f39fcee41b
commit f5026bbbeb
@@ -35,8 +35,6 @@ namespace osu.Game.Screens.Play.HUD
private OsuSpriteText text;
private readonly Bindable<double> activationDelay = new Bindable<double>();
public HoldForMenuButton()
{
Direction = FillDirection.Horizontal;
@@ -68,7 +66,7 @@ namespace osu.Game.Screens.Play.HUD
protected override void LoadComplete()
{
activationDelay.BindValueChanged(v =>
button.HoldActivationDelay.BindValueChanged(v =>
{
text.Text = v.NewValue > 0
? "hold for menu"