item -> model

This commit is contained in:
Dean Herbert
2019-08-28 13:31:12 +09:00
parent 3942c83c18
commit bef44b8e58
5 changed files with 9 additions and 9 deletions

View File

@ -40,15 +40,15 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
protected override APIRequest<List<APILegacyScoreInfo>> CreateRequest() =>
new GetUserScoresRequest(User.Value.Id, type, VisiblePages++, ItemsPerPage);
protected override Drawable CreateDrawableItem(APILegacyScoreInfo item)
protected override Drawable CreateDrawableItem(APILegacyScoreInfo model)
{
switch (type)
{
default:
return new DrawablePerformanceScore(item, includeWeight ? Math.Pow(0.95, ItemsContainer.Count) : (double?)null);
return new DrawablePerformanceScore(model, includeWeight ? Math.Pow(0.95, ItemsContainer.Count) : (double?)null);
case ScoreType.Recent:
return new DrawableTotalScore(item);
return new DrawableTotalScore(model);
}
}
}