Beispiel #1
0
        public static void CreateAndSetTreeView(ObjectTreeForSelector.TreeSelectorData data)
        {
            AudioMixerController ignoreController = InternalEditorUtility.GetObjectFromInstanceID(data.userData) as AudioMixerController;
            TreeView             treeView         = new TreeView(data.editorWindow, data.state);

            TreeViewForAudioMixerGroup.GroupTreeViewGUI            groupTreeViewGUI            = new TreeViewForAudioMixerGroup.GroupTreeViewGUI(treeView);
            TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers treeViewDataSourceForMixers = new TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers(treeView, ignoreController);
            TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers expr_33 = treeViewDataSourceForMixers;
            expr_33.onVisibleRowsChanged          = (Action)Delegate.Combine(expr_33.onVisibleRowsChanged, new Action(groupTreeViewGUI.CalculateRowRects));
            treeView.deselectOnUnhandledMouseDown = false;
            treeView.Init(data.treeViewRect, treeViewDataSourceForMixers, groupTreeViewGUI, null);
            data.objectTreeForSelector.SetTreeView(treeView);
        }
 public static void CreateAndSetTreeView(ObjectTreeForSelector.TreeSelectorData data)
 {
   AudioMixerController objectFromInstanceId = InternalEditorUtility.GetObjectFromInstanceID(data.userData) as AudioMixerController;
   TreeView treeView = new TreeView(data.editorWindow, data.state);
   TreeViewForAudioMixerGroup.GroupTreeViewGUI groupTreeViewGui = new TreeViewForAudioMixerGroup.GroupTreeViewGUI(treeView);
   TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers dataSourceForMixers1 = new TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers(treeView, objectFromInstanceId);
   TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers dataSourceForMixers2 = dataSourceForMixers1;
   System.Action action = dataSourceForMixers2.onVisibleRowsChanged + new System.Action(groupTreeViewGui.CalculateRowRects);
   dataSourceForMixers2.onVisibleRowsChanged = action;
   treeView.deselectOnUnhandledMouseDown = false;
   treeView.Init(data.treeViewRect, (ITreeViewDataSource) dataSourceForMixers1, (ITreeViewGUI) groupTreeViewGui, (ITreeViewDragging) null);
   data.objectTreeForSelector.SetTreeView(treeView);
 }
        public static void CreateAndSetTreeView(ObjectTreeForSelector.TreeSelectorData data)
        {
            AudioMixerController objectFromInstanceId = InternalEditorUtility.GetObjectFromInstanceID(data.userData) as AudioMixerController;
            TreeView             treeView             = new TreeView(data.editorWindow, data.state);

            TreeViewForAudioMixerGroup.GroupTreeViewGUI            groupTreeViewGui     = new TreeViewForAudioMixerGroup.GroupTreeViewGUI(treeView);
            TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers dataSourceForMixers1 = new TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers(treeView, objectFromInstanceId);
            TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers dataSourceForMixers2 = dataSourceForMixers1;
            System.Action action = dataSourceForMixers2.onVisibleRowsChanged + new System.Action(groupTreeViewGui.CalculateRowRects);
            dataSourceForMixers2.onVisibleRowsChanged = action;
            treeView.deselectOnUnhandledMouseDown     = false;
            treeView.Init(data.treeViewRect, (ITreeViewDataSource)dataSourceForMixers1, (ITreeViewGUI)groupTreeViewGui, (ITreeViewDragging)null);
            data.objectTreeForSelector.SetTreeView(treeView);
        }
		public static void CreateAndSetTreeView(ObjectTreeForSelector.TreeSelectorData data)
		{
			AudioMixerController ignoreController = InternalEditorUtility.GetObjectFromInstanceID(data.userData) as AudioMixerController;
			TreeView treeView = new TreeView(data.editorWindow, data.state);
			TreeViewForAudioMixerGroup.GroupTreeViewGUI groupTreeViewGUI = new TreeViewForAudioMixerGroup.GroupTreeViewGUI(treeView);
			TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers treeViewDataSourceForMixers = new TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers(treeView, ignoreController);
			TreeViewForAudioMixerGroup.TreeViewDataSourceForMixers expr_33 = treeViewDataSourceForMixers;
			expr_33.onVisibleRowsChanged = (Action)Delegate.Combine(expr_33.onVisibleRowsChanged, new Action(groupTreeViewGUI.CalculateRowRects));
			treeView.deselectOnUnhandledMouseDown = false;
			treeView.Init(data.treeViewRect, treeViewDataSourceForMixers, groupTreeViewGUI, null);
			data.objectTreeForSelector.SetTreeView(treeView);
		}