mirror of
https://github.com/ppy/osu
synced 2025-01-19 20:40:52 +00:00
Tweak layout of beatmap groups
This commit is contained in:
parent
3d53af155f
commit
e13374ed23
@ -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))
|
||||
};
|
||||
|
@ -83,6 +83,7 @@ namespace osu.Game.GameModes.Play
|
||||
{
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
Padding = new MarginPadding(25),
|
||||
Spacing = new Vector2(0, 25),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user