2021-06-22 11:04:24 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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.Graphics;
|
|
|
|
using osu.Game.Rulesets.Catch.Objects;
|
|
|
|
using osu.Game.Rulesets.Catch.Skinning.Default;
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class FruitOutline : CompositeDrawable
|
2021-06-22 11:04:24 +08:00
|
|
|
{
|
|
|
|
public FruitOutline()
|
|
|
|
{
|
|
|
|
Anchor = Anchor.BottomLeft;
|
|
|
|
Origin = Anchor.Centre;
|
|
|
|
InternalChild = new BorderPiece();
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour osuColour)
|
|
|
|
{
|
|
|
|
Colour = osuColour.Yellow;
|
|
|
|
}
|
|
|
|
|
2021-07-19 12:33:46 +08:00
|
|
|
public void UpdateFrom(CatchHitObject hitObject)
|
2021-06-22 11:04:24 +08:00
|
|
|
{
|
|
|
|
Scale = new Vector2(hitObject.Scale);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|