More constants

This commit is contained in:
EVAST9919
2017-05-19 06:39:39 +03:00
parent c3647e4056
commit e18f95185f

View File

@ -18,6 +18,10 @@ namespace osu.Game.Graphics.UserInterface
public abstract string Title { get; } public abstract string Title { get; }
private const float transition_duration = 600; private const float transition_duration = 600;
private const int container_width = 250;
private const int border_thickness = 2;
private const int header_height = 30;
private const int corner_radius = 5;
private readonly FillFlowContainer content; private readonly FillFlowContainer content;
private readonly SimpleButton button; private readonly SimpleButton button;
@ -26,11 +30,11 @@ namespace osu.Game.Graphics.UserInterface
protected SettingsContainer() protected SettingsContainer()
{ {
AutoSizeAxes = Axes.Y; AutoSizeAxes = Axes.Y;
Width = 250; Width = container_width;
Masking = true; Masking = true;
CornerRadius = 5; CornerRadius = corner_radius;
BorderColour = Color4.Black; BorderColour = Color4.Black;
BorderThickness = 2; BorderThickness = border_thickness;
Children = new Drawable[] Children = new Drawable[]
{ {
@ -51,7 +55,7 @@ namespace osu.Game.Graphics.UserInterface
new Container new Container
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Height = 30, Height = header_height,
Origin = Anchor.TopCentre, Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,