1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-30 11:57:24 +08:00
osu-lazer/osu.Game.Rulesets.Catch/Objects/Drawables/Pieces/DropletPiece.cs

37 lines
1.1 KiB
C#
Raw Normal View History

// 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.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Rulesets.Objects.Drawables;
using osuTK;
2020-11-26 13:26:38 +08:00
namespace osu.Game.Rulesets.Catch.Objects.Drawables.Pieces
{
public class DropletPiece : CompositeDrawable
{
public DropletPiece()
{
Size = new Vector2(CatchHitObject.OBJECT_RADIUS / 2);
}
[BackgroundDependencyLoader]
private void load(DrawableHitObject drawableObject)
{
2020-11-25 07:07:59 +08:00
var drawableCatchObject = (DrawablePalpableCatchHitObject)drawableObject;
InternalChild = new Pulp
{
2020-08-21 11:29:28 +08:00
RelativeSizeAxes = Axes.Both,
AccentColour = { BindTarget = drawableObject.AccentColour }
};
2020-11-25 07:07:59 +08:00
if (drawableCatchObject.HitObject.HyperDash)
{
2020-11-26 13:36:42 +08:00
AddInternal(new HyperDropletBorderPiece());
}
}
}
}