Instantly move rank graph tooltip

This commit is contained in:
iiSaLMaN 2019-09-01 04:22:24 +03:00
parent ee4869647f
commit 7d955839be

View File

@ -283,18 +283,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
return true;
}
private bool instantMove = true;
public void Move(Vector2 pos)
{
if (instantMove)
{
Position = pos;
instantMove = false;
}
else
this.MoveTo(pos, 200, Easing.OutQuint);
}
public void Move(Vector2 pos) => Position = pos;
protected override void PopIn() => this.FadeIn(200, Easing.OutQuint);