public void OnGUI(Rect rect)
        {
            if (ReorderableListWithRenameAndScrollView.s_Styles == null)
            {
                ReorderableListWithRenameAndScrollView.s_Styles = new ReorderableListWithRenameAndScrollView.Styles();
            }
            if (this.onGetNameAtIndex == null)
            {
                Debug.LogError("Ensure to set: 'onGetNameAtIndex'");
            }
            Event current = Event.current;

            if (current.type == EventType.MouseDown && rect.Contains(current.mousePosition))
            {
                this.m_HadKeyFocusAtMouseDown = this.m_ReorderableList.HasKeyboardControl();
            }
            if (this.m_FrameIndex != -1)
            {
                this.EnsureRowIsVisible(this.m_FrameIndex, rect.height);
                this.m_FrameIndex = -1;
            }
            GUILayout.BeginArea(rect);
            this.m_State.m_ScrollPos = GUILayout.BeginScrollView(this.m_State.m_ScrollPos, new GUILayoutOption[0]);
            this.m_ReorderableList.DoLayoutList();
            GUILayout.EndScrollView();
            GUILayout.EndArea();
            AudioMixerDrawUtils.DrawScrollDropShadow(rect, this.m_State.m_ScrollPos.y, this.m_ReorderableList.GetHeight());
            this.KeyboardHandling();
            this.CommandHandling();
        }
 public void OnGUI(Rect rect)
 {
   if (ReorderableListWithRenameAndScrollView.s_Styles == null)
     ReorderableListWithRenameAndScrollView.s_Styles = new ReorderableListWithRenameAndScrollView.Styles();
   if (this.onGetNameAtIndex == null)
     Debug.LogError((object) "Ensure to set: 'onGetNameAtIndex'");
   Event current = Event.current;
   if (current.type == EventType.MouseDown && rect.Contains(current.mousePosition))
     this.m_HadKeyFocusAtMouseDown = this.m_ReorderableList.HasKeyboardControl();
   if (this.m_FrameIndex != -1)
   {
     this.EnsureRowIsVisible(this.m_FrameIndex, rect.height);
     this.m_FrameIndex = -1;
   }
   GUILayout.BeginArea(rect);
   this.m_State.m_ScrollPos = GUILayout.BeginScrollView(this.m_State.m_ScrollPos);
   this.m_ReorderableList.DoLayoutList();
   GUILayout.EndScrollView();
   GUILayout.EndArea();
   AudioMixerDrawUtils.DrawScrollDropShadow(rect, this.m_State.m_ScrollPos.y, this.m_ReorderableList.GetHeight());
   this.KeyboardHandling();
   this.CommandHandling();
 }