2020-01-27 20:42:46 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2020-01-27 20:42:46 +08:00
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Game.Overlays;
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual.UserInterface
|
|
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
|
public partial class TestSceneOverlayHeaderBackground : OsuTestScene
|
2020-01-27 20:42:46 +08:00
|
|
|
|
{
|
|
|
|
|
public TestSceneOverlayHeaderBackground()
|
|
|
|
|
{
|
|
|
|
|
Add(new BasicScrollContainer
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
|
Child = new FillFlowContainer
|
|
|
|
|
{
|
|
|
|
|
AutoSizeAxes = Axes.Y,
|
|
|
|
|
RelativeSizeAxes = Axes.X,
|
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
|
Spacing = new Vector2(0, 20),
|
|
|
|
|
Children = new[]
|
|
|
|
|
{
|
|
|
|
|
new OverlayHeaderBackground(@"Headers/changelog"),
|
|
|
|
|
new OverlayHeaderBackground(@"Headers/news"),
|
|
|
|
|
new OverlayHeaderBackground(@"Headers/rankings"),
|
|
|
|
|
new OverlayHeaderBackground(@"Headers/search"),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|