diff --git a/Scripts/Editor/NodeEditor.cs b/Scripts/Editor/NodeEditor.cs index c03db03..31ade8f 100644 --- a/Scripts/Editor/NodeEditor.cs +++ b/Scripts/Editor/NodeEditor.cs @@ -114,7 +114,11 @@ public class NodeEditor { fieldValue = EditorGUILayout.Toggle(fieldPrettyName, (bool)fieldValue); } else if (fieldType.IsEnum) { - fieldValue = EditorGUILayout.EnumPopup(fieldPrettyName, (Enum)fieldValue); + Rect rect = EditorGUILayout.GetControlRect(); + rect.width *= 0.5f; + EditorGUI.LabelField(rect, fieldPrettyName); + rect.x += rect.width; + fieldValue = EditorGUI.EnumPopup(rect, (Enum)fieldValue); } else if (fieldType == typeof(string)) { diff --git a/Scripts/Editor/NodeEditorGUI.cs b/Scripts/Editor/NodeEditorGUI.cs index 5538cdc..9b473ba 100644 --- a/Scripts/Editor/NodeEditorGUI.cs +++ b/Scripts/Editor/NodeEditorGUI.cs @@ -114,7 +114,7 @@ public partial class NodeEditorWindow { Color prevCol = GUI.color; Color edgeCol = new Color(0.1f, 0.1f, 0.1f, col.a); Handles.DrawBezier(startPoint, endPoint, startTangent, endTangent, edgeCol, null, 4); - Handles.DrawBezier(startPoint, endPoint, startTangent, endTangent, col, null, 2); + Handles.DrawBezier(startPoint, endPoint, startTangent, endTangent, col, null, 4); GUI.color = prevCol; } diff --git a/Scripts/Editor/NodeEditorResources.cs b/Scripts/Editor/NodeEditorResources.cs index 77ef3e4..efc5e95 100644 --- a/Scripts/Editor/NodeEditorResources.cs +++ b/Scripts/Editor/NodeEditorResources.cs @@ -48,6 +48,7 @@ public static class NodeEditorResources { nodeBody = new GUIStyle(); nodeBody.normal.background = NodeEditorResources.nodeBody; nodeBody.border = new RectOffset(32, 32, 32, 32); + nodeBody.padding = new RectOffset(10, 10, 2, 2); } } diff --git a/Scripts/Editor/Resources/unec_node.psd b/Scripts/Editor/Resources/unec_node.psd index 548a12d..e830e32 100644 Binary files a/Scripts/Editor/Resources/unec_node.psd and b/Scripts/Editor/Resources/unec_node.psd differ