mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Score -> ScoreInfo
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user