mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 18:42:56 +08:00
Adjust PlaySongSelect to match UI standards
This commit is contained in:
parent
674f624bfc
commit
22fdb3e49a
@ -33,6 +33,25 @@ namespace osu.Game.GameModes.Play
|
||||
foreach (var beatmapSet in sets)
|
||||
setList.Add(createSetUI(beatmapSet));
|
||||
}
|
||||
|
||||
public PlaySongSelect()
|
||||
{
|
||||
Children = new[]
|
||||
{
|
||||
new ScrollContainer
|
||||
{
|
||||
OriginPosition = new OpenTK.Vector2(0, -(Game as OsuGame).Toolbar.Height),
|
||||
Children = new[]
|
||||
{
|
||||
setList = new FlowContainer
|
||||
{
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
Padding = new OpenTK.Vector2(25, 25)
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public override void Load(BaseGame game)
|
||||
{
|
||||
@ -43,19 +62,6 @@ namespace osu.Game.GameModes.Play
|
||||
playMode = osu.PlayMode;
|
||||
playMode.ValueChanged += PlayMode_ValueChanged;
|
||||
|
||||
Add(new ScrollContainer
|
||||
{
|
||||
OriginPosition = new OpenTK.Vector2(0, -osu.Toolbar.Height),
|
||||
Children = new[]
|
||||
{
|
||||
setList = new FlowContainer
|
||||
{
|
||||
Direction = FlowDirection.VerticalOnly,
|
||||
Padding = new OpenTK.Vector2(25, 25)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
addBeatmapSets();
|
||||
|
||||
(Game as OsuGame).Beatmaps.BeatmapSetAdded += bset => setList.Add(createSetUI(bset));
|
||||
|
Loading…
Reference in New Issue
Block a user