示例#1
0
        //Updates translation with offset.
        private unsafe void ApplyTranslation(int index, float offset)
        {
            NumericInputBox box = chr0Editor._transBoxes[index + 6];

            box.Value = (float)Math.Round(box._value + offset, 3);
            chr0Editor.BoxChanged(box, null);
        }
示例#2
0
 public static string NumericInputBox(string prompt, string caption, string defaultText)
 {
     using (NumericInputBox NIB = new NumericInputBox(prompt, caption, defaultText))
     {
         NIB.ShowDialog();
         return NIB.InputText;
     }
 }
        private void MenuItemEditRow_Click(object sender, EventArgs e)
        {
            DataRow dataRow = AtGrid.getDataRow((Control)this.gridControlTable);

            if (dataRow == null || NumericInputBox.ShowDialog("Ввод нового значения строки", "Высота", Useful.GetDouble(dataRow[0])) != DialogResult.OK)
            {
                return;
            }
            dataRow[0] = (object)NumericInputBox.Value.ToString();
        }
示例#4
0
        //Updates scale with offset.
        private unsafe void ApplyScale(int index, float offset)
        {
            NumericInputBox box   = chr0Editor._transBoxes[index];
            float           value = (float)Math.Round(box._value * offset, 3);

            if (value == 0)
            {
                return;
            }
            box.Value = value;
            chr0Editor.BoxChanged(box, null);
        }
        private void MenuItemAddRow_Click(object sender, EventArgs e)
        {
            double DefValue = 0.0;

            if (this.table_workdata.Rows.Count > 0)
            {
                DefValue = Useful.GetDouble(this.table_workdata.Rows[this.table_workdata.Rows.Count - 1][0]);
            }
            if (NumericInputBox.ShowDialog("Ввод значения новой строки", "Высота", DefValue) != DialogResult.OK)
            {
                return;
            }
            this.AddRows(NumericInputBox.Value, NumericInputBox.Value, 1.0);
        }
        private void MenuItemAddColumn_Click(object sender, EventArgs e)
        {
            double DefValue = 0.0;

            if (this.table_workdata.Columns.Count > 1)
            {
                DefValue = Useful.GetDouble((object)this.table_workdata.Columns[this.table_workdata.Columns.Count - 1].ColumnName);
            }
            if (NumericInputBox.ShowDialog("Ввод значения нового столбца", "Ширина", DefValue) != DialogResult.OK)
            {
                return;
            }
            this.AddColumns(NumericInputBox.Value, NumericInputBox.Value, 1.0);
        }
        private void MenuItemEditColumn_Click(object sender, EventArgs e)
        {
            if (this.gridViewTable.FocusedColumn == null || this.gridViewTable.FocusedColumn == this.gridViewTable.Columns[0])
            {
                return;
            }
            string fieldName = this.gridViewTable.FocusedColumn.FieldName;

            if (NumericInputBox.ShowDialog("Ввод нового значения столбца", "Ширина", Useful.GetDouble((object)fieldName)) != DialogResult.OK)
            {
                return;
            }
            this.table_workdata.Columns[fieldName].ColumnName = NumericInputBox.Value.ToString();
            this.gridViewTable.FocusedColumn.FieldName        = NumericInputBox.Value.ToString();
            this.gridViewTable.FocusedColumn.Caption          = this.gridViewTable.FocusedColumn.FieldName;
        }
示例#8
0
 private void InitializeComponent()
 {
     this.grpHurtBox               = new System.Windows.Forms.GroupBox();
     this.numRegion                = new System.Windows.Forms.NumericInputBox();
     this.BoxRegion                = new System.Windows.Forms.Label();
     this.BoxEnabled               = new System.Windows.Forms.CheckBox();
     this.SelectedZone             = new System.Windows.Forms.ComboBox();
     this.SelectedBone             = new System.Windows.Forms.ComboBox();
     this.OffsetX                  = new System.Windows.Forms.Label();
     this.numOffX                  = new System.Windows.Forms.NumericInputBox();
     this.OffsetY                  = new System.Windows.Forms.Label();
     this.numRadius                = new System.Windows.Forms.NumericInputBox();
     this.OffsetZ                  = new System.Windows.Forms.Label();
     this.numStrZ                  = new System.Windows.Forms.NumericInputBox();
     this.StretchX                 = new System.Windows.Forms.Label();
     this.numStrY                  = new System.Windows.Forms.NumericInputBox();
     this.StretchY                 = new System.Windows.Forms.Label();
     this.numStrX                  = new System.Windows.Forms.NumericInputBox();
     this.StretchZ                 = new System.Windows.Forms.Label();
     this.numOffZ                  = new System.Windows.Forms.NumericInputBox();
     this.BoxRadius                = new System.Windows.Forms.Label();
     this.numOffY                  = new System.Windows.Forms.NumericInputBox();
     this.BoxZone                  = new System.Windows.Forms.Label();
     this.BoxBone                  = new System.Windows.Forms.Label();
     this.sourceToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1       = new System.Windows.Forms.ToolStripSeparator();
     this.exportToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.replaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.portToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.Source = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.add = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3               = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem4               = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem7               = new System.Windows.Forms.ToolStripMenuItem();
     this.subtract                         = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem5               = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem6               = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem8               = new System.Windows.Forms.ToolStripMenuItem();
     this.removeAllToolStripMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
     this.addCustomAmountToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.dlgOpen        = new System.Windows.Forms.OpenFileDialog();
     this.dlgSave        = new System.Windows.Forms.SaveFileDialog();
     this.ControlPanel   = new System.Windows.Forms.Panel();
     this.eventModifier1 = new System.Windows.Forms.EventModifier();
     this.grpHurtBox.SuspendLayout();
     this.ControlPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // grpHurtBox
     //
     this.grpHurtBox.Controls.Add(this.numRegion);
     this.grpHurtBox.Controls.Add(this.BoxRegion);
     this.grpHurtBox.Controls.Add(this.BoxEnabled);
     this.grpHurtBox.Controls.Add(this.SelectedZone);
     this.grpHurtBox.Controls.Add(this.SelectedBone);
     this.grpHurtBox.Controls.Add(this.OffsetX);
     this.grpHurtBox.Controls.Add(this.numOffX);
     this.grpHurtBox.Controls.Add(this.OffsetY);
     this.grpHurtBox.Controls.Add(this.numRadius);
     this.grpHurtBox.Controls.Add(this.OffsetZ);
     this.grpHurtBox.Controls.Add(this.numStrZ);
     this.grpHurtBox.Controls.Add(this.StretchX);
     this.grpHurtBox.Controls.Add(this.numStrY);
     this.grpHurtBox.Controls.Add(this.StretchY);
     this.grpHurtBox.Controls.Add(this.numStrX);
     this.grpHurtBox.Controls.Add(this.StretchZ);
     this.grpHurtBox.Controls.Add(this.numOffZ);
     this.grpHurtBox.Controls.Add(this.BoxRadius);
     this.grpHurtBox.Controls.Add(this.numOffY);
     this.grpHurtBox.Controls.Add(this.BoxZone);
     this.grpHurtBox.Controls.Add(this.BoxBone);
     this.grpHurtBox.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.grpHurtBox.Location = new System.Drawing.Point(0, 0);
     this.grpHurtBox.Name     = "grpHurtBox";
     this.grpHurtBox.Size     = new System.Drawing.Size(229, 264);
     this.grpHurtBox.TabIndex = 22;
     this.grpHurtBox.TabStop  = false;
     this.grpHurtBox.Text     = "Edit Hurtbox";
     this.grpHurtBox.Visible  = false;
     //
     // numRegion
     //
     this.numRegion.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.numRegion.Integral     = false;
     this.numRegion.Location     = new System.Drawing.Point(69, 171);
     this.numRegion.MaximumValue = 3.402823E+38F;
     this.numRegion.MinimumValue = -3.402823E+38F;
     this.numRegion.Name         = "numRegion";
     this.numRegion.Size         = new System.Drawing.Size(155, 20);
     this.numRegion.TabIndex     = 25;
     this.numRegion.Text         = "0";
     this.numRegion.TextChanged += new System.EventHandler(this.numRegion_TextChanged);
     //
     // BoxRegion
     //
     this.BoxRegion.Location  = new System.Drawing.Point(-10, 170);
     this.BoxRegion.Name      = "BoxRegion";
     this.BoxRegion.Size      = new System.Drawing.Size(74, 20);
     this.BoxRegion.TabIndex  = 24;
     this.BoxRegion.Text      = "Region:";
     this.BoxRegion.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // BoxEnabled
     //
     this.BoxEnabled.Anchor     = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.BoxEnabled.AutoSize   = true;
     this.BoxEnabled.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     this.BoxEnabled.Location   = new System.Drawing.Point(158, 13);
     this.BoxEnabled.Name       = "BoxEnabled";
     this.BoxEnabled.Size       = new System.Drawing.Size(65, 17);
     this.BoxEnabled.TabIndex   = 23;
     this.BoxEnabled.Text       = "Enabled";
     this.BoxEnabled.UseVisualStyleBackColor = true;
     this.BoxEnabled.CheckedChanged         += new System.EventHandler(this.BoxEnabled_CheckedChanged);
     //
     // SelectedZone
     //
     this.SelectedZone.FormattingEnabled = true;
     this.SelectedZone.Location          = new System.Drawing.Point(70, 232);
     this.SelectedZone.Name                  = "SelectedZone";
     this.SelectedZone.Size                  = new System.Drawing.Size(126, 21);
     this.SelectedZone.TabIndex              = 22;
     this.SelectedZone.Tag                   = "";
     this.SelectedZone.SelectedIndexChanged += new System.EventHandler(this.SelectedZone_SelectedIndexChanged);
     //
     // SelectedBone
     //
     this.SelectedBone.FormattingEnabled = true;
     this.SelectedBone.Location          = new System.Drawing.Point(70, 211);
     this.SelectedBone.Name                  = "SelectedBone";
     this.SelectedBone.Size                  = new System.Drawing.Size(126, 21);
     this.SelectedBone.TabIndex              = 21;
     this.SelectedBone.Tag                   = "";
     this.SelectedBone.SelectedIndexChanged += new System.EventHandler(this.SelectedBone_SelectedIndexChanged);
     //
     // OffsetX
     //
     this.OffsetX.Location  = new System.Drawing.Point(-10, 34);
     this.OffsetX.Name      = "OffsetX";
     this.OffsetX.Size      = new System.Drawing.Size(74, 20);
     this.OffsetX.TabIndex  = 4;
     this.OffsetX.Text      = "Offset X:";
     this.OffsetX.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numOffX
     //
     this.numOffX.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.numOffX.Integral      = false;
     this.numOffX.Location      = new System.Drawing.Point(69, 35);
     this.numOffX.MaximumValue  = 3.402823E+38F;
     this.numOffX.MinimumValue  = -3.402823E+38F;
     this.numOffX.Name          = "numOffX";
     this.numOffX.Size          = new System.Drawing.Size(155, 20);
     this.numOffX.TabIndex      = 3;
     this.numOffX.Text          = "0";
     this.numOffX.ValueChanged += new System.EventHandler(this.BoxChanged);
     this.numOffX.TextChanged  += new System.EventHandler(this.numOffX_TextChanged);
     //
     // OffsetY
     //
     this.OffsetY.Location  = new System.Drawing.Point(-10, 54);
     this.OffsetY.Name      = "OffsetY";
     this.OffsetY.Size      = new System.Drawing.Size(74, 20);
     this.OffsetY.TabIndex  = 5;
     this.OffsetY.Text      = "Offset Y:";
     this.OffsetY.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numRadius
     //
     this.numRadius.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.numRadius.Integral      = false;
     this.numRadius.Location      = new System.Drawing.Point(70, 191);
     this.numRadius.MaximumValue  = 3.402823E+38F;
     this.numRadius.MinimumValue  = -3.402823E+38F;
     this.numRadius.Name          = "numRadius";
     this.numRadius.Size          = new System.Drawing.Size(154, 20);
     this.numRadius.TabIndex      = 18;
     this.numRadius.Text          = "0";
     this.numRadius.ValueChanged += new System.EventHandler(this.BoxChanged);
     this.numRadius.TextChanged  += new System.EventHandler(this.numRadius_TextChanged);
     //
     // OffsetZ
     //
     this.OffsetZ.Location  = new System.Drawing.Point(-11, 74);
     this.OffsetZ.Name      = "OffsetZ";
     this.OffsetZ.Size      = new System.Drawing.Size(74, 20);
     this.OffsetZ.TabIndex  = 6;
     this.OffsetZ.Text      = "Offset Z:";
     this.OffsetZ.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numStrZ
     //
     this.numStrZ.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.numStrZ.Integral      = false;
     this.numStrZ.Location      = new System.Drawing.Point(69, 143);
     this.numStrZ.MaximumValue  = 3.402823E+38F;
     this.numStrZ.MinimumValue  = -3.402823E+38F;
     this.numStrZ.Name          = "numStrZ";
     this.numStrZ.Size          = new System.Drawing.Size(155, 20);
     this.numStrZ.TabIndex      = 17;
     this.numStrZ.Text          = "0";
     this.numStrZ.ValueChanged += new System.EventHandler(this.BoxChanged);
     this.numStrZ.TextChanged  += new System.EventHandler(this.numStrZ_TextChanged);
     //
     // StretchX
     //
     this.StretchX.Location  = new System.Drawing.Point(-10, 102);
     this.StretchX.Name      = "StretchX";
     this.StretchX.Size      = new System.Drawing.Size(74, 20);
     this.StretchX.TabIndex  = 7;
     this.StretchX.Text      = "Stretch X:";
     this.StretchX.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numStrY
     //
     this.numStrY.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.numStrY.Integral      = false;
     this.numStrY.Location      = new System.Drawing.Point(69, 123);
     this.numStrY.MaximumValue  = 3.402823E+38F;
     this.numStrY.MinimumValue  = -3.402823E+38F;
     this.numStrY.Name          = "numStrY";
     this.numStrY.Size          = new System.Drawing.Size(155, 20);
     this.numStrY.TabIndex      = 16;
     this.numStrY.Text          = "0";
     this.numStrY.ValueChanged += new System.EventHandler(this.BoxChanged);
     this.numStrY.TextChanged  += new System.EventHandler(this.numStrY_TextChanged);
     //
     // StretchY
     //
     this.StretchY.Location  = new System.Drawing.Point(-10, 122);
     this.StretchY.Name      = "StretchY";
     this.StretchY.Size      = new System.Drawing.Size(74, 20);
     this.StretchY.TabIndex  = 8;
     this.StretchY.Text      = "Stretch Y:";
     this.StretchY.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numStrX
     //
     this.numStrX.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.numStrX.Integral      = false;
     this.numStrX.Location      = new System.Drawing.Point(69, 103);
     this.numStrX.MaximumValue  = 3.402823E+38F;
     this.numStrX.MinimumValue  = -3.402823E+38F;
     this.numStrX.Name          = "numStrX";
     this.numStrX.Size          = new System.Drawing.Size(155, 20);
     this.numStrX.TabIndex      = 15;
     this.numStrX.Text          = "0";
     this.numStrX.ValueChanged += new System.EventHandler(this.BoxChanged);
     this.numStrX.TextChanged  += new System.EventHandler(this.numStrX_TextChanged);
     //
     // StretchZ
     //
     this.StretchZ.Location  = new System.Drawing.Point(-10, 142);
     this.StretchZ.Name      = "StretchZ";
     this.StretchZ.Size      = new System.Drawing.Size(74, 20);
     this.StretchZ.TabIndex  = 9;
     this.StretchZ.Text      = "Stretch Z:";
     this.StretchZ.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numOffZ
     //
     this.numOffZ.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.numOffZ.Integral      = false;
     this.numOffZ.Location      = new System.Drawing.Point(69, 75);
     this.numOffZ.MaximumValue  = 3.402823E+38F;
     this.numOffZ.MinimumValue  = -3.402823E+38F;
     this.numOffZ.Name          = "numOffZ";
     this.numOffZ.Size          = new System.Drawing.Size(155, 20);
     this.numOffZ.TabIndex      = 14;
     this.numOffZ.Text          = "0";
     this.numOffZ.ValueChanged += new System.EventHandler(this.BoxChanged);
     this.numOffZ.TextChanged  += new System.EventHandler(this.numOffZ_TextChanged);
     //
     // BoxRadius
     //
     this.BoxRadius.Location  = new System.Drawing.Point(-10, 190);
     this.BoxRadius.Name      = "BoxRadius";
     this.BoxRadius.Size      = new System.Drawing.Size(74, 20);
     this.BoxRadius.TabIndex  = 10;
     this.BoxRadius.Text      = "Radius:";
     this.BoxRadius.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // numOffY
     //
     this.numOffY.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                 | System.Windows.Forms.AnchorStyles.Right)));
     this.numOffY.Integral      = false;
     this.numOffY.Location      = new System.Drawing.Point(69, 55);
     this.numOffY.MaximumValue  = 3.402823E+38F;
     this.numOffY.MinimumValue  = -3.402823E+38F;
     this.numOffY.Name          = "numOffY";
     this.numOffY.Size          = new System.Drawing.Size(155, 20);
     this.numOffY.TabIndex      = 13;
     this.numOffY.Text          = "0";
     this.numOffY.ValueChanged += new System.EventHandler(this.BoxChanged);
     this.numOffY.TextChanged  += new System.EventHandler(this.numOffY_TextChanged);
     //
     // BoxZone
     //
     this.BoxZone.Location  = new System.Drawing.Point(-10, 231);
     this.BoxZone.Name      = "BoxZone";
     this.BoxZone.Size      = new System.Drawing.Size(74, 20);
     this.BoxZone.TabIndex  = 11;
     this.BoxZone.Text      = "Zone:";
     this.BoxZone.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // BoxBone
     //
     this.BoxBone.Location  = new System.Drawing.Point(-10, 210);
     this.BoxBone.Name      = "BoxBone";
     this.BoxBone.Size      = new System.Drawing.Size(74, 20);
     this.BoxBone.TabIndex  = 12;
     this.BoxBone.Text      = "Bone:";
     this.BoxBone.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // sourceToolStripMenuItem
     //
     this.sourceToolStripMenuItem.Name = "sourceToolStripMenuItem";
     this.sourceToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(6, 6);
     //
     // exportToolStripMenuItem
     //
     this.exportToolStripMenuItem.Name = "exportToolStripMenuItem";
     this.exportToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // replaceToolStripMenuItem
     //
     this.replaceToolStripMenuItem.Name = "replaceToolStripMenuItem";
     this.replaceToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // portToolStripMenuItem
     //
     this.portToolStripMenuItem.Name = "portToolStripMenuItem";
     this.portToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // Source
     //
     this.Source.Name = "Source";
     this.Source.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 6);
     //
     // add
     //
     this.add.Name = "add";
     this.add.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem4
     //
     this.toolStripMenuItem4.Name = "toolStripMenuItem4";
     this.toolStripMenuItem4.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem7
     //
     this.toolStripMenuItem7.Name = "toolStripMenuItem7";
     this.toolStripMenuItem7.Size = new System.Drawing.Size(32, 19);
     //
     // subtract
     //
     this.subtract.Name = "subtract";
     this.subtract.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem5
     //
     this.toolStripMenuItem5.Name = "toolStripMenuItem5";
     this.toolStripMenuItem5.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem6
     //
     this.toolStripMenuItem6.Name = "toolStripMenuItem6";
     this.toolStripMenuItem6.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem8
     //
     this.toolStripMenuItem8.Name = "toolStripMenuItem8";
     this.toolStripMenuItem8.Size = new System.Drawing.Size(32, 19);
     //
     // removeAllToolStripMenuItem
     //
     this.removeAllToolStripMenuItem.Name = "removeAllToolStripMenuItem";
     this.removeAllToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // addCustomAmountToolStripMenuItem
     //
     this.addCustomAmountToolStripMenuItem.Name = "addCustomAmountToolStripMenuItem";
     this.addCustomAmountToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // ControlPanel
     //
     this.ControlPanel.Controls.Add(this.grpHurtBox);
     this.ControlPanel.Controls.Add(this.eventModifier1);
     this.ControlPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.ControlPanel.Location = new System.Drawing.Point(0, 0);
     this.ControlPanel.Name     = "ControlPanel";
     this.ControlPanel.Size     = new System.Drawing.Size(229, 264);
     this.ControlPanel.TabIndex = 26;
     this.ControlPanel.Visible  = false;
     //
     // eventModifier1
     //
     this.eventModifier1.AutoSize = true;
     this.eventModifier1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.eventModifier1.Location = new System.Drawing.Point(0, 0);
     this.eventModifier1.Name     = "eventModifier1";
     this.eventModifier1.Size     = new System.Drawing.Size(229, 264);
     this.eventModifier1.TabIndex = 37;
     this.eventModifier1.Visible  = false;
     //
     // MiscPanel
     //
     this.Controls.Add(this.ControlPanel);
     this.Name = "MiscPanel";
     this.Size = new System.Drawing.Size(229, 264);
     this.grpHurtBox.ResumeLayout(false);
     this.grpHurtBox.PerformLayout();
     this.ControlPanel.ResumeLayout(false);
     this.ControlPanel.PerformLayout();
     this.ResumeLayout(false);
 }
示例#9
0
 private void InitializeComponent()
 {
     components         = new Container();
     FrameScale         = new CheckBox();
     toolStripMenuItem7 = new ToolStripMenuItem();
     btnPaste           = new Button();
     toolStripMenuItem4 = new ToolStripMenuItem();
     FrameRot           = new CheckBox();
     btnCopy            = new Button();
     toolStripMenuItem3 = new ToolStripMenuItem();
     btnCut             = new Button();
     subtract           = new ToolStripMenuItem();
     toolStripMenuItem5 = new ToolStripMenuItem();
     toolStripMenuItem6 = new ToolStripMenuItem();
     toolStripMenuItem8 = new ToolStripMenuItem();
     FrameTrans         = new CheckBox();
     numScaleY          = new NumericInputBox();
     add    = new ToolStripMenuItem();
     numRot = new NumericInputBox();
     toolStripSeparator1 = new ToolStripSeparator();
     Source    = new ToolStripMenuItem();
     numTransX = new NumericInputBox();
     numTransY = new NumericInputBox();
     lblTransX = new Label();
     removeAllToolStripMenuItem = new ToolStripMenuItem();
     lblRot = new Label();
     ctxBox = new ContextMenuStrip(components);
     addCustomAmountToolStripMenuItem = new ToolStripMenuItem();
     btnDelete    = new Button();
     grpTransform = new GroupBox();
     lblScaleX    = new Label();
     numScaleX    = new NumericInputBox();
     AllScale     = new CheckBox();
     grpTransAll  = new GroupBox();
     AllRot       = new CheckBox();
     AllTrans     = new CheckBox();
     btnClean     = new Button();
     btnPasteAll  = new Button();
     btnCopyAll   = new Button();
     btnClear     = new Button();
     btnInsert    = new Button();
     ctxBox.SuspendLayout();
     grpTransform.SuspendLayout();
     grpTransAll.SuspendLayout();
     SuspendLayout();
     //
     // FrameScale
     //
     FrameScale.AutoSize   = true;
     FrameScale.Checked    = true;
     FrameScale.CheckState = CheckState.Checked;
     FrameScale.Location   = new Point(249, 58);
     FrameScale.Name       = "FrameScale";
     FrameScale.Size       = new Size(53, 17);
     FrameScale.TabIndex   = 35;
     FrameScale.Text       = "Scale";
     FrameScale.UseVisualStyleBackColor = true;
     //
     // toolStripMenuItem7
     //
     toolStripMenuItem7.Name = "toolStripMenuItem7";
     toolStripMenuItem7.Size = new Size(100, 22);
     toolStripMenuItem7.Text = "+45";
     //
     // btnPaste
     //
     btnPaste.Location = new Point(101, 55);
     btnPaste.Name     = "btnPaste";
     btnPaste.Size     = new Size(50, 20);
     btnPaste.TabIndex = 23;
     btnPaste.Text     = "Paste";
     btnPaste.UseVisualStyleBackColor = true;
     btnPaste.Click += new EventHandler(btnPaste_Click);
     //
     // toolStripMenuItem4
     //
     toolStripMenuItem4.Name = "toolStripMenuItem4";
     toolStripMenuItem4.Size = new Size(100, 22);
     toolStripMenuItem4.Text = "+90";
     //
     // FrameRot
     //
     FrameRot.AutoSize   = true;
     FrameRot.Checked    = true;
     FrameRot.CheckState = CheckState.Checked;
     FrameRot.Location   = new Point(208, 58);
     FrameRot.Name       = "FrameRot";
     FrameRot.Size       = new Size(43, 17);
     FrameRot.TabIndex   = 34;
     FrameRot.Text       = "Rot";
     FrameRot.UseVisualStyleBackColor = true;
     //
     // btnCopy
     //
     btnCopy.Location = new Point(52, 55);
     btnCopy.Name     = "btnCopy";
     btnCopy.Size     = new Size(50, 20);
     btnCopy.TabIndex = 22;
     btnCopy.Text     = "Copy";
     btnCopy.UseVisualStyleBackColor = true;
     btnCopy.Click += new EventHandler(btnCopy_Click);
     //
     // toolStripMenuItem3
     //
     toolStripMenuItem3.Name = "toolStripMenuItem3";
     toolStripMenuItem3.Size = new Size(100, 22);
     toolStripMenuItem3.Text = "+180";
     //
     // btnCut
     //
     btnCut.Location = new Point(3, 55);
     btnCut.Name     = "btnCut";
     btnCut.Size     = new Size(50, 20);
     btnCut.TabIndex = 21;
     btnCut.Text     = "Cut";
     btnCut.UseVisualStyleBackColor = true;
     btnCut.Click += new EventHandler(btnCut_Click);
     //
     // subtract
     //
     subtract.DropDownItems.AddRange(new ToolStripItem[]
     {
         toolStripMenuItem5,
         toolStripMenuItem6,
         toolStripMenuItem8
     });
     subtract.Name = "subtract";
     subtract.Size = new Size(166, 22);
     subtract.Text = "Subtract From All";
     //
     // toolStripMenuItem5
     //
     toolStripMenuItem5.Name = "toolStripMenuItem5";
     toolStripMenuItem5.Size = new Size(97, 22);
     toolStripMenuItem5.Text = "-180";
     //
     // toolStripMenuItem6
     //
     toolStripMenuItem6.Name = "toolStripMenuItem6";
     toolStripMenuItem6.Size = new Size(97, 22);
     toolStripMenuItem6.Text = "-90";
     //
     // toolStripMenuItem8
     //
     toolStripMenuItem8.Name = "toolStripMenuItem8";
     toolStripMenuItem8.Size = new Size(97, 22);
     toolStripMenuItem8.Text = "-45";
     //
     // FrameTrans
     //
     FrameTrans.AutoSize   = true;
     FrameTrans.Checked    = true;
     FrameTrans.CheckState = CheckState.Checked;
     FrameTrans.Location   = new Point(155, 58);
     FrameTrans.Name       = "FrameTrans";
     FrameTrans.Size       = new Size(53, 17);
     FrameTrans.TabIndex   = 33;
     FrameTrans.Text       = "Trans";
     FrameTrans.UseVisualStyleBackColor = true;
     //
     // numScaleY
     //
     numScaleY.BorderStyle   = BorderStyle.FixedSingle;
     numScaleY.Integral      = false;
     numScaleY.Location      = new Point(154, 35);
     numScaleY.MaximumValue  = 3.402823E+38F;
     numScaleY.MinimumValue  = -3.402823E+38F;
     numScaleY.Name          = "numScaleY";
     numScaleY.Size          = new Size(82, 20);
     numScaleY.TabIndex      = 18;
     numScaleY.Text          = "0";
     numScaleY.ValueChanged += new EventHandler(BoxChangedCreateUndo);
     numScaleY.MouseDown    += new MouseEventHandler(box_MouseDown);
     //
     // add
     //
     add.DropDownItems.AddRange(new ToolStripItem[]
     {
         toolStripMenuItem3,
         toolStripMenuItem4,
         toolStripMenuItem7
     });
     add.Name = "add";
     add.Size = new Size(166, 22);
     add.Text = "Add To All";
     //
     // numRot
     //
     numRot.BorderStyle   = BorderStyle.FixedSingle;
     numRot.Integral      = false;
     numRot.Location      = new Point(235, 35);
     numRot.MaximumValue  = 3.402823E+38F;
     numRot.MinimumValue  = -3.402823E+38F;
     numRot.Name          = "numRot";
     numRot.Size          = new Size(82, 20);
     numRot.TabIndex      = 15;
     numRot.Text          = "0";
     numRot.ValueChanged += new EventHandler(BoxChangedCreateUndo);
     numRot.MouseDown    += new MouseEventHandler(box_MouseDown);
     //
     // toolStripSeparator1
     //
     toolStripSeparator1.Name = "toolStripSeparator1";
     toolStripSeparator1.Size = new Size(163, 6);
     //
     // Source
     //
     Source.Enabled = false;
     Source.Name    = "Source";
     Source.Size    = new Size(166, 22);
     Source.Text    = "Source";
     //
     // numTransX
     //
     numTransX.BorderStyle   = BorderStyle.FixedSingle;
     numTransX.Integral      = false;
     numTransX.Location      = new Point(73, 16);
     numTransX.MaximumValue  = 3.402823E+38F;
     numTransX.MinimumValue  = -3.402823E+38F;
     numTransX.Name          = "numTransX";
     numTransX.Size          = new Size(82, 20);
     numTransX.TabIndex      = 3;
     numTransX.Text          = "0";
     numTransX.ValueChanged += new EventHandler(BoxChangedCreateUndo);
     numTransX.MouseDown    += new MouseEventHandler(box_MouseDown);
     //
     // numTransY
     //
     numTransY.BorderStyle   = BorderStyle.FixedSingle;
     numTransY.Integral      = false;
     numTransY.Location      = new Point(154, 16);
     numTransY.MaximumValue  = 3.402823E+38F;
     numTransY.MinimumValue  = -3.402823E+38F;
     numTransY.Name          = "numTransY";
     numTransY.Size          = new Size(82, 20);
     numTransY.TabIndex      = 13;
     numTransY.Text          = "0";
     numTransY.ValueChanged += new EventHandler(BoxChangedCreateUndo);
     numTransY.MouseDown    += new MouseEventHandler(box_MouseDown);
     //
     // lblTransX
     //
     lblTransX.BorderStyle = BorderStyle.FixedSingle;
     lblTransX.Location    = new Point(4, 16);
     lblTransX.Name        = "lblTransX";
     lblTransX.Size        = new Size(70, 20);
     lblTransX.TabIndex    = 4;
     lblTransX.Text        = "Translation:";
     lblTransX.TextAlign   = ContentAlignment.MiddleRight;
     //
     // removeAllToolStripMenuItem
     //
     removeAllToolStripMenuItem.Name = "removeAllToolStripMenuItem";
     removeAllToolStripMenuItem.Size = new Size(166, 22);
     removeAllToolStripMenuItem.Text = "Remove All";
     //
     // lblRot
     //
     lblRot.BorderStyle = BorderStyle.FixedSingle;
     lblRot.Location    = new Point(235, 16);
     lblRot.Name        = "lblRot";
     lblRot.Size        = new Size(82, 20);
     lblRot.TabIndex    = 7;
     lblRot.Text        = "Rotation:";
     lblRot.TextAlign   = ContentAlignment.MiddleLeft;
     //
     // ctxBox
     //
     ctxBox.Items.AddRange(new ToolStripItem[]
     {
         Source,
         toolStripSeparator1,
         add,
         subtract,
         removeAllToolStripMenuItem,
         addCustomAmountToolStripMenuItem
     });
     ctxBox.Name = "ctxBox";
     ctxBox.Size = new Size(167, 120);
     //
     // addCustomAmountToolStripMenuItem
     //
     addCustomAmountToolStripMenuItem.Name   = "addCustomAmountToolStripMenuItem";
     addCustomAmountToolStripMenuItem.Size   = new Size(166, 22);
     addCustomAmountToolStripMenuItem.Text   = "Edit All...";
     addCustomAmountToolStripMenuItem.Click += new EventHandler(addCustomAmountToolStripMenuItem_Click_1);
     //
     // btnDelete
     //
     btnDelete.Location = new Point(6, 16);
     btnDelete.Name     = "btnDelete";
     btnDelete.Size     = new Size(50, 20);
     btnDelete.TabIndex = 25;
     btnDelete.Text     = "Delete";
     btnDelete.UseVisualStyleBackColor = true;
     btnDelete.Click += new EventHandler(btnDelete_Click);
     //
     // grpTransform
     //
     grpTransform.Controls.Add(lblScaleX);
     grpTransform.Controls.Add(numScaleX);
     grpTransform.Controls.Add(FrameScale);
     grpTransform.Controls.Add(btnPaste);
     grpTransform.Controls.Add(FrameRot);
     grpTransform.Controls.Add(btnCopy);
     grpTransform.Controls.Add(FrameTrans);
     grpTransform.Controls.Add(btnCut);
     grpTransform.Controls.Add(numScaleY);
     grpTransform.Controls.Add(numRot);
     grpTransform.Controls.Add(numTransX);
     grpTransform.Controls.Add(numTransY);
     grpTransform.Controls.Add(lblTransX);
     grpTransform.Controls.Add(lblRot);
     grpTransform.Dock     = DockStyle.Left;
     grpTransform.Enabled  = false;
     grpTransform.Location = new Point(0, 0);
     grpTransform.Name     = "grpTransform";
     grpTransform.Size     = new Size(321, 78);
     grpTransform.TabIndex = 28;
     grpTransform.TabStop  = false;
     grpTransform.Text     = "Transform Frame";
     //
     // lblScaleX
     //
     lblScaleX.BorderStyle = BorderStyle.FixedSingle;
     lblScaleX.Location    = new Point(4, 35);
     lblScaleX.Name        = "lblScaleX";
     lblScaleX.Size        = new Size(70, 20);
     lblScaleX.TabIndex    = 37;
     lblScaleX.Text        = "Scale:";
     lblScaleX.TextAlign   = ContentAlignment.MiddleRight;
     //
     // numScaleX
     //
     numScaleX.BorderStyle   = BorderStyle.FixedSingle;
     numScaleX.Integral      = false;
     numScaleX.Location      = new Point(73, 35);
     numScaleX.MaximumValue  = 3.402823E+38F;
     numScaleX.MinimumValue  = -3.402823E+38F;
     numScaleX.Name          = "numScaleX";
     numScaleX.Size          = new Size(82, 20);
     numScaleX.TabIndex      = 36;
     numScaleX.Text          = "0";
     numScaleX.ValueChanged += new EventHandler(BoxChangedCreateUndo);
     numScaleX.MouseDown    += new MouseEventHandler(box_MouseDown);
     //
     // AllScale
     //
     AllScale.AutoSize   = true;
     AllScale.Checked    = true;
     AllScale.CheckState = CheckState.Checked;
     AllScale.Location   = new Point(108, 57);
     AllScale.Name       = "AllScale";
     AllScale.Size       = new Size(53, 17);
     AllScale.TabIndex   = 32;
     AllScale.Text       = "Scale";
     AllScale.UseVisualStyleBackColor = true;
     //
     // grpTransAll
     //
     grpTransAll.Controls.Add(AllScale);
     grpTransAll.Controls.Add(AllRot);
     grpTransAll.Controls.Add(AllTrans);
     grpTransAll.Controls.Add(btnClean);
     grpTransAll.Controls.Add(btnPasteAll);
     grpTransAll.Controls.Add(btnCopyAll);
     grpTransAll.Controls.Add(btnClear);
     grpTransAll.Controls.Add(btnInsert);
     grpTransAll.Controls.Add(btnDelete);
     grpTransAll.Dock     = DockStyle.Fill;
     grpTransAll.Enabled  = false;
     grpTransAll.Location = new Point(321, 0);
     grpTransAll.Name     = "grpTransAll";
     grpTransAll.Size     = new Size(162, 78);
     grpTransAll.TabIndex = 29;
     grpTransAll.TabStop  = false;
     grpTransAll.Text     = "Transform All";
     //
     // AllRot
     //
     AllRot.AutoSize   = true;
     AllRot.Checked    = true;
     AllRot.CheckState = CheckState.Checked;
     AllRot.Location   = new Point(108, 38);
     AllRot.Name       = "AllRot";
     AllRot.Size       = new Size(43, 17);
     AllRot.TabIndex   = 31;
     AllRot.Text       = "Rot";
     AllRot.UseVisualStyleBackColor = true;
     //
     // AllTrans
     //
     AllTrans.AutoSize   = true;
     AllTrans.Checked    = true;
     AllTrans.CheckState = CheckState.Checked;
     AllTrans.Location   = new Point(108, 19);
     AllTrans.Name       = "AllTrans";
     AllTrans.Size       = new Size(53, 17);
     AllTrans.TabIndex   = 30;
     AllTrans.Text       = "Trans";
     AllTrans.UseVisualStyleBackColor = true;
     //
     // btnClean
     //
     btnClean.Location = new Point(55, 35);
     btnClean.Name     = "btnClean";
     btnClean.Size     = new Size(50, 20);
     btnClean.TabIndex = 29;
     btnClean.Text     = "Clean";
     btnClean.UseVisualStyleBackColor = true;
     btnClean.Click += new EventHandler(btnClean_Click);
     //
     // btnPasteAll
     //
     btnPasteAll.Location = new Point(6, 35);
     btnPasteAll.Name     = "btnPasteAll";
     btnPasteAll.Size     = new Size(50, 20);
     btnPasteAll.TabIndex = 28;
     btnPasteAll.Text     = "Paste";
     btnPasteAll.UseVisualStyleBackColor = true;
     btnPasteAll.Click += new EventHandler(btnPasteAll_Click);
     //
     // btnCopyAll
     //
     btnCopyAll.Location = new Point(6, 54);
     btnCopyAll.Name     = "btnCopyAll";
     btnCopyAll.Size     = new Size(50, 20);
     btnCopyAll.TabIndex = 27;
     btnCopyAll.Text     = "Copy";
     btnCopyAll.UseVisualStyleBackColor = true;
     btnCopyAll.Click += new EventHandler(btnCopyAll_Click);
     //
     // btnClear
     //
     btnClear.Location = new Point(55, 16);
     btnClear.Name     = "btnClear";
     btnClear.Size     = new Size(50, 20);
     btnClear.TabIndex = 26;
     btnClear.Text     = "Clear";
     btnClear.UseVisualStyleBackColor = true;
     btnClear.Click += new EventHandler(btnClear_Click);
     //
     // btnInsert
     //
     btnInsert.Location = new Point(55, 54);
     btnInsert.Name     = "btnInsert";
     btnInsert.Size     = new Size(50, 20);
     btnInsert.TabIndex = 24;
     btnInsert.Text     = "Insert";
     btnInsert.UseVisualStyleBackColor = true;
     btnInsert.Click += new EventHandler(btnInsert_Click);
     //
     // SRT0Editor
     //
     Controls.Add(grpTransAll);
     Controls.Add(grpTransform);
     MinimumSize = new Size(483, 78);
     Name        = "SRT0Editor";
     Size        = new Size(483, 78);
     ctxBox.ResumeLayout(false);
     grpTransform.ResumeLayout(false);
     grpTransform.PerformLayout();
     grpTransAll.ResumeLayout(false);
     grpTransAll.PerformLayout();
     ResumeLayout(false);
 }
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.sourceToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem1       = new System.Windows.Forms.ToolStripSeparator();
     this.exportToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.replaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.portToolStripMenuItem    = new System.Windows.Forms.ToolStripMenuItem();
     this.ctxSubActions            = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.renameToolStripMenuItem  = new System.Windows.Forms.ToolStripMenuItem();
     this.Source = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
     this.add = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem3               = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem4               = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem7               = new System.Windows.Forms.ToolStripMenuItem();
     this.subtract                         = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem5               = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem6               = new System.Windows.Forms.ToolStripMenuItem();
     this.toolStripMenuItem8               = new System.Windows.Forms.ToolStripMenuItem();
     this.removeAllToolStripMenuItem       = new System.Windows.Forms.ToolStripMenuItem();
     this.addCustomAmountToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
     this.dlgOpen             = new System.Windows.Forms.OpenFileDialog();
     this.dlgSave             = new System.Windows.Forms.SaveFileDialog();
     this.ActionEditor        = new System.Windows.Forms.Panel();
     this.scriptEditor1       = new NewScriptEditor();
     this.scriptEditor2       = new ScriptEditor();
     this.button1             = new System.Windows.Forms.Button();
     this.ActionFlagsPanel    = new System.Windows.Forms.Panel();
     this.SubActionFlagsPanel = new System.Windows.Forms.Panel();
     this.chkUnk           = new System.Windows.Forms.CheckBox();
     this.chkLoop          = new System.Windows.Forms.CheckBox();
     this.chkFixedTrans    = new System.Windows.Forms.CheckBox();
     this.chkFixedRot      = new System.Windows.Forms.CheckBox();
     this.chkFixedScale    = new System.Windows.Forms.CheckBox();
     this.chkMovesChar     = new System.Windows.Forms.CheckBox();
     this.chkTransOutStart = new System.Windows.Forms.CheckBox();
     this.inTransTime      = new System.Windows.Forms.NumericInputBox();
     this.chkNoOutTrans    = new System.Windows.Forms.CheckBox();
     this.label1           = new System.Windows.Forms.Label();
     this.panel2           = new System.Windows.Forms.Panel();
     this.lblActionName    = new System.Windows.Forms.Label();
     this.comboActionEntry = new System.Windows.Forms.ComboBox();
     this.flagsToggle      = new System.Windows.Forms.Button();
     this.spltEventMod     = new System.Windows.Forms.Splitter();
     this.eventModifier    = new EventModifier();
     this.ctxSubActions.SuspendLayout();
     this.ActionEditor.SuspendLayout();
     this.SubActionFlagsPanel.SuspendLayout();
     this.panel2.SuspendLayout();
     this.SuspendLayout();
     //
     // sourceToolStripMenuItem
     //
     this.sourceToolStripMenuItem.Name = "sourceToolStripMenuItem";
     this.sourceToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem1
     //
     this.toolStripMenuItem1.Name = "toolStripMenuItem1";
     this.toolStripMenuItem1.Size = new System.Drawing.Size(6, 6);
     //
     // exportToolStripMenuItem
     //
     this.exportToolStripMenuItem.Name = "exportToolStripMenuItem";
     this.exportToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // replaceToolStripMenuItem
     //
     this.replaceToolStripMenuItem.Name = "replaceToolStripMenuItem";
     this.replaceToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // portToolStripMenuItem
     //
     this.portToolStripMenuItem.Name = "portToolStripMenuItem";
     this.portToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // ctxSubActions
     //
     this.ctxSubActions.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.renameToolStripMenuItem
     });
     this.ctxSubActions.Name = "ctxBox";
     this.ctxSubActions.Size = new System.Drawing.Size(118, 26);
     this.ctxSubActions.Text = "Subaction";
     //
     // renameToolStripMenuItem
     //
     this.renameToolStripMenuItem.Name   = "renameToolStripMenuItem";
     this.renameToolStripMenuItem.Size   = new System.Drawing.Size(117, 22);
     this.renameToolStripMenuItem.Text   = "Rename";
     this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
     //
     // Source
     //
     this.Source.Name = "Source";
     this.Source.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 6);
     //
     // add
     //
     this.add.Name = "add";
     this.add.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem3
     //
     this.toolStripMenuItem3.Name = "toolStripMenuItem3";
     this.toolStripMenuItem3.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem4
     //
     this.toolStripMenuItem4.Name = "toolStripMenuItem4";
     this.toolStripMenuItem4.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem7
     //
     this.toolStripMenuItem7.Name = "toolStripMenuItem7";
     this.toolStripMenuItem7.Size = new System.Drawing.Size(32, 19);
     //
     // subtract
     //
     this.subtract.Name = "subtract";
     this.subtract.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem5
     //
     this.toolStripMenuItem5.Name = "toolStripMenuItem5";
     this.toolStripMenuItem5.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem6
     //
     this.toolStripMenuItem6.Name = "toolStripMenuItem6";
     this.toolStripMenuItem6.Size = new System.Drawing.Size(32, 19);
     //
     // toolStripMenuItem8
     //
     this.toolStripMenuItem8.Name = "toolStripMenuItem8";
     this.toolStripMenuItem8.Size = new System.Drawing.Size(32, 19);
     //
     // removeAllToolStripMenuItem
     //
     this.removeAllToolStripMenuItem.Name = "removeAllToolStripMenuItem";
     this.removeAllToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // addCustomAmountToolStripMenuItem
     //
     this.addCustomAmountToolStripMenuItem.Name = "addCustomAmountToolStripMenuItem";
     this.addCustomAmountToolStripMenuItem.Size = new System.Drawing.Size(32, 19);
     //
     // ActionEditor
     //
     this.ActionEditor.Controls.Add(this.scriptEditor1);
     this.ActionEditor.Controls.Add(this.scriptEditor2);
     this.ActionEditor.Controls.Add(this.button1);
     this.ActionEditor.Controls.Add(this.ActionFlagsPanel);
     this.ActionEditor.Controls.Add(this.SubActionFlagsPanel);
     this.ActionEditor.Controls.Add(this.panel2);
     this.ActionEditor.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.ActionEditor.Location = new System.Drawing.Point(0, 0);
     this.ActionEditor.Name     = "ActionEditor";
     this.ActionEditor.Size     = new System.Drawing.Size(229, 355);
     this.ActionEditor.TabIndex = 26;
     //
     // scriptEditor1
     //
     this.scriptEditor1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.scriptEditor1.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.scriptEditor1.Location    = new System.Drawing.Point(0, 21);
     this.scriptEditor1.Name        = "scriptEditor1";
     this.scriptEditor1.Size        = new System.Drawing.Size(229, 310);
     this.scriptEditor1.TabIndex    = 0;
     //
     // scriptEditor2
     //
     this.scriptEditor2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.scriptEditor2.Location = new System.Drawing.Point(0, 21);
     this.scriptEditor2.Name     = "scriptEditor2";
     this.scriptEditor2.Padding  = new System.Windows.Forms.Padding(1);
     this.scriptEditor2.Size     = new System.Drawing.Size(229, 310);
     this.scriptEditor2.TabIndex = 37;
     this.scriptEditor2.Visible  = false;
     //
     // button1
     //
     this.button1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.button1.Location = new System.Drawing.Point(0, 331);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(229, 24);
     this.button1.TabIndex = 38;
     this.button1.Text     = "Switch Editor";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // ActionFlagsPanel
     //
     this.ActionFlagsPanel.Location = new System.Drawing.Point(0, 168);
     this.ActionFlagsPanel.Margin   = new System.Windows.Forms.Padding(0);
     this.ActionFlagsPanel.Name     = "ActionFlagsPanel";
     this.ActionFlagsPanel.Size     = new System.Drawing.Size(201, 147);
     this.ActionFlagsPanel.TabIndex = 37;
     this.ActionFlagsPanel.Visible  = false;
     //
     // SubActionFlagsPanel
     //
     this.SubActionFlagsPanel.Controls.Add(this.chkUnk);
     this.SubActionFlagsPanel.Controls.Add(this.chkLoop);
     this.SubActionFlagsPanel.Controls.Add(this.chkFixedTrans);
     this.SubActionFlagsPanel.Controls.Add(this.chkFixedRot);
     this.SubActionFlagsPanel.Controls.Add(this.chkFixedScale);
     this.SubActionFlagsPanel.Controls.Add(this.chkMovesChar);
     this.SubActionFlagsPanel.Controls.Add(this.chkTransOutStart);
     this.SubActionFlagsPanel.Controls.Add(this.inTransTime);
     this.SubActionFlagsPanel.Controls.Add(this.chkNoOutTrans);
     this.SubActionFlagsPanel.Controls.Add(this.label1);
     this.SubActionFlagsPanel.Location = new System.Drawing.Point(0, 21);
     this.SubActionFlagsPanel.Margin   = new System.Windows.Forms.Padding(0);
     this.SubActionFlagsPanel.Name     = "SubActionFlagsPanel";
     this.SubActionFlagsPanel.Size     = new System.Drawing.Size(201, 147);
     this.SubActionFlagsPanel.TabIndex = 27;
     this.SubActionFlagsPanel.Visible  = false;
     //
     // chkUnk
     //
     this.chkUnk.AutoSize = true;
     this.chkUnk.Location = new System.Drawing.Point(63, 125);
     this.chkUnk.Name     = "chkUnk";
     this.chkUnk.Size     = new System.Drawing.Size(72, 17);
     this.chkUnk.TabIndex = 36;
     this.chkUnk.Text     = "Unknown";
     this.chkUnk.UseVisualStyleBackColor = true;
     this.chkUnk.CheckedChanged         += new System.EventHandler(this.chkUnk_CheckedChanged);
     //
     // chkLoop
     //
     this.chkLoop.AutoSize = true;
     this.chkLoop.Location = new System.Drawing.Point(7, 125);
     this.chkLoop.Name     = "chkLoop";
     this.chkLoop.Size     = new System.Drawing.Size(50, 17);
     this.chkLoop.TabIndex = 35;
     this.chkLoop.Text     = "Loop";
     this.chkLoop.UseVisualStyleBackColor = true;
     this.chkLoop.CheckedChanged         += new System.EventHandler(this.chkLoop_CheckedChanged);
     //
     // chkFixedTrans
     //
     this.chkFixedTrans.AutoSize = true;
     this.chkFixedTrans.Location = new System.Drawing.Point(7, 108);
     this.chkFixedTrans.Name     = "chkFixedTrans";
     this.chkFixedTrans.Size     = new System.Drawing.Size(106, 17);
     this.chkFixedTrans.TabIndex = 34;
     this.chkFixedTrans.Text     = "Fixed Translation";
     this.chkFixedTrans.UseVisualStyleBackColor = true;
     this.chkFixedTrans.CheckedChanged         += new System.EventHandler(this.chkFixedTrans_CheckedChanged);
     //
     // chkFixedRot
     //
     this.chkFixedRot.AutoSize = true;
     this.chkFixedRot.Location = new System.Drawing.Point(7, 91);
     this.chkFixedRot.Name     = "chkFixedRot";
     this.chkFixedRot.Size     = new System.Drawing.Size(94, 17);
     this.chkFixedRot.TabIndex = 33;
     this.chkFixedRot.Text     = "Fixed Rotation";
     this.chkFixedRot.UseVisualStyleBackColor = true;
     this.chkFixedRot.CheckedChanged         += new System.EventHandler(this.chkFixedRot_CheckedChanged);
     //
     // chkFixedScale
     //
     this.chkFixedScale.AutoSize = true;
     this.chkFixedScale.Location = new System.Drawing.Point(7, 74);
     this.chkFixedScale.Name     = "chkFixedScale";
     this.chkFixedScale.Size     = new System.Drawing.Size(81, 17);
     this.chkFixedScale.TabIndex = 32;
     this.chkFixedScale.Text     = "Fixed Scale";
     this.chkFixedScale.UseVisualStyleBackColor = true;
     this.chkFixedScale.CheckedChanged         += new System.EventHandler(this.chkFixedScale_CheckedChanged);
     //
     // chkMovesChar
     //
     this.chkMovesChar.AutoSize = true;
     this.chkMovesChar.Location = new System.Drawing.Point(7, 57);
     this.chkMovesChar.Name     = "chkMovesChar";
     this.chkMovesChar.Size     = new System.Drawing.Size(107, 17);
     this.chkMovesChar.TabIndex = 31;
     this.chkMovesChar.Text     = "Moves Character";
     this.chkMovesChar.UseVisualStyleBackColor = true;
     this.chkMovesChar.CheckedChanged         += new System.EventHandler(this.chkMovesChar_CheckedChanged);
     //
     // chkTransOutStart
     //
     this.chkTransOutStart.AutoSize = true;
     this.chkTransOutStart.Location = new System.Drawing.Point(7, 40);
     this.chkTransOutStart.Name     = "chkTransOutStart";
     this.chkTransOutStart.Size     = new System.Drawing.Size(143, 17);
     this.chkTransOutStart.TabIndex = 30;
     this.chkTransOutStart.Text     = "Transition Out From Start";
     this.chkTransOutStart.UseVisualStyleBackColor = true;
     this.chkTransOutStart.CheckedChanged         += new System.EventHandler(this.chkTransOutStart_CheckedChanged);
     //
     // inTransTime
     //
     this.inTransTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.inTransTime.Integral      = false;
     this.inTransTime.Location      = new System.Drawing.Point(107, 4);
     this.inTransTime.MaximumValue  = 3.402823E+38F;
     this.inTransTime.MinimumValue  = -3.402823E+38F;
     this.inTransTime.Name          = "inTransTime";
     this.inTransTime.Size          = new System.Drawing.Size(89, 20);
     this.inTransTime.TabIndex      = 29;
     this.inTransTime.Text          = "0";
     this.inTransTime.ValueChanged += new System.EventHandler(this.inTransTime_ValueChanged);
     //
     // chkNoOutTrans
     //
     this.chkNoOutTrans.AutoSize = true;
     this.chkNoOutTrans.Location = new System.Drawing.Point(7, 24);
     this.chkNoOutTrans.Name     = "chkNoOutTrans";
     this.chkNoOutTrans.Size     = new System.Drawing.Size(109, 17);
     this.chkNoOutTrans.TabIndex = 2;
     this.chkNoOutTrans.Text     = "No Out Transition";
     this.chkNoOutTrans.UseVisualStyleBackColor = true;
     this.chkNoOutTrans.CheckedChanged         += new System.EventHandler(this.chkNoOutTrans_CheckedChanged);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(3, 7);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 13);
     this.label1.TabIndex = 1;
     this.label1.Text     = "In Translation Time:";
     //
     // panel2
     //
     this.panel2.Controls.Add(this.lblActionName);
     this.panel2.Controls.Add(this.comboActionEntry);
     this.panel2.Controls.Add(this.flagsToggle);
     this.panel2.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel2.Location = new System.Drawing.Point(0, 0);
     this.panel2.Margin   = new System.Windows.Forms.Padding(0);
     this.panel2.Name     = "panel2";
     this.panel2.Size     = new System.Drawing.Size(229, 21);
     this.panel2.TabIndex = 37;
     //
     // lblActionName
     //
     this.lblActionName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblActionName.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.lblActionName.Location    = new System.Drawing.Point(114, 0);
     this.lblActionName.Name        = "lblActionName";
     this.lblActionName.Size        = new System.Drawing.Size(115, 21);
     this.lblActionName.TabIndex    = 2;
     this.lblActionName.TextAlign   = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // comboActionEntry
     //
     this.comboActionEntry.Dock              = System.Windows.Forms.DockStyle.Left;
     this.comboActionEntry.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboActionEntry.FormattingEnabled = true;
     this.comboActionEntry.Items.AddRange(new object[] {
         "Main",
         "GFX",
         "SFX",
         "Other"
     });
     this.comboActionEntry.Location              = new System.Drawing.Point(60, 0);
     this.comboActionEntry.Name                  = "comboActionEntry";
     this.comboActionEntry.Size                  = new System.Drawing.Size(54, 21);
     this.comboActionEntry.TabIndex              = 1;
     this.comboActionEntry.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // flagsToggle
     //
     this.flagsToggle.Cursor   = System.Windows.Forms.Cursors.Default;
     this.flagsToggle.Dock     = System.Windows.Forms.DockStyle.Left;
     this.flagsToggle.Location = new System.Drawing.Point(0, 0);
     this.flagsToggle.Name     = "flagsToggle";
     this.flagsToggle.Size     = new System.Drawing.Size(60, 21);
     this.flagsToggle.TabIndex = 0;
     this.flagsToggle.Text     = "[+] Flags";
     this.flagsToggle.UseVisualStyleBackColor = true;
     this.flagsToggle.Click += new System.EventHandler(this.flagsToggle_Click);
     //
     // spltEventMod
     //
     this.spltEventMod.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.spltEventMod.Location = new System.Drawing.Point(0, 355);
     this.spltEventMod.Name     = "spltEventMod";
     this.spltEventMod.Size     = new System.Drawing.Size(229, 3);
     this.spltEventMod.TabIndex = 26;
     this.spltEventMod.TabStop  = false;
     this.spltEventMod.Visible  = false;
     //
     // eventModifier
     //
     this.eventModifier.AutoSize = true;
     this.eventModifier.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.eventModifier.Location = new System.Drawing.Point(0, 358);
     this.eventModifier.Name     = "eventModifier";
     this.eventModifier.Size     = new System.Drawing.Size(229, 257);
     this.eventModifier.TabIndex = 37;
     this.eventModifier.Visible  = false;
     //
     // ScriptPanel
     //
     this.Controls.Add(this.ActionEditor);
     this.Controls.Add(this.spltEventMod);
     this.Controls.Add(this.eventModifier);
     this.MinimumSize = new System.Drawing.Size(185, 0);
     this.Name        = "ScriptPanel";
     this.Size        = new System.Drawing.Size(229, 615);
     this.ctxSubActions.ResumeLayout(false);
     this.ActionEditor.ResumeLayout(false);
     this.SubActionFlagsPanel.ResumeLayout(false);
     this.SubActionFlagsPanel.PerformLayout();
     this.panel2.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
示例#11
0
 private void InitializeComponent()
 {
     label3     = new Label();
     numPosZ    = new NumericInputBox();
     label2     = new Label();
     numPosY    = new NumericInputBox();
     label1     = new Label();
     numPosX    = new NumericInputBox();
     groupBox1  = new GroupBox();
     groupBox2  = new GroupBox();
     numNormZ   = new NumericInputBox();
     label4     = new Label();
     numNormX   = new NumericInputBox();
     label5     = new Label();
     label6     = new Label();
     numNormY   = new NumericInputBox();
     groupBox4  = new GroupBox();
     colorBox   = new Label();
     colorIndex = new ComboBox();
     btnAverage = new Button();
     label7     = new Label();
     comboBox1  = new ComboBox();
     label8     = new Label();
     groupBox1.SuspendLayout();
     groupBox2.SuspendLayout();
     groupBox4.SuspendLayout();
     SuspendLayout();
     //
     // label3
     //
     label3.BorderStyle = BorderStyle.FixedSingle;
     label3.Location    = new System.Drawing.Point(6, 54);
     label3.Name        = "label3";
     label3.Size        = new System.Drawing.Size(22, 20);
     label3.TabIndex    = 7;
     label3.Text        = "Z: ";
     label3.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // numPosZ
     //
     numPosZ.BorderStyle   = BorderStyle.FixedSingle;
     numPosZ.Integral      = false;
     numPosZ.Location      = new System.Drawing.Point(27, 54);
     numPosZ.MaximumValue  = 3.402823E+38F;
     numPosZ.MinimumValue  = -3.402823E+38F;
     numPosZ.Name          = "numPosZ";
     numPosZ.Size          = new System.Drawing.Size(78, 20);
     numPosZ.TabIndex      = 6;
     numPosZ.Text          = "0";
     numPosZ.ValueChanged += new EventHandler(numPosZ_TextChanged);
     //
     // label2
     //
     label2.BorderStyle = BorderStyle.FixedSingle;
     label2.Location    = new System.Drawing.Point(6, 35);
     label2.Name        = "label2";
     label2.Size        = new System.Drawing.Size(22, 20);
     label2.TabIndex    = 5;
     label2.Text        = "Y: ";
     label2.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // numPosY
     //
     numPosY.BorderStyle   = BorderStyle.FixedSingle;
     numPosY.Integral      = false;
     numPosY.Location      = new System.Drawing.Point(27, 35);
     numPosY.MaximumValue  = 3.402823E+38F;
     numPosY.MinimumValue  = -3.402823E+38F;
     numPosY.Name          = "numPosY";
     numPosY.Size          = new System.Drawing.Size(78, 20);
     numPosY.TabIndex      = 4;
     numPosY.Text          = "0";
     numPosY.ValueChanged += new EventHandler(numPosY_TextChanged);
     //
     // label1
     //
     label1.BorderStyle = BorderStyle.FixedSingle;
     label1.Location    = new System.Drawing.Point(6, 16);
     label1.Name        = "label1";
     label1.Size        = new System.Drawing.Size(22, 20);
     label1.TabIndex    = 3;
     label1.Text        = "X: ";
     label1.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // numPosX
     //
     numPosX.BorderStyle   = BorderStyle.FixedSingle;
     numPosX.Integral      = false;
     numPosX.Location      = new System.Drawing.Point(27, 16);
     numPosX.MaximumValue  = 3.402823E+38F;
     numPosX.MinimumValue  = -3.402823E+38F;
     numPosX.Name          = "numPosX";
     numPosX.Size          = new System.Drawing.Size(78, 20);
     numPosX.TabIndex      = 0;
     numPosX.Text          = "0";
     numPosX.ValueChanged += new EventHandler(numPosX_TextChanged);
     //
     // groupBox1
     //
     groupBox1.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
     groupBox1.Controls.Add(numPosZ);
     groupBox1.Controls.Add(label3);
     groupBox1.Controls.Add(numPosX);
     groupBox1.Controls.Add(label1);
     groupBox1.Controls.Add(label2);
     groupBox1.Controls.Add(numPosY);
     groupBox1.Enabled  = false;
     groupBox1.Location = new System.Drawing.Point(3, 3);
     groupBox1.Name     = "groupBox1";
     groupBox1.Size     = new System.Drawing.Size(111, 82);
     groupBox1.TabIndex = 8;
     groupBox1.TabStop  = false;
     groupBox1.Text     = "Position";
     //
     // groupBox2
     //
     groupBox2.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
     groupBox2.Controls.Add(numNormZ);
     groupBox2.Controls.Add(label4);
     groupBox2.Controls.Add(numNormX);
     groupBox2.Controls.Add(label5);
     groupBox2.Controls.Add(label6);
     groupBox2.Controls.Add(numNormY);
     groupBox2.Location = new System.Drawing.Point(231, 3);
     groupBox2.Name     = "groupBox2";
     groupBox2.Size     = new System.Drawing.Size(111, 82);
     groupBox2.TabIndex = 9;
     groupBox2.TabStop  = false;
     groupBox2.Text     = "Normal";
     groupBox2.Visible  = false;
     //
     // numNormZ
     //
     numNormZ.BorderStyle   = BorderStyle.FixedSingle;
     numNormZ.Integral      = false;
     numNormZ.Location      = new System.Drawing.Point(27, 54);
     numNormZ.MaximumValue  = 3.402823E+38F;
     numNormZ.MinimumValue  = -3.402823E+38F;
     numNormZ.Name          = "numNormZ";
     numNormZ.Size          = new System.Drawing.Size(78, 20);
     numNormZ.TabIndex      = 6;
     numNormZ.Text          = "0";
     numNormZ.ValueChanged += new EventHandler(numNormZ_ValueChanged);
     //
     // label4
     //
     label4.BorderStyle = BorderStyle.FixedSingle;
     label4.Location    = new System.Drawing.Point(6, 54);
     label4.Name        = "label4";
     label4.Size        = new System.Drawing.Size(22, 20);
     label4.TabIndex    = 7;
     label4.Text        = "Z: ";
     label4.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // numNormX
     //
     numNormX.BorderStyle   = BorderStyle.FixedSingle;
     numNormX.Integral      = false;
     numNormX.Location      = new System.Drawing.Point(27, 16);
     numNormX.MaximumValue  = 3.402823E+38F;
     numNormX.MinimumValue  = -3.402823E+38F;
     numNormX.Name          = "numNormX";
     numNormX.Size          = new System.Drawing.Size(78, 20);
     numNormX.TabIndex      = 0;
     numNormX.Text          = "0";
     numNormX.ValueChanged += new EventHandler(numNormX_ValueChanged);
     //
     // label5
     //
     label5.BorderStyle = BorderStyle.FixedSingle;
     label5.Location    = new System.Drawing.Point(6, 16);
     label5.Name        = "label5";
     label5.Size        = new System.Drawing.Size(22, 20);
     label5.TabIndex    = 3;
     label5.Text        = "X: ";
     label5.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // label6
     //
     label6.BorderStyle = BorderStyle.FixedSingle;
     label6.Location    = new System.Drawing.Point(6, 35);
     label6.Name        = "label6";
     label6.Size        = new System.Drawing.Size(22, 20);
     label6.TabIndex    = 5;
     label6.Text        = "Y: ";
     label6.TextAlign   = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // numNormY
     //
     numNormY.BorderStyle   = BorderStyle.FixedSingle;
     numNormY.Integral      = false;
     numNormY.Location      = new System.Drawing.Point(27, 35);
     numNormY.MaximumValue  = 3.402823E+38F;
     numNormY.MinimumValue  = -3.402823E+38F;
     numNormY.Name          = "numNormY";
     numNormY.Size          = new System.Drawing.Size(78, 20);
     numNormY.TabIndex      = 4;
     numNormY.Text          = "0";
     numNormY.ValueChanged += new EventHandler(numNormY_ValueChanged);
     //
     // groupBox4
     //
     groupBox4.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
     groupBox4.Controls.Add(colorBox);
     groupBox4.Controls.Add(colorIndex);
     groupBox4.Location = new System.Drawing.Point(348, 3);
     groupBox4.Name     = "groupBox4";
     groupBox4.Size     = new System.Drawing.Size(111, 82);
     groupBox4.TabIndex = 11;
     groupBox4.TabStop  = false;
     groupBox4.Text     = "Color";
     groupBox4.Visible  = false;
     //
     // colorBox
     //
     colorBox.Anchor       = AnchorStyles.Top | AnchorStyles.Right;
     colorBox.BorderStyle  = BorderStyle.FixedSingle;
     colorBox.Cursor       = Cursors.Hand;
     colorBox.Location     = new System.Drawing.Point(6, 36);
     colorBox.Name         = "colorBox";
     colorBox.Size         = new System.Drawing.Size(99, 38);
     colorBox.TabIndex     = 12;
     colorBox.DoubleClick += new EventHandler(colorBox_Click);
     //
     // colorIndex
     //
     colorIndex.DropDownStyle     = ComboBoxStyle.DropDownList;
     colorIndex.FormattingEnabled = true;
     colorIndex.Items.AddRange(new object[]
     {
         "Color 0",
         "Color 1"
     });
     colorIndex.Location              = new System.Drawing.Point(6, 14);
     colorIndex.Name                  = "colorIndex";
     colorIndex.Size                  = new System.Drawing.Size(99, 21);
     colorIndex.TabIndex              = 7;
     colorIndex.SelectedIndexChanged += new EventHandler(colorIndex_SelectedIndexChanged);
     //
     // btnAverage
     //
     btnAverage.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     btnAverage.Enabled  = false;
     btnAverage.Location = new System.Drawing.Point(120, 54);
     btnAverage.Name     = "btnAverage";
     btnAverage.Size     = new System.Drawing.Size(105, 23);
     btnAverage.TabIndex = 12;
     btnAverage.Text     = "Average";
     btnAverage.UseVisualStyleBackColor = true;
     btnAverage.Click += new EventHandler(btnAverage_Click);
     //
     // label7
     //
     label7.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     label7.AutoSize = true;
     label7.Location = new System.Drawing.Point(120, 38);
     label7.Name     = "label7";
     label7.Size     = new System.Drawing.Size(104, 13);
     label7.TabIndex = 13;
     label7.Text     = "No vertices selected";
     //
     // comboBox1
     //
     comboBox1.Anchor            = AnchorStyles.Bottom | AnchorStyles.Left;
     comboBox1.DropDownStyle     = ComboBoxStyle.DropDownList;
     comboBox1.FormattingEnabled = true;
     comboBox1.Location          = new System.Drawing.Point(98, -22);
     comboBox1.Name     = "comboBox1";
     comboBox1.Size     = new System.Drawing.Size(121, 21);
     comboBox1.TabIndex = 14;
     //
     // label8
     //
     label8.Anchor   = AnchorStyles.Bottom | AnchorStyles.Left;
     label8.AutoSize = true;
     label8.Location = new System.Drawing.Point(6, -19);
     label8.Name     = "label8";
     label8.Size     = new System.Drawing.Size(86, 13);
     label8.TabIndex = 15;
     label8.Text     = "Facepoint Index:";
     //
     // VertexEditor
     //
     Controls.Add(label8);
     Controls.Add(comboBox1);
     Controls.Add(label7);
     Controls.Add(btnAverage);
     Controls.Add(groupBox4);
     Controls.Add(groupBox2);
     Controls.Add(groupBox1);
     MinimumSize = new System.Drawing.Size(230, 85);
     Name        = "VertexEditor";
     Size        = new System.Drawing.Size(230, 85);
     groupBox1.ResumeLayout(false);
     groupBox1.PerformLayout();
     groupBox2.ResumeLayout(false);
     groupBox2.PerformLayout();
     groupBox4.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }
示例#12
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 Point(67, 28);
     btnSetWeight.Name     = "btnSetWeight";
     btnSetWeight.Size     = new Size(61, 22);
     btnSetWeight.TabIndex = 2;
     btnSetWeight.Text     = "Set";
     btnSetWeight.UseVisualStyleBackColor = true;
     btnSetWeight.Click += new EventHandler(btnSetWeight_Click);
     //
     // btnBlend
     //
     btnBlend.Location = new Point(129, 28);
     btnBlend.Name     = "btnBlend";
     btnBlend.Size     = new Size(62, 22);
     btnBlend.TabIndex = 4;
     btnBlend.Text     = "Blend";
     btnBlend.UseVisualStyleBackColor = true;
     btnBlend.Visible = false;
     btnBlend.Click  += new EventHandler(btnBlend_Click);
     //
     // btnAdd
     //
     btnAdd.Enabled  = false;
     btnAdd.Location = new Point(67, 52);
     btnAdd.Name     = "btnAdd";
     btnAdd.Size     = new Size(30, 22);
     btnAdd.TabIndex = 7;
     btnAdd.Text     = "+";
     btnAdd.UseVisualStyleBackColor = true;
     btnAdd.Click += new EventHandler(btnAdd_Click);
     //
     // btnSubtract
     //
     btnSubtract.Enabled  = false;
     btnSubtract.Location = new Point(98, 52);
     btnSubtract.Name     = "btnSubtract";
     btnSubtract.Size     = new Size(30, 22);
     btnSubtract.TabIndex = 8;
     btnSubtract.Text     = "-";
     btnSubtract.UseVisualStyleBackColor = true;
     btnSubtract.Click += new EventHandler(btnSubtract_Click);
     //
     // btnLock
     //
     btnLock.Enabled  = false;
     btnLock.Location = new Point(2, 4);
     btnLock.Name     = "btnLock";
     btnLock.Size     = new Size(64, 22);
     btnLock.TabIndex = 10;
     btnLock.Text     = "Lock";
     btnLock.UseVisualStyleBackColor = true;
     btnLock.Click += new EventHandler(btnLock_Click);
     //
     // lblBoneName
     //
     lblBoneName.AutoSize = true;
     lblBoneName.Location = new Point(134, 9);
     lblBoneName.Name     = "lblBoneName";
     lblBoneName.Size     = new Size(32, 13);
     lblBoneName.TabIndex = 11;
     lblBoneName.Text     = "Bone";
     //
     // btnRemove
     //
     btnRemove.Enabled  = false;
     btnRemove.Location = new Point(67, 4);
     btnRemove.Name     = "btnRemove";
     btnRemove.Size     = new Size(61, 22);
     btnRemove.TabIndex = 12;
     btnRemove.Text     = "Remove";
     btnRemove.UseVisualStyleBackColor = true;
     btnRemove.Click += new EventHandler(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 Point(130, 0);
     panel1.Name     = "panel1";
     panel1.Size     = new Size(130, 103);
     panel1.TabIndex = 14;
     //
     // numMult
     //
     numMult.Enabled      = false;
     numMult.Integral     = false;
     numMult.Location     = new Point(3, 77);
     numMult.MaximumValue = 3.402823E+38F;
     numMult.MinimumValue = -3.402823E+38F;
     numMult.Name         = "numMult";
     numMult.Size         = new Size(62, 20);
     numMult.TabIndex     = 16;
     numMult.Text         = "1.05";
     //
     // btnMult
     //
     btnMult.Enabled  = false;
     btnMult.Location = new Point(67, 76);
     btnMult.Name     = "btnMult";
     btnMult.Size     = new Size(30, 22);
     btnMult.TabIndex = 14;
     btnMult.Text     = "x";
     btnMult.UseVisualStyleBackColor = true;
     btnMult.Click += new EventHandler(btnMult_Click);
     //
     // btnDiv
     //
     btnDiv.Enabled  = false;
     btnDiv.Location = new Point(98, 76);
     btnDiv.Name     = "btnDiv";
     btnDiv.Size     = new Size(30, 22);
     btnDiv.TabIndex = 15;
     btnDiv.Text     = "/";
     btnDiv.UseVisualStyleBackColor = true;
     btnDiv.Click += new EventHandler(btnDiv_Click);
     //
     // numAdd
     //
     numAdd.Enabled      = false;
     numAdd.Integral     = false;
     numAdd.Location     = new Point(3, 53);
     numAdd.MaximumValue = 3.402823E+38F;
     numAdd.MinimumValue = -3.402823E+38F;
     numAdd.Name         = "numAdd";
     numAdd.Size         = new Size(62, 20);
     numAdd.TabIndex     = 13;
     numAdd.Text         = "10";
     //
     // numWeight
     //
     numWeight.Enabled       = false;
     numWeight.Integral      = false;
     numWeight.Location      = new Point(3, 29);
     numWeight.MaximumValue  = 3.402823E+38F;
     numWeight.MinimumValue  = -3.402823E+38F;
     numWeight.Name          = "numWeight";
     numWeight.Size          = new Size(62, 20);
     numWeight.TabIndex      = 3;
     numWeight.Text          = "100";
     numWeight.ValueChanged += new EventHandler(numWeight_ValueChanged);
     //
     // btnPaste
     //
     btnPaste.Location = new Point(129, 75);
     btnPaste.Name     = "btnPaste";
     btnPaste.Size     = new Size(62, 22);
     btnPaste.TabIndex = 6;
     btnPaste.Text     = "Paste";
     btnPaste.UseVisualStyleBackColor = true;
     btnPaste.Visible = false;
     btnPaste.Click  += new EventHandler(btnPaste_Click);
     //
     // btnCopy
     //
     btnCopy.Location = new Point(129, 51);
     btnCopy.Name     = "btnCopy";
     btnCopy.Size     = new Size(62, 22);
     btnCopy.TabIndex = 5;
     btnCopy.Text     = "Copy";
     btnCopy.UseVisualStyleBackColor = true;
     btnCopy.Visible = false;
     btnCopy.Click  += new EventHandler(btnCopy_Click);
     //
     // lstBoneWeights
     //
     lstBoneWeights.Dock                  = DockStyle.Left;
     lstBoneWeights.DrawMode              = DrawMode.OwnerDrawFixed;
     lstBoneWeights.FormattingEnabled     = true;
     lstBoneWeights.IntegralHeight        = false;
     lstBoneWeights.Location              = new Point(0, 0);
     lstBoneWeights.Name                  = "lstBoneWeights";
     lstBoneWeights.Size                  = new Size(130, 103);
     lstBoneWeights.TabIndex              = 0;
     lstBoneWeights.DrawItem             += new DrawItemEventHandler(lstBoneWeights_DrawItem);
     lstBoneWeights.SelectedIndexChanged += new EventHandler(lstBoneWeights_SelectedIndexChanged);
     //
     // WeightEditor
     //
     Controls.Add(panel1);
     Controls.Add(lstBoneWeights);
     MinimumSize = new Size(260, 103);
     Name        = "WeightEditor";
     Size        = new Size(260, 103);
     panel1.ResumeLayout(false);
     panel1.PerformLayout();
     ResumeLayout(false);
 }
示例#13
0
 private void InitializeComponent()
 {
     listBox1  = new ListBox();
     label1    = new Label();
     listBox2  = new ListBox();
     label2    = new Label();
     button1   = new Button();
     label3    = new Label();
     trackBar1 = new TrackBar();
     label4    = new Label();
     label5    = new Label();
     label6    = new Label();
     button2   = new Button();
     label7    = new Label();
     button3   = new Button();
     button4   = new Button();
     splitter1 = new Splitter();
     panel1    = new Panel();
     panel2    = new Panel();
     button5   = new Button();
     textBox1  = new NumericInputBox();
     ((ISupportInitialize)trackBar1).BeginInit();
     panel1.SuspendLayout();
     panel2.SuspendLayout();
     SuspendLayout();
     //
     // listBox1
     //
     listBox1.Dock = DockStyle.Fill;
     listBox1.FormattingEnabled = true;
     listBox1.IntegralHeight    = false;
     listBox1.Location          = new Point(0, 0);
     listBox1.Name                  = "listBox1";
     listBox1.Size                  = new Size(256, 49);
     listBox1.TabIndex              = 0;
     listBox1.SelectedValueChanged += new EventHandler(listBox1_SelectedValueChanged);
     //
     // label1
     //
     label1.AutoSize = true;
     label1.Location = new Point(4, 31);
     label1.Name     = "label1";
     label1.Size     = new Size(95, 13);
     label1.TabIndex = 1;
     label1.Text     = "Target Vertex Sets";
     //
     // listBox2
     //
     listBox2.Dock = DockStyle.Fill;
     listBox2.FormattingEnabled = true;
     listBox2.IntegralHeight    = false;
     listBox2.Location          = new Point(3, 0);
     listBox2.Name                  = "listBox2";
     listBox2.Size                  = new Size(261, 49);
     listBox2.TabIndex              = 2;
     listBox2.SelectedValueChanged += new EventHandler(listBox2_SelectedValueChanged);
     //
     // label2
     //
     label2.AutoSize = true;
     label2.Location = new Point(267, 31);
     label2.Name     = "label2";
     label2.Size     = new Size(117, 13);
     label2.TabIndex = 3;
     label2.Text     = "Destination Vertex Sets";
     //
     // button1
     //
     button1.Location = new Point(429, 27);
     button1.Name     = "button1";
     button1.Size     = new Size(37, 20);
     button1.TabIndex = 4;
     button1.Text     = "Add";
     button1.UseVisualStyleBackColor = true;
     button1.Visible = false;
     button1.Click  += new EventHandler(button1_Click);
     //
     // label3
     //
     label3.AutoSize = true;
     label3.Location = new Point(4, 8);
     label3.Name     = "label3";
     label3.Size     = new Size(98, 13);
     label3.TabIndex = 5;
     label3.Text     = "Morph Percentage:";
     //
     // trackBar1
     //
     trackBar1.Location  = new Point(126, 4);
     trackBar1.Maximum   = 1000;
     trackBar1.Name      = "trackBar1";
     trackBar1.Size      = new Size(204, 45);
     trackBar1.TabIndex  = 6;
     trackBar1.TickStyle = TickStyle.None;
     trackBar1.Scroll   += new EventHandler(trackBar1_Scroll);
     //
     // label4
     //
     label4.AutoSize = true;
     label4.Location = new Point(108, 8);
     label4.Name     = "label4";
     label4.Size     = new Size(21, 13);
     label4.TabIndex = 7;
     label4.Text     = "0%";
     //
     // label5
     //
     label5.AutoSize = true;
     label5.Location = new Point(326, 8);
     label5.Name     = "label5";
     label5.Size     = new Size(33, 13);
     label5.TabIndex = 8;
     label5.Text     = "100%";
     //
     // label6
     //
     label6.AutoSize = true;
     label6.Location = new Point(365, 8);
     label6.Name     = "label6";
     label6.Size     = new Size(40, 13);
     label6.TabIndex = 10;
     label6.Text     = "Value: ";
     //
     // button2
     //
     button2.Location = new Point(472, 27);
     button2.Name     = "button2";
     button2.Size     = new Size(56, 20);
     button2.TabIndex = 11;
     button2.Text     = "Remove";
     button2.UseVisualStyleBackColor = true;
     button2.Visible = false;
     button2.Click  += new EventHandler(button2_Click);
     //
     // label7
     //
     label7.AutoSize = true;
     label7.Location = new Point(446, 8);
     label7.Name     = "label7";
     label7.Size     = new Size(15, 13);
     label7.TabIndex = 12;
     label7.Text     = "%";
     //
     // button3
     //
     button3.Location = new Point(209, 27);
     button3.Name     = "button3";
     button3.Size     = new Size(56, 20);
     button3.TabIndex = 14;
     button3.Text     = "Remove";
     button3.UseVisualStyleBackColor = true;
     button3.Visible = false;
     //
     // button4
     //
     button4.Location = new Point(166, 27);
     button4.Name     = "button4";
     button4.Size     = new Size(37, 20);
     button4.TabIndex = 13;
     button4.Text     = "Add";
     button4.UseVisualStyleBackColor = true;
     button4.Visible = false;
     button4.Click  += new EventHandler(button4_Click);
     //
     // splitter1
     //
     splitter1.Location = new Point(0, 0);
     splitter1.Name     = "splitter1";
     splitter1.Size     = new Size(3, 49);
     splitter1.TabIndex = 15;
     splitter1.TabStop  = false;
     //
     // panel1
     //
     panel1.Controls.Add(listBox2);
     panel1.Controls.Add(splitter1);
     panel1.Dock     = DockStyle.Right;
     panel1.Location = new Point(256, 0);
     panel1.Name     = "panel1";
     panel1.Size     = new Size(264, 49);
     panel1.TabIndex = 16;
     //
     // panel2
     //
     panel2.Controls.Add(listBox1);
     panel2.Controls.Add(panel1);
     panel2.Location = new Point(7, 49);
     panel2.Name     = "panel2";
     panel2.Size     = new Size(520, 49);
     panel2.TabIndex = 17;
     //
     // button5
     //
     button5.Location = new Point(472, 5);
     button5.Name     = "button5";
     button5.Size     = new Size(55, 20);
     button5.TabIndex = 18;
     button5.Text     = "Set";
     button5.UseVisualStyleBackColor = true;
     button5.Click += new EventHandler(button5_Click);
     //
     // textBox1
     //
     textBox1.Integral      = false;
     textBox1.Location      = new Point(404, 5);
     textBox1.MaximumValue  = 3.402823E+38F;
     textBox1.MaxLength     = 999999;
     textBox1.MinimumValue  = -3.402823E+38F;
     textBox1.Name          = "textBox1";
     textBox1.Size          = new Size(41, 20);
     textBox1.TabIndex      = 9;
     textBox1.Text          = "0";
     textBox1.ValueChanged += new EventHandler(PercentChanged);
     //
     // SHP0Editor
     //
     Controls.Add(button5);
     Controls.Add(panel2);
     Controls.Add(button3);
     Controls.Add(button4);
     Controls.Add(label7);
     Controls.Add(button2);
     Controls.Add(textBox1);
     Controls.Add(label5);
     Controls.Add(label4);
     Controls.Add(label3);
     Controls.Add(button1);
     Controls.Add(label2);
     Controls.Add(trackBar1);
     Controls.Add(label6);
     Controls.Add(label1);
     MinimumSize = new Size(533, 106);
     Name        = "SHP0Editor";
     Size        = new Size(533, 106);
     ((ISupportInitialize)trackBar1).EndInit();
     panel1.ResumeLayout(false);
     panel2.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }