forked from ppy/osu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e102981
commit cb89684
Showing
4 changed files
with
541 additions
and
48 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
osu.Game.Tests/Visual/SongSelectV2/TestSceneBeatmapCarouselGroupPanel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. 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")), | ||
Selected = { Value = true } | ||
}, | ||
new GroupPanel | ||
{ | ||
Item = new CarouselItem(new GroupDefinition("Group A")), | ||
KeyboardSelected = { Value = true }, | ||
Selected = { Value = true } | ||
}, | ||
new StarsGroupPanel | ||
{ | ||
Item = new CarouselItem(new StarsGroupDefinition(1)) | ||
}, | ||
new StarsGroupPanel | ||
{ | ||
Item = new CarouselItem(new StarsGroupDefinition(3)), | ||
}, | ||
new StarsGroupPanel | ||
{ | ||
Item = new CarouselItem(new StarsGroupDefinition(5)), | ||
}, | ||
new StarsGroupPanel | ||
{ | ||
Item = new CarouselItem(new StarsGroupDefinition(7)), | ||
}, | ||
new StarsGroupPanel | ||
{ | ||
Item = new CarouselItem(new StarsGroupDefinition(8)), | ||
}, | ||
new StarsGroupPanel | ||
{ | ||
Item = new CarouselItem(new StarsGroupDefinition(9)), | ||
}, | ||
} | ||
}; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.