|
|
|
@ -192,9 +192,16 @@ public class FungusEditorWindow : EditorWindow
|
|
|
|
|
GUI.backgroundColor = Color.red; |
|
|
|
|
} |
|
|
|
|
else if (ShouldHighlight(command)) |
|
|
|
|
{ |
|
|
|
|
if (command.IsExecuting()) |
|
|
|
|
{ |
|
|
|
|
GUI.backgroundColor = Color.green; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
GUI.backgroundColor = Color.yellow; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
GUI.backgroundColor = Color.white; |
|
|
|
@ -256,9 +263,16 @@ public class FungusEditorWindow : EditorWindow
|
|
|
|
|
|
|
|
|
|
Color color = Color.grey; |
|
|
|
|
if (highlight) |
|
|
|
|
{ |
|
|
|
|
if (command.IsExecuting()) |
|
|
|
|
{ |
|
|
|
|
color = Color.green; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
color = Color.yellow; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
GLDraw.DrawConnectingCurve(pointA, pointB, color, 2); |
|
|
|
|
} |
|
|
|
|