show mod settings in ModIcon tooltip

This commit is contained in:
Liam DeVoe
2020-03-18 23:43:26 -04:00
parent e59d7fee26
commit 18bf7c913b
9 changed files with 33 additions and 1 deletions

View File

@ -5,6 +5,7 @@ using System;
using Newtonsoft.Json;
using osu.Framework.Graphics.Sprites;
using osu.Game.IO.Serialization;
using osu.Game.Rulesets.UI;
namespace osu.Game.Rulesets.Mods
{
@ -42,6 +43,16 @@ namespace osu.Game.Rulesets.Mods
[JsonIgnore]
public virtual string Description => string.Empty;
/// <summary>
/// The tooltip to display for this mod when used in a <see cref="ModIcon"/>.
/// </summary>
/// <remarks>
/// Differs from <see cref="Name"/>, as the value of attributes (AR, CS, etc) changeable via the mod
/// are displayed in the tooltip.
/// </remarks>
[JsonIgnore]
public virtual string IconTooltip => Name;
/// <summary>
/// The score multiplier of this mod.
/// </summary>