Simplify vertical position calculations by including spacing in height definition

This commit is contained in:
Dean Herbert
2020-10-13 18:13:36 +09:00
parent b1ddb08a4e
commit 69650c16fc
4 changed files with 10 additions and 5 deletions

View File

@ -175,7 +175,7 @@ namespace osu.Game.Screens.Select.Carousel
foreach (var panel in beatmapContainer.Children)
{
panel.MoveToY(yPos, 800, Easing.OutQuint);
yPos += panel.Item.TotalHeight + DrawableCarouselBeatmap.CAROUSEL_BEATMAP_SPACING;
yPos += panel.Item.TotalHeight;
}
}
}