mirror of
https://github.com/ppy/osu.git
synced 2025-03-17 22:17:25 +08:00
Add back difficulty panel spacing
This commit is contained in:
parent
ce67f65084
commit
fd8654cff3
@ -732,7 +732,7 @@ namespace osu.Game.Screens.Select
|
||||
break;
|
||||
}
|
||||
|
||||
scrollTarget += b.TotalHeight;
|
||||
scrollTarget += b.TotalHeight + DrawableCarouselBeatmap.CAROUSEL_BEATMAP_SPACING;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
switch (State.Value)
|
||||
{
|
||||
case CarouselItemState.Selected:
|
||||
return DrawableCarouselBeatmapSet.HEIGHT + Children.Count(c => c.Visible) * DrawableCarouselBeatmap.HEIGHT;
|
||||
return DrawableCarouselBeatmapSet.HEIGHT + Children.Count(c => c.Visible) * (DrawableCarouselBeatmap.CAROUSEL_BEATMAP_SPACING + DrawableCarouselBeatmap.HEIGHT);
|
||||
|
||||
default:
|
||||
return DrawableCarouselBeatmapSet.HEIGHT;
|
||||
|
@ -31,7 +31,9 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
{
|
||||
public class DrawableCarouselBeatmap : DrawableCarouselItem, IHasContextMenu
|
||||
{
|
||||
public const float HEIGHT = MAX_HEIGHT * 0.6f;
|
||||
public const float CAROUSEL_BEATMAP_SPACING = 5;
|
||||
|
||||
public const float HEIGHT = MAX_HEIGHT * 0.6f; // TODO: add once base class is fixed + CAROUSEL_BEATMAP_SPACING;
|
||||
|
||||
private readonly BeatmapInfo beatmap;
|
||||
|
||||
|
@ -190,12 +190,12 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
if (carouselBeatmapSet != Item)
|
||||
return;
|
||||
|
||||
float yPos = 0;
|
||||
float yPos = DrawableCarouselBeatmap.CAROUSEL_BEATMAP_SPACING;
|
||||
|
||||
foreach (var item in loaded)
|
||||
{
|
||||
item.Y = yPos;
|
||||
yPos += item.Item.TotalHeight;
|
||||
yPos += item.Item.TotalHeight + DrawableCarouselBeatmap.CAROUSEL_BEATMAP_SPACING;
|
||||
}
|
||||
|
||||
beatmapContainer.ChildrenEnumerable = loaded;
|
||||
|
Loading…
x
Reference in New Issue
Block a user