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:
parent
f5bea077a0
commit
9b3e666a07
@ -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)
|
||||
{
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -46,6 +46,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
return Current.Value.ToString();
|
||||
}
|
||||
}
|
||||
public bool IgnoreTooltip => false;
|
||||
|
||||
private Color4 accentColour;
|
||||
public Color4 AccentColour
|
||||
|
@ -126,6 +126,7 @@ namespace osu.Game.Overlays.BeatmapSet
|
||||
private class ClickableArea : OsuClickableContainer, IHasTooltip
|
||||
{
|
||||
public string TooltipText => @"View Profile";
|
||||
public bool IgnoreTooltip => false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -158,6 +158,7 @@ namespace osu.Game.Overlays.Settings
|
||||
}
|
||||
|
||||
public string TooltipText => "Revert to default";
|
||||
public bool IgnoreTooltip => false;
|
||||
|
||||
public override bool HandleInput => true;
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user