mirror of
https://github.com/ppy/osu
synced 2024-12-13 10:28:17 +00:00
Adjust layout to be two columns (and more friendly to vertical screens)
This commit is contained in:
parent
c74bfd5c88
commit
4a1bea4874
@ -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)
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user