mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +08:00
Adjust xmldocs to conform to TransformableExtensions.
This commit is contained in:
parent
2221797273
commit
d0906d8232
@ -20,23 +20,17 @@ namespace osu.Game.Graphics
|
|||||||
public static class AccentedColourExtensions
|
public static class AccentedColourExtensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Tweens the accent colour of a drawable to another colour.
|
/// Smoothly adjusts <see cref="IHasAccentColour.AccentColour"/> over time.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="accentedDrawable">The drawable to apply the accent colour to.</param>
|
/// <returns>A <see cref="TransformSequence{T}"/> to which further transforms can be added.</returns>
|
||||||
/// <param name="newColour">The new accent colour.</param>
|
|
||||||
/// <param name="duration">The tween duration.</param>
|
|
||||||
/// <param name="easing">The tween easing.</param>
|
|
||||||
public static TransformSequence<T> FadeAccent<T>(this T accentedDrawable, Color4 newColour, double duration = 0, Easing easing = Easing.None)
|
public static TransformSequence<T> FadeAccent<T>(this T accentedDrawable, Color4 newColour, double duration = 0, Easing easing = Easing.None)
|
||||||
where T : IHasAccentColour
|
where T : IHasAccentColour
|
||||||
=> accentedDrawable.TransformTo(nameof(accentedDrawable.AccentColour), newColour, duration, easing);
|
=> accentedDrawable.TransformTo(nameof(accentedDrawable.AccentColour), newColour, duration, easing);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Tweens the accent colour of a drawable to another colour.
|
/// Smoothly adjusts <see cref="IHasAccentColour.AccentColour"/> over time.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="accentedDrawable">The drawable to apply the accent colour to.</param>
|
/// <returns>A <see cref="TransformSequence{T}"/> to which further transforms can be added.</returns>
|
||||||
/// <param name="newColour">The new accent colour.</param>
|
|
||||||
/// <param name="duration">The tween duration.</param>
|
|
||||||
/// <param name="easing">The tween easing.</param>
|
|
||||||
public static TransformSequence<T> FadeAccent<T>(this TransformSequence<T> t, Color4 newColour, double duration = 0, Easing easing = Easing.None)
|
public static TransformSequence<T> FadeAccent<T>(this TransformSequence<T> t, Color4 newColour, double duration = 0, Easing easing = Easing.None)
|
||||||
where T : Drawable, IHasAccentColour
|
where T : Drawable, IHasAccentColour
|
||||||
=> t.Append(o => o.FadeAccent(newColour, duration, easing));
|
=> t.Append(o => o.FadeAccent(newColour, duration, easing));
|
||||||
|
Loading…
Reference in New Issue
Block a user