mirror of
https://github.com/ppy/osu
synced 2024-12-16 11:56:31 +00:00
Fix width of beatmaps
This commit is contained in:
parent
07e44560be
commit
05d803483f
@ -28,6 +28,8 @@ namespace osu.Game.GameModes.Play
|
||||
{
|
||||
this.beatmapSet = set;
|
||||
this.beatmap = beatmap;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
Size = new Vector2(1, 0);
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
|
@ -55,16 +55,22 @@ namespace osu.Game.GameModes.Play
|
||||
{
|
||||
BeatmapSet = beatmapSet;
|
||||
Alpha = collapsedAlpha;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
Size = new Vector2(1, 0);
|
||||
Children = new[]
|
||||
{
|
||||
topContainer = new FlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Size = new Vector2(1, 0),
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
Children = new[] { new BeatmapSetBox(beatmapSet) }
|
||||
}
|
||||
};
|
||||
difficulties = new FlowContainer // Deliberately not added to children
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Size = new Vector2(1, 0),
|
||||
Margin = new MarginPadding { Top = 5 },
|
||||
Padding = new MarginPadding { Left = 25 },
|
||||
Spacing = new Vector2(0, 5),
|
||||
@ -88,6 +94,8 @@ namespace osu.Game.GameModes.Play
|
||||
public BeatmapSetBox(BeatmapSet beatmapSet)
|
||||
{
|
||||
this.beatmapSet = beatmapSet;
|
||||
RelativeSizeAxes = Axes.X;
|
||||
Size = new Vector2(1, 0);
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new Box
|
||||
|
@ -81,12 +81,13 @@ namespace osu.Game.GameModes.Play
|
||||
RelativePositionAxes = Axes.Both,
|
||||
Size = new Vector2(0.5f, 1),
|
||||
Position = new Vector2(0.5f, 0),
|
||||
Children = new[]
|
||||
Children = new Drawable[]
|
||||
{
|
||||
setList = new FlowContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Size = new Vector2(1, 0),
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
Padding = new MarginPadding(25),
|
||||
Spacing = new Vector2(0, 25),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user