A game about forced loneliness, made by TACStudios
1using UnityEngine; 2 3namespace Unity.VisualScripting 4{ 5 [Widget(typeof(ControlConnection))] 6 public sealed class ControlConnectionWidget : UnitConnectionWidget<ControlConnection> 7 { 8 public ControlConnectionWidget(FlowCanvas canvas, ControlConnection connection) : base(canvas, connection) { } 9 10 11 #region Drawing 12 13 public override Color color => Color.white; 14 15 protected override bool colorIfActive => !BoltFlow.Configuration.animateControlConnections || !BoltFlow.Configuration.animateValueConnections; 16 17 #endregion 18 19 20 #region Droplets 21 22 protected override bool showDroplets => BoltFlow.Configuration.animateControlConnections; 23 24 protected override Vector2 GetDropletSize() 25 { 26 return BoltFlow.Icons.valuePortConnected?[12].Size() ?? 12 * Vector2.one; 27 } 28 29 protected override void DrawDroplet(Rect position) 30 { 31 if (BoltFlow.Icons.valuePortConnected != null) 32 { 33 GUI.DrawTexture(position, BoltFlow.Icons.valuePortConnected[12]); 34 } 35 } 36 37 #endregion 38 } 39}