Esempio n. 1
0
 public void OpenExplorer(GraphExplorerWindow _window, Graph _rootGraph, FREditorSettings _settings, GUISkin _editorSkin, GraphEditor _editor)
 {
     _editor.graphExplorer = new GraphExplorer(_rootGraph, _settings, _editorSkin, _editor);
     editor = _editor;
     _window.Show();
 }
        public void DrawList(GraphEditor _graphEditor, Guid _guid)
        {
            Event current = Event.current;

            switch (current.type)
            {
            case EventType.DragUpdated:
            case EventType.DragPerform:
                break;

            case EventType.DragExited:
                FRVariableGUIUtility.sceneRefObjectDragging = false;
                break;
            }


            if (data == null)
            {
                return;
            }

            if (editorSkin == null)
            {
                editorSkin = EditorHelpers.LoadSkin();
            }

            //BlackBoardVariableDragProperties.blackboardGuid
            blackboardGuid = _guid;

            graphEditor = _graphEditor;

                        #if FLOWREACTOR_DATABOX
            if (editorSkin == null)
            {
                editorSkin = EditorHelpers.LoadSkin();
            }

            using (new GUILayout.HorizontalScope(editorSkin.GetStyle("Box")))
            {
                data.useDatabox = GUILayout.Toggle(data.useDatabox, "use Databox");


                if (data.useDatabox)
                {
                    data.databoxObjectManager = (DataboxObjectManager)EditorGUILayout.ObjectField(data.databoxObjectManager, typeof(DataboxObjectManager), false);
                }

                if (GUILayout.Button("?", GUILayout.Width(20)))
                {
                    data.showDataboxInfo = !data.showDataboxInfo;
                }
            }
                        #endif


            //#if !FLOWREACTOR_DATABOX
            DrawDataboxInfo();
            //#endif



            serializedObject.Update();
            reorderableList.DoLayoutList();


            serializedObject.ApplyModifiedProperties();
        }