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;
|
2018-03-15 14:58:04 +08:00
|
|
|
|
using OpenTK.Graphics;
|
2017-10-10 15:34:01 +08:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
{
|
2018-03-15 14:58:04 +08:00
|
|
|
|
private Pulp pulp;
|
|
|
|
|
|
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-10 15:34:01 +08:00
|
|
|
|
Masking = false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load()
|
|
|
|
|
{
|
2018-03-15 14:58:04 +08:00
|
|
|
|
InternalChild = pulp = new Pulp
|
2017-10-10 15:34:01 +08:00
|
|
|
|
{
|
2018-01-03 17:35:43 +08:00
|
|
|
|
Size = Size
|
2017-10-10 15:34:01 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
2018-03-15 14:58:04 +08:00
|
|
|
|
|
|
|
|
|
public override Color4 AccentColour
|
|
|
|
|
{
|
|
|
|
|
get { return base.AccentColour; }
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
base.AccentColour = value;
|
|
|
|
|
pulp.AccentColour = AccentColour;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-10 15:34:01 +08:00
|
|
|
|
}
|
|
|
|
|
}
|