mirror of
https://github.com/ppy/osu
synced 2024-12-18 04:46:09 +00:00
Merge pull request #15340 from peppy/add-number-setting-source-test
Add visual test for `SettingsNumberBox` usage in settings source context
This commit is contained in:
commit
6e79a0947a
@ -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