1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +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) 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) if (approachCircle == null)
return; return;

View File

@ -6,12 +6,12 @@ using osu.Framework.Graphics;
namespace osu.Game.Rulesets.Osu.Skinning namespace osu.Game.Rulesets.Osu.Skinning
{ {
/// <summary> /// <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> /// </summary>
public interface IHasSpinnerApproachCircle public interface IHasApproachCircle
{ {
/// <summary> /// <summary>
/// The spinner approach circle. /// The approach circle drawable.
/// </summary> /// </summary>
Drawable ApproachCircle { get; } Drawable ApproachCircle { get; }
} }

View File

@ -15,7 +15,7 @@ using osuTK;
namespace osu.Game.Rulesets.Osu.Skinning.Legacy 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; public const float SPRITE_SCALE = 0.625f;