mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 05:52:55 +08:00
Merge pull request #7930 from EVAST9919/changelog-comments
Add CommentsContainer to ChangelogOverlay
This commit is contained in:
commit
66bd888227
@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
Direction = FillDirection.Vertical;
|
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;
|
||||||
using osu.Game.Online.API.Requests;
|
using osu.Game.Online.API.Requests;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
|
using osu.Game.Overlays.Comments;
|
||||||
using osuTK;
|
using osuTK;
|
||||||
|
|
||||||
namespace osu.Game.Overlays.Changelog
|
namespace osu.Game.Overlays.Changelog
|
||||||
@ -57,11 +58,18 @@ namespace osu.Game.Overlays.Changelog
|
|||||||
|
|
||||||
if (build != null)
|
if (build != null)
|
||||||
{
|
{
|
||||||
|
CommentsContainer comments;
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new ChangelogBuildWithNavigation(build) { SelectBuild = SelectBuild },
|
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