public AudioMixerGroupTreeView(AudioMixerWindow mixerWindow, TreeViewState treeState) { this.m_AudioGroupTreeState = treeState; this.m_AudioGroupTree = new TreeView(mixerWindow, this.m_AudioGroupTreeState); this.m_AudioGroupTree.deselectOnUnhandledMouseDown = false; this.m_AudioGroupTree.selectionChangedCallback = (Action <int[]>)Delegate.Combine(this.m_AudioGroupTree.selectionChangedCallback, new Action <int[]>(this.OnTreeSelectionChanged)); this.m_AudioGroupTree.contextClickItemCallback = (Action <int>)Delegate.Combine(this.m_AudioGroupTree.contextClickItemCallback, new Action <int>(this.OnTreeViewContextClick)); this.m_AudioGroupTree.expandedStateChanged = (System.Action)Delegate.Combine(this.m_AudioGroupTree.expandedStateChanged, new System.Action(this.SaveExpandedState)); this.m_TreeViewGUI = new AudioGroupTreeViewGUI(this.m_AudioGroupTree); this.m_TreeViewGUI.NodeWasToggled = (Action <AudioMixerTreeViewNode, bool>)Delegate.Combine(this.m_TreeViewGUI.NodeWasToggled, new Action <AudioMixerTreeViewNode, bool>(this.OnNodeToggled)); this.m_AudioGroupTreeDataSource = new AudioGroupDataSource(this.m_AudioGroupTree, this.m_Controller); this.m_AudioGroupTree.Init(mixerWindow.position, this.m_AudioGroupTreeDataSource, this.m_TreeViewGUI, new AudioGroupTreeViewDragging(this.m_AudioGroupTree, this)); this.m_AudioGroupTree.ReloadData(); }
public AudioMixerGroupTreeView(AudioMixerWindow mixerWindow, TreeViewState treeState) { this.m_AudioGroupTreeState = treeState; this.m_AudioGroupTree = new TreeView(mixerWindow, this.m_AudioGroupTreeState); this.m_AudioGroupTree.deselectOnUnhandledMouseDown = false; this.m_AudioGroupTree.selectionChangedCallback = (Action<int[]>) Delegate.Combine(this.m_AudioGroupTree.selectionChangedCallback, new Action<int[]>(this.OnTreeSelectionChanged)); this.m_AudioGroupTree.contextClickItemCallback = (Action<int>) Delegate.Combine(this.m_AudioGroupTree.contextClickItemCallback, new Action<int>(this.OnTreeViewContextClick)); this.m_AudioGroupTree.expandedStateChanged = (System.Action) Delegate.Combine(this.m_AudioGroupTree.expandedStateChanged, new System.Action(this.SaveExpandedState)); this.m_TreeViewGUI = new AudioGroupTreeViewGUI(this.m_AudioGroupTree); this.m_TreeViewGUI.NodeWasToggled = (Action<AudioMixerTreeViewNode, bool>) Delegate.Combine(this.m_TreeViewGUI.NodeWasToggled, new Action<AudioMixerTreeViewNode, bool>(this.OnNodeToggled)); this.m_AudioGroupTreeDataSource = new AudioGroupDataSource(this.m_AudioGroupTree, this.m_Controller); this.m_AudioGroupTree.Init(mixerWindow.position, this.m_AudioGroupTreeDataSource, this.m_TreeViewGUI, new AudioGroupTreeViewDragging(this.m_AudioGroupTree, this)); this.m_AudioGroupTree.ReloadData(); }
public AudioMixerGroupTreeView(AudioMixerWindow mixerWindow, TreeViewState treeState) { m_AudioGroupTreeState = treeState; m_AudioGroupTree = new TreeViewController(mixerWindow, m_AudioGroupTreeState); m_AudioGroupTree.deselectOnUnhandledMouseDown = false; m_AudioGroupTree.selectionChangedCallback += OnTreeSelectionChanged; m_AudioGroupTree.contextClickItemCallback += OnTreeViewContextClick; m_AudioGroupTree.expandedStateChanged += SaveExpandedState; m_TreeViewGUI = new AudioGroupTreeViewGUI(m_AudioGroupTree); m_TreeViewGUI.NodeWasToggled += OnNodeToggled; m_AudioGroupTreeDataSource = new AudioGroupDataSource(m_AudioGroupTree, m_Controller); m_AudioGroupTree.Init(mixerWindow.position, m_AudioGroupTreeDataSource, m_TreeViewGUI, new AudioGroupTreeViewDragging(m_AudioGroupTree, this) ); m_AudioGroupTree.ReloadData(); }