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:
parent
9b3e666a07
commit
a491710fe4
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user