Exemple #1
0
 public NodeImageItem(Image image, int width, int height, NodeItemType type) :
     base(type)
 {
     this.Width  = width;
     this.Height = height;
     this.Image  = image;
 }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 public NodeCheckboxItem(string text, NodeItemType itemType) :
     base(itemType)
 {
     this.Text = text;
 }
Exemple #4
0
 public NodeDropDownItem(string[] items, int selectedIndex, NodeItemType type) :
     base(type)
 {
     this.Items         = items.ToArray();
     this.SelectedIndex = selectedIndex;
 }
Exemple #5
0
 /// <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)
 {
 }
Exemple #6
0
 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)
        {

        }
Exemple #9
0
 public TargetNodeItem(string text, NodeItemType type)
     : base(type)
 {
     Text = text;
 }
Exemple #10
0
 public ExecuteNodeItem(string Name, NodeItemType type)
     : base(type)
 {
     Text = Name;
 }
Exemple #11
0
 public NodeTextBoxItem(string text, NodeItemType type) :
     base(type)
 {
     this.Text = text;
 }
Exemple #12
0
 public NumberValueItem(string text, NodeItemType type)
     : base(text, 0, 0, 0, 0, 0, type)
 {
 }
Exemple #13
0
 public NodeColorItem(string text, Color color, NodeItemType type) :
     base(type)
 {
     this.Text  = text;
     this.Color = color;
 }
Exemple #14
0
 public TargetNodeItem(string text, NodeItemType type)
     : base(type)
 {
     Text = text;
 }
Exemple #15
0
 public NodeImageItem(Image image, NodeItemType type) :
     base(type)
 {
     this.Image = image;
 }
Exemple #16
0
 public ExecuteNodeItem(string Name, NodeItemType type)
     : base(type)
 {
     Text = Name;
 }