osu/osu.Game.Rulesets.Catch/Objects/Drawable/DrawableDroplet.cs

34 lines
925 B
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.
2018-04-13 09:19:50 +00:00
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Rulesets.Catch.Objects.Drawable.Pieces;
2018-11-20 07:51:59 +00:00
using osuTK;
2018-04-13 09:19:50 +00:00
namespace osu.Game.Rulesets.Catch.Objects.Drawable
{
public class DrawableDroplet : PalpableCatchHitObject<Droplet>
{
public override bool StaysOnPlate => false;
2018-04-13 09:19:50 +00:00
public DrawableDroplet(Droplet h)
: base(h)
{
Origin = Anchor.Centre;
Size = new Vector2(CatchHitObject.OBJECT_RADIUS) / 4;
2018-04-13 09:19:50 +00:00
Masking = false;
}
[BackgroundDependencyLoader]
private void load()
{
AddInternal(new Pulp
{
Size = Size,
AccentColour = { BindTarget = AccentColour }
});
2018-04-13 09:19:50 +00:00
}
}
}