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

Clean code

This commit is contained in:
AlFasGD 2018-07-24 10:10:17 +03:00
parent 765c6e4ecc
commit 0e50e4ee34

View File

@ -8,7 +8,6 @@ using osu.Framework.Graphics.Shapes;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
using System;
using static osu.Framework.Graphics.UserInterface.TextBox;
namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
@ -132,14 +131,12 @@ namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
public LabelledTextBox()
{
Masking = true;
CornerRadius = outer_corner_radius;
RelativeSizeAxes = Axes.X;
base.Height = default_height + Padding.Top;
CornerRadius = outer_corner_radius;
Masking = true;
InternalChildren = new Drawable[]
{
new Container
InternalChild = new Container
{
RelativeSizeAxes = Axes.Both,
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 },
Colour = Color4.White,
TextSize = default_label_text_size,
Text = LabelText,
Font = @"Exo2.0-Bold",
},
textBox = new OsuTextBox
@ -179,7 +175,6 @@ namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
Origin = Anchor.TopLeft,
RelativeSizeAxes = Axes.X,
Height = default_height,
ReadOnly = ReadOnly,
CornerRadius = inner_corner_radius,
},
},
@ -192,7 +187,6 @@ namespace osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents
}
}
}
}
};
textBox.OnCommit += OnCommit;