1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Fix trackign alpha not being applied

This commit is contained in:
Dean Herbert 2020-08-01 00:27:00 +09:00
parent 9e244be489
commit bb01ee5be9

View File

@ -100,13 +100,20 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
{ {
base.Update(); base.Update();
if (drawableSpinner.RotationTracker.Complete.Value && checkNewRotationCount) if (drawableSpinner.RotationTracker.Complete.Value)
{ {
fill.FinishTransforms(false, nameof(Alpha)); if (checkNewRotationCount)
fill {
.FadeTo(tracking_alpha + 0.2f, 60, Easing.OutExpo) fill.FinishTransforms(false, nameof(Alpha));
.Then() fill
.FadeTo(tracking_alpha, 250, Easing.OutQuint); .FadeTo(tracking_alpha + 0.2f, 60, Easing.OutExpo)
.Then()
.FadeTo(tracking_alpha, 250, Easing.OutQuint);
}
}
else
{
fill.Alpha = (float)Interpolation.Damp(fill.Alpha, drawableSpinner.RotationTracker.Tracking ? tracking_alpha : idle_alpha, 0.98f, (float)Clock.ElapsedFrameTime);
} }
const float initial_scale = 0.2f; const float initial_scale = 0.2f;