1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 22:22:54 +08:00

Rename classes

This commit is contained in:
Pasi4K5 2021-06-12 17:37:01 +02:00
parent 29f3880415
commit c728f673d6
2 changed files with 5 additions and 5 deletions

View File

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

View File

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