mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 12:57:39 +09:00
Added IgnoreTooltip to all classes required
This commit is contained in:
parent
f5bea077a0
commit
9b3e666a07
@ -36,6 +36,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
private class Icon : Container, IHasTooltip
|
private class Icon : Container, IHasTooltip
|
||||||
{
|
{
|
||||||
public string TooltipText { get; }
|
public string TooltipText { get; }
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
public Icon(FontAwesome fa)
|
public Icon(FontAwesome fa)
|
||||||
{
|
{
|
||||||
|
@ -103,6 +103,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
private class CapsWarning : SpriteIcon, IHasTooltip
|
private class CapsWarning : SpriteIcon, IHasTooltip
|
||||||
{
|
{
|
||||||
public string TooltipText => @"Caps lock is active";
|
public string TooltipText => @"Caps lock is active";
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
public CapsWarning()
|
public CapsWarning()
|
||||||
{
|
{
|
||||||
|
@ -46,6 +46,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
return Current.Value.ToString();
|
return Current.Value.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
private Color4 accentColour;
|
private Color4 accentColour;
|
||||||
public Color4 AccentColour
|
public Color4 AccentColour
|
||||||
|
@ -126,6 +126,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
private class ClickableArea : OsuClickableContainer, IHasTooltip
|
private class ClickableArea : OsuClickableContainer, IHasTooltip
|
||||||
{
|
{
|
||||||
public string TooltipText => @"View Profile";
|
public string TooltipText => @"View Profile";
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,6 +68,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
|||||||
private readonly OsuSpriteText value;
|
private readonly OsuSpriteText value;
|
||||||
|
|
||||||
public string TooltipText => name;
|
public string TooltipText => name;
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
public string Value
|
public string Value
|
||||||
{
|
{
|
||||||
get { return value.Text; }
|
get { return value.Text; }
|
||||||
|
@ -531,6 +531,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
public class ProfileLink : LinkText, IHasTooltip
|
public class ProfileLink : LinkText, IHasTooltip
|
||||||
{
|
{
|
||||||
public string TooltipText => "View Profile in Browser";
|
public string TooltipText => "View Profile in Browser";
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
public ProfileLink(User user)
|
public ProfileLink(User user)
|
||||||
{
|
{
|
||||||
|
@ -185,6 +185,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
|
|||||||
private class MetadataContainer : OsuHoverContainer, IHasTooltip
|
private class MetadataContainer : OsuHoverContainer, IHasTooltip
|
||||||
{
|
{
|
||||||
public string TooltipText { get; set; }
|
public string TooltipText { get; set; }
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
public MetadataContainer(string title, string artist)
|
public MetadataContainer(string title, string artist)
|
||||||
{
|
{
|
||||||
|
@ -158,6 +158,7 @@ namespace osu.Game.Overlays.Settings
|
|||||||
}
|
}
|
||||||
|
|
||||||
public string TooltipText => "Revert to default";
|
public string TooltipText => "Revert to default";
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
public override bool HandleInput => true;
|
public override bool HandleInput => true;
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
private readonly ModType type;
|
private readonly ModType type;
|
||||||
|
|
||||||
public string TooltipText { get; }
|
public string TooltipText { get; }
|
||||||
|
public virtual bool IgnoreTooltip { get; }
|
||||||
|
|
||||||
public ModIcon(Mod mod)
|
public ModIcon(Mod mod)
|
||||||
{
|
{
|
||||||
@ -37,6 +38,7 @@ namespace osu.Game.Rulesets.UI
|
|||||||
type = mod.Type;
|
type = mod.Type;
|
||||||
|
|
||||||
TooltipText = mod.Name;
|
TooltipText = mod.Name;
|
||||||
|
IgnoreTooltip = false;
|
||||||
|
|
||||||
Size = new Vector2(size);
|
Size = new Vector2(size);
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
private readonly GameType type;
|
private readonly GameType type;
|
||||||
|
|
||||||
public string TooltipText => type.Name;
|
public string TooltipText => type.Name;
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
public DrawableGameType(GameType type)
|
public DrawableGameType(GameType type)
|
||||||
{
|
{
|
||||||
|
@ -384,6 +384,7 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
private readonly User user;
|
private readonly User user;
|
||||||
|
|
||||||
public string TooltipText => user.Username;
|
public string TooltipText => user.Username;
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
public UserTile(User user)
|
public UserTile(User user)
|
||||||
{
|
{
|
||||||
|
@ -144,6 +144,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
private bool isSelected;
|
private bool isSelected;
|
||||||
|
|
||||||
public string TooltipText => text.Text;
|
public string TooltipText => text.Text;
|
||||||
|
public bool IgnoreTooltip => false;
|
||||||
|
|
||||||
public BeatmapDisplay(BeatmapInfo beatmap)
|
public BeatmapDisplay(BeatmapInfo beatmap)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user