Inheritance: UnityEditor.TreeViewGUI
Example #1
0
 public void Init(SketchUpNodeInfo[] nodes, SketchUpImporterModelEditor suModelEditor)
 {
     this.titleContent    = SketchUpImportDlg.Styles.styles.windowTitle;
     this.minSize         = this.m_WindowMinSize;
     this.position        = new Rect(this.position.x, this.position.y, this.minSize.x, this.minSize.y);
     this.m_TreeViewState = new TreeViewState();
     this.m_TreeView      = new TreeView((EditorWindow)this, this.m_TreeViewState);
     this.m_ImportGUI     = new SketchUpTreeViewGUI(this.m_TreeView);
     this.m_DataSource    = new SketchUpDataSource(this.m_TreeView, nodes);
     this.m_TreeView.Init(this.position, (ITreeViewDataSource)this.m_DataSource, (ITreeViewGUI)this.m_ImportGUI, (ITreeViewDragging)null);
     this.m_TreeView.selectionChangedCallback += new System.Action <int[]>(this.OnTreeSelectionChanged);
     this.m_ModelEditor = new WeakReference((object)suModelEditor);
     this.isModal       = false;
 }
Example #2
0
 public void Init(SketchUpNodeInfo[] nodes, SketchUpImporterModelEditor suModelEditor)
 {
     base.titleContent = Styles.styles.windowTitle;
     base.minSize = this.m_WindowMinSize;
     base.position = new Rect(base.position.x, base.position.y, base.minSize.x, base.minSize.y);
     this.m_TreeViewState = new TreeViewState();
     this.m_TreeView = new TreeView(this, this.m_TreeViewState);
     this.m_ImportGUI = new SketchUpTreeViewGUI(this.m_TreeView);
     this.m_DataSource = new SketchUpDataSource(this.m_TreeView, nodes);
     this.m_TreeView.Init(base.position, this.m_DataSource, this.m_ImportGUI, null);
     this.m_TreeView.selectionChangedCallback = (Action<int[]>) Delegate.Combine(this.m_TreeView.selectionChangedCallback, new Action<int[]>(this.OnTreeSelectionChanged));
     this.m_ModelEditor = new WeakReference(suModelEditor);
     this.isModal = false;
 }
Example #3
0
 public void Init(SketchUpNodeInfo[] nodes, SketchUpImporterModelEditor suModelEditor)
 {
     base.titleContent    = Styles.styles.windowTitle;
     base.minSize         = this.m_WindowMinSize;
     base.position        = new Rect(base.position.x, base.position.y, base.minSize.x, base.minSize.y);
     this.m_TreeViewState = new TreeViewState();
     this.m_TreeView      = new TreeView(this, this.m_TreeViewState);
     this.m_ImportGUI     = new SketchUpTreeViewGUI(this.m_TreeView);
     this.m_DataSource    = new SketchUpDataSource(this.m_TreeView, nodes);
     this.m_TreeView.Init(base.position, this.m_DataSource, this.m_ImportGUI, null);
     this.m_TreeView.selectionChangedCallback = (Action <int[]>)Delegate.Combine(this.m_TreeView.selectionChangedCallback, new Action <int[]>(this.OnTreeSelectionChanged));
     this.m_ModelEditor = new WeakReference(suModelEditor);
     this.isModal       = false;
 }
 public void Init(SketchUpNodeInfo[] nodes, SketchUpImporterModelEditor suModelEditor)
 {
   this.titleContent = SketchUpImportDlg.Styles.styles.windowTitle;
   this.minSize = this.m_WindowMinSize;
   this.position = new Rect(this.position.x, this.position.y, this.minSize.x, this.minSize.y);
   this.m_TreeViewState = new TreeViewState();
   this.m_TreeView = new TreeView((EditorWindow) this, this.m_TreeViewState);
   this.m_ImportGUI = new SketchUpTreeViewGUI(this.m_TreeView);
   this.m_DataSource = new SketchUpDataSource(this.m_TreeView, nodes);
   this.m_TreeView.Init(this.position, (ITreeViewDataSource) this.m_DataSource, (ITreeViewGUI) this.m_ImportGUI, (ITreeViewDragging) null);
   this.m_TreeView.selectionChangedCallback += new System.Action<int[]>(this.OnTreeSelectionChanged);
   this.m_ModelEditor = new WeakReference((object) suModelEditor);
   this.isModal = false;
 }
        public void Init(SketchUpNodeInfo[] nodes, SketchUpImporterModelEditor suModelEditor)
        {
            titleContent = Styles.styles.windowTitle;
            minSize      = m_WindowMinSize;
            position     = new Rect(position.x, position.y, minSize.x, minSize.y);

            m_TreeViewState = new TreeViewState();

            m_TreeView = new TreeViewController(this, m_TreeViewState);

            m_ImportGUI  = new SketchUpTreeViewGUI(m_TreeView);
            m_DataSource = new SketchUpDataSource(m_TreeView, nodes);
            m_TreeView.Init(position, m_DataSource, m_ImportGUI, null);

            m_TreeView.selectionChangedCallback += OnTreeSelectionChanged;

            m_ModelEditor = new WeakReference(suModelEditor);

            isModal = false;
        }