mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 00:07:20 +08:00
Use new ScoreManager method in ScoreTable
This commit is contained in:
parent
d03950fb37
commit
458ce250f0
@ -151,8 +151,8 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Right = horizontal_inset },
|
Margin = new MarginPadding { Right = horizontal_inset },
|
||||||
Current = scoreManager.GetBindableTotalScoreString(score),
|
Font = OsuFont.GetFont(size: text_size, weight: index == 0 ? FontWeight.Bold : FontWeight.Medium),
|
||||||
Font = OsuFont.GetFont(size: text_size, weight: index == 0 ? FontWeight.Bold : FontWeight.Medium)
|
Text = scoreManager.GetTotalScore(score).ToLocalisableString(@"N0"),
|
||||||
},
|
},
|
||||||
new OsuSpriteText
|
new OsuSpriteText
|
||||||
{
|
{
|
||||||
|
@ -260,7 +260,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
}
|
}
|
||||||
|
|
||||||
var scoreInfos = newScores.Scores.Select(s => s.CreateScoreInfo(rulesets))
|
var scoreInfos = newScores.Scores.Select(s => s.CreateScoreInfo(rulesets))
|
||||||
.OrderByDescending(s => scoreManager.GetBindableTotalScore(s).Value)
|
.OrderByDescending(s => scoreManager.GetTotalScore(s))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
var topScore = scoreInfos.First();
|
var topScore = scoreInfos.First();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user