mirror of
https://github.com/ppy/osu
synced 2025-01-11 08:39:31 +00:00
859233526d
Allows for more precise skin control over state animations.
26 lines
743 B
C#
26 lines
743 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Containers;
|
|
using osu.Game.Skinning;
|
|
using osuTK;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|
{
|
|
public class CirclePiece : CompositeDrawable
|
|
{
|
|
public CirclePiece()
|
|
{
|
|
Size = new Vector2(OsuHitObject.OBJECT_RADIUS * 2);
|
|
Masking = true;
|
|
CornerRadius = Size.X / 2;
|
|
|
|
Anchor = Anchor.Centre;
|
|
Origin = Anchor.Centre;
|
|
|
|
InternalChild = new SkinnableDrawable("Play/osu/hitcircle", _ => new DefaultCirclePiece());
|
|
}
|
|
}
|
|
}
|