2017-10-10 07:34:01 +00:00
|
|
|
|
// 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;
|
2017-10-11 09:18:06 +00:00
|
|
|
|
using osu.Framework.Graphics;
|
2017-10-10 07:34:01 +00:00
|
|
|
|
using osu.Game.Rulesets.Catch.Objects.Drawable.Pieces;
|
|
|
|
|
using OpenTK;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.Objects.Drawable
|
|
|
|
|
{
|
|
|
|
|
public class DrawableDroplet : DrawableCatchHitObject<Droplet>
|
|
|
|
|
{
|
|
|
|
|
public DrawableDroplet(Droplet h)
|
|
|
|
|
: base(h)
|
|
|
|
|
{
|
2017-10-11 09:18:06 +00:00
|
|
|
|
Origin = Anchor.Centre;
|
2018-01-03 09:26:54 +00:00
|
|
|
|
Size = new Vector2((float)CatchHitObject.OBJECT_RADIUS);
|
2017-10-11 11:11:29 +00:00
|
|
|
|
AccentColour = h.ComboColour;
|
2017-10-10 07:34:01 +00:00
|
|
|
|
Masking = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
|
|
|
|
Child = new Pulp
|
|
|
|
|
{
|
|
|
|
|
AccentColour = AccentColour,
|
2017-10-11 11:11:29 +00:00
|
|
|
|
Scale = new Vector2(0.8f),
|
2017-10-10 07:34:01 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|