Move OsuSettingsNumberBox into SettingsNumberBox

This commit is contained in:
Pasi4K5
2021-06-12 17:57:40 +02:00
parent c728f673d6
commit b79d57b68c
3 changed files with 8 additions and 9 deletions

View File

@ -2,16 +2,20 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Settings
{
public class SettingsNumberBox : SettingsItem<string>
{
protected override Drawable CreateControl() => new OsuNumberBox
protected override Drawable CreateControl() => new OsuSettingsNumberBox
{
Margin = new MarginPadding { Top = 5 },
RelativeSizeAxes = Axes.X,
};
public class OsuSettingsNumberBox : SettingsTextBox.OsuSettingsTextBox
{
protected override bool CanAddCharacter(char character) => char.IsNumber(character);
}
}
}