Display performance breakdown in a tooltip

This commit is contained in:
Henry Lin
2022-01-17 18:28:17 +08:00
parent 2ad0ea35be
commit 511a607599
8 changed files with 172 additions and 17 deletions

View File

@ -0,0 +1,26 @@
// 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.
namespace osu.Game.Rulesets.Difficulty
{
/// <summary>
/// Data for displaying a performance attribute to user. Includes a display name for clarity.
/// </summary>
public class PerformanceDisplayAttribute
{
/// <summary>
/// A custom display name for the attribute.
/// </summary>
public string DisplayName { get; }
/// <summary>
/// The associated attribute value.
/// </summary>
public double Value { get; }
public PerformanceDisplayAttribute(string displayName, double value)
{
DisplayName = displayName;
Value = value;
}
}
}