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

33 lines
933 B
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;
namespace osu.Game.Rulesets.Catch.Objects.Drawable
{
public class DrawableDroplet : PalpableCatchHitObject<Droplet>
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-11 19:11:29 +08:00
AccentColour = h.ComboColour;
2017-10-10 15:34:01 +08:00
Masking = false;
}
[BackgroundDependencyLoader]
private void load()
{
Child = new Pulp
{
AccentColour = AccentColour,
2018-01-03 17:35:43 +08:00
Size = Size
2017-10-10 15:34:01 +08:00
};
}
}
}