2020-08-20 22:34:40 +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-08-20 22:34:40 +08:00
|
|
|
using osu.Framework.Graphics;
|
2020-12-07 11:35:24 +08:00
|
|
|
using osu.Game.Rulesets.Catch.Objects;
|
2020-08-20 22:34:40 +08:00
|
|
|
using osuTK;
|
|
|
|
|
2020-12-07 11:35:24 +08:00
|
|
|
namespace osu.Game.Rulesets.Catch.Skinning.Default
|
2020-08-20 22:34:40 +08:00
|
|
|
{
|
2020-12-07 12:14:00 +08:00
|
|
|
public class DropletPiece : CatchHitObjectPiece
|
2020-08-20 22:34:40 +08:00
|
|
|
{
|
2022-10-26 15:08:01 +08:00
|
|
|
protected override Drawable HyperBorderPiece { get; }
|
2020-12-08 16:15:40 +08:00
|
|
|
|
2020-08-20 22:34:40 +08:00
|
|
|
public DropletPiece()
|
|
|
|
{
|
|
|
|
Size = new Vector2(CatchHitObject.OBJECT_RADIUS / 2);
|
|
|
|
|
2020-12-07 12:14:00 +08:00
|
|
|
InternalChildren = new Drawable[]
|
2020-08-20 22:34:40 +08:00
|
|
|
{
|
2020-12-07 12:14:00 +08:00
|
|
|
new Pulp
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
AccentColour = { BindTarget = AccentColour }
|
|
|
|
},
|
|
|
|
HyperBorderPiece = new HyperDropletBorderPiece()
|
2020-08-20 22:34:40 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|