2020-12-07 11:57: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.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2020-12-07 11:57:24 +08:00
|
|
|
using osu.Framework.Graphics.Textures;
|
2020-12-07 13:00:22 +08:00
|
|
|
using osuTK;
|
2020-12-07 11:57:24 +08:00
|
|
|
|
2021-06-07 14:10:47 +08:00
|
|
|
namespace osu.Game.Rulesets.Catch.Skinning.Legacy
|
2020-12-07 11:57:24 +08:00
|
|
|
{
|
|
|
|
public class LegacyDropletPiece : LegacyCatchHitObjectPiece
|
|
|
|
{
|
2020-12-07 13:00:22 +08:00
|
|
|
public LegacyDropletPiece()
|
|
|
|
{
|
|
|
|
Scale = new Vector2(0.8f);
|
|
|
|
}
|
|
|
|
|
2020-12-07 11:57:24 +08:00
|
|
|
protected override void LoadComplete()
|
|
|
|
{
|
|
|
|
base.LoadComplete();
|
|
|
|
|
|
|
|
Texture texture = Skin.GetTexture("fruit-drop");
|
|
|
|
Texture overlayTexture = Skin.GetTexture("fruit-drop-overlay");
|
|
|
|
|
|
|
|
SetTexture(texture, overlayTexture);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|