コード例 #1
0
 private void DoCurveDropdown(Rect rect, AnimationWindowHierarchyNode node)
 {
     rect = new Rect((rect.xMax - 10f) - 12f, rect.yMin + 2f, 22f, 12f);
     if (GUI.Button(rect, GUIContent.none, this.m_AnimationCurveDropdown))
     {
         this.state.SelectHierarchyItem(node.id, false, false);
         AnimationWindowHierarchyNode[] source = new AnimationWindowHierarchyNode[] { node };
         this.GenerateMenu(source.ToList <AnimationWindowHierarchyNode>()).DropDown(rect);
         Event.current.Use();
     }
 }
コード例 #2
0
 private void DoCurveDropdown(Rect rect, AnimationWindowHierarchyNode node, int row, bool enabled)
 {
     rect = new Rect((rect.xMax - 10f) - 12f, rect.yMin + 2f, 22f, 12f);
     if (this.DoTreeViewButton(this.m_HierarchyItemButtonControlIDs[row], rect, GUIContent.none, this.m_AnimationCurveDropdown))
     {
         this.state.SelectHierarchyItem(node.id, false, false);
         AnimationWindowHierarchyNode[] source = new AnimationWindowHierarchyNode[] { node };
         this.GenerateMenu(source.ToList <AnimationWindowHierarchyNode>(), enabled).DropDown(rect);
         Event.current.Use();
     }
 }
コード例 #3
0
 private void DoCurveDropdown(Rect rect, AnimationWindowHierarchyNode node)
 {
     rect = new Rect((rect.xMax - 10f) - 12f, rect.yMin + 2f, 22f, 12f);
     if (GUI.Button(rect, GUIContent.none, this.m_AnimationCurveDropdown))
     {
         this.state.SelectHierarchyItem(node.id, false, false);
         AnimationWindowHierarchyNode[] source = new AnimationWindowHierarchyNode[] { node };
         this.GenerateMenu(source.ToList<AnimationWindowHierarchyNode>()).DropDown(rect);
         Event.current.Use();
     }
 }