mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Don't need Drawable type.
This commit is contained in:
Submodule osu-framework updated: 591b799f95...57821bd61c
@ -22,15 +22,13 @@ namespace osu.Game.Graphics
|
||||
/// <summary>
|
||||
/// Tweens the accent colour of a drawable to another colour.
|
||||
/// </summary>
|
||||
/// <typeparam name="TDrawable">The type of drawable.</typeparam>
|
||||
/// <param name="drawable">The drawable to apply the accent colour to.</param>
|
||||
/// <param name="accentedDrawable">The drawable to apply the accent colour to.</param>
|
||||
/// <param name="newColour">The new accent colour.</param>
|
||||
/// <param name="duration">The tween duration.</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)
|
||||
where TDrawable : Drawable, IHasAccentColour
|
||||
public static void FadeAccent(this IHasAccentColour accentedDrawable, Color4 newColour, double duration = 0, EasingTypes easing = EasingTypes.None)
|
||||
{
|
||||
drawable.TransformTo(drawable.AccentColour, newColour, duration, easing, new TransformAccent());
|
||||
accentedDrawable.TransformTo(accentedDrawable.AccentColour, newColour, duration, easing, new TransformAccent());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user