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

32 lines
921 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.Game.Rulesets.Catch.Objects.Drawable.Pieces;
2020-02-19 04:27:15 +00:00
using osu.Game.Skinning;
using osuTK.Graphics;
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)
{
}
[BackgroundDependencyLoader]
private void load()
{
ScaleContainer.Child = new SkinnableDrawable(
new CatchSkinComponent(CatchSkinComponents.Droplet), _ => new Pulp
2020-02-19 04:27:15 +00:00
{
Size = Size / 4,
AccentColour = { Value = Color4.White }
});
}
2018-04-13 09:19:50 +00:00
}
}