Use Interpolation.Lerp

This commit is contained in:
Bartłomiej Dach 2020-11-28 20:35:03 +01:00
parent 9bf70e4e97
commit a3afd88387

View File

@ -147,7 +147,7 @@ namespace osu.Game.Graphics.UserInterface
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);
Icon.ScaleTo(scale, scaling_duration, scaling_easing);