mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Move ModIcon tooltip to base implementation
This commit is contained in:
@ -16,8 +16,8 @@ using System.Diagnostics;
|
||||
using osu.Framework.Localisation;
|
||||
using System.Globalization;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
using osu.Framework.Graphics.Cursor;
|
||||
using System;
|
||||
using osu.Game.Rulesets.UI;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Sections.Ranks
|
||||
{
|
||||
@ -158,16 +158,5 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
||||
yield return new Vector2(DrawWidth * i * (count == 1 ? 0 : 1f / (count - 1)), 0);
|
||||
}
|
||||
}
|
||||
|
||||
private class ModIcon : Rulesets.UI.ModIcon, IHasTooltip
|
||||
{
|
||||
public ModIcon(Mod mod)
|
||||
: base(mod)
|
||||
{
|
||||
TooltipText = mod.Name;
|
||||
}
|
||||
|
||||
public string TooltipText { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user