mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Nodes - Removed constructor base calls where unnecessary
This commit is contained in:
parent
7ada77f5e3
commit
a59183c3fa
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Branching;
|
||||
[Node("Branch", "Forwards one of two values depending on an input boolean", "Branching", InputType = typeof(object), OutputType = typeof(object))]
|
||||
public class BooleanBranchNode : Node
|
||||
{
|
||||
public BooleanBranchNode() : base("Branch", "Forwards one of two values depending on an input boolean")
|
||||
public BooleanBranchNode()
|
||||
{
|
||||
BooleanInput = CreateInputPin<bool>();
|
||||
TrueInput = CreateInputPin(typeof(object), "True");
|
||||
|
||||
@ -9,7 +9,7 @@ public class EnumSwitchNode : Node
|
||||
{
|
||||
private readonly Dictionary<Enum, InputPin> _inputPins;
|
||||
|
||||
public EnumSwitchNode() : base("Enum Branch", "desc")
|
||||
public EnumSwitchNode()
|
||||
{
|
||||
_inputPins = new Dictionary<Enum, InputPin>();
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Color;
|
||||
[Node("Brighten Color", "Brightens a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
|
||||
public class BrightenSKColorNode : Node
|
||||
{
|
||||
public BrightenSKColorNode() : base("Brighten Color", "Brightens a color by a specified amount in percent")
|
||||
public BrightenSKColorNode()
|
||||
{
|
||||
Input = CreateInputPin<SKColor>("Color");
|
||||
Percentage = CreateInputPin<Numeric>("%");
|
||||
|
||||
@ -11,7 +11,7 @@ public class ColorGradientFromPinsNode : Node
|
||||
public InputPinCollection<SKColor> Colors { get; set; }
|
||||
public InputPinCollection<Numeric> Positions { get; set; }
|
||||
|
||||
public ColorGradientFromPinsNode() : base("Color Gradient", "Outputs a Color Gradient from colors and positions")
|
||||
public ColorGradientFromPinsNode()
|
||||
{
|
||||
Colors = CreateInputPinCollection<SKColor>("Colors", 0);
|
||||
Positions = CreateInputPinCollection<Numeric>("Positions", 0);
|
||||
|
||||
@ -10,8 +10,9 @@ public class ColorGradientNode : Node<ColorGradient, ColorGradientNodeCustomView
|
||||
{
|
||||
private readonly List<InputPin> _inputPins;
|
||||
|
||||
public ColorGradientNode() : base("Color Gradient", "Outputs a color gradient with the given colors")
|
||||
public ColorGradientNode()
|
||||
{
|
||||
Name = "Color Gradient";
|
||||
_inputPins = new List<InputPin>();
|
||||
|
||||
Gradient = ColorGradient.GetUnicornBarf();
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Color;
|
||||
[Node("Darken Color", "Darkens a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
|
||||
public class DarkenSKColorNode : Node
|
||||
{
|
||||
public DarkenSKColorNode() : base("Darken Color", "Darkens a color by a specified amount in percent")
|
||||
public DarkenSKColorNode()
|
||||
{
|
||||
Input = CreateInputPin<SKColor>("Color");
|
||||
Percentage = CreateInputPin<Numeric>("%");
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Color;
|
||||
[Node("Desaturate Color", "Desaturates a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
|
||||
public class DesaturateSKColorNode : Node
|
||||
{
|
||||
public DesaturateSKColorNode() : base("Desaturate Color", "Desaturates a color by a specified amount in percent")
|
||||
public DesaturateSKColorNode()
|
||||
{
|
||||
Input = CreateInputPin<SKColor>("Color");
|
||||
Percentage = CreateInputPin<Numeric>("%");
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Color;
|
||||
[Node("HSL Color", "Creates a color from hue, saturation and lightness values", "Color", InputType = typeof(Numeric), OutputType = typeof(SKColor))]
|
||||
public class HslSKColorNode : Node
|
||||
{
|
||||
public HslSKColorNode() : base("HSL Color", "Creates a color from hue, saturation and lightness values")
|
||||
public HslSKColorNode()
|
||||
{
|
||||
H = CreateInputPin<Numeric>("H");
|
||||
S = CreateInputPin<Numeric>("S");
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Color;
|
||||
[Node("Invert Color", "Inverts a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
|
||||
public class InvertSKColorNode : Node
|
||||
{
|
||||
public InvertSKColorNode() : base("Invert Color", "Inverts a color")
|
||||
public InvertSKColorNode()
|
||||
{
|
||||
Input = CreateInputPin<SKColor>();
|
||||
Output = CreateOutputPin<SKColor>();
|
||||
|
||||
@ -20,8 +20,8 @@ public class LerpSKColorNode : Node
|
||||
#region Constructors
|
||||
|
||||
public LerpSKColorNode()
|
||||
: base("Lerp", "Interpolates linear between the two values A and B")
|
||||
{
|
||||
Name = "Lerp";
|
||||
A = CreateInputPin<SKColor>("A");
|
||||
B = CreateInputPin<SKColor>("B");
|
||||
T = CreateInputPin<Numeric>("T");
|
||||
|
||||
@ -10,7 +10,6 @@ public class RampSKColorNode : Node<ColorGradient, RampSKColorNodeCustomViewMode
|
||||
#region Constructors
|
||||
|
||||
public RampSKColorNode()
|
||||
: base("Color Ramp", "Maps values to colors with the use of a gradient.")
|
||||
{
|
||||
Input = CreateInputPin<Numeric>();
|
||||
Output = CreateOutputPin<SKColor>();
|
||||
|
||||
@ -18,7 +18,6 @@ public class RgbSKColorNode : Node
|
||||
#region Constructors
|
||||
|
||||
public RgbSKColorNode()
|
||||
: base("RGB Color", "Creates a color from red, green and blue values")
|
||||
{
|
||||
R = CreateInputPin<Numeric>("R");
|
||||
G = CreateInputPin<Numeric>("G");
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Color;
|
||||
[Node("Rotate Color Hue", "Rotates the hue of a color by a specified amount in degrees", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
|
||||
public class RotateHueSKColorNode : Node
|
||||
{
|
||||
public RotateHueSKColorNode() : base("Rotate Color Hue", "Rotates the hue of a color by a specified amount in degrees")
|
||||
public RotateHueSKColorNode()
|
||||
{
|
||||
Input = CreateInputPin<SKColor>("Color");
|
||||
Amount = CreateInputPin<Numeric>("Amount");
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Color;
|
||||
[Node("Saturate Color", "Saturates a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
|
||||
public class SaturateSKColorNode : Node
|
||||
{
|
||||
public SaturateSKColorNode() : base("Saturate Color", "Saturates a color by a specified amount in percent")
|
||||
public SaturateSKColorNode()
|
||||
{
|
||||
Input = CreateInputPin<SKColor>("Color");
|
||||
Percentage = CreateInputPin<Numeric>("%");
|
||||
|
||||
@ -9,8 +9,8 @@ public class SumSKColorsNode : Node
|
||||
#region Constructors
|
||||
|
||||
public SumSKColorsNode()
|
||||
: base("Sum", "Sums the connected color values.")
|
||||
{
|
||||
Name = "Sum";
|
||||
Values = CreateInputPinCollection<SKColor>("Values", 2);
|
||||
Sum = CreateOutputPin<SKColor>("Sum");
|
||||
}
|
||||
|
||||
@ -8,7 +8,6 @@ public class ConvertToNumericNode : Node
|
||||
#region Constructors
|
||||
|
||||
public ConvertToNumericNode()
|
||||
: base("To Numeric", "Converts the input to a numeric.")
|
||||
{
|
||||
Input = CreateInputPin<object>();
|
||||
Output = CreateOutputPin<Numeric>();
|
||||
|
||||
@ -2,13 +2,12 @@
|
||||
|
||||
namespace Artemis.VisualScripting.Nodes.Conversion;
|
||||
|
||||
[Node("To String", "Converts the input to a string.", "Conversion", InputType = typeof(object), OutputType = typeof(string))]
|
||||
[Node("To Text", "Converts the input to text.", "Conversion", InputType = typeof(object), OutputType = typeof(string))]
|
||||
public class ConvertToStringNode : Node
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
public ConvertToStringNode()
|
||||
: base("To String", "Converts the input to a string.")
|
||||
{
|
||||
Input = CreateInputPin<object>();
|
||||
String = CreateOutputPin<string>();
|
||||
|
||||
@ -15,7 +15,7 @@ public class DataModelEventCycleNode : Node<DataModelPathEntity, DataModelEventC
|
||||
private DateTime _lastTrigger;
|
||||
private bool _updating;
|
||||
|
||||
public DataModelEventCycleNode() : base("Data Model-Event Value Cycle", "Cycles through provided values each time the select event fires.")
|
||||
public DataModelEventCycleNode()
|
||||
{
|
||||
_currentType = typeof(object);
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ public class DataModelEventNode : Node<DataModelPathEntity, DataModelEventNodeCu
|
||||
private OutputPin? _oldValuePin;
|
||||
private int _valueChangeCount;
|
||||
|
||||
public DataModelEventNode() : base("Data Model-Event", "Outputs the latest values of a data model event.")
|
||||
public DataModelEventNode()
|
||||
{
|
||||
_objectOutputPins = new ObjectOutputPins(this);
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ public class DataModelNode : Node<DataModelPathEntity, DataModelNodeCustomViewMo
|
||||
{
|
||||
private DataModelPath? _dataModelPath;
|
||||
|
||||
public DataModelNode() : base("Data Model", "Outputs a selectable data model value")
|
||||
public DataModelNode()
|
||||
{
|
||||
Output = CreateOutputPin(typeof(object));
|
||||
StorageModified += (_, _) => UpdateDataModelPath();
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Easing;
|
||||
[Node("Easing Type", "Outputs a selectable easing type.", "Easing", OutputType = typeof(Easings.Functions))]
|
||||
public class EasingTypeNode : Node<Easings.Functions, EasingTypeNodeCustomViewModel>
|
||||
{
|
||||
public EasingTypeNode() : base("Easing Type", "Outputs a selectable easing type.")
|
||||
public EasingTypeNode()
|
||||
{
|
||||
Output = CreateOutputPin<Easings.Functions>();
|
||||
}
|
||||
|
||||
@ -11,7 +11,7 @@ public class NumericEasingNode : Node
|
||||
private float _sourceValue;
|
||||
private float _targetValue;
|
||||
|
||||
public NumericEasingNode() : base("Numeric Easing", "Outputs an eased numeric value")
|
||||
public NumericEasingNode()
|
||||
{
|
||||
Input = CreateInputPin<Numeric>();
|
||||
EasingTime = CreateInputPin<Numeric>("delay");
|
||||
|
||||
@ -12,7 +12,7 @@ public class SKColorEasingNode : Node
|
||||
private SKColor _sourceValue;
|
||||
private SKColor _targetValue;
|
||||
|
||||
public SKColorEasingNode() : base("Color Easing", "Outputs an eased color value")
|
||||
public SKColorEasingNode()
|
||||
{
|
||||
Input = CreateInputPin<SKColor>();
|
||||
EasingTime = CreateInputPin<Numeric>("delay");
|
||||
|
||||
@ -7,8 +7,9 @@ namespace Artemis.VisualScripting.Nodes.List;
|
||||
[Node("List Operator (Simple)", "Checks if any/all/no values in the input list match the input value", "List", InputType = typeof(IEnumerable), OutputType = typeof(bool))]
|
||||
public class ListOperatorNode : Node<ListOperator, ListOperatorNodeCustomViewModel>
|
||||
{
|
||||
public ListOperatorNode() : base("List Operator (Simple)", "Checks if any/all/no values in the input list match the input value")
|
||||
public ListOperatorNode()
|
||||
{
|
||||
Name = "List Operator";
|
||||
InputList = CreateInputPin<IList>();
|
||||
InputValue = CreateInputPin<object>();
|
||||
|
||||
|
||||
@ -11,8 +11,9 @@ public class ListOperatorPredicateNode : Node<ListOperatorEntity, ListOperatorPr
|
||||
private readonly object _scriptLock = new();
|
||||
private ListOperatorPredicateStartNode _startNode;
|
||||
|
||||
public ListOperatorPredicateNode() : base("List Operator (Advanced)", "Checks if any/all/no values in the input list match a condition")
|
||||
public ListOperatorPredicateNode()
|
||||
{
|
||||
Name = "List Operator";
|
||||
_startNode = new ListOperatorPredicateStartNode {X = -200};
|
||||
|
||||
InputList = CreateInputPin<IList>();
|
||||
|
||||
@ -19,7 +19,6 @@ public class ClampNode : Node
|
||||
#region Constructors
|
||||
|
||||
public ClampNode()
|
||||
: base("Clamp", "Clamps the value to be in between min and max")
|
||||
{
|
||||
Value = CreateInputPin<Numeric>("Value");
|
||||
Min = CreateInputPin<Numeric>("Min");
|
||||
|
||||
@ -9,7 +9,6 @@ public class CounterNode : Node
|
||||
private float _progress;
|
||||
|
||||
public CounterNode()
|
||||
: base("Counter", "Counts from 0.0 to 1.0 at a configurable rate.")
|
||||
{
|
||||
Time = CreateInputPin<Numeric>("Time (ms)");
|
||||
Output = CreateOutputPin<Numeric>();
|
||||
|
||||
@ -19,7 +19,6 @@ public class LerpNode : Node
|
||||
#region Constructors
|
||||
|
||||
public LerpNode()
|
||||
: base("Lerp", "Interpolates linear between the two values A and B")
|
||||
{
|
||||
A = CreateInputPin<Numeric>("A");
|
||||
B = CreateInputPin<Numeric>("B");
|
||||
|
||||
@ -5,7 +5,7 @@ using NoStringEvaluating.Models.FormulaChecker;
|
||||
|
||||
namespace Artemis.VisualScripting.Nodes.Mathematics;
|
||||
|
||||
[Node("Math Expression", "Outputs the result of a math expression.", "Mathematics", InputType = typeof(Numeric), OutputType = typeof(Numeric))]
|
||||
[Node("Math Expression", "Outputs the result of a math expression.", "Mathematics", "https://wiki.artemis-rgb.com/en/guides/user/profiles/nodes/mathematics/math-expression", InputType = typeof(Numeric), OutputType = typeof(Numeric))]
|
||||
public class MathExpressionNode : Node<string, MathExpressionNodeCustomViewModel>
|
||||
{
|
||||
private readonly IFormulaChecker _checker;
|
||||
@ -15,7 +15,6 @@ public class MathExpressionNode : Node<string, MathExpressionNodeCustomViewModel
|
||||
#region Constructors
|
||||
|
||||
public MathExpressionNode(INoStringEvaluator evaluator, IFormulaChecker checker)
|
||||
: base("Math Expression", "Outputs the result of a math expression.")
|
||||
{
|
||||
_evaluator = evaluator;
|
||||
_checker = checker;
|
||||
|
||||
@ -8,7 +8,6 @@ public class MaxNumericsNode : Node
|
||||
#region Constructors
|
||||
|
||||
public MaxNumericsNode()
|
||||
: base("Max", "Outputs the largest of the connected numeric values.")
|
||||
{
|
||||
Values = CreateInputPinCollection<Numeric>("Values", 2);
|
||||
Max = CreateOutputPin<Numeric>("Max");
|
||||
|
||||
@ -8,7 +8,6 @@ public class MinNumericsNode : Node
|
||||
#region Constructors
|
||||
|
||||
public MinNumericsNode()
|
||||
: base("Min", "Outputs the smallest of the connected numeric values.")
|
||||
{
|
||||
Values = CreateInputPinCollection<Numeric>("Values", 2);
|
||||
Min = CreateOutputPin<Numeric>("Min");
|
||||
|
||||
@ -19,7 +19,6 @@ public class RangeNode : Node
|
||||
#region Constructors
|
||||
|
||||
public RangeNode()
|
||||
: base("Range", "Selects the best integer value in the given range by the given percentage")
|
||||
{
|
||||
Min = CreateInputPin<Numeric>("Min");
|
||||
Max = CreateInputPin<Numeric>("Max");
|
||||
|
||||
@ -5,7 +5,7 @@ namespace Artemis.VisualScripting.Nodes.Mathematics;
|
||||
[Node("Round", "Outputs a rounded numeric value.", "Mathematics", InputType = typeof(Numeric), OutputType = typeof(Numeric))]
|
||||
public class RoundNode : Node
|
||||
{
|
||||
public RoundNode() : base("Round", "Outputs a rounded numeric value.")
|
||||
public RoundNode()
|
||||
{
|
||||
Input = CreateInputPin<Numeric>();
|
||||
Output = CreateOutputPin<Numeric>();
|
||||
|
||||
@ -17,7 +17,6 @@ public class SaturateNode : Node
|
||||
#region Constructors
|
||||
|
||||
public SaturateNode()
|
||||
: base("Saturate", "Clamps the value to be in between 0 and 1")
|
||||
{
|
||||
Value = CreateInputPin<Numeric>();
|
||||
|
||||
|
||||
@ -8,7 +8,6 @@ public class SumNumericsNode : Node
|
||||
#region Constructors
|
||||
|
||||
public SumNumericsNode()
|
||||
: base("Sum", "Sums the connected numeric values.")
|
||||
{
|
||||
Values = CreateInputPinCollection<Numeric>("Values", 2);
|
||||
Sum = CreateOutputPin<Numeric>("Sum");
|
||||
|
||||
@ -8,7 +8,6 @@ public class AndNode : Node
|
||||
#region Constructors
|
||||
|
||||
public AndNode()
|
||||
: base("And", "Checks if all inputs are true.")
|
||||
{
|
||||
Input = CreateInputPinCollection<bool>();
|
||||
Result = CreateOutputPin<bool>();
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Operators;
|
||||
[Node("Enum Equals", "Determines the equality between an input and a selected enum value", "Operators", InputType = typeof(Enum), OutputType = typeof(bool))]
|
||||
public class EnumEqualsNode : Node<long, EnumEqualsNodeCustomViewModel>
|
||||
{
|
||||
public EnumEqualsNode() : base("Enum Equals", "Determines the equality between an input and a selected enum value")
|
||||
public EnumEqualsNode()
|
||||
{
|
||||
InputPin = CreateInputPin<Enum>();
|
||||
OutputPin = CreateOutputPin<bool>();
|
||||
|
||||
@ -8,7 +8,6 @@ public class EqualsNode : Node
|
||||
#region Constructors
|
||||
|
||||
public EqualsNode()
|
||||
: base("Equals", "Checks if the two inputs are equals.")
|
||||
{
|
||||
Input1 = CreateInputPin<object>();
|
||||
Input2 = CreateInputPin<object>();
|
||||
|
||||
@ -9,7 +9,6 @@ public class GreaterThanNode : Node
|
||||
#region Constructors
|
||||
|
||||
public GreaterThanNode()
|
||||
: base("Greater than", "Checks if the first input is greater than the second.")
|
||||
{
|
||||
Input1 = CreateInputPin<object>();
|
||||
Input2 = CreateInputPin<object>();
|
||||
|
||||
@ -9,7 +9,6 @@ public class LessThanNode : Node
|
||||
#region Constructors
|
||||
|
||||
public LessThanNode()
|
||||
: base("Less than", "Checks if the first input is less than the second.")
|
||||
{
|
||||
Input1 = CreateInputPin<object>();
|
||||
Input2 = CreateInputPin<object>();
|
||||
|
||||
@ -8,7 +8,6 @@ public class NegateNode : Node
|
||||
#region Constructors
|
||||
|
||||
public NegateNode()
|
||||
: base("Negate", "Negates the boolean.")
|
||||
{
|
||||
Input = CreateInputPin<bool>();
|
||||
Output = CreateOutputPin<bool>();
|
||||
|
||||
@ -8,7 +8,6 @@ public class OrNode : Node
|
||||
#region Constructors
|
||||
|
||||
public OrNode()
|
||||
: base("Or", "Checks if any inputs are true.")
|
||||
{
|
||||
Input = CreateInputPinCollection<bool>();
|
||||
Result = CreateOutputPin<bool>();
|
||||
|
||||
@ -8,7 +8,6 @@ public class XorNode : Node
|
||||
#region Constructors
|
||||
|
||||
public XorNode()
|
||||
: base("Exclusive Or", "Checks if one of the inputs is true.")
|
||||
{
|
||||
Input = CreateInputPinCollection<bool>();
|
||||
Result = CreateOutputPin<bool>();
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Static;
|
||||
[Node("Display Value", "Displays an input value for testing purposes.", "Static", InputType = typeof(object))]
|
||||
public class DisplayValueNode : Node<string, DisplayValueNodeCustomViewModel>
|
||||
{
|
||||
public DisplayValueNode() : base("Display Value", "Displays an input value for testing purposes.")
|
||||
public DisplayValueNode()
|
||||
{
|
||||
Input = CreateInputPin<object>();
|
||||
}
|
||||
|
||||
@ -16,7 +16,6 @@ public class RandomNumericValueNode : Node
|
||||
#region Constructors
|
||||
|
||||
public RandomNumericValueNode()
|
||||
: base("Random", "Generates a random value between 0 and 1")
|
||||
{
|
||||
Output = CreateOutputPin<Numeric>();
|
||||
}
|
||||
|
||||
@ -9,8 +9,8 @@ public class StaticBooleanValueNode : Node<bool, StaticBooleanValueNodeCustomVie
|
||||
#region Constructors
|
||||
|
||||
public StaticBooleanValueNode()
|
||||
: base("Boolean", "Outputs a configurable static boolean value.")
|
||||
{
|
||||
Name = "Boolean";
|
||||
Output = CreateOutputPin<bool>();
|
||||
}
|
||||
|
||||
|
||||
@ -9,8 +9,8 @@ public class StaticNumericValueNode : Node<Numeric, StaticNumericValueNodeCustom
|
||||
#region Constructors
|
||||
|
||||
public StaticNumericValueNode()
|
||||
: base("Numeric", "Outputs a configurable numeric value.")
|
||||
{
|
||||
Name = "Numeric";
|
||||
Output = CreateOutputPin<Numeric>();
|
||||
}
|
||||
|
||||
|
||||
@ -10,8 +10,8 @@ public class StaticSKColorValueNode : Node<SKColor, StaticSKColorValueNodeCustom
|
||||
#region Constructors
|
||||
|
||||
public StaticSKColorValueNode()
|
||||
: base("Color", "Outputs a configurable color value.")
|
||||
{
|
||||
Name = "Color";
|
||||
Output = CreateOutputPin<SKColor>();
|
||||
Storage = new SKColor(255, 0, 0);
|
||||
}
|
||||
|
||||
@ -9,8 +9,8 @@ public class StaticStringValueNode : Node<string, StaticStringValueNodeCustomVie
|
||||
#region Constructors
|
||||
|
||||
public StaticStringValueNode()
|
||||
: base("Text", "Outputs a configurable text value.")
|
||||
{
|
||||
Name = "Text";
|
||||
Output = CreateOutputPin<string>();
|
||||
}
|
||||
|
||||
|
||||
@ -6,7 +6,6 @@ namespace Artemis.VisualScripting.Nodes.Text;
|
||||
public class StringContainsNode : Node
|
||||
{
|
||||
public StringContainsNode()
|
||||
: base("Contains", "Checks whether the first input is contained in the second input.")
|
||||
{
|
||||
Input1 = CreateInputPin<string>();
|
||||
Input2 = CreateInputPin<string>();
|
||||
|
||||
@ -8,7 +8,6 @@ public class StringFormatNode : Node
|
||||
#region Constructors
|
||||
|
||||
public StringFormatNode()
|
||||
: base("Format", "Formats the input string.")
|
||||
{
|
||||
Format = CreateInputPin<string>("Format");
|
||||
Values = CreateInputPinCollection<object>("Values");
|
||||
|
||||
@ -7,7 +7,6 @@ namespace Artemis.VisualScripting.Nodes.Text;
|
||||
public class StringLengthNode : Node
|
||||
{
|
||||
public StringLengthNode()
|
||||
: base("Text Length", "Outputs text length.")
|
||||
{
|
||||
Input1 = CreateInputPin<string>();
|
||||
Result = CreateOutputPin<Numeric>();
|
||||
|
||||
@ -7,7 +7,6 @@ namespace Artemis.VisualScripting.Nodes.Text;
|
||||
public class StringNullOrEmptyNode : Node
|
||||
{
|
||||
public StringNullOrEmptyNode()
|
||||
: base("Text is empty", "Outputs true if empty")
|
||||
{
|
||||
Input1 = CreateInputPin<string>();
|
||||
Output1 = CreateOutputPin<bool>();
|
||||
|
||||
@ -10,7 +10,7 @@ public class StringRegexMatchNode : Node
|
||||
private Regex? _regex;
|
||||
private Exception? _exception;
|
||||
|
||||
public StringRegexMatchNode() : base("Regex Match", "Checks provided regex pattern matches the input.")
|
||||
public StringRegexMatchNode()
|
||||
{
|
||||
Pattern = CreateInputPin<string>("Pattern");
|
||||
Input = CreateInputPin<string>("Input");
|
||||
|
||||
@ -25,7 +25,6 @@ public class DelayNode : Node
|
||||
#region Constructors
|
||||
|
||||
public DelayNode()
|
||||
: base("Delay", "Delays the resolution of the input pin(s) for the given time after each update")
|
||||
{
|
||||
Delay = CreateInputPin<Numeric>("Delay");
|
||||
Input = CreateInputPinCollection(typeof(object), initialCount: 0);
|
||||
|
||||
@ -17,7 +17,6 @@ public class EdgeNode : Node
|
||||
#region Constructors
|
||||
|
||||
public EdgeNode()
|
||||
: base("Edge", "Outputs true on each edge when the input changes")
|
||||
{
|
||||
Input = CreateInputPin<bool>();
|
||||
Output = CreateOutputPin<bool>();
|
||||
|
||||
@ -18,7 +18,6 @@ public class FlipFlopNode : Node
|
||||
#region Constructors
|
||||
|
||||
public FlipFlopNode()
|
||||
: base("FlipFlop", "Inverts the output when the input changes from false to true")
|
||||
{
|
||||
Input = CreateInputPin<bool>();
|
||||
Output = CreateOutputPin<bool>();
|
||||
|
||||
@ -25,7 +25,6 @@ public class LatchNode : Node
|
||||
#region Constructors
|
||||
|
||||
public LatchNode()
|
||||
: base("Latch", "Only passes the input to the output as long as the control-pin is true. If the control pin is false the last passed value is provided.")
|
||||
{
|
||||
Control = CreateInputPin<bool>("Control");
|
||||
Input = CreateInputPinCollection(typeof(object), initialCount: 0);
|
||||
|
||||
@ -25,7 +25,6 @@ public class SequencerNode : Node
|
||||
#region Constructors
|
||||
|
||||
public SequencerNode()
|
||||
: base("Sequencer", "Advances on input every time the control has a rising edge (change to true)")
|
||||
{
|
||||
_currentType = typeof(object);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user