public AudioMixersTreeView(AudioMixerWindow mixerWindow, TreeViewState treeState, Func<List<AudioMixerController>> getAllControllersCallback)
 {
     this.m_TreeView = new TreeViewController(mixerWindow, treeState);
     this.m_TreeView.deselectOnUnhandledMouseDown = false;
     this.m_TreeView.selectionChangedCallback = (Action<int[]>) Delegate.Combine(this.m_TreeView.selectionChangedCallback, new Action<int[]>(this.OnTreeSelectionChanged));
     this.m_TreeView.contextClickItemCallback = (Action<int>) Delegate.Combine(this.m_TreeView.contextClickItemCallback, new Action<int>(this.OnTreeViewContextClick));
     AudioMixersTreeViewGUI gui = new AudioMixersTreeViewGUI(this.m_TreeView);
     AudioMixersDataSource data = new AudioMixersDataSource(this.m_TreeView, getAllControllersCallback);
     AudioMixerTreeViewDragging dragging = new AudioMixerTreeViewDragging(this.m_TreeView, new Action<List<AudioMixerController>, AudioMixerController>(this, (IntPtr) this.OnMixersDroppedOnMixerCallback));
     this.m_TreeView.Init(mixerWindow.position, data, gui, dragging);
     this.m_TreeView.ReloadData();
 }
 public AudioMixersTreeView(AudioMixerWindow mixerWindow, TreeViewState treeState, Func<List<AudioMixerController>> getAllControllersCallback)
 {
   this.m_TreeView = new TreeView((EditorWindow) mixerWindow, treeState);
   this.m_TreeView.deselectOnUnhandledMouseDown = false;
   this.m_TreeView.selectionChangedCallback += new System.Action<int[]>(this.OnTreeSelectionChanged);
   this.m_TreeView.contextClickItemCallback += new System.Action<int>(this.OnTreeViewContextClick);
   AudioMixersTreeViewGUI mixersTreeViewGui = new AudioMixersTreeViewGUI(this.m_TreeView);
   AudioMixersDataSource mixersDataSource = new AudioMixersDataSource(this.m_TreeView, getAllControllersCallback);
   AudioMixerTreeViewDragging treeViewDragging = new AudioMixerTreeViewDragging(this.m_TreeView, new System.Action<List<AudioMixerController>, AudioMixerController>(this.OnMixersDroppedOnMixerCallback));
   this.m_TreeView.Init(mixerWindow.position, (ITreeViewDataSource) mixersDataSource, (ITreeViewGUI) mixersTreeViewGui, (ITreeViewDragging) treeViewDragging);
   this.m_TreeView.ReloadData();
 }
Ejemplo n.º 3
0
        public AudioMixersTreeView(AudioMixerWindow mixerWindow, TreeViewState treeState, Func <List <AudioMixerController> > getAllControllersCallback)
        {
            this.m_TreeView = new TreeViewController(mixerWindow, treeState);
            this.m_TreeView.deselectOnUnhandledMouseDown = false;
            this.m_TreeView.selectionChangedCallback     = (Action <int[]>)Delegate.Combine(this.m_TreeView.selectionChangedCallback, new Action <int[]>(this.OnTreeSelectionChanged));
            this.m_TreeView.contextClickItemCallback     = (Action <int>)Delegate.Combine(this.m_TreeView.contextClickItemCallback, new Action <int>(this.OnTreeViewContextClick));
            AudioMixersTreeViewGUI     gui      = new AudioMixersTreeViewGUI(this.m_TreeView);
            AudioMixersDataSource      data     = new AudioMixersDataSource(this.m_TreeView, getAllControllersCallback);
            AudioMixerTreeViewDragging dragging = new AudioMixerTreeViewDragging(this.m_TreeView, new Action <List <AudioMixerController>, AudioMixerController>(this.OnMixersDroppedOnMixerCallback));

            this.m_TreeView.Init(mixerWindow.position, data, gui, dragging);
            this.m_TreeView.ReloadData();
        }
Ejemplo n.º 4
0
        public AudioMixersTreeView(AudioMixerWindow mixerWindow, TreeViewState treeState, Func <List <AudioMixerController> > getAllControllersCallback)
        {
            this.m_TreeView = new TreeView((EditorWindow)mixerWindow, treeState);
            this.m_TreeView.deselectOnUnhandledMouseDown = false;
            this.m_TreeView.selectionChangedCallback    += new System.Action <int[]>(this.OnTreeSelectionChanged);
            this.m_TreeView.contextClickItemCallback    += new System.Action <int>(this.OnTreeViewContextClick);
            AudioMixersTreeViewGUI     mixersTreeViewGui = new AudioMixersTreeViewGUI(this.m_TreeView);
            AudioMixersDataSource      mixersDataSource  = new AudioMixersDataSource(this.m_TreeView, getAllControllersCallback);
            AudioMixerTreeViewDragging treeViewDragging  = new AudioMixerTreeViewDragging(this.m_TreeView, new System.Action <List <AudioMixerController>, AudioMixerController>(this.OnMixersDroppedOnMixerCallback));

            this.m_TreeView.Init(mixerWindow.position, (ITreeViewDataSource)mixersDataSource, (ITreeViewGUI)mixersTreeViewGui, (ITreeViewDragging)treeViewDragging);
            this.m_TreeView.ReloadData();
        }
        public AudioMixersTreeView(AudioMixerWindow mixerWindow, TreeViewState treeState, Func <List <AudioMixerController> > getAllControllersCallback)
        {
            m_TreeView = new TreeViewController(mixerWindow, treeState);
            m_TreeView.deselectOnUnhandledMouseDown = false;
            m_TreeView.selectionChangedCallback    += OnTreeSelectionChanged;
            m_TreeView.contextClickItemCallback    += OnTreeViewContextClick;

            var treeViewGUI        = new AudioMixersTreeViewGUI(m_TreeView);
            var treeViewDataSource = new AudioMixersDataSource(m_TreeView, getAllControllersCallback);
            var treeViewDragging   = new AudioMixerTreeViewDragging(m_TreeView, OnMixersDroppedOnMixerCallback);

            m_TreeView.Init(mixerWindow.position, treeViewDataSource, treeViewGUI, treeViewDragging);
            m_TreeView.ReloadData();
        }