public HitBox(HitObject.Direction direction, double duration, Key[] keys) { this.direction = direction; this.Duration = duration; this.Expire = duration * 0.3d; this.Clear = Expire * 0.5; this.keys = keys; }
private ClickBox drawable(Vector2 size, float Y, float X, Anchor anchor = Anchor.TopLeft, Anchor origin = Anchor.Centre, Axes RelativeSizeAxes = Axes.Y, bool Editor = false, float Alpha = 1f, HitObject.Direction direction = HitObject.Direction.Up) => new ClickBox { Anchor = anchor, Origin = origin, RelativeSizeAxes = RelativeSizeAxes, Size = size, Y = Y, X = X, RelativePositionAxes = Axes.Both, Colour = color, Depth = int.MinValue, EdgeSmoothness = new Vector2(2f), ClickAction = action, EditorMode = Editor, Alpha = Alpha, dir = direction, ChangeDir = dir, BoxAction = BoxAction, BoxAction2 = BoxAction2, };
private ClickBox drawableMiddle(Vector2 size, float Y, float X, Anchor anchor, Anchor origin, Axes relativsize, bool Editor = false, bool Editor2 = false, float alpha = 0.5f, HitObject.Direction direction = HitObject.Direction.Up) => new ClickBox { Anchor = anchor, Origin = origin, RelativeSizeAxes = relativsize, Size = size, Y = Y, X = X, RelativePositionAxes = Axes.Both, Colour = color, Depth = int.MinValue, EdgeSmoothness = new Vector2(2f), ClickAction = action, EditorMode = Editor, EditorMode2 = Editor2, Alpha = alpha, dir = direction, ChangeDir = dir, BoxAction = BoxAction, BoxAction2 = BoxAction2, };