mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
32 lines
923 B
C#
32 lines
923 B
C#
// 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.Game.Rulesets.Catch.Objects.Drawables.Pieces;
|
|
using osu.Game.Skinning;
|
|
using osuTK.Graphics;
|
|
|
|
namespace osu.Game.Rulesets.Catch.Objects.Drawables
|
|
{
|
|
public class DrawableDroplet : PalpableCatchHitObject<Droplet>
|
|
{
|
|
public override bool StaysOnPlate => false;
|
|
|
|
public DrawableDroplet(Droplet h)
|
|
: base(h)
|
|
{
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
ScaleContainer.Child = new SkinnableDrawable(
|
|
new CatchSkinComponent(CatchSkinComponents.Droplet), _ => new Pulp
|
|
{
|
|
Size = Size / 4,
|
|
AccentColour = { Value = Color4.White }
|
|
});
|
|
}
|
|
}
|
|
}
|