Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
ec8901f9fThis file is pinned to the selected release. Download the original to open it in your design tool.
using Godot;
using JetBrains.Annotations;
using OpenScadGraphEditor.Utils;
namespace OpenScadGraphEditor.Nodes
{
[UsedImplicitly]
public class AddOperator : SwitchableBinaryOperator.SwitchableBinaryOperator
{
public override string NodeTitle => "+";
public override string NodeDescription => "Adds the given inputs.";
public override string NodeQuickLookup => "++";
protected override string OperatorSign => "+";
public override bool Supports(PortType portType)
{
return portType == PortType.Number
|| portType == PortType.Vector2
|| portType == PortType.Vector3
|| portType == PortType.Vector
|| portType == PortType.Any;
}
public override Texture NodeBackground => Resources.PlusIcon;
}
}