Exemple #1
0
 protected void RefreshNodeEditor()
 {
     canDrawUI = false;
     if (scriptDataService != null)
     {
         previousSelectedGameObject = null;
         nodeEditorPanel            = new NodeEditorPanel(this, this, scriptDataService.GetCurrentScript(), this, scriptDataService.GetEditorData().clipBoard, scriptDataService.GetLastEditorScrollPositionX(), scriptDataService.GetLastEditorScrollPositionY(), OnLinkAdded, OnNodeAdded, OnNodeRemoved);
         nodeTabPanel = new ConstellationTabPanel(this);
     }
 }
Exemple #2
0
 protected override void Setup()
 {
     canDrawUI                 = false;
     WindowInstance            = this as ConstellationUnityWindow;
     SceneManager.sceneLoaded += OnSceneLoaded;
     EditorApplication.playModeStateChanged += OnPlayStateChanged;
     if (scriptDataService != null)
     {
         nodeEditorPanel = new NodeEditorPanel(this, this, scriptDataService.GetCurrentScript(), this, scriptDataService.GetEditorData().clipBoard, scriptDataService.GetLastEditorScrollPositionX(), scriptDataService.GetLastEditorScrollPositionY(), OnLinkAdded, OnNodeAdded, OnNodeRemoved);
         nodeTabPanel    = new ConstellationTabPanel(this);
         if (scriptDataService.GetCurrentScript() != null)
         {
             WindowInstance.titleContent.text = scriptDataService.GetCurrentScript().name;
         }
         else
         {
             WindowInstance.titleContent.text = "Constellation";
         }
         scriptDataService.ClearActions();
     }
     nodeSelector = new NodeSelectorPanel(OnNodeAddRequested);
 }