mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 17:26:02 +08:00
Minor UI design changes
This commit is contained in:
parent
427dc8d53c
commit
c1db2d9e4b
@ -85,7 +85,7 @@ public class NodeEditor {
|
|||||||
|
|
||||||
Color col = GUI.color;
|
Color col = GUI.color;
|
||||||
Rect handleRect = new Rect(handlePoint.x - 8, handlePoint.y - 8, 16, 16);
|
Rect handleRect = new Rect(handlePoint.x - 8, handlePoint.y - 8, 16, 16);
|
||||||
GUI.color = new Color(0.29f, 0.31f, 0.32f);
|
GUI.color = new Color32(90, 97, 105, 255);
|
||||||
GUI.DrawTexture(handleRect, NodeEditorResources.dotOuter);
|
GUI.DrawTexture(handleRect, NodeEditorResources.dotOuter);
|
||||||
GUI.color = NodeEditorPreferences.GetTypeColor(port.type);
|
GUI.color = NodeEditorPreferences.GetTypeColor(port.type);
|
||||||
GUI.DrawTexture(handleRect, NodeEditorResources.dot);
|
GUI.DrawTexture(handleRect, NodeEditorResources.dot);
|
||||||
|
|||||||
@ -109,7 +109,6 @@ public partial class NodeEditorWindow {
|
|||||||
|
|
||||||
Color prevCol = GUI.color;
|
Color prevCol = GUI.color;
|
||||||
Color edgeCol = new Color(0.1f, 0.1f, 0.1f, col.a);
|
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, 4);
|
Handles.DrawBezier(startPoint, endPoint, startTangent, endTangent, col, null, 4);
|
||||||
GUI.color = prevCol;
|
GUI.color = prevCol;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user