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

Merge pull request #7754 from peppy/screen-under-timeline

Make editor screens display below timeline
This commit is contained in:
Dan Balasescu 2020-02-08 00:47:20 +09:00 committed by GitHub
commit 4ad20ccd8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,8 @@ namespace osu.Game.Screens.Edit
private const float vertical_margins = 10;
private const float horizontal_margins = 20;
private const float timeline_height = 110;
private readonly BindableBeatDivisor beatDivisor = new BindableBeatDivisor();
private Container timelineContainer;
@ -32,17 +34,22 @@ namespace osu.Game.Screens.Edit
Children = new Drawable[]
{
new GridContainer
mainContent = new Container
{
Name = "Main content",
RelativeSizeAxes = Axes.Both,
Content = new[]
{
new Drawable[]
Padding = new MarginPadding
{
Horizontal = horizontal_margins,
Top = vertical_margins + timeline_height,
Bottom = vertical_margins
},
},
new Container
{
Name = "Timeline",
RelativeSizeAxes = Axes.Both,
RelativeSizeAxes = Axes.X,
Height = timeline_height,
Children = new Drawable[]
{
new Box
@ -78,19 +85,6 @@ namespace osu.Game.Screens.Edit
},
}
}
}
},
new Drawable[]
{
mainContent = new Container
{
Name = "Main content",
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = horizontal_margins, Vertical = vertical_margins },
}
}
},
RowDimensions = new[] { new Dimension(GridSizeMode.Absolute, 110) }
},
};