mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 05:02:55 +08:00
Add tooltip to username in the profile overlay
This commit is contained in:
parent
b1a2da58bc
commit
d1f02538cb
@ -19,6 +19,7 @@ using osu.Game.Graphics.Sprites;
|
|||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using osu.Framework.Graphics.Cursor;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Profile
|
namespace osu.Game.Overlays.Profile
|
||||||
{
|
{
|
||||||
@ -119,7 +120,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new LinkFlowContainer.LinkText
|
new LinkFlowContainer.BrowserLinkText
|
||||||
{
|
{
|
||||||
Text = user.Username,
|
Text = user.Username,
|
||||||
Url = $@"https://osu.ppy.sh/users/{user.Id}",
|
Url = $@"https://osu.ppy.sh/users/{user.Id}",
|
||||||
@ -539,6 +540,11 @@ namespace osu.Game.Overlays.Profile
|
|||||||
hoverColour = colours.Yellow;
|
hoverColour = colours.Yellow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class BrowserLinkText : LinkText, IHasTooltip
|
||||||
|
{
|
||||||
|
public string TooltipText => "View Profile in Browser";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user