public InputConnectorItem(AnimNodeItem node) { this.Node = node; this.Height = 20; _LblHeader = new Label(); this.Controls.Add(_LblHeader); _Connector = new UI.Connector(UI.ConnectorType.Input) { VerticalAlignment = Framework.UI.VerticalAlignment.Center, HorizontalAlignment = Framework.UI.HorizontalAlignment.Right, Width = 20, Height = 12, Margin = new Thickness(0, 0, -20, 0), UserData = this.Node, SingleConnection = true }; this.Controls.Add(_Connector); _RefreshSyles = true; }
private void CreateOutputConnector() { if (_OutputConnector != null) { return; } _OutputConnector = new UI.Connector(UI.ConnectorType.Output) { Row = 1, Column = 0, VerticalAlignment = Framework.UI.VerticalAlignment.Center, HorizontalAlignment = Framework.UI.HorizontalAlignment.Left, Width = 20, Height = 12, Margin = new Thickness(-20, 0, 0, 0), UserData = this, SingleConnection = true, Name = "Connection" }; this.Controls.Add(_OutputConnector); }