mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Add visual test for SettingsNumberBox
usage in settings source context
This commit is contained in:
parent
5c7623e68e
commit
dce19cf7e4
@ -6,6 +6,7 @@ using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Overlays.Settings;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Tests.Visual.Settings
|
||||
@ -58,6 +59,13 @@ namespace osu.Game.Tests.Visual.Settings
|
||||
Default = string.Empty,
|
||||
Value = "Sample text"
|
||||
};
|
||||
|
||||
[SettingSource("Sample number textbox", "Textbox number entry", SettingControlType = typeof(SettingsNumberBox))]
|
||||
public Bindable<int?> IntTextboxBindable { get; } = new Bindable<int?>
|
||||
{
|
||||
Default = null,
|
||||
Value = null
|
||||
};
|
||||
}
|
||||
|
||||
private enum TestEnum
|
||||
|
Loading…
Reference in New Issue
Block a user