mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 05:03:02 +08:00
Clean code
This commit is contained in:
parent
765c6e4ecc
commit
0e50e4ee34
@ -8,7 +8,6 @@ using osu.Framework.Graphics.Shapes;
|
|||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using System;
|
|
||||||
using static osu.Framework.Graphics.UserInterface.TextBox;
|
using static osu.Framework.Graphics.UserInterface.TextBox;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
|
namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
|
||||||
@ -132,14 +131,12 @@ namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
|
|||||||
|
|
||||||
public LabelledTextBox()
|
public LabelledTextBox()
|
||||||
{
|
{
|
||||||
Masking = true;
|
|
||||||
CornerRadius = outer_corner_radius;
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
base.Height = default_height + Padding.Top;
|
base.Height = default_height + Padding.Top;
|
||||||
|
CornerRadius = outer_corner_radius;
|
||||||
|
Masking = true;
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChild = new Container
|
||||||
{
|
|
||||||
new Container
|
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
CornerRadius = outer_corner_radius,
|
CornerRadius = outer_corner_radius,
|
||||||
@ -170,7 +167,6 @@ namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
|
|||||||
Padding = new MarginPadding { Left = default_label_left_padding, Top = default_label_top_padding },
|
Padding = new MarginPadding { Left = default_label_left_padding, Top = default_label_top_padding },
|
||||||
Colour = Color4.White,
|
Colour = Color4.White,
|
||||||
TextSize = default_label_text_size,
|
TextSize = default_label_text_size,
|
||||||
Text = LabelText,
|
|
||||||
Font = @"Exo2.0-Bold",
|
Font = @"Exo2.0-Bold",
|
||||||
},
|
},
|
||||||
textBox = new OsuTextBox
|
textBox = new OsuTextBox
|
||||||
@ -179,7 +175,6 @@ namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
|
|||||||
Origin = Anchor.TopLeft,
|
Origin = Anchor.TopLeft,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = default_height,
|
Height = default_height,
|
||||||
ReadOnly = ReadOnly,
|
|
||||||
CornerRadius = inner_corner_radius,
|
CornerRadius = inner_corner_radius,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -192,7 +187,6 @@ namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
textBox.OnCommit += OnCommit;
|
textBox.OnCommit += OnCommit;
|
||||||
|
Loading…
Reference in New Issue
Block a user