1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Add CommentsContainer to ChangelogOverlay

This commit is contained in:
Andrei Zavatski 2020-02-21 08:02:40 +03:00
parent e18d736e4a
commit da41f4cd3f
2 changed files with 10 additions and 2 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Changelog
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Direction = FillDirection.Vertical;
Padding = new MarginPadding { Bottom = 100 };
Padding = new MarginPadding { Bottom = 50 };
}
}
}

View File

@ -16,6 +16,7 @@ using osu.Game.Graphics.UserInterface;
using osu.Game.Online.API;
using osu.Game.Online.API.Requests;
using osu.Game.Online.API.Requests.Responses;
using osu.Game.Overlays.Comments;
using osuTK;
namespace osu.Game.Overlays.Changelog
@ -57,11 +58,18 @@ namespace osu.Game.Overlays.Changelog
if (build != null)
{
CommentsContainer comments;
Children = new Drawable[]
{
new ChangelogBuildWithNavigation(build) { SelectBuild = SelectBuild },
new Comments(build)
comments = new CommentsContainer
{
Margin = new MarginPadding { Top = 10 }
}
};
comments.ShowComments(CommentableType.Build, build.Id);
}
}