mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Update TransformTo methods in line with framework changes.
This commit is contained in:
parent
7ca0d6d117
commit
9732110bd9
@ -28,7 +28,7 @@ namespace osu.Game.Graphics
|
||||
/// <param name="easing">The tween easing.</param>
|
||||
public static void FadeAccent(this IHasAccentColour accentedDrawable, Color4 newColour, double duration = 0, EasingTypes easing = EasingTypes.None)
|
||||
{
|
||||
accentedDrawable.TransformTo(accentedDrawable.AccentColour, newColour, duration, easing, new TransformAccent());
|
||||
accentedDrawable.TransformTo(() => accentedDrawable.AccentColour, newColour, duration, easing, new TransformAccent());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ namespace osu.Game.Overlays
|
||||
private void updatePosition(float position)
|
||||
{
|
||||
position = MathHelper.Clamp(position, 0, 1);
|
||||
fill.TransformTo(fill.Width, position, 200, EasingTypes.OutQuint, new TransformSeek());
|
||||
fill.TransformTo(() => fill.Width, position, 200, EasingTypes.OutQuint, new TransformSeek());
|
||||
}
|
||||
|
||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||
|
@ -298,7 +298,7 @@ namespace osu.Game.Screens.Tournament
|
||||
private void speedTo(float value, double duration = 0, EasingTypes easing = EasingTypes.None)
|
||||
{
|
||||
DelayReset();
|
||||
TransformTo(speed, value, duration, easing, new TransformScrollSpeed());
|
||||
TransformTo(() => speed, value, duration, easing, new TransformScrollSpeed());
|
||||
}
|
||||
|
||||
private enum ScrollState
|
||||
|
Loading…
Reference in New Issue
Block a user