1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 16:02:56 +08:00

Added IgnoreTooltip to all classes required

This commit is contained in:
Ninjaprawn 2017-12-08 13:53:49 +11:00
parent f5bea077a0
commit 9b3e666a07
12 changed files with 13 additions and 0 deletions

View File

@ -36,6 +36,7 @@ namespace osu.Game.Tests.Visual
private class Icon : Container, IHasTooltip
{
public string TooltipText { get; }
public bool IgnoreTooltip => false;
public Icon(FontAwesome fa)
{

View File

@ -103,6 +103,7 @@ namespace osu.Game.Graphics.UserInterface
private class CapsWarning : SpriteIcon, IHasTooltip
{
public string TooltipText => @"Caps lock is active";
public bool IgnoreTooltip => false;
public CapsWarning()
{

View File

@ -46,6 +46,7 @@ namespace osu.Game.Graphics.UserInterface
return Current.Value.ToString();
}
}
public bool IgnoreTooltip => false;
private Color4 accentColour;
public Color4 AccentColour

View File

@ -126,6 +126,7 @@ namespace osu.Game.Overlays.BeatmapSet
private class ClickableArea : OsuClickableContainer, IHasTooltip
{
public string TooltipText => @"View Profile";
public bool IgnoreTooltip => false;
}
}
}

View File

@ -68,6 +68,7 @@ namespace osu.Game.Overlays.BeatmapSet
private readonly OsuSpriteText value;
public string TooltipText => name;
public bool IgnoreTooltip => false;
public string Value
{
get { return value.Text; }

View File

@ -531,6 +531,7 @@ namespace osu.Game.Overlays.Profile
public class ProfileLink : LinkText, IHasTooltip
{
public string TooltipText => "View Profile in Browser";
public bool IgnoreTooltip => false;
public ProfileLink(User user)
{

View File

@ -185,6 +185,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
private class MetadataContainer : OsuHoverContainer, IHasTooltip
{
public string TooltipText { get; set; }
public bool IgnoreTooltip => false;
public MetadataContainer(string title, string artist)
{

View File

@ -158,6 +158,7 @@ namespace osu.Game.Overlays.Settings
}
public string TooltipText => "Revert to default";
public bool IgnoreTooltip => false;
public override bool HandleInput => true;

View File

@ -29,6 +29,7 @@ namespace osu.Game.Rulesets.UI
private readonly ModType type;
public string TooltipText { get; }
public virtual bool IgnoreTooltip { get; }
public ModIcon(Mod mod)
{
@ -37,6 +38,7 @@ namespace osu.Game.Rulesets.UI
type = mod.Type;
TooltipText = mod.Name;
IgnoreTooltip = false;
Size = new Vector2(size);

View File

@ -16,6 +16,7 @@ namespace osu.Game.Screens.Multiplayer
private readonly GameType type;
public string TooltipText => type.Name;
public bool IgnoreTooltip => false;
public DrawableGameType(GameType type)
{

View File

@ -384,6 +384,7 @@ namespace osu.Game.Screens.Multiplayer
private readonly User user;
public string TooltipText => user.Username;
public bool IgnoreTooltip => false;
public UserTile(User user)
{

View File

@ -144,6 +144,7 @@ namespace osu.Game.Tests.Visual
private bool isSelected;
public string TooltipText => text.Text;
public bool IgnoreTooltip => false;
public BeatmapDisplay(BeatmapInfo beatmap)
{