コード例 #1
0
ファイル: StepNode.cs プロジェクト: vued/Creator
        /// <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)
            };
        }
コード例 #2
0
ファイル: ExitJoint.cs プロジェクト: vued/Creator
 public ExitJoint(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent)
 {
     renderer = new ExitJointRenderer(this, editorGraphics.ColorPalette);
 }
コード例 #3
0
ファイル: AddStepButton.cs プロジェクト: vued/Creator
 public AddStepButton(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent)
 {
     renderer = new AddStepButtonRenderer(this, editorGraphics.ColorPalette);
 }
コード例 #4
0
ファイル: EntryNode.cs プロジェクト: vued/Creator
 public EntryNode(EditorGraphics owner) : base(owner, true)
 {
     renderer = new EntryNodeRenderer(this, owner.ColorPalette);
 }
コード例 #5
0
 public CreateTransitionButton(EditorGraphics editorGraphics, GraphicalElement parent = null) : base(editorGraphics, true, parent)
 {
     renderer = new CreateTransitionButtonRenderer(this, editorGraphics.ColorPalette);
 }