mirror of
https://github.com/ppy/osu.git
synced 2025-01-29 05:52:56 +08:00
Don't need Drawable type.
This commit is contained in:
parent
43c306d658
commit
a48224bd6d
@ -1 +1 @@
|
|||||||
Subproject commit 591b799f95a47e5da893c82d024e01311c9c37c6
|
Subproject commit 57821bd61c7676c2fd9e8ff3ea314ec81c1eef41
|
@ -22,15 +22,13 @@ namespace osu.Game.Graphics
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Tweens the accent colour of a drawable to another colour.
|
/// Tweens the accent colour of a drawable to another colour.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <typeparam name="TDrawable">The type of drawable.</typeparam>
|
/// <param name="accentedDrawable">The drawable to apply the accent colour to.</param>
|
||||||
/// <param name="drawable">The drawable to apply the accent colour to.</param>
|
|
||||||
/// <param name="newColour">The new accent colour.</param>
|
/// <param name="newColour">The new accent colour.</param>
|
||||||
/// <param name="duration">The tween duration.</param>
|
/// <param name="duration">The tween duration.</param>
|
||||||
/// <param name="easing">The tween easing.</param>
|
/// <param name="easing">The tween easing.</param>
|
||||||
public static void FadeAccent<TDrawable>(this TDrawable drawable, Color4 newColour, double duration = 0, EasingTypes easing = EasingTypes.None)
|
public static void FadeAccent(this IHasAccentColour accentedDrawable, Color4 newColour, double duration = 0, EasingTypes easing = EasingTypes.None)
|
||||||
where TDrawable : Drawable, IHasAccentColour
|
|
||||||
{
|
{
|
||||||
drawable.TransformTo(drawable.AccentColour, newColour, duration, easing, new TransformAccent());
|
accentedDrawable.TransformTo(accentedDrawable.AccentColour, newColour, duration, easing, new TransformAccent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user