mirror of https://github.com/ppy/osu
rename `item` to `model` in `CreateDrawableItem`
This commit is contained in:
parent
486fbd2531
commit
7a6666996f
|
@ -67,15 +67,15 @@ protected override APIRequest<List<SoloScoreInfo>> CreateRequest(PaginationParam
|
||||||
|
|
||||||
private int drawableItemIndex;
|
private int drawableItemIndex;
|
||||||
|
|
||||||
protected override Drawable CreateDrawableItem(SoloScoreInfo item)
|
protected override Drawable CreateDrawableItem(SoloScoreInfo model)
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
return new DrawableProfileScore(item);
|
return new DrawableProfileScore(model);
|
||||||
|
|
||||||
case ScoreType.Best:
|
case ScoreType.Best:
|
||||||
return new DrawableProfileWeightedScore(item, Math.Pow(0.95, drawableItemIndex++));
|
return new DrawableProfileWeightedScore(model, Math.Pow(0.95, drawableItemIndex++));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue