1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-18 21:52:57 +08:00

Adjust song select sizing in response to user feedback

Special casing for very wide, old-ish (initial ssv2 preview) sizing for
others.
This commit is contained in:
Dean Herbert
2025-07-11 20:09:45 +09:00
Unverified
parent b4502d3d90
commit ec0baaaba9
+12 -1
View File
@@ -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();