mirror of
https://github.com/ppy/osu
synced 2024-12-18 12:55:37 +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;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Configuration;
|
using osu.Game.Configuration;
|
||||||
|
using osu.Game.Overlays.Settings;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Settings
|
namespace osu.Game.Tests.Visual.Settings
|
||||||
@ -58,6 +59,13 @@ namespace osu.Game.Tests.Visual.Settings
|
|||||||
Default = string.Empty,
|
Default = string.Empty,
|
||||||
Value = "Sample text"
|
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
|
private enum TestEnum
|
||||||
|
Loading…
Reference in New Issue
Block a user