Exemple #1
0
        private Drawable testSingle(float circleSize, bool auto = false, double length = 3000)
        {
            const double delay = 2000;

            var spinner = new Spinner
            {
                StartTime = Time.Current + delay,
                EndTime   = Time.Current + delay + length,
                Samples   = new List <HitSampleInfo>
                {
                    new HitSampleInfo("hitnormal")
                }
            };

            spinner.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty {
                CircleSize = circleSize
            });

            drawableSpinner = new TestDrawableSpinner(spinner, auto)
            {
                Anchor = Anchor.Centre,
                Depth  = depthIndex++,
                Scale  = new Vector2(0.75f)
            };

            foreach (var mod in SelectedMods.Value.OfType <IApplicableToDrawableHitObjects>())
            {
                mod.ApplyToDrawableHitObjects(new[] { drawableSpinner });
            }

            return(drawableSpinner);
        }
Exemple #2
0
        private void testSingle(float circleSize, bool auto = false)
        {
            var spinner = new Spinner {
                StartTime = Time.Current + 1000, EndTime = Time.Current + 4000
            };

            spinner.ApplyDefaults(new ControlPointInfo(), new BeatmapDifficulty {
                CircleSize = circleSize
            });

            var drawable = new TestDrawableSpinner(spinner, auto)
            {
                Anchor = Anchor.Centre,
                Depth  = depthIndex++
            };

            foreach (var mod in Mods.OfType <IApplicableToDrawableHitObjects>())
            {
                mod.ApplyToDrawableHitObjects(new[] { drawable });
            }

            Add(drawable);
        }