private void AddSearchWindow(BaseNodeGraph editorWindow) { searchWindow = ScriptableObject.CreateInstance <NodeSearchWindow>(); //searchWindow.Configure(editorWindow); nodeCreationRequest = context => SearchWindow.Open(new SearchWindowContext(context.screenMousePosition), searchWindow); //searchWindow.tree = CreateMenuOptions(); }
public BaseGraphView(BaseNodeGraph editorWindow) { styleSheets.Add(Resources.Load <StyleSheet>("NarrativeGraph")); SetupZoom(ContentZoomer.DefaultMinScale, ContentZoomer.DefaultMaxScale); //nodeFactory = CreateNodeFactory(); this.AddManipulator(new ContentDragger()); this.AddManipulator(new SelectionDragger()); this.AddManipulator(new RectangleSelector()); this.AddManipulator(new FreehandSelector()); var grid = new GridBackground(); Insert(0, grid); grid.StretchToParentSize(); AddSearchWindow(editorWindow); }