1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00

UI stylistic changes

This commit is contained in:
Thor 2017-09-26 14:31:05 +02:00
parent 8972d0ba07
commit 0e6eb55143
3 changed files with 5 additions and 5 deletions

View File

@ -137,7 +137,7 @@ public class NodeEditor {
Color col = GUI.color;
GUI.color = NodeEditorUtilities.GetTypeColor(port.type);
GUI.DrawTexture(handleRect, NodeEditorResources.dot);
GUI.color = Color.black;
GUI.color = new Color(0.29f,0.31f,0.32f);
GUI.DrawTexture(handleRect, NodeEditorResources.dotOuter);
GUI.color = col;
}

View File

@ -131,7 +131,9 @@ public partial class NodeEditorWindow {
if (!_portConnectionPoints.ContainsKey(draggedOutput)) return;
Vector2 from = draggedOutput.node.position.position + _portConnectionPoints[draggedOutput].center;
Vector2 to = draggedOutputTarget != null ? draggedOutputTarget.node.position.position + portConnectionPoints[draggedOutputTarget].center : WindowToGridPosition(Event.current.mousePosition);
DrawConnection(from, to, NodeEditorUtilities.GetTypeColor(draggedOutput.type));
Color col = NodeEditorUtilities.GetTypeColor(draggedOutput.type);
col.a = 0.6f;
DrawConnection(from, to, col);
}
}

View File

@ -25,9 +25,7 @@ public static class NodeEditorResources {
public GUIStyle inputStyle, outputStyle;
public Styles() {
GUIStyle baseStyle = new GUIStyle();
baseStyle.normal.textColor = Color.black;
baseStyle.onHover.textColor = Color.red;
GUIStyle baseStyle = new GUIStyle("Label");
baseStyle.fixedHeight = 18;
inputStyle = new GUIStyle(baseStyle);