mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Merge pull request #2004 from ppy/osu/SH_SSH_support
Store and show SSPlus and SPlus statistics on user page
This commit is contained in:
commit
86eaf9872f
@ -396,16 +396,17 @@ namespace osu.Game.Overlays.Profile
|
||||
scoreText.Add(createScoreText("Replays Watched by Others"));
|
||||
scoreNumberText.Add(createScoreNumberText(user.Statistics.ReplaysWatched.ToString(@"#,0")));
|
||||
|
||||
gradeSSPlus.DisplayCount = user.Statistics.GradesCount.SSPlus;
|
||||
gradeSSPlus.Show();
|
||||
gradeSS.DisplayCount = user.Statistics.GradesCount.SS;
|
||||
gradeSS.Show();
|
||||
gradeSPlus.DisplayCount = user.Statistics.GradesCount.SPlus;
|
||||
gradeSPlus.Show();
|
||||
gradeS.DisplayCount = user.Statistics.GradesCount.S;
|
||||
gradeS.Show();
|
||||
gradeA.DisplayCount = user.Statistics.GradesCount.A;
|
||||
gradeA.Show();
|
||||
|
||||
gradeSPlus.DisplayCount = 0;
|
||||
gradeSSPlus.DisplayCount = 0;
|
||||
|
||||
rankGraph.User.Value = user;
|
||||
}
|
||||
}
|
||||
|
@ -51,9 +51,15 @@ namespace osu.Game.Users
|
||||
|
||||
public struct Grades
|
||||
{
|
||||
[JsonProperty(@"ssh")]
|
||||
public int SSPlus;
|
||||
|
||||
[JsonProperty(@"ss")]
|
||||
public int SS;
|
||||
|
||||
[JsonProperty(@"sh")]
|
||||
public int SPlus;
|
||||
|
||||
[JsonProperty(@"s")]
|
||||
public int S;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user