Ejemplo n.º 1
0
 public void Init(Rect rect, ITreeViewDataSource data, ITreeViewGUI gui, ITreeViewDragging dragging)
 {
     this.data        = data;
     this.gui         = gui;
     this.dragging    = dragging;
     this.m_TotalRect = rect;
     data.OnInitialize();
     gui.OnInitialize();
     if (dragging != null)
     {
         dragging.OnInitialize();
     }
     this.expandedStateChanged = (Action)Delegate.Combine(this.expandedStateChanged, new Action(this.ExpandedStateHasChanged));
     this.m_FramingAnimFloat   = new AnimFloat(this.state.scrollPos.y, new UnityAction(this.AnimatedScrollChanged));
 }
Ejemplo n.º 2
0
 public void Init(Rect rect, ITreeViewDataSource data, ITreeViewGUI gui, ITreeViewDragging dragging)
 {
     this.data     = data;
     this.gui      = gui;
     this.dragging = dragging;
     m_TotalRect   = rect;
     data.OnInitialize();
     gui.OnInitialize();
     if (dragging != null)
     {
         dragging.OnInitialize();
     }
     expandedStateChanged += ExpandedStateHasChanged;
     m_FramingAnimFloat    = new AnimFloat(state.scrollPos.y, AnimatedScrollChanged);
 }
Ejemplo n.º 3
0
 public void Init(Rect rect, ITreeViewDataSource data, ITreeViewGUI gui, ITreeViewDragging dragging)
 {
   this.data = data;
   this.gui = gui;
   this.dragging = dragging;
   this.m_TotalRect = rect;
   data.OnInitialize();
   gui.OnInitialize();
   if (dragging != null)
     dragging.OnInitialize();
   this.expandedStateChanged += new System.Action(this.ExpandedStateHasChanged);
   this.m_FramingAnimFloat = new AnimFloat(this.state.scrollPos.y, new UnityAction(this.AnimatedScrollChanged));
 }