mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using osu.Framework.Allocation;
|
|
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.Overlays.News;
|
|
|
|
namespace osu.Game.Overlays
|
|
{
|
|
public class NewsOverlay : FullscreenOverlay
|
|
{
|
|
private NewsHeader header;
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuColour colours)
|
|
{
|
|
Children = new Drawable[]
|
|
{
|
|
new Box
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Colour = colours.PurpleDarkAlternative
|
|
},
|
|
new OsuScrollContainer
|
|
{
|
|
RelativeSizeAxes = Axes.Both,
|
|
Child = new FillFlowContainer
|
|
{
|
|
RelativeSizeAxes = Axes.X,
|
|
AutoSizeAxes = Axes.Y,
|
|
Direction = FillDirection.Vertical,
|
|
Children = new Drawable[]
|
|
{
|
|
header = new NewsHeader()
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|