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:
parent
72155a7c52
commit
01478d780d
@ -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;
|
||||||
|
|
||||||
|
@ -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; }
|
||||||
}
|
}
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user