Tweak layout of beatmap groups

This commit is contained in:
Drew DeVault 2016-10-13 17:27:08 -04:00
parent 3d53af155f
commit e13374ed23
2 changed files with 20 additions and 9 deletions

View File

@ -59,24 +59,34 @@ namespace osu.Game.GameModes.Play
{
BeatmapSet = beatmapSet;
Alpha = collapsedAlpha;
Children = new Drawable[]
Children = new[]
{
new Box
{
Colour = new Color4(0, 0, 0, 0.75f),
RelativeSizeAxes = Axes.Both,
Size = new Vector2(1),
},
topContainer = new FlowContainer
{
Direction = FlowDirection.VerticalOnly,
Children = new[] { new SpriteText { Text = this.BeatmapSet.Metadata.Title, TextSize = 25 } }
Children = new[]
{
new AutoSizeContainer
{
Children = new Drawable[]
{
new Box
{
Colour = new Color4(0, 0, 0, 0.75f),
RelativeSizeAxes = Axes.Both,
Size = new Vector2(1),
},
new SpriteText { Text = this.BeatmapSet.Metadata.Title, TextSize = 25 }
}
}
}
}
};
difficulties = new FlowContainer // Deliberately not added to children
{
Spacing = new Vector2(0, 10),
Margin = new MarginPadding { Top = 10 },
Padding = new MarginPadding { Left = 50 },
Spacing = new Vector2(0, 10),
Direction = FlowDirection.VerticalOnly,
Children = this.BeatmapSet.Beatmaps.Select(b => new BeatmapButton(this.BeatmapSet, b))
};

View File

@ -83,6 +83,7 @@ namespace osu.Game.GameModes.Play
{
Direction = FlowDirection.VerticalOnly,
Padding = new MarginPadding(25),
Spacing = new Vector2(0, 25),
}
}
}