From d1f02538cbc764175532d66318a4083c95a63a4c Mon Sep 17 00:00:00 2001 From: EVAST9919 Date: Mon, 9 Oct 2017 21:12:04 +0300 Subject: [PATCH] Add tooltip to username in the profile overlay --- osu.Game/Overlays/Profile/ProfileHeader.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/Profile/ProfileHeader.cs b/osu.Game/Overlays/Profile/ProfileHeader.cs index d6a86fe714..742e865140 100644 --- a/osu.Game/Overlays/Profile/ProfileHeader.cs +++ b/osu.Game/Overlays/Profile/ProfileHeader.cs @@ -19,6 +19,7 @@ using osu.Game.Graphics.Sprites; using osu.Game.Users; using System.Diagnostics; using System.Globalization; +using osu.Framework.Graphics.Cursor; namespace osu.Game.Overlays.Profile { @@ -119,7 +120,7 @@ namespace osu.Game.Overlays.Profile } } }, - new LinkFlowContainer.LinkText + new LinkFlowContainer.BrowserLinkText { Text = user.Username, Url = $@"https://osu.ppy.sh/users/{user.Id}", @@ -539,6 +540,11 @@ namespace osu.Game.Overlays.Profile hoverColour = colours.Yellow; } } + + public class BrowserLinkText : LinkText, IHasTooltip + { + public string TooltipText => "View Profile in Browser"; + } } } }