2021-06-08 20:58:39 +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.Skinning;
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
|
|
|
{
|
2021-06-14 19:26:33 +08:00
|
|
|
public partial class LegacyCatcherOld : CompositeDrawable
|
2021-06-08 20:58:39 +08:00
|
|
|
{
|
|
|
|
public LegacyCatcherOld()
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both;
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(ISkinSource skin)
|
|
|
|
{
|
2022-11-09 12:37:19 +08:00
|
|
|
InternalChild = (skin.GetAnimation(@"fruit-ryuuta", true, true, true) ?? Empty()).With(d =>
|
2021-06-08 20:58:39 +08:00
|
|
|
{
|
|
|
|
d.Anchor = Anchor.TopCentre;
|
|
|
|
d.Origin = Anchor.TopCentre;
|
|
|
|
d.RelativeSizeAxes = Axes.Both;
|
|
|
|
d.Size = Vector2.One;
|
|
|
|
d.FillMode = FillMode.Fit;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|