mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 05:27:40 +08:00
36 lines
950 B
C#
36 lines
950 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Rulesets.Catch.Objects.Drawable.Pieces;
|
|
using OpenTK;
|
|
using OpenTK.Graphics;
|
|
|
|
namespace osu.Game.Rulesets.Catch.Objects.Drawable
|
|
{
|
|
public class DrawableDroplet : DrawableCatchHitObject<Droplet>
|
|
{
|
|
public DrawableDroplet(Droplet h)
|
|
: base(h)
|
|
{
|
|
Origin = Anchor.Centre;
|
|
|
|
Size = new Vector2(Pulp.PULP_SIZE);
|
|
|
|
AccentColour = Color4.Green;
|
|
Masking = false;
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
Child = new Pulp
|
|
{
|
|
AccentColour = AccentColour,
|
|
Scale = new Vector2(0.6f),
|
|
};
|
|
}
|
|
}
|
|
}
|