Example #1
0
 protected virtual TestDrawableBeat CreateDrawableBeat(TauBeatObject beat, bool auto) => new TestDrawableBeat(beat, auto)
 {
     Anchor          = Anchor.Centre,
     Origin          = Anchor.Centre,
     Depth           = depthIndex++,
     CheckValidation = b => true
 };
Example #2
0
        private void testSingle(bool auto = false)
        {
            var beatObject = new TauBeatObject
            {
                StartTime     = Time.Current + 1000,
                PositionToEnd = new Vector2(0, 0),
                Angle         = 0,
            };

            beatObject.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty {
            });

            var drawable = CreateDrawableBeat(beatObject, auto);

            Add(drawable);
        }
Example #3
0
        public DrawabletauBeatObject(TauBeatObject hitObject)
            : base(hitObject)
        {
            Anchor = Anchor.Centre;
            Origin = Anchor.Centre;
            RelativePositionAxes = Axes.Both;

            AddInternal(Box = new Box
            {
                EdgeSmoothness   = new Vector2(1f),
                RelativeSizeAxes = Axes.Both,
                Origin           = Anchor.Centre,
                Anchor           = Anchor.Centre,
                Alpha            = 0.05f
            });

            Box.Rotation = hitObject.Angle;

            Position = Vector2.Zero;
        }
Example #4
0
 public TestDrawableBeat(TauBeatObject h, bool auto)
     : base(h)
 {
     this.auto = auto;
 }