Path: blob/master/osu.Game.Rulesets.Catch/Skinning/Legacy/LegacyBananaPiece.cs
2264 views
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics.Textures; using osu.Game.Skinning; using osuTK; namespace osu.Game.Rulesets.Catch.Skinning.Legacy { public partial class LegacyBananaPiece : LegacyCatchHitObjectPiece { private static readonly Vector2 banana_max_size = new Vector2(160); protected override void LoadComplete() { base.LoadComplete(); Texture? texture = Skin.GetTexture("fruit-bananas")?.WithMaximumSize(banana_max_size); Texture? overlayTexture = Skin.GetTexture("fruit-bananas-overlay")?.WithMaximumSize(banana_max_size); SetTexture(texture, overlayTexture); } } }