mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 06:45:37 +08:00
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
|
// 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.
|
|||
|
|
|||
|
using osu.Framework.Graphics.Containers;
|
|||
|
using osu.Game.Overlays;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using osu.Framework.Graphics;
|
|||
|
using osuTK;
|
|||
|
|
|||
|
namespace osu.Game.Tests.Visual.UserInterface
|
|||
|
{
|
|||
|
public class TestSceneOverlayHeaderBackground : OsuTestScene
|
|||
|
{
|
|||
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|||
|
{
|
|||
|
typeof(OverlayHeaderBackground)
|
|||
|
};
|
|||
|
|
|||
|
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"),
|
|||
|
}
|
|||
|
}
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|