Make room settings scroll

This commit is contained in:
Dean Herbert
2018-12-26 15:03:35 +09:00
parent ce33c301f6
commit 755c6b9243

View File

@ -61,11 +61,17 @@ namespace osu.Game.Screens.Multi.Match.Components
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = OsuColour.FromHex(@"28242d"), Colour = OsuColour.FromHex(@"28242d"),
}, },
new Container new ScrollContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Top = 35, Bottom = 75, Horizontal = SearchableListOverlay.WIDTH_PADDING },
Children = new[] Children = new[]
{
new Container
{
Padding = new MarginPadding { Top = 35, Bottom = 75, Horizontal = SearchableListOverlay.WIDTH_PADDING },
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Children = new Drawable[]
{ {
new SectionContainer new SectionContainer
{ {
@ -161,6 +167,8 @@ namespace osu.Game.Screens.Multi.Match.Components
}, },
}, },
}, },
}
},
}, },
new Container new Container
{ {
@ -265,7 +273,8 @@ namespace osu.Game.Screens.Multi.Match.Components
{ {
public SectionContainer() public SectionContainer()
{ {
RelativeSizeAxes = Axes.Both; RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Width = 0.5f; Width = 0.5f;
Direction = FillDirection.Vertical; Direction = FillDirection.Vertical;
Spacing = new Vector2(field_padding); Spacing = new Vector2(field_padding);