1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-27 17:42:55 +08:00
osu-lazer/osu.Game.Rulesets.Catch/Skinning/Default/BorderPiece.cs

34 lines
942 B
C#
Raw Normal View History

2020-11-26 13:36:42 +08:00
// 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.
2022-06-17 15:37:17 +08:00
#nullable disable
2020-11-26 13:36:42 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes;
2020-12-07 11:35:24 +08:00
using osu.Game.Rulesets.Catch.Objects;
2020-11-26 13:36:42 +08:00
using osuTK;
using osuTK.Graphics;
2020-12-07 11:35:24 +08:00
namespace osu.Game.Rulesets.Catch.Skinning.Default
2020-11-26 13:36:42 +08:00
{
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,
};
}
}
}