mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 22:22:54 +08:00
Rename classes
This commit is contained in:
parent
29f3880415
commit
c728f673d6
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user