// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Rulesets.Catch.Objects.Drawable.Pieces; using osu.Game.Skinning; using osuTK; using osuTK.Graphics; namespace osu.Game.Rulesets.Catch.Objects.Drawable { public class DrawableDroplet : PalpableCatchHitObject { public override bool StaysOnPlate => false; public DrawableDroplet(Droplet h) : base(h) { } protected Container ScaleContainer; [BackgroundDependencyLoader] private void load() { AddRangeInternal(new Framework.Graphics.Drawable[] { ScaleContainer = new Container { RelativeSizeAxes = Axes.Both, Origin = Anchor.Centre, Anchor = Anchor.Centre, Children = new Framework.Graphics.Drawable[] { new SkinnableDrawable( new CatchSkinComponent(CatchSkinComponents.Droplet), _ => new Pulp { Size = Size, AccentColour = { Value = Color4.White } }) } } }); ScaleContainer.Scale = new Vector2(HitObject.Scale); } } }