mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 20:13:20 +08:00
Merge pull request #25493 from peppy/adjust-slider-tick-animation
Adjust slider follow circle animation to not abruptly scale on early ticks
This commit is contained in:
commit
3d569850b1
@ -88,9 +88,12 @@ namespace osu.Game.Rulesets.Osu.Skinning.Argon
|
|||||||
|
|
||||||
protected override void OnSliderTick()
|
protected override void OnSliderTick()
|
||||||
{
|
{
|
||||||
this.ScaleTo(DrawableSliderBall.FOLLOW_AREA * 1.08f, 40, Easing.OutQuint)
|
if (Scale.X >= DrawableSliderBall.FOLLOW_AREA * 0.98f)
|
||||||
.Then()
|
{
|
||||||
.ScaleTo(DrawableSliderBall.FOLLOW_AREA, 200f, Easing.OutQuint);
|
this.ScaleTo(DrawableSliderBall.FOLLOW_AREA * 1.08f, 40, Easing.OutQuint)
|
||||||
|
.Then()
|
||||||
|
.ScaleTo(DrawableSliderBall.FOLLOW_AREA, 200f, Easing.OutQuint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnSliderBreak()
|
protected override void OnSliderBreak()
|
||||||
|
@ -59,9 +59,12 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
|
|||||||
|
|
||||||
protected override void OnSliderTick()
|
protected override void OnSliderTick()
|
||||||
{
|
{
|
||||||
this.ScaleTo(DrawableSliderBall.FOLLOW_AREA * 1.08f, 40, Easing.OutQuint)
|
if (Scale.X >= DrawableSliderBall.FOLLOW_AREA * 0.98f)
|
||||||
.Then()
|
{
|
||||||
.ScaleTo(DrawableSliderBall.FOLLOW_AREA, 200f, Easing.OutQuint);
|
this.ScaleTo(DrawableSliderBall.FOLLOW_AREA * 1.08f, 40, Easing.OutQuint)
|
||||||
|
.Then()
|
||||||
|
.ScaleTo(DrawableSliderBall.FOLLOW_AREA, 200f, Easing.OutQuint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnSliderBreak()
|
protected override void OnSliderBreak()
|
||||||
|
@ -44,8 +44,11 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
|||||||
|
|
||||||
protected override void OnSliderTick()
|
protected override void OnSliderTick()
|
||||||
{
|
{
|
||||||
this.ScaleTo(2.2f)
|
if (Scale.X >= 2f)
|
||||||
.ScaleTo(2f, 200);
|
{
|
||||||
|
this.ScaleTo(2.2f)
|
||||||
|
.ScaleTo(2f, 200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnSliderBreak()
|
protected override void OnSliderBreak()
|
||||||
|
Loading…
Reference in New Issue
Block a user