2021-08-22 12:12:17 +00:00
|
|
|
// 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.
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2021-08-22 12:12:17 +00:00
|
|
|
using NUnit.Framework;
|
|
|
|
using osu.Game.Beatmaps;
|
|
|
|
using osu.Game.Graphics.UserInterfaceV2;
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.UserInterface
|
|
|
|
{
|
|
|
|
public partial class TestSceneLabelledDropdown : OsuTestScene
|
|
|
|
{
|
|
|
|
[Test]
|
|
|
|
public void TestLabelledDropdown()
|
|
|
|
=> AddStep(@"create dropdown", () => Child = new LabelledDropdown<string>
|
|
|
|
{
|
|
|
|
Label = @"Countdown speed",
|
|
|
|
Items = new[]
|
|
|
|
{
|
|
|
|
@"Half",
|
|
|
|
@"Normal",
|
|
|
|
@"Double"
|
|
|
|
},
|
|
|
|
Description = @"This is a description"
|
|
|
|
});
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
public void TestLabelledEnumDropdown()
|
2021-11-24 09:42:47 +00:00
|
|
|
=> AddStep(@"create dropdown", () => Child = new LabelledEnumDropdown<BeatmapOnlineStatus>
|
2021-08-22 12:12:17 +00:00
|
|
|
{
|
|
|
|
Label = @"Beatmap status",
|
|
|
|
Description = @"This is a description"
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|