1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 09:42:53 +08:00
Files
osu-lazer/osu.Game.Tests/Visual/UserInterface/TestSceneLabelledDropdown.cs
T
Bartłomiej Dach 1f2f86b016 Make bank selection controls dropdowns instead of text boxes
Longstanding complaint. Text boxes make no sense if anything that isn't
the three legacy values gets deleted on save anyway.
2025-10-24 11:52:45 +02:00

35 lines
1.1 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 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>(true)
{
Label = @"Countdown speed",
Items = new[]
{
@"Half",
@"Normal",
@"Double"
},
Description = @"This is a description"
});
[Test]
public void TestLabelledEnumDropdown()
=> AddStep(@"create dropdown", () => Child = new LabelledEnumDropdown<BeatmapOnlineStatus>(true)
{
Label = @"Beatmap status",
Description = @"This is a description"
});
}
}