Score -> ScoreInfo

This commit is contained in:
smoogipoo
2018-11-28 18:33:01 +09:00
parent 5b409a5ae5
commit 219929eb47
42 changed files with 211 additions and 211 deletions

View File

@ -43,26 +43,26 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
private readonly InfoColumn statistics;
private readonly ScoreModsContainer modsContainer;
private APIScore score;
public APIScore Score
private APIScoreInfo scoreInfo;
public APIScoreInfo ScoreInfo
{
get { return score; }
get { return scoreInfo; }
set
{
if (score == value) return;
score = value;
if (scoreInfo == value) return;
scoreInfo = value;
avatar.User = username.User = score.User;
flag.Country = score.User.Country;
date.Text = $@"achieved {score.Date:MMM d, yyyy}";
rank.UpdateRank(score.Rank);
avatar.User = username.User = scoreInfo.User;
flag.Country = scoreInfo.User.Country;
date.Text = $@"achieved {scoreInfo.Date:MMM d, yyyy}";
rank.UpdateRank(scoreInfo.Rank);
totalScore.Value = $@"{score.TotalScore:N0}";
accuracy.Value = $@"{score.Accuracy:P2}";
statistics.Value = $"{score.Statistics[HitResult.Great]}/{score.Statistics[HitResult.Good]}/{score.Statistics[HitResult.Meh]}";
totalScore.Value = $@"{scoreInfo.TotalScore:N0}";
accuracy.Value = $@"{scoreInfo.Accuracy:P2}";
statistics.Value = $"{scoreInfo.Statistics[HitResult.Great]}/{scoreInfo.Statistics[HitResult.Good]}/{scoreInfo.Statistics[HitResult.Meh]}";
modsContainer.Clear();
foreach (Mod mod in score.Mods)
foreach (Mod mod in scoreInfo.Mods)
modsContainer.Add(new ModIcon(mod)
{
AutoSizeAxes = Axes.Both,