diff --git a/osu.Game.Modes.Taiko/Objects/Drawable/Pieces/CirclePiece.cs b/osu.Game.Modes.Taiko/Objects/Drawable/Pieces/CirclePiece.cs index 20e16ae03c..2321ad30ee 100644 --- a/osu.Game.Modes.Taiko/Objects/Drawable/Pieces/CirclePiece.cs +++ b/osu.Game.Modes.Taiko/Objects/Drawable/Pieces/CirclePiece.cs @@ -19,7 +19,7 @@ namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces /// a rounded (_[-Width-]_) figure such that a regular "circle" is the result of a parent with Width = 0. /// /// - public class CirclePiece : Container, IAccented + public class CirclePiece : Container, IHasAccentColour { public const float SYMBOL_SIZE = TaikoHitObject.CIRCLE_RADIUS * 2f * 0.45f; public const float SYMBOL_BORDER = 8; diff --git a/osu.Game/Graphics/IAccented.cs b/osu.Game/Graphics/IHasAccentColour.cs similarity index 87% rename from osu.Game/Graphics/IAccented.cs rename to osu.Game/Graphics/IHasAccentColour.cs index 6f0f107f3c..19f063e29a 100644 --- a/osu.Game/Graphics/IAccented.cs +++ b/osu.Game/Graphics/IHasAccentColour.cs @@ -12,12 +12,12 @@ namespace osu.Game.Graphics /// The accent colour is used to colorize various objects inside a drawable /// without colorizing the drawable itself. /// - public interface IAccented : IDrawable + public interface IHasAccentColour : IDrawable { Color4 AccentColour { get; set; } } - public static class AccentedExtensions + public static class AccentedColourExtensions { /// /// Tweens the accent colour of a drawable to another colour. @@ -28,7 +28,7 @@ namespace osu.Game.Graphics /// The tween duration. /// The tween easing. public static void FadeAccent(this TDrawable drawable, Color4 newColour, double duration = 0, EasingTypes easing = EasingTypes.None) - where TDrawable : Drawable, IAccented + where TDrawable : Drawable, IHasAccentColour { drawable.TransformTo(drawable.AccentColour, newColour, duration, easing, new TransformAccent()); } diff --git a/osu.Game/Graphics/Transforms/TransformAccent.cs b/osu.Game/Graphics/Transforms/TransformAccent.cs index 7f40a0a016..406d1ea9eb 100644 --- a/osu.Game/Graphics/Transforms/TransformAccent.cs +++ b/osu.Game/Graphics/Transforms/TransformAccent.cs @@ -29,7 +29,7 @@ namespace osu.Game.Graphics.Transforms { base.Apply(d); - var accented = d as IAccented; + var accented = d as IHasAccentColour; if (accented != null) accented.AccentColour = CurrentValue; } diff --git a/osu.Game/osu.Game.csproj b/osu.Game/osu.Game.csproj index 00c189d01c..b2f76137fd 100644 --- a/osu.Game/osu.Game.csproj +++ b/osu.Game/osu.Game.csproj @@ -82,7 +82,7 @@ - +