mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Use Interpolation.Lerp
This commit is contained in:
parent
9bf70e4e97
commit
a3afd88387
@ -147,7 +147,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
public override void DisplayAt(float scale)
|
public override void DisplayAt(float scale)
|
||||||
{
|
{
|
||||||
scale = Math.Clamp(scale * (1 - min_star_scale) + min_star_scale, min_star_scale, 1);
|
scale = (float)Interpolation.Lerp(min_star_scale, 1, Math.Clamp(scale, 0, 1));
|
||||||
|
|
||||||
this.FadeTo(scale, fading_duration);
|
this.FadeTo(scale, fading_duration);
|
||||||
Icon.ScaleTo(scale, scaling_duration, scaling_easing);
|
Icon.ScaleTo(scale, scaling_duration, scaling_easing);
|
||||||
|
Loading…
Reference in New Issue
Block a user