1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 14:12:55 +08:00

Remove IgnoreTooltip; Override TooltipText to null

This commit is contained in:
Ninjaprawn 2017-12-16 20:17:20 +11:00
parent 71e59bc9e7
commit 84ed91d5c9

View File

@ -35,7 +35,6 @@ namespace osu.Game.Overlays.Mods
public Action<Mod> Action; // Passed the selected mod or null if none
public string TooltipText => (SelectedMod?.Description ?? Mods.FirstOrDefault()?.Description) ?? string.Empty;
public bool IgnoreTooltip => false;
private const Easing mod_switch_easing = Easing.InOutSine;
private const double mod_switch_duration = 120;
@ -263,10 +262,10 @@ namespace osu.Game.Overlays.Mods
private class DisplayableModIcon : ModIcon {
public override bool IgnoreTooltip { get; }
public override string TooltipText { get; }
public DisplayableModIcon(Mod mod) : base(mod) {
IgnoreTooltip = true;
TooltipText = null;
}
}