1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Override IgnoreTooltip in DisplayableModIcon

This commit is contained in:
Ninjaprawn 2017-12-08 13:55:54 +11:00
parent 9b3e666a07
commit a491710fe4

View File

@ -35,6 +35,7 @@ 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;
@ -262,10 +263,10 @@ namespace osu.Game.Overlays.Mods
private class DisplayableModIcon : ModIcon {
public string TooltipText => null;
public override bool IgnoreTooltip { get; }
public DisplayableModIcon(Mod mod) : base(mod) {
IgnoreTooltip = true;
}
}