1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-17 02:22:35 +08:00
Files
osu-lazer/Symcol.Rulesets.Core/Containers/ProfileLink.cs
T
2018-03-18 22:43:16 -04:00

25 lines
674 B
C#

using osu.Game.Users;
namespace Symcol.Rulesets.Core.Containers
{
/// <summary>
/// TODO: make this more generic
/// </summary>
public class ProfileLink : LinkText
{
public override string Tooltip => "View profile in browser";
public ProfileLink(User user, bool maintainer = false)
{
if (!maintainer)
Text = "Ruleset Creator: " + user.Username;
else
Text = "Ruleset Maintainer: " + user.Username;
Url = $@"https://osu.ppy.sh/users/{user.Id}";
Font = @"Exo2.0-RegularItalic";
TextSize = 20;
}
}
}