mirror of https://github.com/ppy/osu
Remove OnShakeFinish event
This commit is contained in:
parent
6cdc842452
commit
e018071be4
|
@ -1,7 +1,6 @@
|
|||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using System;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
|
||||
|
@ -27,11 +26,6 @@ public class ShakeContainer : Container
|
|||
/// </summary>
|
||||
public float ShakeMagnitude = 8;
|
||||
|
||||
/// <summary>
|
||||
/// Fired when <see cref="Shake"/> finishes
|
||||
/// </summary>
|
||||
public event Action OnShakeFinish;
|
||||
|
||||
/// <summary>
|
||||
/// Shake the contents of this container.
|
||||
/// </summary>
|
||||
|
@ -56,7 +50,6 @@ public void Shake(double? maximumLength = null)
|
|||
}
|
||||
|
||||
sequence.MoveToX(0, ShakeDuration / 2, Easing.InSine);
|
||||
sequence.Finally(_ => OnShakeFinish?.Invoke());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -226,8 +226,6 @@ private void joinFailed(string error)
|
|||
{
|
||||
passwordTextbox.Text = string.Empty;
|
||||
|
||||
shakeContainer.OnShakeFinish += () => passwordTextbox.Colour = Color4.White;
|
||||
|
||||
shakeContainer.Shake();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue