1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 17:57:38 +08:00
osu-lazer/osu.Game/Overlays/Changelog/ChangelogContent.cs

36 lines
1.0 KiB
C#
Raw Normal View History

2019-05-13 16:14:52 +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.
2018-07-20 01:07:24 +08:00
2022-06-17 15:37:17 +08:00
#nullable disable
2018-07-20 01:07:24 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Online.API.Requests.Responses;
2018-07-21 04:11:51 +08:00
using System;
using osu.Framework.Graphics.Cursor;
2018-07-20 01:07:24 +08:00
namespace osu.Game.Overlays.Changelog
{
public class ChangelogContent : PopoverContainer
2018-07-20 01:07:24 +08:00
{
public Action<APIChangelogBuild> BuildSelected;
2018-07-23 02:14:28 +08:00
public void SelectBuild(APIChangelogBuild build) => BuildSelected?.Invoke(build);
protected override Container<Drawable> Content { get; }
2018-07-20 01:07:24 +08:00
public ChangelogContent()
{
RelativeSizeAxes = Axes.X;
2018-07-20 03:49:13 +08:00
AutoSizeAxes = Axes.Y;
Content = new FillFlowContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Direction = FillDirection.Vertical
};
base.Content.Add(Content);
2018-07-22 11:28:43 +08:00
}
2018-07-20 01:07:24 +08:00
}
}