From ec0baaaba9effd6d23278289c393dce89cc2b22f Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Fri, 11 Jul 2025 20:09:45 +0900 Subject: [PATCH] Adjust song select sizing in response to user feedback Special casing for very wide, old-ish (initial ssv2 preview) sizing for others. --- osu.Game/Screens/SelectV2/SongSelect.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/osu.Game/Screens/SelectV2/SongSelect.cs b/osu.Game/Screens/SelectV2/SongSelect.cs index 1e16fa335a..435f4df32e 100644 --- a/osu.Game/Screens/SelectV2/SongSelect.cs +++ b/osu.Game/Screens/SelectV2/SongSelect.cs @@ -163,7 +163,7 @@ namespace osu.Game.Screens.SelectV2 Width = 0.6f, Colour = ColourInfo.GradientHorizontal(Color4.Black.Opacity(0.3f), Color4.Black.Opacity(0f)), }, - new GridContainer // used for max width implementation + mainGridContainer = new GridContainer // used for max width implementation { RelativeSizeAxes = Axes.Both, ColumnDimensions = new[] @@ -359,6 +359,15 @@ namespace osu.Game.Screens.SelectV2 base.Update(); detailsArea.Height = wedgesContainer.DrawHeight - titleWedge.LayoutSize.Y - 4; + + float widescreenBonusWidth = Math.Max(0, DrawWidth / DrawHeight - 2); + + mainGridContainer.ColumnDimensions = new[] + { + new Dimension(GridSizeMode.Relative, 0.5f, maxSize: 700 + widescreenBonusWidth * 100), + new Dimension(), + new Dimension(GridSizeMode.Relative, 0.5f, minSize: 500, maxSize: 600 + widescreenBonusWidth * 300), + }; } #region Audio @@ -805,6 +814,8 @@ namespace osu.Game.Screens.SelectV2 private ScheduledDelegate? revealingBackground; + private GridContainer mainGridContainer = null!; + protected override bool OnMouseDown(MouseDownEvent e) { var containingInputManager = GetContainingInputManager();