From 15e713899d9da51d1d484379aeb2185968182e19 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Wed, 15 Mar 2017 14:34:19 +0900 Subject: [PATCH] Add a left content area to song select. --- osu.Game/Screens/Select/SongSelect.cs | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/osu.Game/Screens/Select/SongSelect.cs b/osu.Game/Screens/Select/SongSelect.cs index ca8b353c57..ccc27e47b5 100644 --- a/osu.Game/Screens/Select/SongSelect.cs +++ b/osu.Game/Screens/Select/SongSelect.cs @@ -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, });