コード例 #1
0
 public void OnEnable()
 {
     this.m_Search = "";
     this.m_Tree = null;
     this.m_SearchTree = null;
     this.m_SearchMode = 0;
     this.m_ScrollPosition = new Vector2(0f, 0f);
     this.m_RenameOverlay = new RenameOverlay();
     this.m_LastSelectedIndex = -1;
     this.m_ParameterList = new ReorderableList(this.m_Tree, typeof(Element), true, false, false, false);
     this.m_ParameterList.onReorderCallback = new ReorderableList.ReorderCallbackDelegate(this.OnReorderParameter);
     this.m_ParameterList.drawElementCallback = new ReorderableList.ElementCallbackDelegate(this.OnDrawParameter);
     this.m_ParameterList.drawElementBackgroundCallback = new ReorderableList.ElementCallbackDelegate(this.OnDrawBackgroundParameter);
     this.m_ParameterList.onMouseUpCallback = new ReorderableList.SelectCallbackDelegate(this.OnMouseUpParameter);
     this.m_ParameterList.index = 0;
     this.m_ParameterList.headerHeight = 0f;
     this.m_ParameterList.elementHeight = 24f;
     Undo.undoRedoPerformed = (Undo.UndoRedoCallback) Delegate.Combine(Undo.undoRedoPerformed, new Undo.UndoRedoCallback(this.UndoRedoPerformed));
 }