From b016103894ab3872815326942f9f8e2532a45023 Mon Sep 17 00:00:00 2001 From: Jorolf Date: Thu, 20 Jul 2017 01:03:00 +0200 Subject: [PATCH] add link to user page --- osu.Game/Overlays/Profile/ProfileHeader.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/osu.Game/Overlays/Profile/ProfileHeader.cs b/osu.Game/Overlays/Profile/ProfileHeader.cs index 7888b87ac4..a636bd5a21 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,9 +120,10 @@ namespace osu.Game.Overlays.Profile } } }, - new OsuSpriteText + new LinkFlowContainer.LinkText { Text = user.Username, + Url = $@"https://osu.ppy.sh/users/{user.Id}", TextSize = 30, Font = @"Exo2.0-RegularItalic", Anchor = Anchor.BottomLeft, @@ -506,7 +508,7 @@ namespace osu.Game.Overlays.Profile public void AddLink(string text, string url) => AddText(text, link => ((LinkText)link).Url = url); - private class LinkText : OsuSpriteText + public class LinkText : OsuSpriteText { public override bool HandleInput => Url != null;