mirror of
https://github.com/ppy/osu
synced 2025-01-04 13:22:08 +00:00
Make map pool layout more correct
This commit is contained in:
parent
3a5af47ee8
commit
f324072d44
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user