mirror of
https://github.com/ppy/osu.git
synced 2026-05-27 16:10:16 +08:00
Fix group panel overlapping with other panels
This commit is contained in:
committed by
Dean Herbert
Unverified
parent
c4794b2de3
commit
25c26f6f21
@@ -42,6 +42,11 @@ namespace osu.Game.Screens.SelectV2
|
||||
|
||||
protected override float GetSpacingBetweenPanels(CarouselItem top, CarouselItem bottom)
|
||||
{
|
||||
if ((top.Model is GroupDefinition || bottom.Model is GroupDefinition) &&
|
||||
!(top.Model is GroupDefinition && bottom.Model is GroupDefinition))
|
||||
// Group panels do not overlap with any other panel but should overlap with themselves.
|
||||
return SPACING;
|
||||
|
||||
if (top.Model is BeatmapInfo || bottom.Model is BeatmapInfo)
|
||||
// Beatmap difficulty panels do not overlap with themselves or any other panel.
|
||||
return SPACING;
|
||||
|
||||
Reference in New Issue
Block a user