public InputItem2D(AnimNodeBlend2DItem 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.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._ThresoldFieldX = new UI.FloatField() { Column = 3, VerticalAlignment = Framework.UI.VerticalAlignment.Center }; this.Controls.Add(this._ThresoldFieldX); this._ThresoldFieldX.ValueChanged += _ThresoldFieldX_ValueChanged; this._ThresoldFieldY = new UI.FloatField() { Column = 5, VerticalAlignment = Framework.UI.VerticalAlignment.Center }; this.Controls.Add(this._ThresoldFieldY); this._ThresoldFieldY.ValueChanged += _ThresoldFieldY_ValueChanged; }
protected override void CreateCustomFileds() { AnimNodeBlend2DItem item = base.Object as AnimNodeBlend2DItem; _ParameterSelector = new Blend2DParameterSelector(item); Controls.Add(_ParameterSelector); _ConnectorManager = new Blend2DInputConnectorManager(item); Controls.Add(_ConnectorManager); base.CreateCustomFileds(); }
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); }
public Blend2DParameterSelector(AnimNodeBlend2DItem item) : base(item, AnimationTreeParameterType.Float, 2) { }
public Blend2DItemProperties(AnimNodeBlend2DItem item) : base(item) { }
public Blend2DInputConnectorManager(AnimNodeBlend2DItem item) : base(item) { }