public NodeImageItem(Image image, int width, int height, NodeItemType type) : base(type) { this.Width = width; this.Height = height; this.Image = image; }
public NodeItem(NodeItemType Type) { ItemType = Type; if (Type == NodeItemType.Input) { this.Connector = new NodeInputConnector(this, true); } if (Type == NodeItemType.Output) { this.Connector = new NodeOutputConnector(this, true); } }
public NodeCheckboxItem(string text, NodeItemType itemType) : base(itemType) { this.Text = text; }
public NodeDropDownItem(string[] items, int selectedIndex, NodeItemType type) : base(type) { this.Items = items.ToArray(); this.SelectedIndex = selectedIndex; }
/// <summary> /// Construct a new NodeNumericSliderItem. /// </summary> /// <param name="text">The label for the item.</param> /// <param name="sliderSize">The minimum size the slider should have inside the parent node.</param> /// <param name="textSize">The text size.</param> /// <param name="minValue">The lowest possible value for the slider.</param> /// <param name="maxValue">The highest possible value for the slider.</param> /// <param name="defaultValue">The value the slider should start with.</param> /// <param name="inputEnabled">Does the item accept an input to be connected?</param> /// <param name="outputEnabled">Does the item accept an output to be connected?</param> public NodeNumericSliderItem(string text, float sliderSize, float textSize, float minValue, float maxValue, float defaultValue, NodeItemType type) : base(text, sliderSize, textSize, minValue, maxValue, defaultValue, type) { }
public NodeSliderItem(string text, float sliderSize, float textSize, float minValue, float maxValue, float defaultValue, NodeItemType type) : base(type) { 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 NumberValueItem(string text, NodeItemType type) : base(text, 0, 0, 0, 0, 0, type) { }
public NumberValueItem(string text, float sliderSize, float textSize, float minValue, float maxValue, float defaultValue, NodeItemType type) : base(text, sliderSize, textSize, minValue, maxValue, defaultValue, type) { }
public TargetNodeItem(string text, NodeItemType type) : base(type) { Text = text; }
public ExecuteNodeItem(string Name, NodeItemType type) : base(type) { Text = Name; }
public NodeTextBoxItem(string text, NodeItemType type) : base(type) { this.Text = text; }
public NodeColorItem(string text, Color color, NodeItemType type) : base(type) { this.Text = text; this.Color = color; }
public NodeImageItem(Image image, NodeItemType type) : base(type) { this.Image = image; }