mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 03:07:19 +08:00
Move private methods to bottom of class
This commit is contained in:
parent
8e49256a5c
commit
cd570433f4
@ -96,6 +96,26 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
drawableSpinner.State.BindValueChanged(updateStateTransforms, true);
|
drawableSpinner.State.BindValueChanged(updateStateTransforms, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Update()
|
||||||
|
{
|
||||||
|
base.Update();
|
||||||
|
|
||||||
|
if (drawableSpinner.RotationTracker.Complete.Value && checkNewRotationCount)
|
||||||
|
{
|
||||||
|
fill.FinishTransforms(false, nameof(Alpha));
|
||||||
|
fill
|
||||||
|
.FadeTo(tracking_alpha + 0.2f, 60, Easing.OutExpo)
|
||||||
|
.Then()
|
||||||
|
.FadeTo(tracking_alpha, 250, Easing.OutQuint);
|
||||||
|
}
|
||||||
|
|
||||||
|
const float initial_scale = 0.2f;
|
||||||
|
float targetScale = initial_scale + (1 - initial_scale) * drawableSpinner.Progress;
|
||||||
|
|
||||||
|
fill.Scale = new Vector2((float)Interpolation.Lerp(fill.Scale.X, targetScale, Math.Clamp(Math.Abs(Time.Elapsed) / 100, 0, 1)));
|
||||||
|
mainContainer.Rotation = drawableSpinner.RotationTracker.Rotation;
|
||||||
|
}
|
||||||
|
|
||||||
private void updateStateTransforms(ValueChangedEvent<ArmedState> state)
|
private void updateStateTransforms(ValueChangedEvent<ArmedState> state)
|
||||||
{
|
{
|
||||||
centre.ScaleTo(0);
|
centre.ScaleTo(0);
|
||||||
@ -159,24 +179,5 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Update()
|
|
||||||
{
|
|
||||||
base.Update();
|
|
||||||
|
|
||||||
if (drawableSpinner.RotationTracker.Complete.Value && checkNewRotationCount)
|
|
||||||
{
|
|
||||||
fill.FinishTransforms(false, nameof(Alpha));
|
|
||||||
fill
|
|
||||||
.FadeTo(tracking_alpha + 0.2f, 60, Easing.OutExpo)
|
|
||||||
.Then()
|
|
||||||
.FadeTo(tracking_alpha, 250, Easing.OutQuint);
|
|
||||||
}
|
|
||||||
|
|
||||||
const float initial_scale = 0.2f;
|
|
||||||
float targetScale = initial_scale + (1 - initial_scale) * drawableSpinner.Progress;
|
|
||||||
|
|
||||||
fill.Scale = new Vector2((float)Interpolation.Lerp(fill.Scale.X, targetScale, Math.Clamp(Math.Abs(Time.Elapsed) / 100, 0, 1)));
|
|
||||||
mainContainer.Rotation = drawableSpinner.RotationTracker.Rotation;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user