1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 15:47:26 +08:00

Adjust layout to be two columns (and more friendly to vertical screens)

This commit is contained in:
Dean Herbert 2020-07-07 18:28:43 +09:00
parent c74bfd5c88
commit 4a1bea4874
2 changed files with 32 additions and 10 deletions

View File

@ -86,7 +86,10 @@ namespace osu.Game.Screens.Multi.Components
Text = title,
Font = OsuFont.GetFont(size: 14, weight: FontWeight.SemiBold)
},
details = new OsuSpriteText { Font = OsuFont.GetFont(size: 14, weight: FontWeight.SemiBold) },
details = new OsuSpriteText
{
Font = OsuFont.GetFont(size: 14, weight: FontWeight.SemiBold)
},
}
},
},

View File

@ -115,6 +115,7 @@ namespace osu.Game.Screens.Multi.Match
{
new Drawable[]
{
null,
new Container
{
RelativeSizeAxes = Axes.Both,
@ -151,19 +152,37 @@ namespace osu.Game.Screens.Multi.Match
}
}
},
new Container
null,
new GridContainer
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Horizontal = 5 },
Child = leaderboard = new OverlinedLeaderboard { RelativeSizeAxes = Axes.Both },
Content = new[]
{
new Drawable[]
{
leaderboard = new OverlinedLeaderboard { RelativeSizeAxes = Axes.Both },
},
new Drawable[]
{
new OverlinedChatDisplay { RelativeSizeAxes = Axes.Both }
}
},
RowDimensions = new[]
{
new Dimension(),
new Dimension(GridSizeMode.Relative, size: 0.4f, minSize: 300),
}
},
new Container
{
RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Left = 5 },
Child = new OverlinedChatDisplay { RelativeSizeAxes = Axes.Both }
}
null
},
},
ColumnDimensions = new[]
{
new Dimension(),
new Dimension(GridSizeMode.Relative, size: 0.5f, maxSize: 400),
new Dimension(),
new Dimension(GridSizeMode.Relative, size: 0.5f, maxSize: 600),
new Dimension(),
}
}
}