mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Shortcut non-visible panels to avoid adding as drawables
This commit is contained in:
@ -498,6 +498,8 @@ namespace osu.Game.Screens.Select
|
|||||||
// Only add if we're not already part of the content.
|
// Only add if we're not already part of the content.
|
||||||
if (!scrollableContent.Contains(item))
|
if (!scrollableContent.Contains(item))
|
||||||
{
|
{
|
||||||
|
if (!item.Item.Visible) continue;
|
||||||
|
|
||||||
// Makes sure headers are always _below_ items,
|
// Makes sure headers are always _below_ items,
|
||||||
// and depth flows downward.
|
// and depth flows downward.
|
||||||
item.Depth = i + (item is DrawableCarouselBeatmapSet ? Items.Count : 0);
|
item.Depth = i + (item is DrawableCarouselBeatmapSet ? Items.Count : 0);
|
||||||
|
Reference in New Issue
Block a user