2020-12-07 13:08:50 +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.Graphics.Textures;
|
2023-09-19 08:17:07 +08:00
|
|
|
using osu.Game.Skinning;
|
2023-09-03 07:22:41 +08:00
|
|
|
using osuTK;
|
2020-12-07 13:08:50 +08:00
|
|
|
|
2021-06-07 14:10:47 +08:00
|
|
|
namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
2020-12-07 13:08:50 +08:00
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class LegacyBananaPiece : LegacyCatchHitObjectPiece
|
2020-12-07 13:08:50 +08:00
|
|
|
{
|
2023-09-03 07:22:41 +08:00
|
|
|
private static readonly Vector2 banana_max_size = new Vector2(128);
|
|
|
|
|
2020-12-07 13:08:50 +08:00
|
|
|
protected override void LoadComplete()
|
|
|
|
{
|
|
|
|
base.LoadComplete();
|
|
|
|
|
2023-09-19 08:29:43 +08:00
|
|
|
Texture? texture = Skin.GetTexture("fruit-bananas")?.WithMaximumSize(banana_max_size);
|
|
|
|
Texture? overlayTexture = Skin.GetTexture("fruit-bananas-overlay")?.WithMaximumSize(banana_max_size);
|
2020-12-07 13:08:50 +08:00
|
|
|
|
|
|
|
SetTexture(texture, overlayTexture);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|