public void RecreateListControl()
 {
   if ((UnityEngine.Object) this.m_Controller == (UnityEngine.Object) null)
     return;
   this.m_Views = new List<MixerGroupView>((IEnumerable<MixerGroupView>) this.m_Controller.views);
   if (this.m_Views.Count == 0)
   {
     this.m_Views.Add(new MixerGroupView()
     {
       guids = this.m_Controller.GetAllAudioGroupsSlow().Select<AudioMixerGroupController, GUID>((Func<AudioMixerGroupController, GUID>) (gr => gr.groupID)).ToArray<GUID>(),
       name = "View"
     });
     this.SaveToBackend();
   }
   ReorderableList list = new ReorderableList((IList) this.m_Views, typeof (MixerGroupView), true, false, false, false);
   list.onReorderCallback += new ReorderableList.ReorderCallbackDelegate(this.EndDragChild);
   list.elementHeight = 16f;
   list.headerHeight = 0.0f;
   list.footerHeight = 0.0f;
   list.showDefaultBackground = false;
   list.index = this.m_Controller.currentViewIndex;
   if (this.m_Controller.currentViewIndex >= list.count)
     Debug.LogError((object) ("State mismatch, currentViewIndex: " + (object) this.m_Controller.currentViewIndex + ", num items: " + (object) list.count));
   this.m_ReorderableListWithRenameAndScrollView = new ReorderableListWithRenameAndScrollView(list, this.m_State);
   this.m_ReorderableListWithRenameAndScrollView.onSelectionChanged += new System.Action<int>(this.SelectionChanged);
   this.m_ReorderableListWithRenameAndScrollView.onNameChangedAtIndex += new System.Action<int, string>(this.NameChanged);
   this.m_ReorderableListWithRenameAndScrollView.onDeleteItemAtIndex += new System.Action<int>(this.Delete);
   this.m_ReorderableListWithRenameAndScrollView.onGetNameAtIndex += new Func<int, string>(this.GetNameOfElement);
   this.m_ReorderableListWithRenameAndScrollView.onCustomDrawElement += new ReorderableList.ElementCallbackDelegate(this.CustomDrawElement);
 }
 public ReorderableListWithRenameAndScrollView(ReorderableList list, ReorderableListWithRenameAndScrollView.State state)
 {
   this.m_State = state;
   this.m_ReorderableList = list;
   this.m_ReorderableList.drawElementCallback += new ReorderableList.ElementCallbackDelegate(this.DrawElement);
   this.m_ReorderableList.onSelectCallback += new ReorderableList.SelectCallbackDelegate(this.SelectCallback);
   this.m_ReorderableList.onMouseUpCallback += new ReorderableList.SelectCallbackDelegate(this.MouseUpCallback);
   this.m_ReorderableList.onReorderCallback += new ReorderableList.ReorderCallbackDelegate(this.ReorderCallback);
 }
		public ReorderableListWithRenameAndScrollView(ReorderableList list, ReorderableListWithRenameAndScrollView.State state)
		{
			this.m_State = state;
			this.m_ReorderableList = list;
			ReorderableList expr_28 = this.m_ReorderableList;
			expr_28.drawElementCallback = (ReorderableList.ElementCallbackDelegate)Delegate.Combine(expr_28.drawElementCallback, new ReorderableList.ElementCallbackDelegate(this.DrawElement));
			ReorderableList expr_4F = this.m_ReorderableList;
			expr_4F.onSelectCallback = (ReorderableList.SelectCallbackDelegate)Delegate.Combine(expr_4F.onSelectCallback, new ReorderableList.SelectCallbackDelegate(this.SelectCallback));
			ReorderableList expr_76 = this.m_ReorderableList;
			expr_76.onMouseUpCallback = (ReorderableList.SelectCallbackDelegate)Delegate.Combine(expr_76.onMouseUpCallback, new ReorderableList.SelectCallbackDelegate(this.MouseUpCallback));
			ReorderableList expr_9D = this.m_ReorderableList;
			expr_9D.onReorderCallback = (ReorderableList.ReorderCallbackDelegate)Delegate.Combine(expr_9D.onReorderCallback, new ReorderableList.ReorderCallbackDelegate(this.ReorderCallback));
		}
 public void RecreateListControl()
 {
   if (!((UnityEngine.Object) this.m_Controller != (UnityEngine.Object) null))
     return;
   this.m_ControllerSerialized = new SerializedObject((UnityEngine.Object) this.m_Controller);
   ReorderableList list = new ReorderableList(this.m_ControllerSerialized, this.m_ControllerSerialized.FindProperty("m_ExposedParameters"), false, false, false, false);
   list.onReorderCallback = new ReorderableList.ReorderCallbackDelegate(this.EndDragChild);
   list.drawElementCallback += new ReorderableList.ElementCallbackDelegate(this.DrawElement);
   list.elementHeight = 16f;
   list.headerHeight = 0.0f;
   list.footerHeight = 0.0f;
   list.showDefaultBackground = false;
   this.m_ReorderableListWithRenameAndScrollView = new ReorderableListWithRenameAndScrollView(list, this.m_State);
   this.m_ReorderableListWithRenameAndScrollView.onNameChangedAtIndex += new System.Action<int, string>(this.NameChanged);
   this.m_ReorderableListWithRenameAndScrollView.onDeleteItemAtIndex += new System.Action<int>(this.Delete);
   this.m_ReorderableListWithRenameAndScrollView.onGetNameAtIndex += new Func<int, string>(this.GetNameOfElement);
 }
 private void RecreateListControl()
 {
   if ((UnityEngine.Object) this.m_Controller == (UnityEngine.Object) null)
     return;
   this.m_Snapshots = new List<AudioMixerSnapshotController>((IEnumerable<AudioMixerSnapshotController>) this.m_Controller.snapshots);
   this.m_ReorderableListWithRenameAndScrollView = new ReorderableListWithRenameAndScrollView(new ReorderableList((IList) this.m_Snapshots, typeof (AudioMixerSnapshotController), true, false, false, false)
   {
     onReorderCallback = new ReorderableList.ReorderCallbackDelegate(this.EndDragChild),
     elementHeight = 16f,
     headerHeight = 0.0f,
     footerHeight = 0.0f,
     showDefaultBackground = false,
     index = this.GetSnapshotIndex(this.m_Controller.TargetSnapshot)
   }, this.m_State);
   this.m_ReorderableListWithRenameAndScrollView.onSelectionChanged += new System.Action<int>(this.SelectionChanged);
   this.m_ReorderableListWithRenameAndScrollView.onNameChangedAtIndex += new System.Action<int, string>(this.NameChanged);
   this.m_ReorderableListWithRenameAndScrollView.onDeleteItemAtIndex += new System.Action<int>(this.Delete);
   this.m_ReorderableListWithRenameAndScrollView.onGetNameAtIndex += new Func<int, string>(this.GetNameOfElement);
   this.m_ReorderableListWithRenameAndScrollView.onCustomDrawElement += new ReorderableList.ElementCallbackDelegate(this.CustomDrawElement);
 }
		public void RecreateListControl()
		{
			if (this.m_Controller != null)
			{
				this.m_ControllerSerialized = new SerializedObject(this.m_Controller);
				SerializedProperty elements = this.m_ControllerSerialized.FindProperty("m_ExposedParameters");
				ReorderableList reorderableList = new ReorderableList(this.m_ControllerSerialized, elements, false, false, false, false);
				reorderableList.onReorderCallback = new ReorderableList.ReorderCallbackDelegate(this.EndDragChild);
				ReorderableList expr_57 = reorderableList;
				expr_57.drawElementCallback = (ReorderableList.ElementCallbackDelegate)Delegate.Combine(expr_57.drawElementCallback, new ReorderableList.ElementCallbackDelegate(this.DrawElement));
				reorderableList.elementHeight = 16f;
				reorderableList.headerHeight = 0f;
				reorderableList.footerHeight = 0f;
				reorderableList.showDefaultBackground = false;
				this.m_ReorderableListWithRenameAndScrollView = new ReorderableListWithRenameAndScrollView(reorderableList, this.m_State);
				ReorderableListWithRenameAndScrollView expr_B8 = this.m_ReorderableListWithRenameAndScrollView;
				expr_B8.onNameChangedAtIndex = (Action<int, string>)Delegate.Combine(expr_B8.onNameChangedAtIndex, new Action<int, string>(this.NameChanged));
				ReorderableListWithRenameAndScrollView expr_DF = this.m_ReorderableListWithRenameAndScrollView;
				expr_DF.onDeleteItemAtIndex = (Action<int>)Delegate.Combine(expr_DF.onDeleteItemAtIndex, new Action<int>(this.Delete));
				ReorderableListWithRenameAndScrollView expr_106 = this.m_ReorderableListWithRenameAndScrollView;
				expr_106.onGetNameAtIndex = (Func<int, string>)Delegate.Combine(expr_106.onGetNameAtIndex, new Func<int, string>(this.GetNameOfElement));
			}
		}
 public AudioMixerSnapshotListView(ReorderableListWithRenameAndScrollView.State state)
 {
   this.m_State = state;
 }
 public AudioMixerExposedParameterView(ReorderableListWithRenameAndScrollView.State state)
 {
   this.m_State = state;
 }
 private void RecreateListControl()
 {
     if (this.m_Controller != null)
     {
         this.m_Snapshots = new List<AudioMixerSnapshotController>(this.m_Controller.snapshots);
         ReorderableList list = new ReorderableList(this.m_Snapshots, typeof(AudioMixerSnapshotController), true, false, false, false) {
             onReorderCallback = new ReorderableList.ReorderCallbackDelegate(this.EndDragChild),
             elementHeight = 16f,
             headerHeight = 0f,
             footerHeight = 0f,
             showDefaultBackground = false,
             index = this.GetSnapshotIndex(this.m_Controller.TargetSnapshot)
         };
         this.m_ReorderableListWithRenameAndScrollView = new ReorderableListWithRenameAndScrollView(list, this.m_State);
         this.m_ReorderableListWithRenameAndScrollView.onSelectionChanged = (Action<int>) Delegate.Combine(this.m_ReorderableListWithRenameAndScrollView.onSelectionChanged, new Action<int>(this.SelectionChanged));
         this.m_ReorderableListWithRenameAndScrollView.onNameChangedAtIndex = (Action<int, string>) Delegate.Combine(this.m_ReorderableListWithRenameAndScrollView.onNameChangedAtIndex, new Action<int, string>(this, (IntPtr) this.NameChanged));
         this.m_ReorderableListWithRenameAndScrollView.onDeleteItemAtIndex = (Action<int>) Delegate.Combine(this.m_ReorderableListWithRenameAndScrollView.onDeleteItemAtIndex, new Action<int>(this.Delete));
         this.m_ReorderableListWithRenameAndScrollView.onGetNameAtIndex = (Func<int, string>) Delegate.Combine(this.m_ReorderableListWithRenameAndScrollView.onGetNameAtIndex, new Func<int, string>(this, (IntPtr) this.GetNameOfElement));
         this.m_ReorderableListWithRenameAndScrollView.onCustomDrawElement = (ReorderableList.ElementCallbackDelegate) Delegate.Combine(this.m_ReorderableListWithRenameAndScrollView.onCustomDrawElement, new ReorderableList.ElementCallbackDelegate(this.CustomDrawElement));
     }
 }
 public AudioMixerGroupViewList(ReorderableListWithRenameAndScrollView.State state)
 {
   this.m_State = state;
 }
 public void RecreateListControl()
 {
     if (this.m_Controller != null)
     {
         ReorderableList list;
         this.m_ControllerSerialized = new SerializedObject(this.m_Controller);
         SerializedProperty elements = this.m_ControllerSerialized.FindProperty("m_ExposedParameters");
         list = new ReorderableList(this.m_ControllerSerialized, elements, false, false, false, false) {
             onReorderCallback = new ReorderableList.ReorderCallbackDelegate(this.EndDragChild),
             drawElementCallback = (ReorderableList.ElementCallbackDelegate) Delegate.Combine(list.drawElementCallback, new ReorderableList.ElementCallbackDelegate(this.DrawElement)),
             elementHeight = 16f,
             headerHeight = 0f,
             footerHeight = 0f,
             showDefaultBackground = false
         };
         this.m_ReorderableListWithRenameAndScrollView = new ReorderableListWithRenameAndScrollView(list, this.m_State);
         this.m_ReorderableListWithRenameAndScrollView.onNameChangedAtIndex = (Action<int, string>) Delegate.Combine(this.m_ReorderableListWithRenameAndScrollView.onNameChangedAtIndex, new Action<int, string>(this.NameChanged));
         this.m_ReorderableListWithRenameAndScrollView.onDeleteItemAtIndex = (Action<int>) Delegate.Combine(this.m_ReorderableListWithRenameAndScrollView.onDeleteItemAtIndex, new Action<int>(this.Delete));
         this.m_ReorderableListWithRenameAndScrollView.onGetNameAtIndex = (Func<int, string>) Delegate.Combine(this.m_ReorderableListWithRenameAndScrollView.onGetNameAtIndex, new Func<int, string>(this.GetNameOfElement));
     }
 }
		private void RecreateListControl()
		{
			if (this.m_Controller == null)
			{
				return;
			}
			this.m_Views = new List<MixerGroupView>(this.m_Controller.views);
			if (this.m_Views.Count == 0)
			{
				MixerGroupView item = default(MixerGroupView);
				item.guids = (
					from gr in this.m_Controller.GetAllAudioGroupsSlow()
					select gr.groupID).ToArray<GUID>();
				item.name = "View";
				this.m_Views.Add(item);
				this.SaveToBackend();
			}
			ReorderableList reorderableList = new ReorderableList(this.m_Views, typeof(MixerGroupView), true, false, false, false);
			ReorderableList expr_B2 = reorderableList;
			expr_B2.onReorderCallback = (ReorderableList.ReorderCallbackDelegate)Delegate.Combine(expr_B2.onReorderCallback, new ReorderableList.ReorderCallbackDelegate(this.EndDragChild));
			reorderableList.elementHeight = 16f;
			reorderableList.headerHeight = 0f;
			reorderableList.footerHeight = 0f;
			reorderableList.showDefaultBackground = false;
			reorderableList.index = this.m_Controller.currentViewIndex;
			if (this.m_Controller.currentViewIndex >= reorderableList.count)
			{
				Debug.LogError(string.Concat(new object[]
				{
					"State mismatch, currentViewIndex: ",
					this.m_Controller.currentViewIndex,
					", num items: ",
					reorderableList.count
				}));
			}
			this.m_ReorderableListWithRenameAndScrollView = new ReorderableListWithRenameAndScrollView(reorderableList, this.m_State);
			ReorderableListWithRenameAndScrollView expr_17B = this.m_ReorderableListWithRenameAndScrollView;
			expr_17B.onSelectionChanged = (Action<int>)Delegate.Combine(expr_17B.onSelectionChanged, new Action<int>(this.SelectionChanged));
			ReorderableListWithRenameAndScrollView expr_1A2 = this.m_ReorderableListWithRenameAndScrollView;
			expr_1A2.onNameChangedAtIndex = (Action<int, string>)Delegate.Combine(expr_1A2.onNameChangedAtIndex, new Action<int, string>(this.NameChanged));
			ReorderableListWithRenameAndScrollView expr_1C9 = this.m_ReorderableListWithRenameAndScrollView;
			expr_1C9.onDeleteItemAtIndex = (Action<int>)Delegate.Combine(expr_1C9.onDeleteItemAtIndex, new Action<int>(this.Delete));
			ReorderableListWithRenameAndScrollView expr_1F0 = this.m_ReorderableListWithRenameAndScrollView;
			expr_1F0.onGetNameAtIndex = (Func<int, string>)Delegate.Combine(expr_1F0.onGetNameAtIndex, new Func<int, string>(this.GetNameOfElement));
			ReorderableListWithRenameAndScrollView expr_217 = this.m_ReorderableListWithRenameAndScrollView;
			expr_217.onCustomDrawElement = (ReorderableList.ElementCallbackDelegate)Delegate.Combine(expr_217.onCustomDrawElement, new ReorderableList.ElementCallbackDelegate(this.CustomDrawElement));
		}