1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 22:22:59 +08:00

Add style selection to playlists screen

This commit is contained in:
Dan Balasescu 2024-12-24 19:28:09 +09:00
parent 971ccb6a4e
commit ac738f109a
No known key found for this signature in database

View File

@ -171,39 +171,63 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
{ {
new[] new[]
{ {
UserModsSection = new FillFlowContainer new Container
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Alpha = 0,
Margin = new MarginPadding { Bottom = 10 }, Margin = new MarginPadding { Bottom = 10 },
Children = new Drawable[] Children = new[]
{ {
new OverlinedHeader("Extra mods"), UserModsSection = new FillFlowContainer
new FillFlowContainer
{ {
AutoSizeAxes = Axes.Both, RelativeSizeAxes = Axes.X,
Direction = FillDirection.Horizontal, AutoSizeAxes = Axes.Y,
Spacing = new Vector2(10, 0), Alpha = 0,
Margin = new MarginPadding { Bottom = 10 },
Children = new Drawable[] Children = new Drawable[]
{ {
new UserModSelectButton new OverlinedHeader("Extra mods"),
new FillFlowContainer
{ {
Anchor = Anchor.CentreLeft, AutoSizeAxes = Axes.Both,
Origin = Anchor.CentreLeft, Direction = FillDirection.Horizontal,
Width = 90, Spacing = new Vector2(10, 0),
Text = "Select", Children = new Drawable[]
Action = ShowUserModSelect, {
}, new UserModSelectButton
new ModDisplay {
{ Anchor = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft, Origin = Anchor.CentreLeft,
Origin = Anchor.CentreLeft, Width = 90,
Current = UserMods, Text = "Select",
Scale = new Vector2(0.8f), Action = ShowUserModSelect,
}, },
new ModDisplay
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
Current = UserMods,
Scale = new Vector2(0.8f),
},
}
}
} }
} },
UserDifficultySection = new FillFlowContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Alpha = 0,
Children = new Drawable[]
{
new OverlinedHeader("Difficulty"),
UserStyleDisplayContainer = new Container<DrawableRoomPlaylistItem>
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y
}
}
},
} }
}, },
}, },