Singularity/Library/PackageCache/com.unity.visualscripting@1.../Editor/VisualScripting.Flow/Ports/ValueOutputWidget.cs

22 lines
759 B
C#
Raw Permalink Normal View History

2024-05-06 14:45:45 -04:00
using UnityEngine;
namespace Unity.VisualScripting
{
[Widget(typeof(ValueOutput))]
public class ValueOutputWidget : UnitOutputPortWidget<ValueOutput>
{
public ValueOutputWidget(FlowCanvas canvas, ValueOutput port) : base(canvas, port)
{
color = ValueConnectionWidget.DetermineColor(port.type);
}
protected override bool colorIfActive => !BoltFlow.Configuration.animateControlConnections || !BoltFlow.Configuration.animateValueConnections;
public override Color color { get; }
protected override Texture handleTextureConnected => BoltFlow.Icons.valuePortConnected?[12];
protected override Texture handleTextureUnconnected => BoltFlow.Icons.valuePortUnconnected?[12];
}
}