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:
parent
e18d736e4a
commit
da41f4cd3f
@ -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 };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user