Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ValueOutputWidget.cs 759B

123456789101112131415161718192021
  1. using UnityEngine;
  2. namespace Unity.VisualScripting
  3. {
  4. [Widget(typeof(ValueOutput))]
  5. public class ValueOutputWidget : UnitOutputPortWidget<ValueOutput>
  6. {
  7. public ValueOutputWidget(FlowCanvas canvas, ValueOutput port) : base(canvas, port)
  8. {
  9. color = ValueConnectionWidget.DetermineColor(port.type);
  10. }
  11. protected override bool colorIfActive => !BoltFlow.Configuration.animateControlConnections || !BoltFlow.Configuration.animateValueConnections;
  12. public override Color color { get; }
  13. protected override Texture handleTextureConnected => BoltFlow.Icons.valuePortConnected?[12];
  14. protected override Texture handleTextureUnconnected => BoltFlow.Icons.valuePortUnconnected?[12];
  15. }
  16. }