Skip to content

Commit 6ad1b81

Browse files
committed
Add Circle HandleShape
1 parent ad9ccd3 commit 6ad1b81

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • game/addons/tools/Code/NodeGraph

game/addons/tools/Code/NodeGraph/Plug.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ protected void DrawHandle( Color color, Rect handleRect, HandleShape shape )
7676
Paint.DrawRect( handleRect, 2.0f );
7777
break;
7878

79+
case HandleShape.Circle:
80+
Paint.DrawCircle( handleRect );
81+
//Paint.SetBrush( color.Darken( 0.25f ) );
82+
//Paint.DrawCircle( handleRect.Shrink( 1 ) );
83+
break;
84+
7985
case HandleShape.Arrow:
8086
Paint.DrawPolygon( handleRect.TopLeft, handleRect.Center with { x = handleRect.Right },
8187
handleRect.BottomLeft );
@@ -217,7 +223,8 @@ protected override void OnMouseMove( GraphicsMouseEvent e )
217223
public enum HandleShape
218224
{
219225
Square,
220-
Arrow
226+
Circle,
227+
Arrow,
221228
}
222229

223230
public record struct HandleConfig( string Name, Color Color, HandleShape Shape = HandleShape.Square );

0 commit comments

Comments
 (0)