1
0
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:
Robert 2022-10-04 23:32:34 +02:00 committed by RobertBeekman
parent 7ada77f5e3
commit a59183c3fa
59 changed files with 34 additions and 61 deletions

View File

@ -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))] [Node("Branch", "Forwards one of two values depending on an input boolean", "Branching", InputType = typeof(object), OutputType = typeof(object))]
public class BooleanBranchNode : Node public class BooleanBranchNode : Node
{ {
public BooleanBranchNode() : base("Branch", "Forwards one of two values depending on an input boolean") public BooleanBranchNode()
{ {
BooleanInput = CreateInputPin<bool>(); BooleanInput = CreateInputPin<bool>();
TrueInput = CreateInputPin(typeof(object), "True"); TrueInput = CreateInputPin(typeof(object), "True");

View File

@ -9,7 +9,7 @@ public class EnumSwitchNode : Node
{ {
private readonly Dictionary<Enum, InputPin> _inputPins; private readonly Dictionary<Enum, InputPin> _inputPins;
public EnumSwitchNode() : base("Enum Branch", "desc") public EnumSwitchNode()
{ {
_inputPins = new Dictionary<Enum, InputPin>(); _inputPins = new Dictionary<Enum, InputPin>();

View File

@ -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))] [Node("Brighten Color", "Brightens a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
public class BrightenSKColorNode : Node public class BrightenSKColorNode : Node
{ {
public BrightenSKColorNode() : base("Brighten Color", "Brightens a color by a specified amount in percent") public BrightenSKColorNode()
{ {
Input = CreateInputPin<SKColor>("Color"); Input = CreateInputPin<SKColor>("Color");
Percentage = CreateInputPin<Numeric>("%"); Percentage = CreateInputPin<Numeric>("%");

View File

@ -11,7 +11,7 @@ public class ColorGradientFromPinsNode : Node
public InputPinCollection<SKColor> Colors { get; set; } public InputPinCollection<SKColor> Colors { get; set; }
public InputPinCollection<Numeric> Positions { 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); Colors = CreateInputPinCollection<SKColor>("Colors", 0);
Positions = CreateInputPinCollection<Numeric>("Positions", 0); Positions = CreateInputPinCollection<Numeric>("Positions", 0);

View File

@ -10,8 +10,9 @@ public class ColorGradientNode : Node<ColorGradient, ColorGradientNodeCustomView
{ {
private readonly List<InputPin> _inputPins; 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>(); _inputPins = new List<InputPin>();
Gradient = ColorGradient.GetUnicornBarf(); Gradient = ColorGradient.GetUnicornBarf();

View File

@ -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))] [Node("Darken Color", "Darkens a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
public class DarkenSKColorNode : Node public class DarkenSKColorNode : Node
{ {
public DarkenSKColorNode() : base("Darken Color", "Darkens a color by a specified amount in percent") public DarkenSKColorNode()
{ {
Input = CreateInputPin<SKColor>("Color"); Input = CreateInputPin<SKColor>("Color");
Percentage = CreateInputPin<Numeric>("%"); Percentage = CreateInputPin<Numeric>("%");

View File

@ -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))] [Node("Desaturate Color", "Desaturates a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
public class DesaturateSKColorNode : Node public class DesaturateSKColorNode : Node
{ {
public DesaturateSKColorNode() : base("Desaturate Color", "Desaturates a color by a specified amount in percent") public DesaturateSKColorNode()
{ {
Input = CreateInputPin<SKColor>("Color"); Input = CreateInputPin<SKColor>("Color");
Percentage = CreateInputPin<Numeric>("%"); Percentage = CreateInputPin<Numeric>("%");

View File

@ -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))] [Node("HSL Color", "Creates a color from hue, saturation and lightness values", "Color", InputType = typeof(Numeric), OutputType = typeof(SKColor))]
public class HslSKColorNode : Node public class HslSKColorNode : Node
{ {
public HslSKColorNode() : base("HSL Color", "Creates a color from hue, saturation and lightness values") public HslSKColorNode()
{ {
H = CreateInputPin<Numeric>("H"); H = CreateInputPin<Numeric>("H");
S = CreateInputPin<Numeric>("S"); S = CreateInputPin<Numeric>("S");

View File

@ -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))] [Node("Invert Color", "Inverts a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
public class InvertSKColorNode : Node public class InvertSKColorNode : Node
{ {
public InvertSKColorNode() : base("Invert Color", "Inverts a color") public InvertSKColorNode()
{ {
Input = CreateInputPin<SKColor>(); Input = CreateInputPin<SKColor>();
Output = CreateOutputPin<SKColor>(); Output = CreateOutputPin<SKColor>();

View File

@ -20,8 +20,8 @@ public class LerpSKColorNode : Node
#region Constructors #region Constructors
public LerpSKColorNode() public LerpSKColorNode()
: base("Lerp", "Interpolates linear between the two values A and B")
{ {
Name = "Lerp";
A = CreateInputPin<SKColor>("A"); A = CreateInputPin<SKColor>("A");
B = CreateInputPin<SKColor>("B"); B = CreateInputPin<SKColor>("B");
T = CreateInputPin<Numeric>("T"); T = CreateInputPin<Numeric>("T");

View File

@ -10,7 +10,6 @@ public class RampSKColorNode : Node<ColorGradient, RampSKColorNodeCustomViewMode
#region Constructors #region Constructors
public RampSKColorNode() public RampSKColorNode()
: base("Color Ramp", "Maps values to colors with the use of a gradient.")
{ {
Input = CreateInputPin<Numeric>(); Input = CreateInputPin<Numeric>();
Output = CreateOutputPin<SKColor>(); Output = CreateOutputPin<SKColor>();

View File

@ -18,7 +18,6 @@ public class RgbSKColorNode : Node
#region Constructors #region Constructors
public RgbSKColorNode() public RgbSKColorNode()
: base("RGB Color", "Creates a color from red, green and blue values")
{ {
R = CreateInputPin<Numeric>("R"); R = CreateInputPin<Numeric>("R");
G = CreateInputPin<Numeric>("G"); G = CreateInputPin<Numeric>("G");

View File

@ -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))] [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 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"); Input = CreateInputPin<SKColor>("Color");
Amount = CreateInputPin<Numeric>("Amount"); Amount = CreateInputPin<Numeric>("Amount");

View File

@ -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))] [Node("Saturate Color", "Saturates a color by a specified amount in percent", "Color", InputType = typeof(SKColor), OutputType = typeof(SKColor))]
public class SaturateSKColorNode : Node public class SaturateSKColorNode : Node
{ {
public SaturateSKColorNode() : base("Saturate Color", "Saturates a color by a specified amount in percent") public SaturateSKColorNode()
{ {
Input = CreateInputPin<SKColor>("Color"); Input = CreateInputPin<SKColor>("Color");
Percentage = CreateInputPin<Numeric>("%"); Percentage = CreateInputPin<Numeric>("%");

View File

@ -9,8 +9,8 @@ public class SumSKColorsNode : Node
#region Constructors #region Constructors
public SumSKColorsNode() public SumSKColorsNode()
: base("Sum", "Sums the connected color values.")
{ {
Name = "Sum";
Values = CreateInputPinCollection<SKColor>("Values", 2); Values = CreateInputPinCollection<SKColor>("Values", 2);
Sum = CreateOutputPin<SKColor>("Sum"); Sum = CreateOutputPin<SKColor>("Sum");
} }

View File

@ -8,7 +8,6 @@ public class ConvertToNumericNode : Node
#region Constructors #region Constructors
public ConvertToNumericNode() public ConvertToNumericNode()
: base("To Numeric", "Converts the input to a numeric.")
{ {
Input = CreateInputPin<object>(); Input = CreateInputPin<object>();
Output = CreateOutputPin<Numeric>(); Output = CreateOutputPin<Numeric>();

View File

@ -2,13 +2,12 @@
namespace Artemis.VisualScripting.Nodes.Conversion; 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 public class ConvertToStringNode : Node
{ {
#region Constructors #region Constructors
public ConvertToStringNode() public ConvertToStringNode()
: base("To String", "Converts the input to a string.")
{ {
Input = CreateInputPin<object>(); Input = CreateInputPin<object>();
String = CreateOutputPin<string>(); String = CreateOutputPin<string>();

View File

@ -15,7 +15,7 @@ public class DataModelEventCycleNode : Node<DataModelPathEntity, DataModelEventC
private DateTime _lastTrigger; private DateTime _lastTrigger;
private bool _updating; 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); _currentType = typeof(object);

View File

@ -16,7 +16,7 @@ public class DataModelEventNode : Node<DataModelPathEntity, DataModelEventNodeCu
private OutputPin? _oldValuePin; private OutputPin? _oldValuePin;
private int _valueChangeCount; private int _valueChangeCount;
public DataModelEventNode() : base("Data Model-Event", "Outputs the latest values of a data model event.") public DataModelEventNode()
{ {
_objectOutputPins = new ObjectOutputPins(this); _objectOutputPins = new ObjectOutputPins(this);

View File

@ -9,7 +9,7 @@ public class DataModelNode : Node<DataModelPathEntity, DataModelNodeCustomViewMo
{ {
private DataModelPath? _dataModelPath; private DataModelPath? _dataModelPath;
public DataModelNode() : base("Data Model", "Outputs a selectable data model value") public DataModelNode()
{ {
Output = CreateOutputPin(typeof(object)); Output = CreateOutputPin(typeof(object));
StorageModified += (_, _) => UpdateDataModelPath(); StorageModified += (_, _) => UpdateDataModelPath();

View File

@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Easing;
[Node("Easing Type", "Outputs a selectable easing type.", "Easing", OutputType = typeof(Easings.Functions))] [Node("Easing Type", "Outputs a selectable easing type.", "Easing", OutputType = typeof(Easings.Functions))]
public class EasingTypeNode : Node<Easings.Functions, EasingTypeNodeCustomViewModel> public class EasingTypeNode : Node<Easings.Functions, EasingTypeNodeCustomViewModel>
{ {
public EasingTypeNode() : base("Easing Type", "Outputs a selectable easing type.") public EasingTypeNode()
{ {
Output = CreateOutputPin<Easings.Functions>(); Output = CreateOutputPin<Easings.Functions>();
} }

View File

@ -11,7 +11,7 @@ public class NumericEasingNode : Node
private float _sourceValue; private float _sourceValue;
private float _targetValue; private float _targetValue;
public NumericEasingNode() : base("Numeric Easing", "Outputs an eased numeric value") public NumericEasingNode()
{ {
Input = CreateInputPin<Numeric>(); Input = CreateInputPin<Numeric>();
EasingTime = CreateInputPin<Numeric>("delay"); EasingTime = CreateInputPin<Numeric>("delay");

View File

@ -12,7 +12,7 @@ public class SKColorEasingNode : Node
private SKColor _sourceValue; private SKColor _sourceValue;
private SKColor _targetValue; private SKColor _targetValue;
public SKColorEasingNode() : base("Color Easing", "Outputs an eased color value") public SKColorEasingNode()
{ {
Input = CreateInputPin<SKColor>(); Input = CreateInputPin<SKColor>();
EasingTime = CreateInputPin<Numeric>("delay"); EasingTime = CreateInputPin<Numeric>("delay");

View File

@ -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))] [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 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>(); InputList = CreateInputPin<IList>();
InputValue = CreateInputPin<object>(); InputValue = CreateInputPin<object>();

View File

@ -11,8 +11,9 @@ public class ListOperatorPredicateNode : Node<ListOperatorEntity, ListOperatorPr
private readonly object _scriptLock = new(); private readonly object _scriptLock = new();
private ListOperatorPredicateStartNode _startNode; 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}; _startNode = new ListOperatorPredicateStartNode {X = -200};
InputList = CreateInputPin<IList>(); InputList = CreateInputPin<IList>();

View File

@ -19,7 +19,6 @@ public class ClampNode : Node
#region Constructors #region Constructors
public ClampNode() public ClampNode()
: base("Clamp", "Clamps the value to be in between min and max")
{ {
Value = CreateInputPin<Numeric>("Value"); Value = CreateInputPin<Numeric>("Value");
Min = CreateInputPin<Numeric>("Min"); Min = CreateInputPin<Numeric>("Min");

View File

@ -9,7 +9,6 @@ public class CounterNode : Node
private float _progress; private float _progress;
public CounterNode() public CounterNode()
: base("Counter", "Counts from 0.0 to 1.0 at a configurable rate.")
{ {
Time = CreateInputPin<Numeric>("Time (ms)"); Time = CreateInputPin<Numeric>("Time (ms)");
Output = CreateOutputPin<Numeric>(); Output = CreateOutputPin<Numeric>();

View File

@ -19,7 +19,6 @@ public class LerpNode : Node
#region Constructors #region Constructors
public LerpNode() public LerpNode()
: base("Lerp", "Interpolates linear between the two values A and B")
{ {
A = CreateInputPin<Numeric>("A"); A = CreateInputPin<Numeric>("A");
B = CreateInputPin<Numeric>("B"); B = CreateInputPin<Numeric>("B");

View File

@ -5,7 +5,7 @@ using NoStringEvaluating.Models.FormulaChecker;
namespace Artemis.VisualScripting.Nodes.Mathematics; 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> public class MathExpressionNode : Node<string, MathExpressionNodeCustomViewModel>
{ {
private readonly IFormulaChecker _checker; private readonly IFormulaChecker _checker;
@ -15,7 +15,6 @@ public class MathExpressionNode : Node<string, MathExpressionNodeCustomViewModel
#region Constructors #region Constructors
public MathExpressionNode(INoStringEvaluator evaluator, IFormulaChecker checker) public MathExpressionNode(INoStringEvaluator evaluator, IFormulaChecker checker)
: base("Math Expression", "Outputs the result of a math expression.")
{ {
_evaluator = evaluator; _evaluator = evaluator;
_checker = checker; _checker = checker;

View File

@ -8,7 +8,6 @@ public class MaxNumericsNode : Node
#region Constructors #region Constructors
public MaxNumericsNode() public MaxNumericsNode()
: base("Max", "Outputs the largest of the connected numeric values.")
{ {
Values = CreateInputPinCollection<Numeric>("Values", 2); Values = CreateInputPinCollection<Numeric>("Values", 2);
Max = CreateOutputPin<Numeric>("Max"); Max = CreateOutputPin<Numeric>("Max");

View File

@ -8,7 +8,6 @@ public class MinNumericsNode : Node
#region Constructors #region Constructors
public MinNumericsNode() public MinNumericsNode()
: base("Min", "Outputs the smallest of the connected numeric values.")
{ {
Values = CreateInputPinCollection<Numeric>("Values", 2); Values = CreateInputPinCollection<Numeric>("Values", 2);
Min = CreateOutputPin<Numeric>("Min"); Min = CreateOutputPin<Numeric>("Min");

View File

@ -19,7 +19,6 @@ public class RangeNode : Node
#region Constructors #region Constructors
public RangeNode() public RangeNode()
: base("Range", "Selects the best integer value in the given range by the given percentage")
{ {
Min = CreateInputPin<Numeric>("Min"); Min = CreateInputPin<Numeric>("Min");
Max = CreateInputPin<Numeric>("Max"); Max = CreateInputPin<Numeric>("Max");

View File

@ -5,7 +5,7 @@ namespace Artemis.VisualScripting.Nodes.Mathematics;
[Node("Round", "Outputs a rounded numeric value.", "Mathematics", InputType = typeof(Numeric), OutputType = typeof(Numeric))] [Node("Round", "Outputs a rounded numeric value.", "Mathematics", InputType = typeof(Numeric), OutputType = typeof(Numeric))]
public class RoundNode : Node public class RoundNode : Node
{ {
public RoundNode() : base("Round", "Outputs a rounded numeric value.") public RoundNode()
{ {
Input = CreateInputPin<Numeric>(); Input = CreateInputPin<Numeric>();
Output = CreateOutputPin<Numeric>(); Output = CreateOutputPin<Numeric>();

View File

@ -17,7 +17,6 @@ public class SaturateNode : Node
#region Constructors #region Constructors
public SaturateNode() public SaturateNode()
: base("Saturate", "Clamps the value to be in between 0 and 1")
{ {
Value = CreateInputPin<Numeric>(); Value = CreateInputPin<Numeric>();

View File

@ -8,7 +8,6 @@ public class SumNumericsNode : Node
#region Constructors #region Constructors
public SumNumericsNode() public SumNumericsNode()
: base("Sum", "Sums the connected numeric values.")
{ {
Values = CreateInputPinCollection<Numeric>("Values", 2); Values = CreateInputPinCollection<Numeric>("Values", 2);
Sum = CreateOutputPin<Numeric>("Sum"); Sum = CreateOutputPin<Numeric>("Sum");

View File

@ -8,7 +8,6 @@ public class AndNode : Node
#region Constructors #region Constructors
public AndNode() public AndNode()
: base("And", "Checks if all inputs are true.")
{ {
Input = CreateInputPinCollection<bool>(); Input = CreateInputPinCollection<bool>();
Result = CreateOutputPin<bool>(); Result = CreateOutputPin<bool>();

View File

@ -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))] [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 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>(); InputPin = CreateInputPin<Enum>();
OutputPin = CreateOutputPin<bool>(); OutputPin = CreateOutputPin<bool>();

View File

@ -8,7 +8,6 @@ public class EqualsNode : Node
#region Constructors #region Constructors
public EqualsNode() public EqualsNode()
: base("Equals", "Checks if the two inputs are equals.")
{ {
Input1 = CreateInputPin<object>(); Input1 = CreateInputPin<object>();
Input2 = CreateInputPin<object>(); Input2 = CreateInputPin<object>();

View File

@ -9,7 +9,6 @@ public class GreaterThanNode : Node
#region Constructors #region Constructors
public GreaterThanNode() public GreaterThanNode()
: base("Greater than", "Checks if the first input is greater than the second.")
{ {
Input1 = CreateInputPin<object>(); Input1 = CreateInputPin<object>();
Input2 = CreateInputPin<object>(); Input2 = CreateInputPin<object>();

View File

@ -9,7 +9,6 @@ public class LessThanNode : Node
#region Constructors #region Constructors
public LessThanNode() public LessThanNode()
: base("Less than", "Checks if the first input is less than the second.")
{ {
Input1 = CreateInputPin<object>(); Input1 = CreateInputPin<object>();
Input2 = CreateInputPin<object>(); Input2 = CreateInputPin<object>();

View File

@ -8,7 +8,6 @@ public class NegateNode : Node
#region Constructors #region Constructors
public NegateNode() public NegateNode()
: base("Negate", "Negates the boolean.")
{ {
Input = CreateInputPin<bool>(); Input = CreateInputPin<bool>();
Output = CreateOutputPin<bool>(); Output = CreateOutputPin<bool>();

View File

@ -8,7 +8,6 @@ public class OrNode : Node
#region Constructors #region Constructors
public OrNode() public OrNode()
: base("Or", "Checks if any inputs are true.")
{ {
Input = CreateInputPinCollection<bool>(); Input = CreateInputPinCollection<bool>();
Result = CreateOutputPin<bool>(); Result = CreateOutputPin<bool>();

View File

@ -8,7 +8,6 @@ public class XorNode : Node
#region Constructors #region Constructors
public XorNode() public XorNode()
: base("Exclusive Or", "Checks if one of the inputs is true.")
{ {
Input = CreateInputPinCollection<bool>(); Input = CreateInputPinCollection<bool>();
Result = CreateOutputPin<bool>(); Result = CreateOutputPin<bool>();

View File

@ -6,7 +6,7 @@ namespace Artemis.VisualScripting.Nodes.Static;
[Node("Display Value", "Displays an input value for testing purposes.", "Static", InputType = typeof(object))] [Node("Display Value", "Displays an input value for testing purposes.", "Static", InputType = typeof(object))]
public class DisplayValueNode : Node<string, DisplayValueNodeCustomViewModel> public class DisplayValueNode : Node<string, DisplayValueNodeCustomViewModel>
{ {
public DisplayValueNode() : base("Display Value", "Displays an input value for testing purposes.") public DisplayValueNode()
{ {
Input = CreateInputPin<object>(); Input = CreateInputPin<object>();
} }

View File

@ -16,7 +16,6 @@ public class RandomNumericValueNode : Node
#region Constructors #region Constructors
public RandomNumericValueNode() public RandomNumericValueNode()
: base("Random", "Generates a random value between 0 and 1")
{ {
Output = CreateOutputPin<Numeric>(); Output = CreateOutputPin<Numeric>();
} }

View File

@ -9,8 +9,8 @@ public class StaticBooleanValueNode : Node<bool, StaticBooleanValueNodeCustomVie
#region Constructors #region Constructors
public StaticBooleanValueNode() public StaticBooleanValueNode()
: base("Boolean", "Outputs a configurable static boolean value.")
{ {
Name = "Boolean";
Output = CreateOutputPin<bool>(); Output = CreateOutputPin<bool>();
} }

View File

@ -9,8 +9,8 @@ public class StaticNumericValueNode : Node<Numeric, StaticNumericValueNodeCustom
#region Constructors #region Constructors
public StaticNumericValueNode() public StaticNumericValueNode()
: base("Numeric", "Outputs a configurable numeric value.")
{ {
Name = "Numeric";
Output = CreateOutputPin<Numeric>(); Output = CreateOutputPin<Numeric>();
} }

View File

@ -10,8 +10,8 @@ public class StaticSKColorValueNode : Node<SKColor, StaticSKColorValueNodeCustom
#region Constructors #region Constructors
public StaticSKColorValueNode() public StaticSKColorValueNode()
: base("Color", "Outputs a configurable color value.")
{ {
Name = "Color";
Output = CreateOutputPin<SKColor>(); Output = CreateOutputPin<SKColor>();
Storage = new SKColor(255, 0, 0); Storage = new SKColor(255, 0, 0);
} }

View File

@ -9,8 +9,8 @@ public class StaticStringValueNode : Node<string, StaticStringValueNodeCustomVie
#region Constructors #region Constructors
public StaticStringValueNode() public StaticStringValueNode()
: base("Text", "Outputs a configurable text value.")
{ {
Name = "Text";
Output = CreateOutputPin<string>(); Output = CreateOutputPin<string>();
} }

View File

@ -6,7 +6,6 @@ namespace Artemis.VisualScripting.Nodes.Text;
public class StringContainsNode : Node public class StringContainsNode : Node
{ {
public StringContainsNode() public StringContainsNode()
: base("Contains", "Checks whether the first input is contained in the second input.")
{ {
Input1 = CreateInputPin<string>(); Input1 = CreateInputPin<string>();
Input2 = CreateInputPin<string>(); Input2 = CreateInputPin<string>();

View File

@ -8,7 +8,6 @@ public class StringFormatNode : Node
#region Constructors #region Constructors
public StringFormatNode() public StringFormatNode()
: base("Format", "Formats the input string.")
{ {
Format = CreateInputPin<string>("Format"); Format = CreateInputPin<string>("Format");
Values = CreateInputPinCollection<object>("Values"); Values = CreateInputPinCollection<object>("Values");

View File

@ -7,7 +7,6 @@ namespace Artemis.VisualScripting.Nodes.Text;
public class StringLengthNode : Node public class StringLengthNode : Node
{ {
public StringLengthNode() public StringLengthNode()
: base("Text Length", "Outputs text length.")
{ {
Input1 = CreateInputPin<string>(); Input1 = CreateInputPin<string>();
Result = CreateOutputPin<Numeric>(); Result = CreateOutputPin<Numeric>();

View File

@ -7,7 +7,6 @@ namespace Artemis.VisualScripting.Nodes.Text;
public class StringNullOrEmptyNode : Node public class StringNullOrEmptyNode : Node
{ {
public StringNullOrEmptyNode() public StringNullOrEmptyNode()
: base("Text is empty", "Outputs true if empty")
{ {
Input1 = CreateInputPin<string>(); Input1 = CreateInputPin<string>();
Output1 = CreateOutputPin<bool>(); Output1 = CreateOutputPin<bool>();

View File

@ -10,7 +10,7 @@ public class StringRegexMatchNode : Node
private Regex? _regex; private Regex? _regex;
private Exception? _exception; private Exception? _exception;
public StringRegexMatchNode() : base("Regex Match", "Checks provided regex pattern matches the input.") public StringRegexMatchNode()
{ {
Pattern = CreateInputPin<string>("Pattern"); Pattern = CreateInputPin<string>("Pattern");
Input = CreateInputPin<string>("Input"); Input = CreateInputPin<string>("Input");

View File

@ -25,7 +25,6 @@ public class DelayNode : Node
#region Constructors #region Constructors
public DelayNode() public DelayNode()
: base("Delay", "Delays the resolution of the input pin(s) for the given time after each update")
{ {
Delay = CreateInputPin<Numeric>("Delay"); Delay = CreateInputPin<Numeric>("Delay");
Input = CreateInputPinCollection(typeof(object), initialCount: 0); Input = CreateInputPinCollection(typeof(object), initialCount: 0);

View File

@ -17,7 +17,6 @@ public class EdgeNode : Node
#region Constructors #region Constructors
public EdgeNode() public EdgeNode()
: base("Edge", "Outputs true on each edge when the input changes")
{ {
Input = CreateInputPin<bool>(); Input = CreateInputPin<bool>();
Output = CreateOutputPin<bool>(); Output = CreateOutputPin<bool>();

View File

@ -18,7 +18,6 @@ public class FlipFlopNode : Node
#region Constructors #region Constructors
public FlipFlopNode() public FlipFlopNode()
: base("FlipFlop", "Inverts the output when the input changes from false to true")
{ {
Input = CreateInputPin<bool>(); Input = CreateInputPin<bool>();
Output = CreateOutputPin<bool>(); Output = CreateOutputPin<bool>();

View File

@ -25,7 +25,6 @@ public class LatchNode : Node
#region Constructors #region Constructors
public LatchNode() 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"); Control = CreateInputPin<bool>("Control");
Input = CreateInputPinCollection(typeof(object), initialCount: 0); Input = CreateInputPinCollection(typeof(object), initialCount: 0);

View File

@ -25,7 +25,6 @@ public class SequencerNode : Node
#region Constructors #region Constructors
public SequencerNode() public SequencerNode()
: base("Sequencer", "Advances on input every time the control has a rising edge (change to true)")
{ {
_currentType = typeof(object); _currentType = typeof(object);