去除歧义命令
This commit is contained in:
@@ -225,21 +225,21 @@ public void NodeInit(string nodeID,bool isactive)
|
||||
currentConnection.line.color=Color.red;
|
||||
|
||||
}
|
||||
[YarnCommand("AddNodeConnection")]
|
||||
public void CreateConnection(string starNode,int startPort,string endNode,int endPort)
|
||||
{
|
||||
Node start= GetNode(starNode);
|
||||
Node end= GetNode(endNode);
|
||||
Connection newConnection=start.ports[startPort].ConnectTo(end.ports[endPort]);
|
||||
newConnection.DisableClick=false;
|
||||
newConnection.EnableDrag=false;
|
||||
gm.UnselectAllElements();
|
||||
newConnection.DisableClick=false;
|
||||
newConnection.EnableDrag=false;
|
||||
newConnection.EnableHover=false;
|
||||
newConnection.line.color=Color.green;
|
||||
//currentConnection=null;
|
||||
}
|
||||
// [YarnCommand("AddNodeConnection")]
|
||||
// public void CreateConnection(string starNode,int startPort,string endNode,int endPort)
|
||||
// {
|
||||
// Node start= GetNode(starNode);
|
||||
// Node end= GetNode(endNode);
|
||||
// Connection newConnection=start.ports[startPort].ConnectTo(end.ports[endPort]);
|
||||
// newConnection.DisableClick=false;
|
||||
// newConnection.EnableDrag=false;
|
||||
// gm.UnselectAllElements();
|
||||
// newConnection.DisableClick=false;
|
||||
// newConnection.EnableDrag=false;
|
||||
// newConnection.EnableHover=false;
|
||||
// newConnection.line.color=Color.green;
|
||||
// //currentConnection=null;
|
||||
// }
|
||||
[YarnCommand("EnableQuestion")]
|
||||
public void EnableQuestion(string nodeID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user