public override void OnClick(Node source, Vector2 mousePosition) { if (source is MultipurposeNode) { var node = source as MultipurposeNode; if (node.target.target.isAssigned) { if (node.target.target.targetType == MemberData.TargetType.Type) { var win = NodeBrowserWindow.ShowWindow(); win.browser.RevealItem(node.target.target.startType); win.Focus(); return; } var members = node.target.target.GetMembers(); if (members != null && members.Length > 0) { var win = NodeBrowserWindow.ShowWindow(); win.browser.RevealItem(members.LastOrDefault()); win.Focus(); return; } } } }
public override void OnClick(Node source, PortCommandData data, Vector2 mousePosition) { Type type = data.portType; var win = NodeBrowserWindow.ShowWindow(); win.browser.RevealItem(type); win.Focus(); }