public void LoadComponentS(string s) { Editor.Forms.Component com = new Editor.Forms.Component(); com.LoadComponentS(s); com.Location = location; location.Y += com.Height + padding; this.Controls.Add(com); Editor.Controls.LineControl line = new Editor.Controls.LineControl(); line.Location = location; line.Height = 3; location.Y += line.Height; this.Controls.Add(line); }
public void IntializeComponent() { this.SuspendLayout(); this.lineControl1 = new GameEditor.Editor.Controls.LineControl(); this.label2 = new System.Windows.Forms.Label(); this.textInstanceDataStepRate = new System.Windows.Forms.NumericUpDown(); this.textClassification = new System.Windows.Forms.NumericUpDown(); this.textAlignedByteOffset = new System.Windows.Forms.NumericUpDown(); this.textSlot = new System.Windows.Forms.NumericUpDown(); this.textSemanticIndex = new System.Windows.Forms.NumericUpDown(); this.textSemanticName = new System.Windows.Forms.TextBox(); this.textFormat = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); this.buttonRemoveConfirm = new System.Windows.Forms.Button(); this.buttonRemoveShaderVar = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.textInstanceDataStepRate)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textClassification)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textAlignedByteOffset)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textSlot)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textSemanticIndex)).BeginInit(); // // lineControl1 // this.lineControl1.Location = new System.Drawing.Point(2, 23); this.lineControl1.Name = "lineControl1"; this.lineControl1.Size = new System.Drawing.Size(485, 1); this.lineControl1.TabIndex = 8; this.lineControl1.Text = "lineControl1"; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(7, 7); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(60, 13); this.label2.TabIndex = 7; this.label2.Text = "Shader Var"; // // textInstanceDataStepRate // this.textInstanceDataStepRate.Location = new System.Drawing.Point(302, 189); this.textInstanceDataStepRate.Name = "textInstanceDataStepRate"; this.textInstanceDataStepRate.Size = new System.Drawing.Size(168, 20); this.textInstanceDataStepRate.TabIndex = 6; // // textClassification // this.textClassification.Location = new System.Drawing.Point(302, 163); this.textClassification.Name = "textClassification"; this.textClassification.Size = new System.Drawing.Size(168, 20); this.textClassification.TabIndex = 5; // // textAlignedByteOffset // this.textAlignedByteOffset.Location = new System.Drawing.Point(302, 137); this.textAlignedByteOffset.Name = "textAlignedByteOffset"; this.textAlignedByteOffset.Size = new System.Drawing.Size(168, 20); this.textAlignedByteOffset.TabIndex = 4; // // textSlot // this.textSlot.Location = new System.Drawing.Point(302, 111); this.textSlot.Name = "textSlot"; this.textSlot.Size = new System.Drawing.Size(168, 20); this.textSlot.TabIndex = 3; // // textSemanticIndex // this.textSemanticIndex.Location = new System.Drawing.Point(302, 58); this.textSemanticIndex.Name = "textSemanticIndex"; this.textSemanticIndex.Size = new System.Drawing.Size(168, 20); this.textSemanticIndex.TabIndex = 2; // // textSemanticName // this.textSemanticName.Location = new System.Drawing.Point(302, 32); this.textSemanticName.Name = "textSemanticName"; this.textSemanticName.Size = new System.Drawing.Size(168, 20); this.textSemanticName.TabIndex = 1; // // textFormat // this.textFormat.FormattingEnabled = true; this.textFormat.Location = new System.Drawing.Point(302, 84); this.textFormat.Name = "textFormat"; this.textFormat.Size = new System.Drawing.Size(168, 21); this.textFormat.TabIndex = 0; // // label3 // this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(214, 35); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(82, 13); this.label3.TabIndex = 9; this.label3.Text = "Semantic Name"; // // label4 // this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(216, 60); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(80, 13); this.label4.TabIndex = 10; this.label4.Text = "Semantic Index"; // // label5 // this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(257, 87); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(39, 13); this.label5.TabIndex = 11; this.label5.Text = "Format"; // // label6 // this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(271, 113); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(25, 13); this.label6.TabIndex = 12; this.label6.Text = "Slot"; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label7 // this.label7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label7.AutoSize = true; this.label7.Location = new System.Drawing.Point(199, 139); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(97, 13); this.label7.TabIndex = 13; this.label7.Text = "Aligned Byte Offset"; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label8 // this.label8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label8.AutoSize = true; this.label8.Location = new System.Drawing.Point(228, 165); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(68, 13); this.label8.TabIndex = 14; this.label8.Text = "Classification"; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // label9 // this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label9.AutoSize = true; this.label9.Location = new System.Drawing.Point(171, 191); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(125, 13); this.label9.TabIndex = 15; this.label9.Text = "Instance Data Step Rate"; this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // buttonRemoveConfirm // this.buttonRemoveConfirm.Enabled = false; this.buttonRemoveConfirm.Location = new System.Drawing.Point(283, 221); this.buttonRemoveConfirm.Name = "buttonRemoveConfirm"; this.buttonRemoveConfirm.Size = new System.Drawing.Size(187, 23); this.buttonRemoveConfirm.TabIndex = 16; this.buttonRemoveConfirm.Text = "Confirm Remove Shader Var"; this.buttonRemoveConfirm.UseVisualStyleBackColor = true; // // buttonRemoveShaderVar // this.buttonRemoveShaderVar.Location = new System.Drawing.Point(90, 221); this.buttonRemoveShaderVar.Name = "buttonRemoveShaderVar"; this.buttonRemoveShaderVar.Size = new System.Drawing.Size(187, 23); this.buttonRemoveShaderVar.TabIndex = 17; this.buttonRemoveShaderVar.Text = "Remove Shader Var"; this.buttonRemoveShaderVar.UseVisualStyleBackColor = true; // // ShaderVar // this.Controls.Add(this.buttonRemoveShaderVar); this.Controls.Add(this.buttonRemoveConfirm); this.Controls.Add(this.label9); this.Controls.Add(this.label8); this.Controls.Add(this.label7); this.Controls.Add(this.label6); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.lineControl1); this.Controls.Add(this.label2); this.Controls.Add(this.textInstanceDataStepRate); this.Controls.Add(this.textClassification); this.Controls.Add(this.textAlignedByteOffset); this.Controls.Add(this.textSlot); this.Controls.Add(this.textSemanticIndex); this.Controls.Add(this.textSemanticName); this.Controls.Add(this.textFormat); this.Location = new System.Drawing.Point(4, 22); this.Name = "shaderVar"; this.Padding = new System.Windows.Forms.Padding(3); this.Size = new System.Drawing.Size(490, 250); this.TabIndex = 0; this.Text = "ShaderVarTemplate"; this.UseVisualStyleBackColor = true; ((System.ComponentModel.ISupportInitialize)(this.textInstanceDataStepRate)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textClassification)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textAlignedByteOffset)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textSlot)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textSemanticIndex)).EndInit(); this.ResumeLayout(false); }