// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Framework.Allocation; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Textures; using osu.Game.Extensions; namespace osu.Game.Beatmaps { /// /// A default implementation of an icon used to represent beatmap statistics. /// public class BeatmapStatisticIcon : Sprite { private readonly BeatmapStatisticsIconType iconType; public BeatmapStatisticIcon(BeatmapStatisticsIconType iconType) { this.iconType = iconType; } [BackgroundDependencyLoader] private void load(TextureStore textures) { Texture = textures.Get($"Icons/BeatmapDetails/{iconType.ToString().ToKebabCase()}"); } } public enum BeatmapStatisticsIconType { Accuracy, ApproachRate, Bpm, Circles, HpDrain, Length, OverallDifficulty, Size, Sliders, Spinners, } }