public NodeImageItem(Image image, int width, int height, NodeIOMode mode = NodeIOMode.None) : base(mode) { this.Width = width; this.Height = height; this.Image = image; }
public NodeSliderItem(string text, float sliderSize, float textSize, float minValue, float maxValue, float defaultValue, NodeIOMode mode = NodeIOMode.None) : base(mode) { this.Text = text; this.MinimumSliderSize = sliderSize; this.TextSize = textSize; this.MinValue = Math.Min(minValue, maxValue); this.MaxValue = Math.Max(minValue, maxValue); this.Value = defaultValue; }
public NodeItem(NodeIOMode mode) { switch(mode) { case NodeIOMode.None: this.Input = new NodeInputConnector(this, false); this.Output = new NodeOutputConnector(this, false); break; case NodeIOMode.Input: this.Input = new NodeInputConnector(this, true); this.Output = new NodeOutputConnector(this, false); break; case NodeIOMode.Output: this.Input = new NodeInputConnector(this, false); this.Output = new NodeOutputConnector(this, true); break; case NodeIOMode.InOut: this.Input = new NodeInputConnector(this, true); this.Output = new NodeOutputConnector(this, true); break; } }
public NodeTextBoxItem(string text, NodeIOMode mode) : base(mode) { this.Text = text; }
public NodeDropDownItem(string[] items, int selectedIndex, NodeIOMode mode) : base(mode) { this.Items = items.ToArray(); this.SelectedIndex = selectedIndex; }
public NodeImageItem(Image image, NodeIOMode mode = NodeIOMode.None) : base(mode) { this.Image = image; }
public NodeColorItem(string text, Color color, NodeIOMode mode) : base(mode) { this.Text = text; this.Color = color; }
public NodeCompositeItem(NodeIOMode mode) : base(mode) { PartSize = new SizeF(GraphConstants.MinimumItemWidth, GraphConstants.MinimumItemHeight); itemParts = new List<ItemPart>(); }
public NodeLabelItem(string text, NodeIOMode mode) : base(mode) { this.Text = text; }
public NodeConversationItem(string text, NodeIOMode mode) : base(mode) { this.Text = text; }