Add tooltip to username in the profile overlay

This commit is contained in:
EVAST9919 2017-10-09 21:12:04 +03:00
parent b1a2da58bc
commit d1f02538cb
1 changed files with 7 additions and 1 deletions

View File

@ -19,6 +19,7 @@
using osu.Game.Users;
using System.Diagnostics;
using System.Globalization;
using osu.Framework.Graphics.Cursor;
namespace osu.Game.Overlays.Profile
{
@ -119,7 +120,7 @@ public ProfileHeader(User user)
}
}
},
new LinkFlowContainer.LinkText
new LinkFlowContainer.BrowserLinkText
{
Text = user.Username,
Url = $@"https://osu.ppy.sh/users/{user.Id}",
@ -539,6 +540,11 @@ private void load(OsuColour colours)
hoverColour = colours.Yellow;
}
}
public class BrowserLinkText : LinkText, IHasTooltip
{
public string TooltipText => "View Profile in Browser";
}
}
}
}