1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-26 06:09:53 +08:00

Rename nested classes

This commit is contained in:
Pasi4K5
2021-06-12 18:37:31 +02:00
Unverified
parent b79d57b68c
commit ef9cb2c958
3 changed files with 6 additions and 6 deletions
@@ -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);
}
@@ -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;
+2 -2
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