Exemplo n.º 1
0
            protected override void CreateCustomFileds()
            {
                AnimNodeBlendByIndexItem item = base.Object as AnimNodeBlendByIndexItem;

                _ParameterSelector = new BlendByIndexParameterSelector(item);
                Controls.Add(_ParameterSelector);

                _ConnectorManager = new BlendByIndexInputConnectorManager(item);
                Controls.Add(_ConnectorManager);
                base.CreateCustomFileds();
            }
Exemplo n.º 2
0
        private AnimNodeItem CreateItem(AnimNodeData data)
        {
            AnimNodeItem item = null;

            switch (data.NodeType)
            {
            case AnimNodeType.Sequence:
                item = new AnimNodeSequenceItem((AnimNodeSequenceData)data)
                {
                };
                break;

            case AnimNodeType.Override:
                item = new AnimNodeOverrideItem((AnimNodeOverrideData)data);
                break;

            case AnimNodeType.Blend1D:
                item = new AnimNodeBlend1DItem((AnimNodeBlend1DData)data);
                break;

            case AnimNodeType.Blend2D:
                item = new AnimNodeBlend2DItem((AnimNodeBlend2DData)data);
                break;

            case AnimNodeType.Additive:
                item = new AnimNodeAdditiveBlendingItem((AnimNodeAdditiveBlendingData)data);
                break;

            case AnimNodeType.BlendByIndex:
                item = new AnimNodeBlendByIndexItem((AnimNodeBlendByIndexData)data);
                break;

            case AnimNodeType.Root:
                item = new AnimationTreeRootItem((AnimationTreeRootData)data);
                break;
                //case AnimNodeType.SubTree:
                //    item = new AnimNodeSubTreeItem((AnimNodeSubTreeData)data);
                //    break;
            }
            return(item);
        }
Exemplo n.º 3
0
                public InputItemIndex(AnimNodeBlendByIndexItem item)
                    : base(item)
                {
                    this.Height = 22;
                    this.Margin = new Framework.UI.Thickness(0, 0, 17, 0);
                    this.ColumnDefinitions.Add(8, Framework.UI.GridUnitType.Pixel);
                    this.ColumnDefinitions.Add(2, Framework.UI.GridUnitType.Star);
                    this.ColumnDefinitions.Add(8, Framework.UI.GridUnitType.Pixel);
                    this.ColumnDefinitions.Add(1, Framework.UI.GridUnitType.Star);
                    this.ColumnDefinitions.Add(8, Framework.UI.GridUnitType.Pixel);

                    this._TxtName = new UI.TextField()
                    {
                        Column = 1, VerticalAlignment = Framework.UI.VerticalAlignment.Center
                    };
                    this.Controls.Add(this._TxtName);
                    this._TxtName.TextChanged += _TxtName_TextChanged;

                    this._LblIndex = new Framework.UI.Label()
                    {
                        Column = 3, VerticalAlignment = Framework.UI.VerticalAlignment.Center
                    };
                    this.Controls.Add(this._LblIndex);
                }
Exemplo n.º 4
0
 public BlendByIndexInputConnectorManager(AnimNodeBlendByIndexItem item) :
     base(item)
 {
 }
Exemplo n.º 5
0
 public BlendByIndexParameterSelector(AnimNodeBlendByIndexItem item)
     : base(item, AnimationTreeParameterType.Integer, 1)
 {
 }
Exemplo n.º 6
0
 public BlendByIndexProperties(AnimNodeBlendByIndexItem item)
     : base(item)
 {
 }