mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 02:42:54 +08:00
Add test coverage for song select footer area
This commit is contained in:
parent
08858e6426
commit
b4c6894d13
@ -0,0 +1,35 @@
|
|||||||
|
// 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.Game.Screens.Select;
|
||||||
|
|
||||||
|
namespace osu.Game.Tests.Visual.SongSelect
|
||||||
|
{
|
||||||
|
public class TestSceneSongSelectFooter : OsuManualInputManagerTestScene
|
||||||
|
{
|
||||||
|
public TestSceneSongSelectFooter()
|
||||||
|
{
|
||||||
|
AddStep("Create footer", () =>
|
||||||
|
{
|
||||||
|
Footer footer;
|
||||||
|
AddRange(new Drawable[]
|
||||||
|
{
|
||||||
|
footer = new Footer
|
||||||
|
{
|
||||||
|
Anchor = Anchor.Centre,
|
||||||
|
Origin = Anchor.Centre,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
footer.AddButton(new FooterButtonMods(), null);
|
||||||
|
footer.AddButton(new FooterButtonRandom
|
||||||
|
{
|
||||||
|
NextRandom = () => { },
|
||||||
|
PreviousRandom = () => { },
|
||||||
|
}, null);
|
||||||
|
footer.AddButton(new FooterButtonOptions(), null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user