mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
List incompatible mods in tooltip of mod button
This commit is contained in:
@ -23,7 +23,7 @@ namespace osu.Game.Overlays.Mods
|
||||
/// <summary>
|
||||
/// Represents a clickable button which can cycle through one of more mods.
|
||||
/// </summary>
|
||||
public class ModButton : ModButtonEmpty, IHasTooltip
|
||||
public class ModButton : ModButtonEmpty, IHasCustomTooltip
|
||||
{
|
||||
private ModIcon foregroundIcon;
|
||||
private ModIcon backgroundIcon;
|
||||
@ -308,5 +308,9 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
Mod = mod;
|
||||
}
|
||||
|
||||
public ITooltip GetCustomTooltip() => new ModButtonTooltip();
|
||||
|
||||
public object TooltipContent => SelectedMod ?? Mods[0];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user