1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Generalize IHasSpinnerApproachCircle from being spinner-specifc

This commit is contained in:
Salman Ahmed 2021-06-21 03:43:11 +03:00
parent 72155a7c52
commit 01478d780d
3 changed files with 5 additions and 5 deletions

View File

@ -167,7 +167,7 @@ namespace osu.Game.Rulesets.Osu.Mods
private static void hideSpinnerApproachCircle(DrawableSpinner spinner)
{
var approachCircle = (spinner.Body.Drawable as IHasSpinnerApproachCircle)?.ApproachCircle;
var approachCircle = (spinner.Body.Drawable as IHasApproachCircle)?.ApproachCircle;
if (approachCircle == null)
return;

View File

@ -6,12 +6,12 @@ using osu.Framework.Graphics;
namespace osu.Game.Rulesets.Osu.Skinning
{
/// <summary>
/// A common interface between implementations of the <see cref="OsuSkinComponents.SpinnerBody"/> component that provide approach circles for the spinner.
/// A common interface between skin component implementations which provide an approach circle.
/// </summary>
public interface IHasSpinnerApproachCircle
public interface IHasApproachCircle
{
/// <summary>
/// The spinner approach circle.
/// The approach circle drawable.
/// </summary>
Drawable ApproachCircle { get; }
}

View File

@ -15,7 +15,7 @@ using osuTK;
namespace osu.Game.Rulesets.Osu.Skinning.Legacy
{
public abstract class LegacySpinner : CompositeDrawable, IHasSpinnerApproachCircle
public abstract class LegacySpinner : CompositeDrawable, IHasApproachCircle
{
public const float SPRITE_SCALE = 0.625f;