Exemple #1
0
        public TestSceneCatchDistanceSnapGrid()
        {
            Child = new Container
            {
                Anchor           = Anchor.Centre,
                Origin           = Anchor.Centre,
                RelativeSizeAxes = Axes.Y,
                Width            = 500,

                Children = new Drawable[]
                {
                    new ScrollingTestContainer(ScrollingDirection.Down)
                    {
                        RelativeSizeAxes = Axes.Both,
                        Child            = playfield = new CatchPlayfield(new BeatmapDifficulty())
                        {
                            RelativeSizeAxes = Axes.Both,
                            Clock            = new FramedClock(manualClock)
                        }
                    },
                    distanceGrid = new CatchDistanceSnapGrid(new double[] { 0, -1, 1 }),
                    fruitOutline = new FruitOutline()
                },
            };
        }
Exemple #2
0
 public CatchFlashlight(CatchModFlashlight modFlashlight, CatchPlayfield playfield)
     : base(modFlashlight)
 {
     this.playfield = playfield;
     FlashlightSize = new Vector2(0, GetSizeFor(0));
 }
Exemple #3
0
 public override void ApplyToDrawableRuleset(DrawableRuleset <CatchHitObject> drawableRuleset)
 {
     playfield = (CatchPlayfield)drawableRuleset.Playfield;
     base.ApplyToDrawableRuleset(drawableRuleset);
 }
 public MouseInputHelper(CatchPlayfield playfield)
 {
     catcher          = playfield.CatcherArea.MovableCatcher;
     RelativeSizeAxes = Axes.Both;
 }
 public CatchFlashlight(CatchPlayfield playfield)
 {
     this.playfield = playfield;
     FlashlightSize = new Vector2(0, getSizeFor(0));
 }
Exemple #6
0
 public override void ApplyToRulesetContainer(RulesetContainer <CatchHitObject> rulesetContainer)
 {
     playfield = (CatchPlayfield)rulesetContainer.Playfield;
     base.ApplyToRulesetContainer(rulesetContainer);
 }