Пример #1
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            Child = scrolling = new ScrollingTestContainer(ScrollingDirection.Down)
            {
                Anchor = Anchor.Centre,
                Origin = Anchor.Centre,
                RelativePositionAxes = Axes.Y,
                Y    = -0.25f,
                Size = new Vector2(Column.COLUMN_WIDTH, NotePiece.NOTE_HEIGHT),
            };

            int runcount = 0;

            AddRepeatStep("explode", () =>
            {
                runcount++;

                if (runcount % 15 > 12)
                {
                    return;
                }

                scrolling.AddRange(new Drawable[]
                {
                    new HitExplosion((runcount / 15) % 2 == 0 ? new Color4(94, 0, 57, 255) : new Color4(6, 84, 0, 255), runcount % 6 != 0)
                    {
                        Anchor = Anchor.Centre,
                        Origin = Anchor.Centre,
                    }
                });
            }, 100);
        }
Пример #2
0
 public TestScenePlayfieldCoveringContainer()
 {
     Child = scrollingContainer = new ScrollingTestContainer(ScrollingDirection.Down)
     {
         Anchor = Anchor.Centre,
         Origin = Anchor.Centre,
         Size   = new Vector2(300, 500),
         Child  = cover = new PlayfieldCoveringWrapper(new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = Colour4.Orange
         })
         {
             RelativeSizeAxes = Axes.Both,
         }
     };
 }
Пример #3
0
 public void SetUp() => Schedule(() =>
 {
     Child = new ScrollingTestContainer(ScrollingDirection.Down)
     {
         Anchor           = Anchor.Centre,
         Origin           = Anchor.Centre,
         AutoSizeAxes     = Axes.X,
         RelativeSizeAxes = Axes.Y,
         TimeRange        = 2000,
         Clock            = new FramedClock(clock),
         Child            = column = new Column(0)
         {
             Action       = { Value = ManiaAction.Key1 },
             Height       = 0.85f,
             AccentColour = Color4.Gray
         },
     };
 });