1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 19:40:09 +08:00
Files
osu-lazer/osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselGroupPanel.cs
T
2025-02-06 02:21:44 -05:00

84 lines
3.0 KiB
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Screens.SelectV2;
using osu.Game.Tests.Visual.UserInterface;
using osuTK;
namespace osu.Game.Tests.Visual.SongSelectV2
{
public partial class TestSceneBeatmapCarouselGroupPanel : ThemeComparisonTestScene
{
public TestSceneBeatmapCarouselGroupPanel()
: base(false)
{
}
protected override Drawable CreateContent()
{
return new FillFlowContainer
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Width = 0.5f,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical,
Spacing = new Vector2(0f, 5f),
Children = new Drawable[]
{
new GroupPanel
{
Item = new CarouselItem(new GroupDefinition("Group A"))
},
new GroupPanel
{
Item = new CarouselItem(new GroupDefinition("Group A")),
KeyboardSelected = { Value = true }
},
new GroupPanel
{
Item = new CarouselItem(new GroupDefinition("Group A")),
Expanded = { Value = true }
},
new GroupPanel
{
Item = new CarouselItem(new GroupDefinition("Group A")),
KeyboardSelected = { Value = true },
Expanded = { Value = true }
},
new StarsGroupPanel
{
Item = new CarouselItem(new StarsGroupDefinition(1))
},
new StarsGroupPanel
{
Item = new CarouselItem(new StarsGroupDefinition(3)),
Expanded = { Value = true }
},
new StarsGroupPanel
{
Item = new CarouselItem(new StarsGroupDefinition(5)),
},
new StarsGroupPanel
{
Item = new CarouselItem(new StarsGroupDefinition(7)),
Expanded = { Value = true }
},
new StarsGroupPanel
{
Item = new CarouselItem(new StarsGroupDefinition(8)),
},
new StarsGroupPanel
{
Item = new CarouselItem(new StarsGroupDefinition(9)),
Expanded = { Value = true }
},
}
};
}
}
}