mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 14:03:22 +08:00
32 lines
893 B
C#
32 lines
893 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.Shapes;
|
||
|
using osuTK;
|
||
|
using osuTK.Graphics;
|
||
|
|
||
|
namespace osu.Game.Rulesets.Catch.Objects.Drawables.Pieces
|
||
|
{
|
||
|
public class BorderPiece : Circle
|
||
|
{
|
||
|
public BorderPiece()
|
||
|
{
|
||
|
Size = new Vector2(CatchHitObject.OBJECT_RADIUS * 2);
|
||
|
Anchor = Anchor.Centre;
|
||
|
Origin = Anchor.Centre;
|
||
|
BorderColour = Color4.White;
|
||
|
BorderThickness = 6f * FruitPiece.RADIUS_ADJUST;
|
||
|
|
||
|
// Border is drawn only when there is a child drawable.
|
||
|
Child = new Box
|
||
|
{
|
||
|
AlwaysPresent = true,
|
||
|
Alpha = 0,
|
||
|
RelativeSizeAxes = Axes.Both,
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|