1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 12:07:23 +08:00

Add a left content area to song select.

This commit is contained in:
Dean Herbert 2017-03-15 14:34:19 +09:00
parent 61c45ceb08
commit 15e713899d
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -42,9 +42,15 @@ namespace osu.Game.Screens.Select
private TrackManager trackManager;
private DialogOverlay dialogOverlay;
private static readonly Vector2 wedged_container_size = new Vector2(0.5f, 225);
private static readonly Vector2 wedged_container_size = new Vector2(0.5f, 245);
private const float left_area_padding = 20;
private BeatmapInfoWedge beatmapInfoWedge;
protected Container LeftContent;
private static readonly Vector2 background_blur = new Vector2(20);
private CancellationTokenSource initialAddSetsTask;
@ -102,6 +108,20 @@ namespace osu.Game.Screens.Select
}
}
});
Add(LeftContent = new Container
{
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
RelativeSizeAxes = Axes.Both,
Size = new Vector2(wedged_container_size.X, 1),
Padding = new MarginPadding
{
Bottom = 50,
Top = wedged_container_size.Y + left_area_padding,
Left = left_area_padding,
Right = left_area_padding * 2,
}
});
Add(carousel = new CarouselContainer
{
RelativeSizeAxes = Axes.Y,
@ -123,8 +143,8 @@ namespace osu.Game.Screens.Select
RelativeSizeAxes = Axes.X,
Margin = new MarginPadding
{
Top = 20,
Right = 20,
Top = left_area_padding,
Right = left_area_padding,
},
X = -50,
});