mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 06:07:23 +08:00
Tweak layout of beatmap groups
This commit is contained in:
parent
3d53af155f
commit
e13374ed23
@ -59,6 +59,15 @@ namespace osu.Game.GameModes.Play
|
||||
{
|
||||
BeatmapSet = beatmapSet;
|
||||
Alpha = collapsedAlpha;
|
||||
Children = new[]
|
||||
{
|
||||
topContainer = new FlowContainer
|
||||
{
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
Children = new[]
|
||||
{
|
||||
new AutoSizeContainer
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
@ -67,16 +76,17 @@ namespace osu.Game.GameModes.Play
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Size = new Vector2(1),
|
||||
},
|
||||
topContainer = new FlowContainer
|
||||
{
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
Children = new[] { new SpriteText { Text = this.BeatmapSet.Metadata.Title, TextSize = 25 } }
|
||||
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…
x
Reference in New Issue
Block a user