public DrawableFlyingHit(DrawableDrumRollTick drumRollTick)
     : base(new IgnoreHit
 {
     StartTime = drumRollTick.HitObject.StartTime + drumRollTick.Result.TimeOffset,
     IsStrong  = drumRollTick.HitObject.IsStrong,
     Type      = drumRollTick.JudgementType
 })
 {
     HitObject.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty());
 }
Example #2
0
        public DrawableDrumRoll(DrumRoll drumRoll)
            : base(drumRoll)
        {
            foreach (var tick in drumRoll.Ticks)
            {
                var newTick = new DrawableDrumRollTick(tick)
                {
                    X = (float)((tick.StartTime - HitObject.StartTime) / HitObject.Duration)
                };

                newTick.OnJudgement += onTickJudgement;

                AddNested(newTick);
                MainPiece.Add(newTick);
            }
        }
Example #3
0
        public DrawableDrumRoll(DrumRoll drumRoll)
            : base(drumRoll)
        {
            RelativeSizeAxes = Axes.Y;

            Container <DrawableDrumRollTick> tickContainer;

            MainPiece.Add(tickContainer = new Container <DrawableDrumRollTick> {
                RelativeSizeAxes = Axes.Both
            });

            foreach (var tick in drumRoll.NestedHitObjects.OfType <DrumRollTick>())
            {
                var newTick = new DrawableDrumRollTick(tick);
                newTick.OnNewResult += onNewTickResult;

                AddNested(newTick);
                tickContainer.Add(newTick);
            }
        }
Example #4
0
        public DrawableDrumRoll(DrumRoll drumRoll)
            : base(drumRoll)
        {
            Width = (float)HitObject.Duration;

            Container <DrawableDrumRollTick> tickContainer;

            MainPiece.Add(tickContainer = new Container <DrawableDrumRollTick>
            {
                RelativeSizeAxes    = Axes.Both,
                RelativeChildOffset = new Vector2((float)HitObject.StartTime, 0),
                RelativeChildSize   = new Vector2((float)HitObject.Duration, 1)
            });

            foreach (var tick in drumRoll.NestedHitObjects.OfType <DrumRollTick>())
            {
                var newTick = new DrawableDrumRollTick(tick);
                newTick.OnJudgement += onTickJudgement;

                AddNested(newTick);
                tickContainer.Add(newTick);
            }
        }
Example #5
0
 public StrongNestedHit(StrongHitObject strong, DrawableDrumRollTick tick)
     : base(strong, tick)
 {
 }
Example #6
0
 public StrongNestedHit(DrumRollTick.StrongNestedHit nestedHit, DrawableDrumRollTick tick)
     : base(nestedHit, tick)
 {
 }