1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00

Rename nested classes

This commit is contained in:
Pasi4K5 2021-06-12 18:37:31 +02:00
parent b79d57b68c
commit ef9cb2c958
3 changed files with 6 additions and 6 deletions

View File

@ -7,13 +7,13 @@ namespace osu.Game.Overlays.Settings
{
public class SettingsNumberBox : SettingsItem<string>
{
protected override Drawable CreateControl() => new OsuSettingsNumberBox
protected override Drawable CreateControl() => new NumberBox
{
Margin = new MarginPadding { Top = 5 },
RelativeSizeAxes = Axes.X,
};
public class OsuSettingsNumberBox : SettingsTextBox.OsuSettingsTextBox
public class NumberBox : SettingsTextBox.TextBox
{
protected override bool CanAddCharacter(char character) => char.IsNumber(character);
}

View File

@ -13,14 +13,14 @@ namespace osu.Game.Overlays.Settings
{
public class SettingsTextBox : SettingsItem<string>
{
protected override Drawable CreateControl() => new OsuSettingsTextBox
protected override Drawable CreateControl() => new TextBox
{
Margin = new MarginPadding { Top = 5 },
RelativeSizeAxes = Axes.X,
CommitOnFocusLost = true,
};
public class OsuSettingsTextBox : OsuTextBox
public class TextBox : OsuTextBox
{
private const float border_thickness = 3;

View File

@ -49,7 +49,7 @@ namespace osu.Game.Rulesets.Mods
}
}
private readonly SettingsNumberBox.OsuSettingsNumberBox seedNumberBox;
private readonly SettingsNumberBox.NumberBox seedNumberBox;
public SeedControl()
{
@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Mods
{
new Drawable[]
{
seedNumberBox = new SettingsNumberBox.OsuSettingsNumberBox
seedNumberBox = new SettingsNumberBox.NumberBox
{
RelativeSizeAxes = Axes.X,
CommitOnFocusLost = true