1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 02:43:02 +08:00

Merge pull request #7930 from EVAST9919/changelog-comments

Add CommentsContainer to ChangelogOverlay
This commit is contained in:
Dean Herbert 2020-02-21 21:20:35 +09:00 committed by GitHub
commit 66bd888227
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);
}
}