1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 03:27:24 +08:00

Remove OnShakeFinish event

This commit is contained in:
sh0ckR6 2021-09-11 19:50:41 -04:00
parent 6cdc842452
commit e018071be4
No known key found for this signature in database
GPG Key ID: 701938030071AF85
2 changed files with 0 additions and 9 deletions

View File

@ -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 @@ namespace osu.Game.Graphics.Containers
/// </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 @@ namespace osu.Game.Graphics.Containers
}
sequence.MoveToX(0, ShakeDuration / 2, Easing.InSine);
sequence.Finally(_ => OnShakeFinish?.Invoke());
}
}
}

View File

@ -226,8 +226,6 @@ namespace osu.Game.Screens.OnlinePlay.Lounge
{
passwordTextbox.Text = string.Empty;
shakeContainer.OnShakeFinish += () => passwordTextbox.Colour = Color4.White;
shakeContainer.Shake();
}