osu/osu.Game.Rulesets.Catch/UI/CatcherTrail.cs

34 lines
900 B
C#
Raw Normal View History

// 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.
2020-12-07 09:12:55 +00:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Pooling;
using osuTK;
namespace osu.Game.Rulesets.Catch.UI
{
public class CatcherTrail : PoolableDrawable
{
public CatcherAnimationState AnimationState
{
set => body.AnimationState.Value = value;
2020-12-07 09:12:55 +00:00
}
private readonly SkinnableCatcher body;
2020-12-07 09:12:55 +00:00
public CatcherTrail()
2020-12-07 09:12:55 +00:00
{
Size = new Vector2(CatcherArea.CATCHER_SIZE);
Origin = Anchor.TopCentre;
2021-06-14 10:46:48 +00:00
Blending = BlendingParameters.Additive;
InternalChild = body = new SkinnableCatcher();
}
protected override void FreeAfterUse()
{
ClearTransforms();
base.FreeAfterUse();
}
}
}