From c7717da2328dac7146f7d9360e69db00b99152c8 Mon Sep 17 00:00:00 2001 From: Dao Heng Liu Date: Thu, 27 Jul 2023 22:43:05 +0100 Subject: [PATCH] make `SetupScreen` scrollable --- .../Screens/Setup/SetupScreen.cs | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/osu.Game.Tournament/Screens/Setup/SetupScreen.cs b/osu.Game.Tournament/Screens/Setup/SetupScreen.cs index ff1d32516a..5c7bbed69c 100644 --- a/osu.Game.Tournament/Screens/Setup/SetupScreen.cs +++ b/osu.Game.Tournament/Screens/Setup/SetupScreen.cs @@ -11,6 +11,7 @@ using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Game.Graphics; +using osu.Game.Graphics.Containers; using osu.Game.Graphics.UserInterfaceV2; using osu.Game.Online.API; using osu.Game.Overlays; @@ -57,14 +58,18 @@ namespace osu.Game.Tournament.Screens.Setup RelativeSizeAxes = Axes.Both, Colour = OsuColour.Gray(0.2f), }, - fillFlow = new FillFlowContainer + new OsuScrollContainer { - RelativeSizeAxes = Axes.X, - AutoSizeAxes = Axes.Y, - Direction = FillDirection.Vertical, - Padding = new MarginPadding(10), - Spacing = new Vector2(10), - } + RelativeSizeAxes = Axes.Both, + Child = fillFlow = new FillFlowContainer + { + RelativeSizeAxes = Axes.X, + AutoSizeAxes = Axes.Y, + Direction = FillDirection.Vertical, + Padding = new MarginPadding(10), + Spacing = new Vector2(10), + }, + }, }; api.LocalUser.BindValueChanged(_ => Schedule(reload));