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);
 }
Ejemplo n.º 2
0
 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 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));
        }
Ejemplo n.º 5
0
        public ReorderableListWithRenameAndScrollView(ReorderableList list, ReorderableListWithRenameAndScrollView.State state)
        {
            this.m_State           = state;
            this.m_ReorderableList = list;
            ReorderableList expr_3E = this.m_ReorderableList;

            expr_3E.drawElementCallback = (ReorderableList.ElementCallbackDelegate)Delegate.Combine(expr_3E.drawElementCallback, new ReorderableList.ElementCallbackDelegate(this.DrawElement));
            ReorderableList expr_65 = this.m_ReorderableList;

            expr_65.onSelectCallback = (ReorderableList.SelectCallbackDelegate)Delegate.Combine(expr_65.onSelectCallback, new ReorderableList.SelectCallbackDelegate(this.SelectCallback));
            ReorderableList expr_8C = this.m_ReorderableList;

            expr_8C.onMouseUpCallback = (ReorderableList.SelectCallbackDelegate)Delegate.Combine(expr_8C.onMouseUpCallback, new ReorderableList.SelectCallbackDelegate(this.MouseUpCallback));
            ReorderableList expr_B3 = this.m_ReorderableList;

            expr_B3.onReorderCallback = (ReorderableList.ReorderCallbackDelegate)Delegate.Combine(expr_B3.onReorderCallback, new ReorderableList.ReorderCallbackDelegate(this.ReorderCallback));
        }
 public AudioMixerSnapshotListView(ReorderableListWithRenameAndScrollView.State state)
 {
   this.m_State = state;
 }
 public AudioMixerExposedParameterView(ReorderableListWithRenameAndScrollView.State state)
 {
   this.m_State = state;
 }
 public AudioMixerGroupViewList(ReorderableListWithRenameAndScrollView.State state)
 {
   this.m_State = state;
 }
Ejemplo n.º 9
0
		private void Init()
		{
			if (this.m_Initialized)
			{
				return;
			}
			if (this.m_LayoutStripsOnTop == null)
			{
				this.m_LayoutStripsOnTop = new AudioMixerWindow.Layout();
			}
			if (this.m_LayoutStripsOnTop.m_VerticalSplitter == null || this.m_LayoutStripsOnTop.m_VerticalSplitter.realSizes.Length != 2)
			{
				this.m_LayoutStripsOnTop.m_VerticalSplitter = new SplitterState(new int[]
				{
					65,
					35
				}, new int[]
				{
					85,
					105
				}, null);
			}
			if (this.m_LayoutStripsOnTop.m_HorizontalSplitter == null || this.m_LayoutStripsOnTop.m_HorizontalSplitter.realSizes.Length != 4)
			{
				this.m_LayoutStripsOnTop.m_HorizontalSplitter = new SplitterState(new int[]
				{
					60,
					60,
					60,
					60
				}, new int[]
				{
					85,
					85,
					85,
					85
				}, null);
			}
			if (this.m_LayoutStripsOnRight == null)
			{
				this.m_LayoutStripsOnRight = new AudioMixerWindow.Layout();
			}
			if (this.m_LayoutStripsOnRight.m_HorizontalSplitter == null || this.m_LayoutStripsOnRight.m_HorizontalSplitter.realSizes.Length != 2)
			{
				this.m_LayoutStripsOnRight.m_HorizontalSplitter = new SplitterState(new int[]
				{
					30,
					70
				}, new int[]
				{
					160,
					160
				}, null);
			}
			if (this.m_LayoutStripsOnRight.m_VerticalSplitter == null || this.m_LayoutStripsOnRight.m_VerticalSplitter.realSizes.Length != 4)
			{
				this.m_LayoutStripsOnRight.m_VerticalSplitter = new SplitterState(new int[]
				{
					60,
					60,
					60,
					60
				}, new int[]
				{
					100,
					85,
					85,
					85
				}, null);
			}
			if (this.m_AudioGroupTreeState == null)
			{
				this.m_AudioGroupTreeState = new TreeViewState();
			}
			this.m_GroupTree = new AudioMixerGroupTreeView(this, this.m_AudioGroupTreeState);
			if (this.m_MixersTreeState == null)
			{
				this.m_MixersTreeState = new TreeViewState();
			}
			this.m_MixersTree = new AudioMixersTreeView(this, this.m_MixersTreeState, new Func<List<AudioMixerController>>(this.GetAllControllers));
			if (this.m_ViewsState == null)
			{
				this.m_ViewsState = new ReorderableListWithRenameAndScrollView.State();
			}
			this.m_GroupViews = new AudioMixerGroupViewList(this.m_ViewsState);
			if (this.m_SnapshotState == null)
			{
				this.m_SnapshotState = new ReorderableListWithRenameAndScrollView.State();
			}
			this.m_SnapshotListView = new AudioMixerSnapshotListView(this.m_SnapshotState);
			if (this.m_ChannelStripViewState == null)
			{
				this.m_ChannelStripViewState = new AudioMixerChannelStripView.State();
			}
			this.m_ChannelStripView = new AudioMixerChannelStripView(this.m_ChannelStripViewState);
			this.OnMixerControllerChanged();
			this.m_Initialized = true;
		}