mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Generalize IHasSpinnerApproachCircle
from being spinner-specifc
This commit is contained in:
parent
72155a7c52
commit
01478d780d
@ -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;
|
||||
|
||||
|
@ -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; }
|
||||
}
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user