Пример #1
0
 private void InitializeComponent()
 {
     btnSetWeight   = new Button();
     btnBlend       = new Button();
     btnAdd         = new Button();
     btnSubtract    = new Button();
     btnLock        = new Button();
     lblBoneName    = new Label();
     btnRemove      = new Button();
     panel1         = new Panel();
     numMult        = new NumericInputBox();
     btnMult        = new Button();
     btnDiv         = new Button();
     numAdd         = new NumericInputBox();
     numWeight      = new NumericInputBox();
     btnPaste       = new Button();
     btnCopy        = new Button();
     lstBoneWeights = new RefreshableListBox();
     panel1.SuspendLayout();
     SuspendLayout();
     //
     // btnSetWeight
     //
     btnSetWeight.Enabled  = false;
     btnSetWeight.Location = new Drawing.Point(67, 28);
     btnSetWeight.Name     = "btnSetWeight";
     btnSetWeight.Size     = new Drawing.Size(61, 22);
     btnSetWeight.TabIndex = 2;
     btnSetWeight.Text     = "Set";
     btnSetWeight.UseVisualStyleBackColor = true;
     btnSetWeight.Click += btnSetWeight_Click;
     //
     // btnBlend
     //
     btnBlend.Location = new Drawing.Point(129, 28);
     btnBlend.Name     = "btnBlend";
     btnBlend.Size     = new Drawing.Size(62, 22);
     btnBlend.TabIndex = 4;
     btnBlend.Text     = "Blend";
     btnBlend.UseVisualStyleBackColor = true;
     btnBlend.Visible = false;
     btnBlend.Click  += btnBlend_Click;
     //
     // btnAdd
     //
     btnAdd.Enabled  = false;
     btnAdd.Location = new Drawing.Point(67, 52);
     btnAdd.Name     = "btnAdd";
     btnAdd.Size     = new Drawing.Size(30, 22);
     btnAdd.TabIndex = 7;
     btnAdd.Text     = "+";
     btnAdd.UseVisualStyleBackColor = true;
     btnAdd.Click += btnAdd_Click;
     //
     // btnSubtract
     //
     btnSubtract.Enabled  = false;
     btnSubtract.Location = new Drawing.Point(98, 52);
     btnSubtract.Name     = "btnSubtract";
     btnSubtract.Size     = new Drawing.Size(30, 22);
     btnSubtract.TabIndex = 8;
     btnSubtract.Text     = "-";
     btnSubtract.UseVisualStyleBackColor = true;
     btnSubtract.Click += btnSubtract_Click;
     //
     // btnLock
     //
     btnLock.Enabled  = false;
     btnLock.Location = new Drawing.Point(2, 4);
     btnLock.Name     = "btnLock";
     btnLock.Size     = new Drawing.Size(64, 22);
     btnLock.TabIndex = 10;
     btnLock.Text     = "Lock";
     btnLock.UseVisualStyleBackColor = true;
     btnLock.Click += btnLock_Click;
     //
     // lblBoneName
     //
     lblBoneName.AutoSize = true;
     lblBoneName.Location = new Drawing.Point(134, 9);
     lblBoneName.Name     = "lblBoneName";
     lblBoneName.Size     = new Drawing.Size(32, 13);
     lblBoneName.TabIndex = 11;
     lblBoneName.Text     = "Bone";
     //
     // btnRemove
     //
     btnRemove.Enabled  = false;
     btnRemove.Location = new Drawing.Point(67, 4);
     btnRemove.Name     = "btnRemove";
     btnRemove.Size     = new Drawing.Size(61, 22);
     btnRemove.TabIndex = 12;
     btnRemove.Text     = "Remove";
     btnRemove.UseVisualStyleBackColor = true;
     btnRemove.Click += btnRemoveBone_Click;
     //
     // panel1
     //
     panel1.Controls.Add(numMult);
     panel1.Controls.Add(btnMult);
     panel1.Controls.Add(btnDiv);
     panel1.Controls.Add(numAdd);
     panel1.Controls.Add(btnAdd);
     panel1.Controls.Add(numWeight);
     panel1.Controls.Add(btnBlend);
     panel1.Controls.Add(btnPaste);
     panel1.Controls.Add(btnSetWeight);
     panel1.Controls.Add(btnCopy);
     panel1.Controls.Add(btnSubtract);
     panel1.Controls.Add(btnLock);
     panel1.Controls.Add(lblBoneName);
     panel1.Controls.Add(btnRemove);
     panel1.Dock     = DockStyle.Fill;
     panel1.Location = new Drawing.Point(130, 0);
     panel1.Name     = "panel1";
     panel1.Size     = new Drawing.Size(130, 103);
     panel1.TabIndex = 14;
     //
     // numMult
     //
     numMult.Enabled      = false;
     numMult.Integral     = false;
     numMult.Location     = new Drawing.Point(3, 77);
     numMult.MaximumValue = 3.402823E+38F;
     numMult.MinimumValue = -3.402823E+38F;
     numMult.Name         = "numMult";
     numMult.Size         = new Drawing.Size(62, 20);
     numMult.TabIndex     = 16;
     numMult.Text         = "1.05";
     //
     // btnMult
     //
     btnMult.Enabled  = false;
     btnMult.Location = new Drawing.Point(67, 76);
     btnMult.Name     = "btnMult";
     btnMult.Size     = new Drawing.Size(30, 22);
     btnMult.TabIndex = 14;
     btnMult.Text     = "x";
     btnMult.UseVisualStyleBackColor = true;
     btnMult.Click += btnMult_Click;
     //
     // btnDiv
     //
     btnDiv.Enabled  = false;
     btnDiv.Location = new Drawing.Point(98, 76);
     btnDiv.Name     = "btnDiv";
     btnDiv.Size     = new Drawing.Size(30, 22);
     btnDiv.TabIndex = 15;
     btnDiv.Text     = "/";
     btnDiv.UseVisualStyleBackColor = true;
     btnDiv.Click += btnDiv_Click;
     //
     // numAdd
     //
     numAdd.Enabled      = false;
     numAdd.Integral     = false;
     numAdd.Location     = new Drawing.Point(3, 53);
     numAdd.MaximumValue = 3.402823E+38F;
     numAdd.MinimumValue = -3.402823E+38F;
     numAdd.Name         = "numAdd";
     numAdd.Size         = new Drawing.Size(62, 20);
     numAdd.TabIndex     = 13;
     numAdd.Text         = "10";
     //
     // numWeight
     //
     numWeight.Enabled       = false;
     numWeight.Integral      = false;
     numWeight.Location      = new Drawing.Point(3, 29);
     numWeight.MaximumValue  = 3.402823E+38F;
     numWeight.MinimumValue  = -3.402823E+38F;
     numWeight.Name          = "numWeight";
     numWeight.Size          = new Drawing.Size(62, 20);
     numWeight.TabIndex      = 3;
     numWeight.Text          = "100";
     numWeight.ValueChanged += numWeight_ValueChanged;
     //
     // btnPaste
     //
     btnPaste.Location = new Drawing.Point(129, 75);
     btnPaste.Name     = "btnPaste";
     btnPaste.Size     = new Drawing.Size(62, 22);
     btnPaste.TabIndex = 6;
     btnPaste.Text     = "Paste";
     btnPaste.UseVisualStyleBackColor = true;
     btnPaste.Visible = false;
     btnPaste.Click  += btnPaste_Click;
     //
     // btnCopy
     //
     btnCopy.Location = new Drawing.Point(129, 51);
     btnCopy.Name     = "btnCopy";
     btnCopy.Size     = new Drawing.Size(62, 22);
     btnCopy.TabIndex = 5;
     btnCopy.Text     = "Copy";
     btnCopy.UseVisualStyleBackColor = true;
     btnCopy.Visible = false;
     btnCopy.Click  += btnCopy_Click;
     //
     // lstBoneWeights
     //
     lstBoneWeights.Dock                  = DockStyle.Left;
     lstBoneWeights.DrawMode              = DrawMode.OwnerDrawFixed;
     lstBoneWeights.FormattingEnabled     = true;
     lstBoneWeights.IntegralHeight        = false;
     lstBoneWeights.Location              = new Drawing.Point(0, 0);
     lstBoneWeights.Name                  = "lstBoneWeights";
     lstBoneWeights.Size                  = new Drawing.Size(130, 103);
     lstBoneWeights.TabIndex              = 0;
     lstBoneWeights.DrawItem             += new DrawItemEventHandler(lstBoneWeights_DrawItem);
     lstBoneWeights.SelectedIndexChanged += lstBoneWeights_SelectedIndexChanged;
     //
     // WeightEditor
     //
     Controls.Add(panel1);
     Controls.Add(lstBoneWeights);
     MinimumSize = new Drawing.Size(260, 103);
     Name        = "WeightEditor";
     Size        = new Drawing.Size(260, 103);
     panel1.ResumeLayout(false);
     panel1.PerformLayout();
     ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.lstBoneWeights = new System.Windows.Forms.RefreshableListBox();
     this.btnSetWeight = new System.Windows.Forms.Button();
     this.numWeight = new System.Windows.Forms.NumericInputBox();
     this.btnBlend = new System.Windows.Forms.Button();
     this.btnCopy = new System.Windows.Forms.Button();
     this.btnPaste = new System.Windows.Forms.Button();
     this.btnAdd = new System.Windows.Forms.Button();
     this.btnSubtract = new System.Windows.Forms.Button();
     this.btnLock = new System.Windows.Forms.Button();
     this.lblBoneName = new System.Windows.Forms.Label();
     this.btnRemove = new System.Windows.Forms.Button();
     this.panel1 = new System.Windows.Forms.Panel();
     this.splitter1 = new System.Windows.Forms.Splitter();
     this.splitter2 = new System.Windows.Forms.Splitter();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // lstBoneWeights
     //
     this.lstBoneWeights.Dock = System.Windows.Forms.DockStyle.Fill;
     this.lstBoneWeights.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.lstBoneWeights.FormattingEnabled = true;
     this.lstBoneWeights.IntegralHeight = false;
     this.lstBoneWeights.Location = new System.Drawing.Point(0, 3);
     this.lstBoneWeights.Name = "lstBoneWeights";
     this.lstBoneWeights.Size = new System.Drawing.Size(124, 75);
     this.lstBoneWeights.TabIndex = 0;
     this.lstBoneWeights.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.lstBoneWeights_DrawItem);
     this.lstBoneWeights.SelectedIndexChanged += new System.EventHandler(this.lstBoneWeights_SelectedIndexChanged);
     //
     // btnSetWeight
     //
     this.btnSetWeight.Location = new System.Drawing.Point(67, 28);
     this.btnSetWeight.Name = "btnSetWeight";
     this.btnSetWeight.Size = new System.Drawing.Size(79, 22);
     this.btnSetWeight.TabIndex = 2;
     this.btnSetWeight.Text = "Set Weight";
     this.btnSetWeight.UseVisualStyleBackColor = true;
     this.btnSetWeight.Click += new System.EventHandler(this.btnSetWeight_Click);
     //
     // numWeight
     //
     this.numWeight.Location = new System.Drawing.Point(3, 29);
     this.numWeight.Name = "numWeight";
     this.numWeight.Size = new System.Drawing.Size(62, 20);
     this.numWeight.TabIndex = 3;
     this.numWeight.Text = "0";
     //
     // btnBlend
     //
     this.btnBlend.Location = new System.Drawing.Point(130, 52);
     this.btnBlend.Name = "btnBlend";
     this.btnBlend.Size = new System.Drawing.Size(62, 23);
     this.btnBlend.TabIndex = 4;
     this.btnBlend.Text = "Blend";
     this.btnBlend.UseVisualStyleBackColor = true;
     this.btnBlend.Visible = false;
     this.btnBlend.Click += new System.EventHandler(this.btnBlend_Click);
     //
     // btnCopy
     //
     this.btnCopy.Location = new System.Drawing.Point(3, 52);
     this.btnCopy.Name = "btnCopy";
     this.btnCopy.Size = new System.Drawing.Size(62, 23);
     this.btnCopy.TabIndex = 5;
     this.btnCopy.Text = "Copy";
     this.btnCopy.UseVisualStyleBackColor = true;
     this.btnCopy.Visible = false;
     this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click);
     //
     // btnPaste
     //
     this.btnPaste.Location = new System.Drawing.Point(67, 52);
     this.btnPaste.Name = "btnPaste";
     this.btnPaste.Size = new System.Drawing.Size(62, 23);
     this.btnPaste.TabIndex = 6;
     this.btnPaste.Text = "Paste";
     this.btnPaste.UseVisualStyleBackColor = true;
     this.btnPaste.Visible = false;
     this.btnPaste.Click += new System.EventHandler(this.btnPaste_Click);
     //
     // btnAdd
     //
     this.btnAdd.Location = new System.Drawing.Point(147, 28);
     this.btnAdd.Name = "btnAdd";
     this.btnAdd.Size = new System.Drawing.Size(22, 22);
     this.btnAdd.TabIndex = 7;
     this.btnAdd.Text = "+";
     this.btnAdd.UseVisualStyleBackColor = true;
     this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
     //
     // btnSubtract
     //
     this.btnSubtract.Location = new System.Drawing.Point(170, 28);
     this.btnSubtract.Name = "btnSubtract";
     this.btnSubtract.Size = new System.Drawing.Size(22, 22);
     this.btnSubtract.TabIndex = 8;
     this.btnSubtract.Text = "-";
     this.btnSubtract.UseVisualStyleBackColor = true;
     this.btnSubtract.Click += new System.EventHandler(this.btnSubtract_Click);
     //
     // btnLock
     //
     this.btnLock.Location = new System.Drawing.Point(3, 3);
     this.btnLock.Name = "btnLock";
     this.btnLock.Size = new System.Drawing.Size(61, 23);
     this.btnLock.TabIndex = 10;
     this.btnLock.Text = "Lock";
     this.btnLock.UseVisualStyleBackColor = true;
     this.btnLock.Click += new System.EventHandler(this.btnLock_Click);
     //
     // lblBoneName
     //
     this.lblBoneName.AutoSize = true;
     this.lblBoneName.Location = new System.Drawing.Point(134, 8);
     this.lblBoneName.Name = "lblBoneName";
     this.lblBoneName.Size = new System.Drawing.Size(32, 13);
     this.lblBoneName.TabIndex = 11;
     this.lblBoneName.Text = "Bone";
     //
     // btnRemove
     //
     this.btnRemove.Location = new System.Drawing.Point(67, 3);
     this.btnRemove.Name = "btnRemove";
     this.btnRemove.Size = new System.Drawing.Size(61, 23);
     this.btnRemove.TabIndex = 12;
     this.btnRemove.Text = "Remove";
     this.btnRemove.UseVisualStyleBackColor = true;
     this.btnRemove.Click += new System.EventHandler(this.btnRemoveBone_Click);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.btnAdd);
     this.panel1.Controls.Add(this.numWeight);
     this.panel1.Controls.Add(this.btnBlend);
     this.panel1.Controls.Add(this.btnPaste);
     this.panel1.Controls.Add(this.btnSetWeight);
     this.panel1.Controls.Add(this.btnCopy);
     this.panel1.Controls.Add(this.btnSubtract);
     this.panel1.Controls.Add(this.btnLock);
     this.panel1.Controls.Add(this.lblBoneName);
     this.panel1.Controls.Add(this.btnRemove);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
     this.panel1.Location = new System.Drawing.Point(127, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(193, 78);
     this.panel1.TabIndex = 14;
     //
     // splitter1
     //
     this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
     this.splitter1.Location = new System.Drawing.Point(124, 0);
     this.splitter1.Name = "splitter1";
     this.splitter1.Size = new System.Drawing.Size(3, 78);
     this.splitter1.TabIndex = 15;
     this.splitter1.TabStop = false;
     this.splitter1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.splitter1_MouseDown);
     this.splitter1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.splitter1_MouseMove);
     this.splitter1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.splitter1_MouseUp);
     //
     // splitter2
     //
     this.splitter2.Dock = System.Windows.Forms.DockStyle.Top;
     this.splitter2.Location = new System.Drawing.Point(0, 0);
     this.splitter2.Name = "splitter2";
     this.splitter2.Size = new System.Drawing.Size(124, 3);
     this.splitter2.TabIndex = 16;
     this.splitter2.TabStop = false;
     this.splitter2.SplitterMoving += new System.Windows.Forms.SplitterEventHandler(this.splitter2_SplitterMoving);
     this.splitter2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.splitter2_MouseDown);
     this.splitter2.MouseMove += new System.Windows.Forms.MouseEventHandler(this.splitter2_MouseMove);
     this.splitter2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.splitter2_MouseUp);
     //
     // WeightEditor
     //
     this.Controls.Add(this.lstBoneWeights);
     this.Controls.Add(this.splitter2);
     this.Controls.Add(this.splitter1);
     this.Controls.Add(this.panel1);
     this.Name = "WeightEditor";
     this.Size = new System.Drawing.Size(320, 78);
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }