// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Allocation; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; namespace osu.Game.Skinning { public class SkinnableSprite : SkinnableDrawable { protected override bool ApplySizeToDefault => true; protected override Sprite CreateDefault(string name) => new Sprite { Texture = textures.Get(name) }; [Resolved] private TextureStore textures { get; set; } public SkinnableSprite(string name, Func allowFallback = null, bool restrictSize = true) : base(name, allowFallback, restrictSize) { } } }