mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +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)
|
||||
{
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user