1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-22 17:35:12 +08:00
osu-lazer/osu.Game.Rulesets.Catch/Objects/Drawable/DrawableDroplet.cs

44 lines
1.1 KiB
C#
Raw Normal View History

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;
using osu.Framework.Graphics;
2017-10-10 15:34:01 +08:00
using osu.Game.Rulesets.Catch.Objects.Drawable.Pieces;
using OpenTK;
using OpenTK.Graphics;
2017-10-10 15:34:01 +08:00
namespace osu.Game.Rulesets.Catch.Objects.Drawable
{
public class DrawableDroplet : PalpableCatchHitObject<Droplet>
2017-10-10 15:34:01 +08:00
{
private Pulp pulp;
2017-10-10 15:34:01 +08:00
public DrawableDroplet(Droplet h)
: base(h)
{
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()
{
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
};
}
public override Color4 AccentColour
{
get { return base.AccentColour; }
set
{
base.AccentColour = value;
pulp.AccentColour = AccentColour;
}
}
2017-10-10 15:34:01 +08:00
}
}