public void Expand(AnimationHierarchyData data, int level)
		{
			this.m_Expanded = true;
			if (level > 0)
			{
				data.expandedFoldouts.Set(AnimationSelection.GetPath(this.obj.transform));
			}
			data.animationWindow.SetDirtyCurves();
		}
Esempio n. 2
0
 public void Expand(AnimationHierarchyData data, Transform tr, int level)
 {
     this.m_Expanded = true;
     if (level > 0 || this.m_Object.GetType() != typeof(Transform))
     {
         data.expandedFoldouts.Set(this.GetString(tr));
     }
     data.animationWindow.SetDirtyCurves();
 }
Esempio n. 3
0
 public void Expand(AnimationHierarchyData data, int level)
 {
     this.m_Expanded = true;
     if (level > 0)
     {
         data.expandedFoldouts.Set(AnimationSelection.GetPath(this.obj.transform));
     }
     data.animationWindow.SetDirtyCurves();
 }
		public void Expand(AnimationHierarchyData data, Transform tr, int level)
		{
			this.m_Expanded = true;
			if (level > 0 || this.m_Object.GetType() != typeof(Transform))
			{
				data.expandedFoldouts.Set(this.GetString(tr));
			}
			data.animationWindow.SetDirtyCurves();
		}
Esempio n. 5
0
 public void Collapse(AnimationHierarchyData data, Transform tr, int level)
 {
     this.m_Expanded = false;
     this.Hide(data, tr, level);
     if (level > 0 || this.m_Object.GetType() != typeof(Transform))
     {
         data.expandedFoldouts.Remove(this.GetString(tr));
     }
     data.animationWindow.SetDirtyCurves();
 }
		public void Collapse(AnimationHierarchyData data, int level)
		{
			this.m_Expanded = false;
			this.Hide(data, level);
			if (level > 0)
			{
				data.expandedFoldouts.Remove(AnimationSelection.GetPath(this.obj.transform));
			}
			data.animationWindow.SetDirtyCurves();
		}
Esempio n. 7
0
 public void Collapse(AnimationHierarchyData data, int level)
 {
     this.m_Expanded = false;
     this.Hide(data, level);
     if (level > 0)
     {
         data.expandedFoldouts.Remove(AnimationSelection.GetPath(this.obj.transform));
     }
     data.animationWindow.SetDirtyCurves();
 }
		public void Collapse(AnimationHierarchyData data, Transform tr, int level)
		{
			this.m_Expanded = false;
			this.Hide(data, tr, level);
			if (level > 0 || this.m_Object.GetType() != typeof(Transform))
			{
				data.expandedFoldouts.Remove(this.GetString(tr));
			}
			data.animationWindow.SetDirtyCurves();
		}
Esempio n. 9
0
        public void RefreshAnimatedState(AnimationHierarchyData data)
        {
            this.m_Animated = false;
            string text = AnimationUtility.CalculateTransformPath(this.obj.transform, data.animated.transform);

            foreach (int num in data.animatedPaths.Keys)
            {
                if (num == text.GetHashCode())
                {
                    this.m_Animated = true;
                }
            }
        }
Esempio n. 10
0
        public void RefreshAnimatedState(AnimationHierarchyData data, Transform tr)
        {
            this.m_Animated = false;
            string path = AnimationUtility.CalculateTransformPath(tr, data.animated.transform);

            foreach (int num in data.animatedPaths.Keys)
            {
                if (num == CurveUtility.GetPathAndTypeID(path, this.obj.GetType()))
                {
                    this.m_Animated = true;
                    break;
                }
            }
        }
Esempio n. 11
0
 public void AddChildCurvesToList(List <CurveState> curves, AnimationHierarchyData data)
 {
     if (!this.expanded)
     {
         return;
     }
     CurveState[] curveStates = this.curveStates;
     for (int i = 0; i < curveStates.Length; i++)
     {
         CurveState curveState = curveStates[i];
         if (curveState.animated || data.animationWindow.showAllProperties)
         {
             curves.Add(curveState);
         }
     }
 }
Esempio n. 12
0
 public void AddChildCurvesToList(List <CurveState> curves, AnimationHierarchyData data)
 {
     if (!this.expanded)
     {
         return;
     }
     FoldoutComponentState[] components = this.components;
     for (int i = 0; i < components.Length; i++)
     {
         FoldoutComponentState foldoutComponentState = components[i];
         foldoutComponentState.AddChildCurvesToList(curves, data);
     }
     int[] children = this.children;
     for (int j = 0; j < children.Length; j++)
     {
         int num = children[j];
         data.states[num].AddChildCurvesToList(curves, data);
     }
 }
Esempio n. 13
0
 public void Hide(AnimationHierarchyData data, int level)
 {
     if (this.m_Components != null)
     {
         FoldoutComponentState[] components = this.m_Components;
         for (int i = 0; i < components.Length; i++)
         {
             FoldoutComponentState foldoutComponentState = components[i];
             if (foldoutComponentState.expanded)
             {
                 foldoutComponentState.Hide(data, this.obj.transform, level);
             }
         }
     }
     int[] children = this.children;
     for (int j = 0; j < children.Length; j++)
     {
         int num = children[j];
         if (data.states[num].expanded)
         {
             data.states[num].Hide(data, level + 1);
         }
     }
 }
Esempio n. 14
0
 public void Refresh(AnimationHierarchyData data)
 {
 }
Esempio n. 15
0
		public void Refresh(AnimationHierarchyData data)
		{
		}
		public void Hide(AnimationHierarchyData data, int level)
		{
			if (this.m_Components != null)
			{
				FoldoutComponentState[] components = this.m_Components;
				for (int i = 0; i < components.Length; i++)
				{
					FoldoutComponentState foldoutComponentState = components[i];
					if (foldoutComponentState.expanded)
					{
						foldoutComponentState.Hide(data, this.obj.transform, level);
					}
				}
			}
			int[] children = this.children;
			for (int j = 0; j < children.Length; j++)
			{
				int num = children[j];
				if (data.states[num].expanded)
				{
					data.states[num].Hide(data, level + 1);
				}
			}
		}
		public void AddChildCurvesToList(List<CurveState> curves, AnimationHierarchyData data)
		{
			if (!this.expanded)
			{
				return;
			}
			FoldoutComponentState[] components = this.components;
			for (int i = 0; i < components.Length; i++)
			{
				FoldoutComponentState foldoutComponentState = components[i];
				foldoutComponentState.AddChildCurvesToList(curves, data);
			}
			int[] children = this.children;
			for (int j = 0; j < children.Length; j++)
			{
				int num = children[j];
				data.states[num].AddChildCurvesToList(curves, data);
			}
		}
		public void RefreshAnimatedState(AnimationHierarchyData data)
		{
			this.m_Animated = false;
			string text = AnimationUtility.CalculateTransformPath(this.obj.transform, data.animated.transform);
			foreach (int num in data.animatedPaths.Keys)
			{
				if (num == text.GetHashCode())
				{
					this.m_Animated = true;
				}
			}
		}
		public void AddChildCurvesToList(List<CurveState> curves, AnimationHierarchyData data)
		{
			if (!this.expanded)
			{
				return;
			}
			CurveState[] curveStates = this.curveStates;
			for (int i = 0; i < curveStates.Length; i++)
			{
				CurveState curveState = curveStates[i];
				if (curveState.animated || data.animationWindow.showAllProperties)
				{
					curves.Add(curveState);
				}
			}
		}
		public void RefreshAnimatedState(AnimationHierarchyData data, Transform tr)
		{
			this.m_Animated = false;
			string path = AnimationUtility.CalculateTransformPath(tr, data.animated.transform);
			foreach (int num in data.animatedPaths.Keys)
			{
				if (num == CurveUtility.GetPathAndTypeID(path, this.obj.GetType()))
				{
					this.m_Animated = true;
					break;
				}
			}
		}
		public void Hide(AnimationHierarchyData data, Transform tr, int level)
		{
			this.m_CurveStates = null;
		}
Esempio n. 22
0
 public void Hide(AnimationHierarchyData data, Transform tr, int level)
 {
     this.m_CurveStates = null;
 }