mirror of https://github.com/ppy/osu
Update profile header to osu-web changes
This commit is contained in:
parent
c247fe1343
commit
64709da546
|
@ -350,7 +350,7 @@ private void loadUser()
|
||||||
|
|
||||||
if (user.Country != null)
|
if (user.Country != null)
|
||||||
{
|
{
|
||||||
infoTextLeft.AddText("from ", lightText);
|
infoTextLeft.AddText("From ", lightText);
|
||||||
infoTextLeft.AddText(user.Country.FullName, boldItalic);
|
infoTextLeft.AddText(user.Country.FullName, boldItalic);
|
||||||
countryFlag.Country = user.Country;
|
countryFlag.Country = user.Country;
|
||||||
}
|
}
|
||||||
|
@ -378,6 +378,10 @@ private void loadUser()
|
||||||
infoTextLeft.AddText(string.Join(", ", user.PlayStyle), boldItalic);
|
infoTextLeft.AddText(string.Join(", ", user.PlayStyle), boldItalic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
infoTextLeft.NewLine();
|
||||||
|
infoTextLeft.AddText("Contributed ", lightText);
|
||||||
|
infoTextLeft.AddText($@"{user.PostCount} forum posts", boldItalic);
|
||||||
|
|
||||||
string websiteWithoutProtcol = user.Website;
|
string websiteWithoutProtcol = user.Website;
|
||||||
if (!string.IsNullOrEmpty(websiteWithoutProtcol))
|
if (!string.IsNullOrEmpty(websiteWithoutProtcol))
|
||||||
{
|
{
|
||||||
|
@ -392,8 +396,10 @@ private void loadUser()
|
||||||
infoTextRight.NewParagraph();
|
infoTextRight.NewParagraph();
|
||||||
if (!string.IsNullOrEmpty(user.Twitter))
|
if (!string.IsNullOrEmpty(user.Twitter))
|
||||||
tryAddInfoRightLine(FontAwesome.fa_twitter, "@" + user.Twitter, $@"https://twitter.com/{user.Twitter}");
|
tryAddInfoRightLine(FontAwesome.fa_twitter, "@" + user.Twitter, $@"https://twitter.com/{user.Twitter}");
|
||||||
tryAddInfoRightLine(FontAwesome.fa_globe, websiteWithoutProtcol, user.Website);
|
tryAddInfoRightLine(FontAwesome.fa_question, user.Discord);
|
||||||
tryAddInfoRightLine(FontAwesome.fa_skype, user.Skype, @"skype:" + user.Skype + @"?chat");
|
tryAddInfoRightLine(FontAwesome.fa_skype, user.Skype, @"skype:" + user.Skype + @"?chat");
|
||||||
|
tryAddInfoRightLine(FontAwesome.fa_lastfm, user.Lastfm, $@"https://last.fm/users/{user.Lastfm}");
|
||||||
|
tryAddInfoRightLine(FontAwesome.fa_globe, websiteWithoutProtcol, user.Website);
|
||||||
|
|
||||||
if (user.Statistics != null)
|
if (user.Statistics != null)
|
||||||
{
|
{
|
||||||
|
|
|
@ -98,9 +98,15 @@ public class UserCover
|
||||||
[JsonProperty(@"skype")]
|
[JsonProperty(@"skype")]
|
||||||
public string Skype;
|
public string Skype;
|
||||||
|
|
||||||
|
[JsonProperty(@"discord")]
|
||||||
|
public string Discord;
|
||||||
|
|
||||||
[JsonProperty(@"website")]
|
[JsonProperty(@"website")]
|
||||||
public string Website;
|
public string Website;
|
||||||
|
|
||||||
|
[JsonProperty(@"post_count")]
|
||||||
|
public int PostCount;
|
||||||
|
|
||||||
[JsonProperty(@"playstyle")]
|
[JsonProperty(@"playstyle")]
|
||||||
public string[] PlayStyle;
|
public string[] PlayStyle;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue