Make map pool layout more correct

This commit is contained in:
Dean Herbert 2018-10-16 15:25:56 +09:00
parent 3a5af47ee8
commit f324072d44

View File

@ -5,8 +5,10 @@ using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Screens;
using osu.Game.Tournament.Components;
using osu.Game.Tournament.Screens.Ladder.Components;
using OpenTK;
namespace osu.Game.Tournament.Tests
{
@ -21,7 +23,7 @@ namespace osu.Game.Tournament.Tests
}
}
public class MapPoolScreen : CompositeDrawable
public class MapPoolScreen : OsuScreen
{
public MapPoolScreen(TournamentGrouping round)
{
@ -31,13 +33,19 @@ namespace osu.Game.Tournament.Tests
{
maps = new FillFlowContainer
{
Spacing = new Vector2(20),
Padding = new MarginPadding(50),
Direction = FillDirection.Full,
RelativeSizeAxes = Axes.Both,
},
};
foreach (var b in round.Beatmaps)
maps.Add(new TournamentBeatmapPanel(b.BeatmapInfo));
maps.Add(new TournamentBeatmapPanel(b.BeatmapInfo)
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
});
}
}
}