mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Rename classes
This commit is contained in:
@ -13,14 +13,14 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
public class SettingsTextBox : SettingsItem<string>
|
public class SettingsTextBox : SettingsItem<string>
|
||||||
{
|
{
|
||||||
protected override Drawable CreateControl() => new OsuModSettingsTextBox
|
protected override Drawable CreateControl() => new OsuSettingsTextBox
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = 5 },
|
Margin = new MarginPadding { Top = 5 },
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
CommitOnFocusLost = true,
|
CommitOnFocusLost = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
public class OsuModSettingsTextBox : OsuTextBox
|
public class OsuSettingsTextBox : OsuTextBox
|
||||||
{
|
{
|
||||||
private const float border_thickness = 3;
|
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);
|
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()
|
public SeedControl()
|
||||||
{
|
{
|
||||||
@ -75,7 +75,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
{
|
{
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
seedNumberBox = new SettingsTextBox.OsuModSettingsNumberBox
|
seedNumberBox = new SettingsTextBox.OsuSettingsNumberBox
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
CommitOnFocusLost = true
|
CommitOnFocusLost = true
|
||||||
|
Reference in New Issue
Block a user