public void Calling_before_after_or_replace_1000_000_times_takes_less_than_60_milliseconds()
        {
            var before = Before <E3> .Insert <E2>().CreateSingleAggregateInstanceHandlingMigrator();

            var replace = Replace <E3> .With <E2>().CreateSingleAggregateInstanceHandlingMigrator();

            var after = After <E3> .Insert <E2>().CreateSingleAggregateInstanceHandlingMigrator();

            var @event        = new E2();
            var eventModifier = new EventModifier(@event, _ => { });

            var numberOfEventsToInspect = 1000000;
            var maxtime = TestEnvironmentPerformance.AdjustRuntime(60.Milliseconds(), boost: 12.0);

            TimeAsserter.Execute(
                maxTotal: maxtime,
                description: $"{nameof(before)}",
                iterations: numberOfEventsToInspect,
                action: () => before.MigrateEvent(@event, @eventModifier));
            TimeAsserter.Execute(
                maxTotal: maxtime,
                description: $"{nameof(replace)}",
                iterations: numberOfEventsToInspect,
                action: () => replace.MigrateEvent(@event, @eventModifier));
            TimeAsserter.Execute(
                maxTotal: maxtime,
                description: $"{nameof(after)}",
                iterations: numberOfEventsToInspect,
                action: () => after.MigrateEvent(@event, @eventModifier));
        }
Пример #2
0
 public void PlotPoints(EventModifier modifier, int ptsMul = 1)
 {
     EventConstructor
     .SampleEvents(_pts * ptsMul)
     .Modify
     .WithModifiers(modifier)
     .Events
     .Plot
     .PlotPoints(
         dir +
         new System.Diagnostics.StackTrace().GetFrame(1)?.GetMethod()?.Name +
         ".png");
 }
Пример #3
0
 private void InitializeComponent()
 {
     this.eventModifier = new System.Windows.Forms.EventModifier();
     this.SuspendLayout();
     //
     // eventModifier1
     //
     this.eventModifier.AutoSize   = true;
     this.eventModifier.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.eventModifier.Location   = new System.Drawing.Point(0, 0);
     this.eventModifier.Name       = "eventModifier1";
     this.eventModifier.Size       = new System.Drawing.Size(284, 262);
     this.eventModifier.TabIndex   = 0;
     this.eventModifier.Completed += new System.EventHandler(this.eventModifier1_Completed);
     //
     // FormModifyEvent
     //
     this.ClientSize = new System.Drawing.Size(284, 262);
     this.Controls.Add(this.eventModifier);
     this.Name = "FormModifyEvent";
     this.Text = "Event Modifier";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Пример #4
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);
 }
 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();
 }
Пример #6
0
 public EventModify WithModifiers(EventModifier modifier)
 {
     modifier.ModifyAll(Events);
     return(this);
 }