2019-01-24 08:43:03 +00: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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2020-09-03 08:51:54 +00:00
|
|
|
|
using System;
|
|
|
|
|
using osu.Framework.Graphics;
|
2019-03-27 10:29:27 +00:00
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
2020-09-04 03:55:39 +00:00
|
|
|
|
using osuTK;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Beatmaps
|
|
|
|
|
{
|
|
|
|
|
public class BeatmapStatistic
|
|
|
|
|
{
|
2020-09-03 08:51:54 +00:00
|
|
|
|
[Obsolete("Use CreateIcon instead")] // can be removed 20210203
|
|
|
|
|
public IconUsage Icon = FontAwesome.Regular.QuestionCircle;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A function to create the icon for display purposes.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Func<Drawable> CreateIcon;
|
|
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
|
public string Content;
|
|
|
|
|
public string Name;
|
2020-09-03 08:51:54 +00:00
|
|
|
|
|
|
|
|
|
public BeatmapStatistic()
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 618
|
2020-09-04 03:55:39 +00:00
|
|
|
|
CreateIcon = () => new SpriteIcon { Icon = Icon, Scale = new Vector2(0.6f) };
|
2020-09-03 08:51:54 +00:00
|
|
|
|
#pragma warning restore 618
|
|
|
|
|
}
|
2018-04-13 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|