コード例 #1
0
        public TestSceneCommentsContainer()
        {
            BasicScrollContainer  scroll;
            TestCommentsContainer comments;

            Add(scroll = new BasicScrollContainer
            {
                RelativeSizeAxes = Axes.Both,
                Child            = comments = new TestCommentsContainer()
            });

            AddStep("Big Black comments", () => comments.ShowComments(CommentableType.Beatmapset, 41823));
            AddStep("Airman comments", () => comments.ShowComments(CommentableType.Beatmapset, 24313));
            AddStep("Lazer build comments", () => comments.ShowComments(CommentableType.Build, 4772));
            AddStep("News comments", () => comments.ShowComments(CommentableType.NewsPost, 715));
            AddStep("Trigger user change", comments.User.TriggerChange);
            AddStep("Idle state", () =>
            {
                scroll.Clear();
                scroll.Add(comments = new TestCommentsContainer());
            });
        }