public TestSceneMouseStates() { Child = new Container { FillMode = FillMode.Fit, FillAspectRatio = 1, RelativeSizeAxes = Axes.Both, Size = new Vector2(0.75f), Anchor = Anchor.Centre, Origin = Anchor.Centre, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Color4(1, 1, 1, 0.2f), }, s1 = new StateTracker(1), new Container { RelativeSizeAxes = Axes.Both, Children = new Drawable[] { outerMarginBox = new Box { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Size = new Vector2(0.9f), Colour = Color4.SkyBlue.Opacity(0.1f), }, actionContainer = new Container { RelativeSizeAxes = Axes.Both, Size = new Vector2(0.6f), Anchor = Anchor.Centre, Origin = Anchor.Centre, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Color4(1, 1, 1, 0.2f), }, marginBox = new Box { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Size = new Vector2(0.8f), Colour = Color4.SkyBlue.Opacity(0.1f), }, s2 = new DraggableStateTracker(2), } } } } } }; }
public TestCaseMouseStates() { Children = new Drawable[] { new StateTracker(0), manual = new ManualInputManager { FillMode = FillMode.Fit, FillAspectRatio = 1, RelativeSizeAxes = Axes.Both, Size = new Vector2(0.75f), Anchor = Anchor.Centre, Origin = Anchor.Centre, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Color4(1, 1, 1, 0.2f), }, s1 = new StateTracker(1), new Container { RelativeSizeAxes = Axes.Both, Children = new Drawable[] { outerMarginBox = new Box { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Size = new Vector2(0.9f), Colour = Color4.SkyBlue.Opacity(0.1f), }, actionContainer = new FrameworkActionContainer { RelativeSizeAxes = Axes.Both, Size = new Vector2(0.6f), Anchor = Anchor.Centre, Origin = Anchor.Centre, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Color4(1, 1, 1, 0.2f), }, marginBox = new Box { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Size = new Vector2(0.8f), Colour = Color4.SkyBlue.Opacity(0.1f), }, s2 = new DraggableStateTracker(2), } } } }, } } }; AddStep("return input", () => manual.UseParentInput = true); }