Exemple #1
0
        /// <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)
            };
        }
Exemple #2
0
 public ExitJoint(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent)
 {
     renderer = new ExitJointRenderer(this, editorGraphics.ColorPalette);
 }
Exemple #3
0
 public AddStepButton(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent)
 {
     renderer = new AddStepButtonRenderer(this, editorGraphics.ColorPalette);
 }
Exemple #4
0
 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);
 }