mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Adjust PlaySongSelect to match UI standards
This commit is contained in:
@ -33,6 +33,25 @@ namespace osu.Game.GameModes.Play
|
|||||||
foreach (var beatmapSet in sets)
|
foreach (var beatmapSet in sets)
|
||||||
setList.Add(createSetUI(beatmapSet));
|
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)
|
public override void Load(BaseGame game)
|
||||||
{
|
{
|
||||||
@ -43,19 +62,6 @@ namespace osu.Game.GameModes.Play
|
|||||||
playMode = osu.PlayMode;
|
playMode = osu.PlayMode;
|
||||||
playMode.ValueChanged += PlayMode_ValueChanged;
|
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();
|
addBeatmapSets();
|
||||||
|
|
||||||
(Game as OsuGame).Beatmaps.BeatmapSetAdded += bset => setList.Add(createSetUI(bset));
|
(Game as OsuGame).Beatmaps.BeatmapSetAdded += bset => setList.Add(createSetUI(bset));
|
||||||
|
Reference in New Issue
Block a user