Add slight easing to marker movements

This commit is contained in:
smoogipoo 2018-03-19 19:57:02 +09:00
parent fbc92bfa01
commit c86ddb7ee3

View File

@ -62,7 +62,7 @@ namespace osu.Game.Screens.Edit.Screens.Compose.BeatSnap
updatePosition();
}
private void updatePosition() => marker.X = getTickPosition(Array.IndexOf(availableDivisors, Divisor.Value));
private void updatePosition() => marker.MoveToX(getTickPosition(Array.IndexOf(availableDivisors, Divisor.Value)), 100, Easing.OutQuint);
private float getTickPosition(int index) => (index + 1) * tickSpacing;