static void RefreshMatchingWindows(IGraphModel graph)
 {
     foreach (var window in VseWindow.GetWindowsWithGraph(graph))
     {
         window.RefreshUI(UpdateFlags.All);
     }
 }
Пример #2
0
 public static void SetupLogStickyCallback()
 {
     ConsoleWindowBridge.SetEntryDoubleClickedDelegate((file, entryInstanceId) =>
     {
         VseWindow window = VseWindow.OpenVseAssetInWindow(file);
         window.Store?.Dispatch(new PanToNodeAction(entryInstanceId));
     });
 }
Пример #3
0
        void OnFieldFocus(FocusEvent evt)
        {
            VseWindow window = ((VseGraphView)m_GraphView).window;

            if (window != null)
            {
                window.RefreshUIDisabled = true;
            }
            Undo.undoRedoPerformed += UndoRedoPerformed;
        }
Пример #4
0
        void OnFieldFocusOut()
        {
            // ReSharper disable once DelegateSubtraction
            Undo.undoRedoPerformed -= UndoRedoPerformed;
            VseWindow window = ((VseGraphView)m_GraphView).window;

            if (window != null)
            {
                window.RefreshUIDisabled = false;
            }
        }
Пример #5
0
 public static void SetupLogStickyCallback()
 {
     ConsoleWindowBridge.SetEntryDoubleClickedDelegate((file, entryInstanceId) =>
     {
         string[] pathAndGuid = file.Split('@');
         VseWindow window     = VseWindow.OpenVseAssetInWindow(pathAndGuid[0]);
         if (GUID.TryParse(pathAndGuid[1], out GUID guid))
         {
             window.Store?.Dispatch(new PanToNodeAction(guid));
         }
     });
 }
        public static VseWindow OpenVseAssetInWindow(string path)
        {
            var asset = AssetDatabase.LoadAssetAtPath <VSGraphAssetModel>(path);

            if (asset == null)
            {
                return(null);
            }

            VseWindow vseWindow = ShowVsEditorWindow();

            vseWindow.SetCurrentSelection(asset, OpenMode.OpenAndFocus);

            return(vseWindow);
        }
Пример #7
0
 public VSEditorDataModel(VseWindow win)
 {
     m_Win = win;
 }