Change DrawableProfileScore to use APIScoreInfo

This commit is contained in:
Dean Herbert
2021-10-29 15:14:52 +09:00
parent 17a83f701a
commit 31403daa20
5 changed files with 65 additions and 62 deletions

View File

@ -69,10 +69,10 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
switch (type)
{
default:
return new DrawableProfileScore(model.CreateScoreInfo(Rulesets));
return new DrawableProfileScore(model);
case ScoreType.Best:
return new DrawableProfileWeightedScore(model.CreateScoreInfo(Rulesets), Math.Pow(0.95, drawableItemIndex++));
return new DrawableProfileWeightedScore(model, Math.Pow(0.95, drawableItemIndex++));
}
}
}