1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:53:21 +08:00

Apply suggestions

This commit is contained in:
EVAST9919 2017-10-11 15:20:23 +03:00
parent db38438a1e
commit 82b333740d

View File

@ -120,15 +120,13 @@ namespace osu.Game.Overlays.Profile
} }
} }
}, },
new LinkFlowContainer.BrowserLinkText new LinkFlowContainer.ProfileLink(user)
{ {
Text = user.Username,
Url = $@"https://osu.ppy.sh/users/{user.Id}",
TextSize = 30,
Font = @"Exo2.0-RegularItalic",
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Y = -48 Y = -48,
TextSize = 30,
Font = @"Exo2.0-RegularItalic",
}, },
countryFlag = new DrawableFlag(user.Country?.FlagName) countryFlag = new DrawableFlag(user.Country?.FlagName)
{ {
@ -541,9 +539,15 @@ namespace osu.Game.Overlays.Profile
} }
} }
public class BrowserLinkText : LinkText, IHasTooltip public class ProfileLink : LinkText, IHasTooltip
{ {
public string TooltipText => "View Profile in Browser"; public string TooltipText => "View Profile in Browser";
public ProfileLink(User user)
{
Text = user.Username;
Url = $@"https://osu.ppy.sh/users/{user.Id}";
}
} }
} }
} }