2019-05-13 17:14:52 +09: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-19 19:07:24 +02:00
|
|
|
|
|
2022-06-17 16:37:17 +09:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2018-07-19 19:07:24 +02:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2018-07-20 13:51:31 +02:00
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
2018-07-20 22:11:51 +02:00
|
|
|
|
using System;
|
2018-07-19 19:07:24 +02:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Changelog
|
|
|
|
|
{
|
2018-07-22 05:28:43 +02:00
|
|
|
|
public class ChangelogContent : FillFlowContainer
|
2018-07-19 19:07:24 +02:00
|
|
|
|
{
|
2019-05-17 17:47:28 +09:00
|
|
|
|
public Action<APIChangelogBuild> BuildSelected;
|
2018-07-22 20:14:28 +02:00
|
|
|
|
|
2019-05-17 17:15:51 +09:00
|
|
|
|
public void SelectBuild(APIChangelogBuild build) => BuildSelected?.Invoke(build);
|
|
|
|
|
|
2018-07-19 19:07:24 +02:00
|
|
|
|
public ChangelogContent()
|
|
|
|
|
{
|
|
|
|
|
RelativeSizeAxes = Axes.X;
|
2018-07-19 21:49:13 +02:00
|
|
|
|
AutoSizeAxes = Axes.Y;
|
2018-07-19 19:07:24 +02:00
|
|
|
|
Direction = FillDirection.Vertical;
|
2018-07-22 05:28:43 +02:00
|
|
|
|
}
|
2018-07-19 19:07:24 +02:00
|
|
|
|
}
|
|
|
|
|
}
|