private void checkHyperDashCatcherColour(ISkin skin, Color4 expectedCatcherColour, Color4?expectedEndGlowColour = null) { CatcherArea catcherArea = null; CatcherTrailDisplay trails = null; AddStep("create hyper-dashing catcher", () => { Child = setupSkinHierarchy(catcherArea = new TestCatcherArea { Anchor = Anchor.Centre, Origin = Anchor.Centre }, skin); }); AddStep("get trails container", () => { trails = catcherArea.OfType <CatcherTrailDisplay>().Single(); catcherArea.MovableCatcher.SetHyperDashState(2); }); AddUntilStep("catcher colour is correct", () => catcherArea.MovableCatcher.Colour == expectedCatcherColour); AddAssert("catcher trails colours are correct", () => trails.HyperDashTrailsColour == expectedCatcherColour); AddAssert("catcher end-glow colours are correct", () => trails.EndGlowSpritesColour == (expectedEndGlowColour ?? expectedCatcherColour)); AddStep("finish hyper-dashing", () => { catcherArea.MovableCatcher.SetHyperDashState(); catcherArea.MovableCatcher.FinishTransforms(); }); AddAssert("catcher colour returned to white", () => catcherArea.MovableCatcher.Colour == Color4.White); }
private void createCatcher(float size) { Child = new CatchInputManager(catchRuleset) { RelativeSizeAxes = Axes.Both, Child = catcherArea = new TestCatcherArea(new BeatmapDifficulty { CircleSize = size }) { Anchor = Anchor.CentreLeft, Origin = Anchor.TopLeft }, }; }