/// <inheritdoc /> public StepNode(EditorGraphics graphics, IStep step) : base(graphics, true) { Step = step; renderer = new StepNodeRenderer(this, graphics.ColorPalette); EntryJoints.Add(new EntryJoint(graphics, this) { RelativePosition = new Vector2(-size.x / 2f, 0f) }); CreateTransitionButton = new CreateTransitionButton(graphics, this) { RelativePosition = new Vector2(size.x / 2f, 0) }; }
public ExitJoint(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent) { renderer = new ExitJointRenderer(this, editorGraphics.ColorPalette); }
public AddStepButton(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent) { renderer = new AddStepButtonRenderer(this, editorGraphics.ColorPalette); }
public EntryNode(EditorGraphics owner) : base(owner, true) { renderer = new EntryNodeRenderer(this, owner.ColorPalette); }
public CreateTransitionButton(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent) { renderer = new CreateTransitionButtonRenderer(this, editorGraphics.ColorPalette); }