mirror of
https://github.com/ppy/osu.git
synced 2024-09-29 22:07:29 +08:00
36 lines
1022 B
C#
36 lines
1022 B
C#
|
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.Screens.MapPool
|
||
|
{
|
||
|
public class MapPoolScreen : OsuScreen
|
||
|
{
|
||
|
public MapPoolScreen(TournamentGrouping round)
|
||
|
{
|
||
|
FillFlowContainer maps;
|
||
|
|
||
|
InternalChildren = new Drawable[]
|
||
|
{
|
||
|
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)
|
||
|
{
|
||
|
Anchor = Anchor.TopCentre,
|
||
|
Origin = Anchor.TopCentre,
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|