mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 10:27:26 +09: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 Action<Mod> Action; // Passed the selected mod or null if none
|
||||||
|
|
||||||
public string TooltipText => (SelectedMod?.Description ?? Mods.FirstOrDefault()?.Description) ?? string.Empty;
|
public string TooltipText => (SelectedMod?.Description ?? Mods.FirstOrDefault()?.Description) ?? string.Empty;
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
private const Easing mod_switch_easing = Easing.InOutSine;
|
private const Easing mod_switch_easing = Easing.InOutSine;
|
||||||
private const double mod_switch_duration = 120;
|
private const double mod_switch_duration = 120;
|
||||||
@ -262,10 +263,10 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
private class DisplayableModIcon : ModIcon {
|
private class DisplayableModIcon : ModIcon {
|
||||||
|
|
||||||
public string TooltipText => null;
|
public override bool IgnoreTooltip { get; }
|
||||||
|
|
||||||
public DisplayableModIcon(Mod mod) : base(mod) {
|
public DisplayableModIcon(Mod mod) : base(mod) {
|
||||||
|
IgnoreTooltip = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user