2018-01-05 19:21:19 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-10-10 15:34:01 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
2017-10-11 17:18:06 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
2017-10-10 15:34:01 +08:00
|
|
|
|
using osu.Game.Rulesets.Catch.Objects.Drawable.Pieces;
|
|
|
|
|
using OpenTK;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.Objects.Drawable
|
|
|
|
|
{
|
2018-01-11 20:49:20 +08:00
|
|
|
|
public class DrawableDroplet : PalpableCatchHitObject<Droplet>
|
2017-10-10 15:34:01 +08:00
|
|
|
|
{
|
|
|
|
|
public DrawableDroplet(Droplet h)
|
|
|
|
|
: base(h)
|
|
|
|
|
{
|
2017-10-11 17:18:06 +08:00
|
|
|
|
Origin = Anchor.Centre;
|
2018-01-03 17:35:43 +08:00
|
|
|
|
Size = new Vector2((float)CatchHitObject.OBJECT_RADIUS) / 4;
|
2017-10-11 19:11:29 +08:00
|
|
|
|
AccentColour = h.ComboColour;
|
2017-10-10 15:34:01 +08:00
|
|
|
|
Masking = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
2018-03-15 12:41:06 +08:00
|
|
|
|
InternalChild = new Pulp
|
2017-10-10 15:34:01 +08:00
|
|
|
|
{
|
|
|
|
|
AccentColour = AccentColour,
|
2018-01-03 17:35:43 +08:00
|
|
|
|
Size = Size
|
2017-10-10 15:34:01 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|