diff --git a/pk3DS/Main.cs b/pk3DS/Main.cs index ad4c95c..9bf5891 100644 --- a/pk3DS/Main.cs +++ b/pk3DS/Main.cs @@ -291,13 +291,13 @@ private void toggleSubEditors() switch (Config.Generation) { case 6: - romfs = new Control[] {B_GameText, B_StoryText, B_Personal, B_Evolution, B_LevelUp, B_Wild, B_MegaEvo, B_EggMove, B_Trainer, B_Maison, B_Item, B_Move, B_TitleScreen}; + romfs = new Control[] {B_GameText, B_StoryText, B_Personal, B_Evolution, B_LevelUp, B_Wild, B_MegaEvo, B_EggMove, B_Trainer, B_Item, B_Move, B_Maison, B_TitleScreen}; exefs = new Control[] {B_MoveTutor, B_TMHM, B_Mart, B_Pickup, B_OPower}; cro = new Control[] {B_TypeChart, B_Starter, B_Gift, B_Static}; B_MoveTutor.Visible = Config.ORAS; // Default false unless loaded break; case 7: - romfs = new Control[] {B_GameText, B_StoryText, B_Personal, B_Wild, B_Trainer, B_LevelUp, B_EggMove}; + romfs = new Control[] {B_GameText, B_StoryText, B_Personal, B_Evolution, B_LevelUp, B_Wild, B_MegaEvo, B_EggMove, B_Trainer, B_Item, B_Move, }; exefs = new Control[] {B_TMHM, B_TypeChart}; cro = new Control[] {new Label {Text = "No editors available."}}; break; @@ -612,7 +612,15 @@ private void B_Item_Click(object sender, EventArgs e) { string[] files = { "item" }; fileGet(files); - Invoke((Action)(() => new ItemEditor6().ShowDialog())); + switch (Config.Generation) + { + case 6: + Invoke((Action)(() => new ItemEditor6().ShowDialog())); + break; + case 7: + Invoke((Action)(() => new ItemEditor7().ShowDialog())); + break; + } fileSet(files); }).Start(); } @@ -623,6 +631,15 @@ private void B_Move_Click(object sender, EventArgs e) { string[] files = { "move" }; fileGet(files); + switch (Config.Generation) + { + case 6: + Invoke((Action)(() => new MoveEditor6().ShowDialog())); + break; + case 7: + Invoke((Action)(() => new MoveEditor7().ShowDialog())); + break; + } Invoke((Action)(() => new MoveEditor6().ShowDialog())); fileSet(files); }).Start(); diff --git a/pk3DS/Subforms/Gen7/EvolutionEditor7.Designer.cs b/pk3DS/Subforms/Gen7/EvolutionEditor7.Designer.cs new file mode 100644 index 0000000..9339efd --- /dev/null +++ b/pk3DS/Subforms/Gen7/EvolutionEditor7.Designer.cs @@ -0,0 +1,714 @@ +namespace pk3DS +{ + partial class EvolutionEditor7 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.CB_Species = new System.Windows.Forms.ComboBox(); + this.L_Species = new System.Windows.Forms.Label(); + this.B_Dump = new System.Windows.Forms.Button(); + this.CB_M1 = new System.Windows.Forms.ComboBox(); + this.L_M1 = new System.Windows.Forms.Label(); + this.CB_I1 = new System.Windows.Forms.ComboBox(); + this.CB_P1 = new System.Windows.Forms.ComboBox(); + this.CB_P2 = new System.Windows.Forms.ComboBox(); + this.CB_I2 = new System.Windows.Forms.ComboBox(); + this.L_M2 = new System.Windows.Forms.Label(); + this.CB_M2 = new System.Windows.Forms.ComboBox(); + this.CB_P3 = new System.Windows.Forms.ComboBox(); + this.CB_I3 = new System.Windows.Forms.ComboBox(); + this.L_M3 = new System.Windows.Forms.Label(); + this.CB_M3 = new System.Windows.Forms.ComboBox(); + this.CB_P4 = new System.Windows.Forms.ComboBox(); + this.CB_I4 = new System.Windows.Forms.ComboBox(); + this.L_M4 = new System.Windows.Forms.Label(); + this.CB_M4 = new System.Windows.Forms.ComboBox(); + this.CB_P5 = new System.Windows.Forms.ComboBox(); + this.CB_I5 = new System.Windows.Forms.ComboBox(); + this.L_M5 = new System.Windows.Forms.Label(); + this.CB_M5 = new System.Windows.Forms.ComboBox(); + this.CB_P8 = new System.Windows.Forms.ComboBox(); + this.CB_I8 = new System.Windows.Forms.ComboBox(); + this.L_M8 = new System.Windows.Forms.Label(); + this.CB_M8 = new System.Windows.Forms.ComboBox(); + this.CB_P7 = new System.Windows.Forms.ComboBox(); + this.CB_I7 = new System.Windows.Forms.ComboBox(); + this.L_M7 = new System.Windows.Forms.Label(); + this.CB_M7 = new System.Windows.Forms.ComboBox(); + this.CB_P6 = new System.Windows.Forms.ComboBox(); + this.CB_I6 = new System.Windows.Forms.ComboBox(); + this.L_M6 = new System.Windows.Forms.Label(); + this.CB_M6 = new System.Windows.Forms.ComboBox(); + this.PB_1 = new System.Windows.Forms.PictureBox(); + this.PB_2 = new System.Windows.Forms.PictureBox(); + this.PB_4 = new System.Windows.Forms.PictureBox(); + this.PB_3 = new System.Windows.Forms.PictureBox(); + this.PB_6 = new System.Windows.Forms.PictureBox(); + this.PB_5 = new System.Windows.Forms.PictureBox(); + this.PB_8 = new System.Windows.Forms.PictureBox(); + this.PB_7 = new System.Windows.Forms.PictureBox(); + this.B_RandAll = new System.Windows.Forms.Button(); + this.GB_Randomizer = new System.Windows.Forms.GroupBox(); + this.L_Protip = new System.Windows.Forms.Label(); + this.CHK_BST = new System.Windows.Forms.CheckBox(); + this.CHK_Type = new System.Windows.Forms.CheckBox(); + this.CHK_Exp = new System.Windows.Forms.CheckBox(); + ((System.ComponentModel.ISupportInitialize)(this.PB_1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_4)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_6)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_5)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_8)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_7)).BeginInit(); + this.GB_Randomizer.SuspendLayout(); + this.SuspendLayout(); + // + // CB_Species + // + this.CB_Species.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Species.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Species.FormattingEnabled = true; + this.CB_Species.Location = new System.Drawing.Point(66, 12); + this.CB_Species.Name = "CB_Species"; + this.CB_Species.Size = new System.Drawing.Size(121, 21); + this.CB_Species.TabIndex = 1; + this.CB_Species.SelectedIndexChanged += new System.EventHandler(this.changeEntry); + // + // L_Species + // + this.L_Species.AutoSize = true; + this.L_Species.Location = new System.Drawing.Point(12, 15); + this.L_Species.Name = "L_Species"; + this.L_Species.Size = new System.Drawing.Size(48, 13); + this.L_Species.TabIndex = 2; + this.L_Species.Text = "Species:"; + // + // B_Dump + // + this.B_Dump.Location = new System.Drawing.Point(193, 11); + this.B_Dump.Name = "B_Dump"; + this.B_Dump.Size = new System.Drawing.Size(59, 23); + this.B_Dump.TabIndex = 5; + this.B_Dump.Text = "Dump"; + this.B_Dump.UseVisualStyleBackColor = true; + this.B_Dump.Click += new System.EventHandler(this.B_Dump_Click); + // + // CB_M1 + // + this.CB_M1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_M1.DropDownWidth = 200; + this.CB_M1.FormattingEnabled = true; + this.CB_M1.Location = new System.Drawing.Point(79, 46); + this.CB_M1.MaxDropDownItems = 10; + this.CB_M1.Name = "CB_M1"; + this.CB_M1.Size = new System.Drawing.Size(150, 21); + this.CB_M1.TabIndex = 6; + this.CB_M1.SelectedIndexChanged += new System.EventHandler(this.changeMethod); + // + // L_M1 + // + this.L_M1.AutoSize = true; + this.L_M1.Location = new System.Drawing.Point(18, 49); + this.L_M1.Name = "L_M1"; + this.L_M1.Size = new System.Drawing.Size(55, 13); + this.L_M1.TabIndex = 7; + this.L_M1.Text = "Method 1:"; + // + // CB_I1 + // + this.CB_I1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_I1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_I1.FormattingEnabled = true; + this.CB_I1.Location = new System.Drawing.Point(277, 46); + this.CB_I1.Name = "CB_I1"; + this.CB_I1.Size = new System.Drawing.Size(101, 21); + this.CB_I1.TabIndex = 9; + this.CB_I1.SelectedIndexChanged += new System.EventHandler(this.changeInto); + // + // CB_P1 + // + this.CB_P1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_P1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_P1.FormattingEnabled = true; + this.CB_P1.Location = new System.Drawing.Point(79, 69); + this.CB_P1.Name = "CB_P1"; + this.CB_P1.Size = new System.Drawing.Size(121, 21); + this.CB_P1.TabIndex = 10; + // + // CB_P2 + // + this.CB_P2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_P2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_P2.FormattingEnabled = true; + this.CB_P2.Location = new System.Drawing.Point(79, 123); + this.CB_P2.Name = "CB_P2"; + this.CB_P2.Size = new System.Drawing.Size(121, 21); + this.CB_P2.TabIndex = 16; + // + // CB_I2 + // + this.CB_I2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_I2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_I2.FormattingEnabled = true; + this.CB_I2.Location = new System.Drawing.Point(277, 100); + this.CB_I2.Name = "CB_I2"; + this.CB_I2.Size = new System.Drawing.Size(101, 21); + this.CB_I2.TabIndex = 15; + this.CB_I2.SelectedIndexChanged += new System.EventHandler(this.changeInto); + // + // L_M2 + // + this.L_M2.AutoSize = true; + this.L_M2.Location = new System.Drawing.Point(18, 103); + this.L_M2.Name = "L_M2"; + this.L_M2.Size = new System.Drawing.Size(55, 13); + this.L_M2.TabIndex = 13; + this.L_M2.Text = "Method 2:"; + // + // CB_M2 + // + this.CB_M2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_M2.DropDownWidth = 200; + this.CB_M2.FormattingEnabled = true; + this.CB_M2.Location = new System.Drawing.Point(79, 100); + this.CB_M2.MaxDropDownItems = 10; + this.CB_M2.Name = "CB_M2"; + this.CB_M2.Size = new System.Drawing.Size(150, 21); + this.CB_M2.TabIndex = 12; + this.CB_M2.SelectedIndexChanged += new System.EventHandler(this.changeMethod); + // + // CB_P3 + // + this.CB_P3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_P3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_P3.FormattingEnabled = true; + this.CB_P3.Location = new System.Drawing.Point(79, 177); + this.CB_P3.Name = "CB_P3"; + this.CB_P3.Size = new System.Drawing.Size(121, 21); + this.CB_P3.TabIndex = 22; + // + // CB_I3 + // + this.CB_I3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_I3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_I3.FormattingEnabled = true; + this.CB_I3.Location = new System.Drawing.Point(277, 154); + this.CB_I3.Name = "CB_I3"; + this.CB_I3.Size = new System.Drawing.Size(101, 21); + this.CB_I3.TabIndex = 21; + this.CB_I3.SelectedIndexChanged += new System.EventHandler(this.changeInto); + // + // L_M3 + // + this.L_M3.AutoSize = true; + this.L_M3.Location = new System.Drawing.Point(18, 157); + this.L_M3.Name = "L_M3"; + this.L_M3.Size = new System.Drawing.Size(55, 13); + this.L_M3.TabIndex = 19; + this.L_M3.Text = "Method 3:"; + // + // CB_M3 + // + this.CB_M3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_M3.DropDownWidth = 200; + this.CB_M3.FormattingEnabled = true; + this.CB_M3.Location = new System.Drawing.Point(79, 154); + this.CB_M3.MaxDropDownItems = 10; + this.CB_M3.Name = "CB_M3"; + this.CB_M3.Size = new System.Drawing.Size(150, 21); + this.CB_M3.TabIndex = 18; + this.CB_M3.SelectedIndexChanged += new System.EventHandler(this.changeMethod); + // + // CB_P4 + // + this.CB_P4.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_P4.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_P4.FormattingEnabled = true; + this.CB_P4.Location = new System.Drawing.Point(79, 231); + this.CB_P4.Name = "CB_P4"; + this.CB_P4.Size = new System.Drawing.Size(121, 21); + this.CB_P4.TabIndex = 28; + // + // CB_I4 + // + this.CB_I4.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_I4.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_I4.FormattingEnabled = true; + this.CB_I4.Location = new System.Drawing.Point(277, 208); + this.CB_I4.Name = "CB_I4"; + this.CB_I4.Size = new System.Drawing.Size(101, 21); + this.CB_I4.TabIndex = 27; + this.CB_I4.SelectedIndexChanged += new System.EventHandler(this.changeInto); + // + // L_M4 + // + this.L_M4.AutoSize = true; + this.L_M4.Location = new System.Drawing.Point(18, 211); + this.L_M4.Name = "L_M4"; + this.L_M4.Size = new System.Drawing.Size(55, 13); + this.L_M4.TabIndex = 25; + this.L_M4.Text = "Method 4:"; + // + // CB_M4 + // + this.CB_M4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_M4.DropDownWidth = 200; + this.CB_M4.FormattingEnabled = true; + this.CB_M4.Location = new System.Drawing.Point(79, 208); + this.CB_M4.MaxDropDownItems = 10; + this.CB_M4.Name = "CB_M4"; + this.CB_M4.Size = new System.Drawing.Size(150, 21); + this.CB_M4.TabIndex = 24; + this.CB_M4.SelectedIndexChanged += new System.EventHandler(this.changeMethod); + // + // CB_P5 + // + this.CB_P5.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_P5.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_P5.FormattingEnabled = true; + this.CB_P5.Location = new System.Drawing.Point(79, 285); + this.CB_P5.Name = "CB_P5"; + this.CB_P5.Size = new System.Drawing.Size(121, 21); + this.CB_P5.TabIndex = 34; + // + // CB_I5 + // + this.CB_I5.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_I5.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_I5.FormattingEnabled = true; + this.CB_I5.Location = new System.Drawing.Point(277, 262); + this.CB_I5.Name = "CB_I5"; + this.CB_I5.Size = new System.Drawing.Size(101, 21); + this.CB_I5.TabIndex = 33; + this.CB_I5.SelectedIndexChanged += new System.EventHandler(this.changeInto); + // + // L_M5 + // + this.L_M5.AutoSize = true; + this.L_M5.Location = new System.Drawing.Point(18, 265); + this.L_M5.Name = "L_M5"; + this.L_M5.Size = new System.Drawing.Size(55, 13); + this.L_M5.TabIndex = 31; + this.L_M5.Text = "Method 5:"; + // + // CB_M5 + // + this.CB_M5.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_M5.DropDownWidth = 200; + this.CB_M5.FormattingEnabled = true; + this.CB_M5.Location = new System.Drawing.Point(79, 262); + this.CB_M5.MaxDropDownItems = 10; + this.CB_M5.Name = "CB_M5"; + this.CB_M5.Size = new System.Drawing.Size(150, 21); + this.CB_M5.TabIndex = 30; + this.CB_M5.SelectedIndexChanged += new System.EventHandler(this.changeMethod); + // + // CB_P8 + // + this.CB_P8.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_P8.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_P8.FormattingEnabled = true; + this.CB_P8.Location = new System.Drawing.Point(79, 447); + this.CB_P8.Name = "CB_P8"; + this.CB_P8.Size = new System.Drawing.Size(121, 21); + this.CB_P8.TabIndex = 52; + // + // CB_I8 + // + this.CB_I8.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_I8.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_I8.FormattingEnabled = true; + this.CB_I8.Location = new System.Drawing.Point(277, 424); + this.CB_I8.Name = "CB_I8"; + this.CB_I8.Size = new System.Drawing.Size(101, 21); + this.CB_I8.TabIndex = 51; + this.CB_I8.SelectedIndexChanged += new System.EventHandler(this.changeInto); + // + // L_M8 + // + this.L_M8.AutoSize = true; + this.L_M8.Location = new System.Drawing.Point(18, 427); + this.L_M8.Name = "L_M8"; + this.L_M8.Size = new System.Drawing.Size(55, 13); + this.L_M8.TabIndex = 49; + this.L_M8.Text = "Method 8:"; + // + // CB_M8 + // + this.CB_M8.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_M8.DropDownWidth = 200; + this.CB_M8.FormattingEnabled = true; + this.CB_M8.Location = new System.Drawing.Point(79, 424); + this.CB_M8.MaxDropDownItems = 10; + this.CB_M8.Name = "CB_M8"; + this.CB_M8.Size = new System.Drawing.Size(150, 21); + this.CB_M8.TabIndex = 48; + this.CB_M8.SelectedIndexChanged += new System.EventHandler(this.changeMethod); + // + // CB_P7 + // + this.CB_P7.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_P7.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_P7.FormattingEnabled = true; + this.CB_P7.Location = new System.Drawing.Point(79, 393); + this.CB_P7.Name = "CB_P7"; + this.CB_P7.Size = new System.Drawing.Size(121, 21); + this.CB_P7.TabIndex = 46; + // + // CB_I7 + // + this.CB_I7.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_I7.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_I7.FormattingEnabled = true; + this.CB_I7.Location = new System.Drawing.Point(277, 370); + this.CB_I7.Name = "CB_I7"; + this.CB_I7.Size = new System.Drawing.Size(101, 21); + this.CB_I7.TabIndex = 45; + this.CB_I7.SelectedIndexChanged += new System.EventHandler(this.changeInto); + // + // L_M7 + // + this.L_M7.AutoSize = true; + this.L_M7.Location = new System.Drawing.Point(18, 373); + this.L_M7.Name = "L_M7"; + this.L_M7.Size = new System.Drawing.Size(55, 13); + this.L_M7.TabIndex = 43; + this.L_M7.Text = "Method 7:"; + // + // CB_M7 + // + this.CB_M7.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_M7.DropDownWidth = 200; + this.CB_M7.FormattingEnabled = true; + this.CB_M7.Location = new System.Drawing.Point(79, 370); + this.CB_M7.MaxDropDownItems = 10; + this.CB_M7.Name = "CB_M7"; + this.CB_M7.Size = new System.Drawing.Size(150, 21); + this.CB_M7.TabIndex = 42; + this.CB_M7.SelectedIndexChanged += new System.EventHandler(this.changeMethod); + // + // CB_P6 + // + this.CB_P6.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_P6.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_P6.FormattingEnabled = true; + this.CB_P6.Location = new System.Drawing.Point(79, 339); + this.CB_P6.Name = "CB_P6"; + this.CB_P6.Size = new System.Drawing.Size(121, 21); + this.CB_P6.TabIndex = 40; + // + // CB_I6 + // + this.CB_I6.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_I6.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_I6.FormattingEnabled = true; + this.CB_I6.Location = new System.Drawing.Point(277, 316); + this.CB_I6.Name = "CB_I6"; + this.CB_I6.Size = new System.Drawing.Size(101, 21); + this.CB_I6.TabIndex = 39; + this.CB_I6.SelectedIndexChanged += new System.EventHandler(this.changeInto); + // + // L_M6 + // + this.L_M6.AutoSize = true; + this.L_M6.Location = new System.Drawing.Point(18, 319); + this.L_M6.Name = "L_M6"; + this.L_M6.Size = new System.Drawing.Size(55, 13); + this.L_M6.TabIndex = 37; + this.L_M6.Text = "Method 6:"; + // + // CB_M6 + // + this.CB_M6.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_M6.DropDownWidth = 200; + this.CB_M6.FormattingEnabled = true; + this.CB_M6.Location = new System.Drawing.Point(79, 316); + this.CB_M6.MaxDropDownItems = 10; + this.CB_M6.Name = "CB_M6"; + this.CB_M6.Size = new System.Drawing.Size(150, 21); + this.CB_M6.TabIndex = 36; + this.CB_M6.SelectedIndexChanged += new System.EventHandler(this.changeMethod); + // + // PB_1 + // + this.PB_1.Location = new System.Drawing.Point(235, 46); + this.PB_1.Name = "PB_1"; + this.PB_1.Size = new System.Drawing.Size(40, 30); + this.PB_1.TabIndex = 54; + this.PB_1.TabStop = false; + // + // PB_2 + // + this.PB_2.Location = new System.Drawing.Point(235, 100); + this.PB_2.Name = "PB_2"; + this.PB_2.Size = new System.Drawing.Size(40, 30); + this.PB_2.TabIndex = 55; + this.PB_2.TabStop = false; + // + // PB_4 + // + this.PB_4.Location = new System.Drawing.Point(235, 208); + this.PB_4.Name = "PB_4"; + this.PB_4.Size = new System.Drawing.Size(40, 30); + this.PB_4.TabIndex = 57; + this.PB_4.TabStop = false; + // + // PB_3 + // + this.PB_3.Location = new System.Drawing.Point(235, 154); + this.PB_3.Name = "PB_3"; + this.PB_3.Size = new System.Drawing.Size(40, 30); + this.PB_3.TabIndex = 56; + this.PB_3.TabStop = false; + // + // PB_6 + // + this.PB_6.Location = new System.Drawing.Point(235, 316); + this.PB_6.Name = "PB_6"; + this.PB_6.Size = new System.Drawing.Size(40, 30); + this.PB_6.TabIndex = 59; + this.PB_6.TabStop = false; + // + // PB_5 + // + this.PB_5.Location = new System.Drawing.Point(235, 262); + this.PB_5.Name = "PB_5"; + this.PB_5.Size = new System.Drawing.Size(40, 30); + this.PB_5.TabIndex = 58; + this.PB_5.TabStop = false; + // + // PB_8 + // + this.PB_8.Location = new System.Drawing.Point(235, 424); + this.PB_8.Name = "PB_8"; + this.PB_8.Size = new System.Drawing.Size(40, 30); + this.PB_8.TabIndex = 61; + this.PB_8.TabStop = false; + // + // PB_7 + // + this.PB_7.Location = new System.Drawing.Point(235, 370); + this.PB_7.Name = "PB_7"; + this.PB_7.Size = new System.Drawing.Size(40, 30); + this.PB_7.TabIndex = 60; + this.PB_7.TabStop = false; + // + // B_RandAll + // + this.B_RandAll.Location = new System.Drawing.Point(251, 47); + this.B_RandAll.Name = "B_RandAll"; + this.B_RandAll.Size = new System.Drawing.Size(100, 23); + this.B_RandAll.TabIndex = 62; + this.B_RandAll.Text = "Randomize All"; + this.B_RandAll.UseVisualStyleBackColor = true; + this.B_RandAll.Click += new System.EventHandler(this.B_RandAll_Click); + // + // GB_Randomizer + // + this.GB_Randomizer.Controls.Add(this.L_Protip); + this.GB_Randomizer.Controls.Add(this.CHK_BST); + this.GB_Randomizer.Controls.Add(this.CHK_Type); + this.GB_Randomizer.Controls.Add(this.CHK_Exp); + this.GB_Randomizer.Controls.Add(this.B_RandAll); + this.GB_Randomizer.Location = new System.Drawing.Point(21, 474); + this.GB_Randomizer.Name = "GB_Randomizer"; + this.GB_Randomizer.Size = new System.Drawing.Size(357, 76); + this.GB_Randomizer.TabIndex = 63; + this.GB_Randomizer.TabStop = false; + this.GB_Randomizer.Text = "Randomizer Options"; + // + // L_Protip + // + this.L_Protip.AutoSize = true; + this.L_Protip.ForeColor = System.Drawing.Color.Red; + this.L_Protip.Location = new System.Drawing.Point(198, 11); + this.L_Protip.Name = "L_Protip"; + this.L_Protip.Size = new System.Drawing.Size(153, 13); + this.L_Protip.TabIndex = 66; + this.L_Protip.Text = "(Protip: Difficulty++ in Personal)"; + // + // CHK_BST + // + this.CHK_BST.AutoSize = true; + this.CHK_BST.Checked = true; + this.CHK_BST.CheckState = System.Windows.Forms.CheckState.Checked; + this.CHK_BST.Location = new System.Drawing.Point(6, 53); + this.CHK_BST.Name = "CHK_BST"; + this.CHK_BST.Size = new System.Drawing.Size(179, 17); + this.CHK_BST.TabIndex = 65; + this.CHK_BST.Text = "Share a similar BST as Evolution"; + this.CHK_BST.UseVisualStyleBackColor = true; + // + // CHK_Type + // + this.CHK_Type.AutoSize = true; + this.CHK_Type.Checked = true; + this.CHK_Type.CheckState = System.Windows.Forms.CheckState.Checked; + this.CHK_Type.Location = new System.Drawing.Point(6, 38); + this.CHK_Type.Name = "CHK_Type"; + this.CHK_Type.Size = new System.Drawing.Size(200, 17); + this.CHK_Type.TabIndex = 64; + this.CHK_Type.Text = "Share at least one Type as Evolution"; + this.CHK_Type.UseVisualStyleBackColor = true; + // + // CHK_Exp + // + this.CHK_Exp.AutoSize = true; + this.CHK_Exp.Checked = true; + this.CHK_Exp.CheckState = System.Windows.Forms.CheckState.Checked; + this.CHK_Exp.Location = new System.Drawing.Point(6, 23); + this.CHK_Exp.Name = "CHK_Exp"; + this.CHK_Exp.Size = new System.Drawing.Size(219, 17); + this.CHK_Exp.TabIndex = 63; + this.CHK_Exp.Text = "Share the same Exp Growth as Evolution"; + this.CHK_Exp.UseVisualStyleBackColor = true; + // + // Evolution + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(394, 562); + this.Controls.Add(this.GB_Randomizer); + this.Controls.Add(this.PB_8); + this.Controls.Add(this.PB_7); + this.Controls.Add(this.PB_6); + this.Controls.Add(this.PB_5); + this.Controls.Add(this.PB_4); + this.Controls.Add(this.PB_3); + this.Controls.Add(this.PB_2); + this.Controls.Add(this.PB_1); + this.Controls.Add(this.CB_P8); + this.Controls.Add(this.CB_I8); + this.Controls.Add(this.L_M8); + this.Controls.Add(this.CB_M8); + this.Controls.Add(this.CB_P7); + this.Controls.Add(this.CB_I7); + this.Controls.Add(this.L_M7); + this.Controls.Add(this.CB_M7); + this.Controls.Add(this.CB_P6); + this.Controls.Add(this.CB_I6); + this.Controls.Add(this.L_M6); + this.Controls.Add(this.CB_M6); + this.Controls.Add(this.CB_P5); + this.Controls.Add(this.CB_I5); + this.Controls.Add(this.L_M5); + this.Controls.Add(this.CB_M5); + this.Controls.Add(this.CB_P4); + this.Controls.Add(this.CB_I4); + this.Controls.Add(this.L_M4); + this.Controls.Add(this.CB_M4); + this.Controls.Add(this.CB_P3); + this.Controls.Add(this.CB_I3); + this.Controls.Add(this.L_M3); + this.Controls.Add(this.CB_M3); + this.Controls.Add(this.CB_P2); + this.Controls.Add(this.CB_I2); + this.Controls.Add(this.L_M2); + this.Controls.Add(this.CB_M2); + this.Controls.Add(this.CB_P1); + this.Controls.Add(this.CB_I1); + this.Controls.Add(this.L_M1); + this.Controls.Add(this.CB_M1); + this.Controls.Add(this.B_Dump); + this.Controls.Add(this.L_Species); + this.Controls.Add(this.CB_Species); + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(410, 600); + this.MinimumSize = new System.Drawing.Size(410, 515); + this.Name = "EvolutionEditor6"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Evolution Editor"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.formClosing); + ((System.ComponentModel.ISupportInitialize)(this.PB_1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_4)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_6)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_5)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_8)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_7)).EndInit(); + this.GB_Randomizer.ResumeLayout(false); + this.GB_Randomizer.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ComboBox CB_Species; + private System.Windows.Forms.Label L_Species; + private System.Windows.Forms.Button B_Dump; + private System.Windows.Forms.ComboBox CB_M1; + private System.Windows.Forms.Label L_M1; + private System.Windows.Forms.ComboBox CB_I1; + private System.Windows.Forms.ComboBox CB_P1; + private System.Windows.Forms.ComboBox CB_P2; + private System.Windows.Forms.ComboBox CB_I2; + private System.Windows.Forms.Label L_M2; + private System.Windows.Forms.ComboBox CB_M2; + private System.Windows.Forms.ComboBox CB_P3; + private System.Windows.Forms.ComboBox CB_I3; + private System.Windows.Forms.Label L_M3; + private System.Windows.Forms.ComboBox CB_M3; + private System.Windows.Forms.ComboBox CB_P4; + private System.Windows.Forms.ComboBox CB_I4; + private System.Windows.Forms.Label L_M4; + private System.Windows.Forms.ComboBox CB_M4; + private System.Windows.Forms.ComboBox CB_P5; + private System.Windows.Forms.ComboBox CB_I5; + private System.Windows.Forms.Label L_M5; + private System.Windows.Forms.ComboBox CB_M5; + private System.Windows.Forms.ComboBox CB_P8; + private System.Windows.Forms.ComboBox CB_I8; + private System.Windows.Forms.Label L_M8; + private System.Windows.Forms.ComboBox CB_M8; + private System.Windows.Forms.ComboBox CB_P7; + private System.Windows.Forms.ComboBox CB_I7; + private System.Windows.Forms.Label L_M7; + private System.Windows.Forms.ComboBox CB_M7; + private System.Windows.Forms.ComboBox CB_P6; + private System.Windows.Forms.ComboBox CB_I6; + private System.Windows.Forms.Label L_M6; + private System.Windows.Forms.ComboBox CB_M6; + private System.Windows.Forms.PictureBox PB_1; + private System.Windows.Forms.PictureBox PB_2; + private System.Windows.Forms.PictureBox PB_4; + private System.Windows.Forms.PictureBox PB_3; + private System.Windows.Forms.PictureBox PB_6; + private System.Windows.Forms.PictureBox PB_5; + private System.Windows.Forms.PictureBox PB_8; + private System.Windows.Forms.PictureBox PB_7; + private System.Windows.Forms.Button B_RandAll; + private System.Windows.Forms.GroupBox GB_Randomizer; + private System.Windows.Forms.CheckBox CHK_Exp; + private System.Windows.Forms.CheckBox CHK_Type; + private System.Windows.Forms.CheckBox CHK_BST; + private System.Windows.Forms.Label L_Protip; + } +} \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/EvolutionEditor7.cs b/pk3DS/Subforms/Gen7/EvolutionEditor7.cs new file mode 100644 index 0000000..472666f --- /dev/null +++ b/pk3DS/Subforms/Gen7/EvolutionEditor7.cs @@ -0,0 +1,278 @@ +using System; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Media; +using System.Text; +using System.Windows.Forms; +using pk3DS.Properties; + +namespace pk3DS +{ + public partial class EvolutionEditor7 : Form + { + public EvolutionEditor7() + { + InitializeComponent(); + + specieslist[0] = movelist[0] = itemlist[0] = ""; + Array.Resize(ref specieslist, Main.Config.MaxSpeciesID); + + string[] evolutionMethods = + { + "", + "Level Up with Friendship", + "Level Up at Morning with Friendship", + "Level Up at Night with Friendship", + "Level Up", + "Trade", + "Trade with Held Item", + $"Trade for opposite {specieslist[588]}/{specieslist[616]}", // Shelmet&Karrablast + "Used Item", + "Level Up (Attack > Defense)", + "Level Up (Attack = Defense)", + "Level Up (Attack < Defense)", + "Level Up (Random < 5)", + "Level Up (Random > 5)", + $"Level Up ({specieslist[291]})", // Ninjask + $"Level Up ({specieslist[292]})", // Shedinja + "Level Up (Beauty)", + "Level Up with Held Item (Male)", + "Level Up with Held Item (Female)", + "Level Up with Held Item (Day)", + "Level Up with Held Item (Night)", + "Level Up with Move", + "Level up with Party", + "Level Up Male", + "Level Up Female", + "Level Up at Electric", + "Level Up at Forest", + "Level Up at Cold", + "Level Up with 3DS Upside Down", + "Level Up with 50 Affection + MoveType", + $"{typelist[16]} Type in Party", + "Overworld Rain", + "Level Up (@) at Morning", + "Level Up (@) at Night", + "Level Up Female (SetForm 1)", + "UNUSED", + "Level Up Any Time on Version", + "Level Up Daytime on Version", + "Level Up Nighttime on Version", + "Level Up Summit", + }; + + mb = new[] { CB_M1, CB_M2, CB_M3, CB_M4, CB_M5, CB_M6, CB_M7, CB_M8 }; + pb = new[] { CB_P1, CB_P2, CB_P3, CB_P4, CB_P5, CB_P6, CB_P7, CB_P8 }; + rb = new[] { CB_I1, CB_I2, CB_I3, CB_I4, CB_I5, CB_I6, CB_I7, CB_I8 }; + pic = new[] { PB_1, PB_2, PB_3, PB_4, PB_5, PB_6, PB_7, PB_8 }; + + foreach (ComboBox cb in mb) { foreach (string s in evolutionMethods) cb.Items.Add(s); } + foreach (ComboBox cb in rb) { foreach (string s in specieslist) cb.Items.Add(s); } + + sortedspecies = (string[])specieslist.Clone(); + Array.Sort(sortedspecies); + + CB_Species.Items.Clear(); + foreach (string s in sortedspecies) CB_Species.Items.Add(s); + CB_Species.Items.RemoveAt(0); + + CB_Species.SelectedIndex = 0; + } + private readonly string[] files = Directory.GetFiles("evolution"); + private readonly ComboBox[] pb; + private readonly ComboBox[] rb; + private readonly ComboBox[] mb; + private readonly PictureBox[] pic; + private int entry = -1; + private readonly string[] sortedspecies; + private readonly string[] specieslist = Main.getText(TextName.SpeciesNames); + private readonly string[] movelist = Main.getText(TextName.MoveNames); + private readonly string[] itemlist = Main.getText(TextName.ItemNames); + private readonly string[] typelist = Main.getText(TextName.Types); + private bool dumping; + private EvolutionSet evo = new EvolutionSet6(new byte[0x30]); + private void getList() + { + entry = Array.IndexOf(specieslist, CB_Species.Text); + byte[] input = File.ReadAllBytes(files[entry]); + if (input.Length != 0x30) return; // error + evo = new EvolutionSet6(input); + + for (int i = 0; i < evo.PossibleEvolutions.Length; i++) + { + if (evo.PossibleEvolutions[i].Method > 34) return; // Invalid! + + mb[i].SelectedIndex = evo.PossibleEvolutions[i].Method; // Which will trigger the params cb to reload the valid params list + pb[i].SelectedIndex = evo.PossibleEvolutions[i].Argument; + rb[i].SelectedIndex = evo.PossibleEvolutions[i].Species; + } + } + private void setList() + { + if (entry < 1 || dumping) return; + + for (int i = 0; i < 8; i++) + { + evo.PossibleEvolutions[i].Method = mb[i].SelectedIndex; + evo.PossibleEvolutions[i].Argument = pb[i].SelectedIndex; + evo.PossibleEvolutions[i].Species = rb[i].SelectedIndex; + } + File.WriteAllBytes(files[entry], evo.Write()); + } + + private void changeEntry(object sender, EventArgs e) + { + setList(); + getList(); + } + + private static int[] sL; // Random Species List + private byte[][] personal; + private void B_RandAll_Click(object sender, EventArgs e) + { + if (DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo, "Randomize all resulting species?", "Evolution methods and parameters will stay the same.")) return; + + // Set up advanced randomization options + bool rBST = CHK_BST.Checked; + bool rEXP = CHK_Exp.Checked; + bool rType = CHK_Type.Checked; + if (rBST || rEXP || rType) + { + // initialize personal data + string[] personalList = Directory.GetFiles("personal"); + personal = new byte[personalList.Length][]; + for (int i = 0; i < personalList.Length; i++) + personal[i] = File.ReadAllBytes("personal" + Path.DirectorySeparatorChar + i.ToString("000") + ".bin"); + } + int ctr = 0; + sL = Randomizer.RandomSpeciesList; + + for (int i = 0; i < CB_Species.Items.Count; i++) + { + CB_Species.SelectedIndex = i; + for (int j = 0; j < mb.Length; j++) + if (mb[j].SelectedIndex > 0) + { + // Get a new random species + int oldSpecies = rb[j].SelectedIndex; + PersonalInfo oldpkm = Main.SpeciesStat[oldSpecies]; + int currentSpecies = Array.IndexOf(specieslist, CB_Species.Text); + int loopctr = 0; // altering calculatiosn to prevent infinite loops + defspecies: + int newSpecies = Randomizer.getRandomSpecies(ref sL, ref ctr); + PersonalInfo pkm = Main.SpeciesStat[newSpecies]; + loopctr++; + + // Verify it meets specifications + if (newSpecies == currentSpecies && loopctr < Main.Config.MaxSpeciesID*10) // no A->A evolutions + { goto defspecies; } + if (rEXP) // Experience Growth Rate matches + { + if (oldpkm.EXPGrowth != pkm.EXPGrowth) + { goto defspecies; } + } + if (rType) // Type has to be somewhat similar + { + if (!oldpkm.Types.Contains(pkm.Types[0]) || !oldpkm.Types.Contains(pkm.Types[1])) + { goto defspecies; } + } + if (rBST) // Base stat total has to be close + { + const int l = 5; // tweakable scalars + const int h = 6; + if (!(pkm.BST * l / (h + loopctr/Main.Config.MaxSpeciesID) < oldpkm.BST && (pkm.BST * h + loopctr/Main.Config.MaxSpeciesID) / l > oldpkm.BST)) + { goto defspecies; } + } + // assign random val + rb[j].SelectedIndex = newSpecies; + } + } + setList(); + Util.Alert("All Pokemon's Evolutions have been randomized!"); + } + private void B_Dump_Click(object sender, EventArgs e) + { + if (DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo, "Dump all Evolutions to Text File?")) + return; + + dumping = true; + string result = ""; + for (int i = 0; i < CB_Species.Items.Count; i++) + { + CB_Species.SelectedIndex = i; // Get new Species + result += "======" + Environment.NewLine + entry + " " + CB_Species.Text + Environment.NewLine + "======" + Environment.NewLine; + for (int j = 0; j < 8; j++) + { + int methodval = mb[j].SelectedIndex; + // int param = pb[j].SelectedIndex; + int poke = rb[j].SelectedIndex; + if (poke > 0 && methodval > 0) + result += mb[j].Text + (pb[j].Visible ? " [" + pb[j].Text + "]" : "") + " into " + rb[j].Text + Environment.NewLine; + } + + result += Environment.NewLine; + } + SaveFileDialog sfd = new SaveFileDialog {FileName = "Evolutions.txt", Filter = "Text File|*.txt"}; + + SystemSounds.Asterisk.Play(); + if (sfd.ShowDialog() == DialogResult.OK) + { + string path = sfd.FileName; + File.WriteAllText(path, result, Encoding.Unicode); + } + dumping = false; + } + + private void formClosing(object sender, FormClosingEventArgs e) + { + setList(); + } + + private void changeMethod(object sender, EventArgs e) + { + int op = Array.IndexOf(mb, sender as ComboBox); + ushort[] methodCase = + { + 0,0,0,0,1,0,2,0,2,1,1,1,1,1,1,1,5,2,2,2,2,3,4,1,1,0,0,0, // 27, Past Methods + // New Methods + 1, // 28 - Dark Type Party + 6, // 29 - Affection + MoveType + 1, // 30 - UpsideDown 3DS + 1, // 31 - Overworld Rain + 1, // 32 - Level @ Day + 1, // 33 - Level @ Night + 1, // 34 - Gender Branch + 1, // 35 - UNUSED + 1, 1, 1, // Version Specific + }; + + pb[op].Visible = pic[op].Visible = rb[op].Visible = mb[op].SelectedIndex > 0; + + pb[op].Items.Clear(); + int cv = methodCase[mb[op].SelectedIndex]; + switch (cv) + { + case 0: // No Parameter Required + { pb[op].Visible = false; pb[op].Items.Add(""); break; } + case 1: // Level + { for (int i = 0; i <= 100; i++) pb[op].Items.Add(i.ToString()); break; } + case 2: // Items + { foreach (string t in itemlist) pb[op].Items.Add(t); break; } + case 3: // Moves + { foreach (string t in movelist) pb[op].Items.Add(t); break; } + case 4: // Species + { for (int i = 0; i < sortedspecies.Length; i++) pb[op].Items.Add(specieslist[i]); break; } + case 5: // 0-255 (Beauty) + { for (int i = 0; i <= 255; i++) pb[op].Items.Add(i.ToString()); break; } + case 6: + { foreach (string t in typelist) pb[op].Items.Add(t); break; } + } + pb[op].SelectedIndex = 0; + } + private void changeInto(object sender, EventArgs e) + { + pic[Array.IndexOf(rb, sender as ComboBox)].Image = (Bitmap)Resources.ResourceManager.GetObject("_" + Array.IndexOf(specieslist, (sender as ComboBox).Text)); + } + } +} diff --git a/pk3DS/Subforms/Gen7/EvolutionEditor7.resx b/pk3DS/Subforms/Gen7/EvolutionEditor7.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/pk3DS/Subforms/Gen7/EvolutionEditor7.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/ItemEditor7.Designer.cs b/pk3DS/Subforms/Gen7/ItemEditor7.Designer.cs new file mode 100644 index 0000000..431f6e2 --- /dev/null +++ b/pk3DS/Subforms/Gen7/ItemEditor7.Designer.cs @@ -0,0 +1,198 @@ +namespace pk3DS +{ + partial class ItemEditor7 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.CB_Item = new System.Windows.Forms.ComboBox(); + this.L_Item = new System.Windows.Forms.Label(); + this.RTB = new System.Windows.Forms.RichTextBox(); + this.MT_Price = new System.Windows.Forms.MaskedTextBox(); + this.NUD_UseEffect = new System.Windows.Forms.NumericUpDown(); + this.L_UseEffect = new System.Windows.Forms.Label(); + this.L_Buy = new System.Windows.Forms.Label(); + this.L_Feedback = new System.Windows.Forms.Label(); + this.L_Sell = new System.Windows.Forms.Label(); + this.MT_Sell = new System.Windows.Forms.MaskedTextBox(); + this.L_Index = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_UseEffect)).BeginInit(); + this.SuspendLayout(); + // + // CB_Item + // + this.CB_Item.DropDownWidth = 120; + this.CB_Item.FormattingEnabled = true; + this.CB_Item.Location = new System.Drawing.Point(71, 10); + this.CB_Item.Name = "CB_Item"; + this.CB_Item.Size = new System.Drawing.Size(129, 21); + this.CB_Item.TabIndex = 1; + this.CB_Item.SelectedIndexChanged += new System.EventHandler(this.changeEntry); + // + // L_Item + // + this.L_Item.AutoSize = true; + this.L_Item.Location = new System.Drawing.Point(33, 13); + this.L_Item.Name = "L_Item"; + this.L_Item.Size = new System.Drawing.Size(30, 13); + this.L_Item.TabIndex = 2; + this.L_Item.Text = "Item:"; + this.L_Item.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // RTB + // + this.RTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.RTB.Location = new System.Drawing.Point(12, 124); + this.RTB.Name = "RTB"; + this.RTB.ReadOnly = true; + this.RTB.Size = new System.Drawing.Size(316, 51); + this.RTB.TabIndex = 38; + this.RTB.Text = ""; + // + // MT_Price + // + this.MT_Price.Location = new System.Drawing.Point(163, 37); + this.MT_Price.Mask = "00000"; + this.MT_Price.Name = "MT_Price"; + this.MT_Price.Size = new System.Drawing.Size(37, 20); + this.MT_Price.TabIndex = 39; + this.MT_Price.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.MT_Price.TextChanged += new System.EventHandler(this.changePrice); + // + // NUD_UseEffect + // + this.NUD_UseEffect.Location = new System.Drawing.Point(165, 82); + this.NUD_UseEffect.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_UseEffect.Name = "NUD_UseEffect"; + this.NUD_UseEffect.Size = new System.Drawing.Size(35, 20); + this.NUD_UseEffect.TabIndex = 40; + // + // L_UseEffect + // + this.L_UseEffect.AutoSize = true; + this.L_UseEffect.Location = new System.Drawing.Point(97, 84); + this.L_UseEffect.Name = "L_UseEffect"; + this.L_UseEffect.Size = new System.Drawing.Size(60, 13); + this.L_UseEffect.TabIndex = 41; + this.L_UseEffect.Text = "Use Effect:"; + // + // L_Buy + // + this.L_Buy.AutoSize = true; + this.L_Buy.Location = new System.Drawing.Point(75, 40); + this.L_Buy.Name = "L_Buy"; + this.L_Buy.Size = new System.Drawing.Size(82, 13); + this.L_Buy.TabIndex = 42; + this.L_Buy.Text = "Purchase Price:"; + // + // L_Feedback + // + this.L_Feedback.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.L_Feedback.AutoSize = true; + this.L_Feedback.Location = new System.Drawing.Point(32, 108); + this.L_Feedback.Name = "L_Feedback"; + this.L_Feedback.Size = new System.Drawing.Size(274, 13); + this.L_Feedback.TabIndex = 43; + this.L_Feedback.Text = "Please give feedback on what is actually needed to edit."; + // + // L_Sell + // + this.L_Sell.AutoSize = true; + this.L_Sell.Location = new System.Drawing.Point(103, 59); + this.L_Sell.Name = "L_Sell"; + this.L_Sell.Size = new System.Drawing.Size(54, 13); + this.L_Sell.TabIndex = 44; + this.L_Sell.Text = "Sell Price:"; + // + // MT_Sell + // + this.MT_Sell.Enabled = false; + this.MT_Sell.Location = new System.Drawing.Point(163, 56); + this.MT_Sell.Mask = "00000"; + this.MT_Sell.Name = "MT_Sell"; + this.MT_Sell.Size = new System.Drawing.Size(37, 20); + this.MT_Sell.TabIndex = 45; + this.MT_Sell.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // L_Index + // + this.L_Index.AutoSize = true; + this.L_Index.Location = new System.Drawing.Point(206, 13); + this.L_Index.Name = "L_Index"; + this.L_Index.Size = new System.Drawing.Size(39, 13); + this.L_Index.TabIndex = 46; + this.L_Index.Text = "Index: "; + // + // Item + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(339, 182); + this.Controls.Add(this.L_Index); + this.Controls.Add(this.MT_Sell); + this.Controls.Add(this.L_Sell); + this.Controls.Add(this.L_Feedback); + this.Controls.Add(this.L_Buy); + this.Controls.Add(this.L_UseEffect); + this.Controls.Add(this.NUD_UseEffect); + this.Controls.Add(this.MT_Price); + this.Controls.Add(this.RTB); + this.Controls.Add(this.L_Item); + this.Controls.Add(this.CB_Item); + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(355, 420); + this.MinimumSize = new System.Drawing.Size(355, 220); + this.Name = "Item"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Item Editor"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.formClosing); + ((System.ComponentModel.ISupportInitialize)(this.NUD_UseEffect)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ComboBox CB_Item; + private System.Windows.Forms.Label L_Item; + private System.Windows.Forms.RichTextBox RTB; + private System.Windows.Forms.MaskedTextBox MT_Price; + private System.Windows.Forms.NumericUpDown NUD_UseEffect; + private System.Windows.Forms.Label L_UseEffect; + private System.Windows.Forms.Label L_Buy; + private System.Windows.Forms.Label L_Feedback; + private System.Windows.Forms.Label L_Sell; + private System.Windows.Forms.MaskedTextBox MT_Sell; + private System.Windows.Forms.Label L_Index; + } +} \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/ItemEditor7.cs b/pk3DS/Subforms/Gen7/ItemEditor7.cs new file mode 100644 index 0000000..21b503b --- /dev/null +++ b/pk3DS/Subforms/Gen7/ItemEditor7.cs @@ -0,0 +1,84 @@ +using System; +using System.IO; +using System.Windows.Forms; + +namespace pk3DS +{ + public partial class ItemEditor7 : Form + { + public ItemEditor7() + { + itemlist[0] = ""; + + InitializeComponent(); + Setup(); + } + + private readonly string[] files = Directory.GetFiles("item"); + private readonly string[] itemlist = Main.getText(TextName.ItemNames); + private readonly string[] itemflavor = Main.getText(TextName.ItemFlavor); + + private void Setup() + { + foreach (string s in itemlist) CB_Item.Items.Add(s); + CB_Item.SelectedIndex = 1; + } + private int entry = -1; + private Item item; + private void changeEntry(object sender, EventArgs e) + { + setEntry(); + entry = CB_Item.SelectedIndex; + L_Index.Text = "Index: " + entry.ToString("000"); + getEntry(); + } + private void getEntry() + { + if (entry < 1) return; + item = new Item(File.ReadAllBytes(files[entry])); + + RTB.Text = itemflavor[entry].Replace("\\n", Environment.NewLine); + MT_Price.Text = item.BuyPrice.ToString(); + NUD_UseEffect.Value = item.UseEffect; + } + private void setEntry() + { + if (entry < 1) return; + + item.Price = (ushort)(Util.ToInt32(MT_Price)/10); + item.UseEffect = (byte)(int)NUD_UseEffect.Value; + + File.WriteAllBytes(files[entry], item.Write()); + } + private void formClosing(object sender, FormClosingEventArgs e) + { + setEntry(); + } + + private void changePrice(object sender, EventArgs e) + { + MT_Sell.Text = (Math.Min(Util.ToUInt32(MT_Price) / 10, 0x7FFF) * 10 / 2).ToString(); + } + + private readonly byte[] ItemIconTableSignature = + { + 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, + 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x01, 0x01, 0x00 + }; + + private int getItemMapOffset() + { + if (Main.ExeFSPath == null) { Util.Alert("No exeFS code to load."); return -1; } + string[] exefsFiles = Directory.GetFiles(Main.ExeFSPath); + if (!File.Exists(exefsFiles[0]) || !Path.GetFileNameWithoutExtension(exefsFiles[0]).Contains("code")) { Util.Alert("No .code.bin detected."); return -1; } + byte[] data = File.ReadAllBytes(exefsFiles[0]); + + byte[] reference = ItemIconTableSignature; + + int ptr = Util.IndexOfBytes(data, reference, 0x400000, 0) - 2 + reference.Length; + return ptr; + } + } +} \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/ItemEditor7.resx b/pk3DS/Subforms/Gen7/ItemEditor7.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/pk3DS/Subforms/Gen7/ItemEditor7.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/MegaEvoEditor7.Designer.cs b/pk3DS/Subforms/Gen7/MegaEvoEditor7.Designer.cs new file mode 100644 index 0000000..ce1fc28 --- /dev/null +++ b/pk3DS/Subforms/Gen7/MegaEvoEditor7.Designer.cs @@ -0,0 +1,466 @@ +namespace pk3DS +{ + partial class MegaEvoEditor7 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.LBL_Item1 = new System.Windows.Forms.Label(); + this.LBL_Forme1 = new System.Windows.Forms.Label(); + this.GB_MEvo1 = new System.Windows.Forms.GroupBox(); + this.LBL_Into1 = new System.Windows.Forms.Label(); + this.PB_M1 = new System.Windows.Forms.PictureBox(); + this.PB_S1 = new System.Windows.Forms.PictureBox(); + this.CB_Forme1 = new System.Windows.Forms.ComboBox(); + this.CB_Item1 = new System.Windows.Forms.ComboBox(); + this.GB_MEvo2 = new System.Windows.Forms.GroupBox(); + this.LBL_Into2 = new System.Windows.Forms.Label(); + this.PB_M2 = new System.Windows.Forms.PictureBox(); + this.CB_Forme2 = new System.Windows.Forms.ComboBox(); + this.PB_S2 = new System.Windows.Forms.PictureBox(); + this.CB_Item2 = new System.Windows.Forms.ComboBox(); + this.LBL_Forme2 = new System.Windows.Forms.Label(); + this.LBL_Item2 = new System.Windows.Forms.Label(); + this.CHK_MEvo1 = new System.Windows.Forms.CheckBox(); + this.CHK_MEvo2 = new System.Windows.Forms.CheckBox(); + this.CB_Species = new System.Windows.Forms.ComboBox(); + this.GB_MEvo3 = new System.Windows.Forms.GroupBox(); + this.LBL_Into3 = new System.Windows.Forms.Label(); + this.PB_M3 = new System.Windows.Forms.PictureBox(); + this.CB_Forme3 = new System.Windows.Forms.ComboBox(); + this.PB_S3 = new System.Windows.Forms.PictureBox(); + this.CB_Item3 = new System.Windows.Forms.ComboBox(); + this.LBL_Forme3 = new System.Windows.Forms.Label(); + this.LBL_Item3 = new System.Windows.Forms.Label(); + this.CHK_MEvo3 = new System.Windows.Forms.CheckBox(); + this.bpkx = new System.Windows.Forms.PictureBox(); + this.B_Dump = new System.Windows.Forms.Button(); + this.GB_MEvo1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.PB_M1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_S1)).BeginInit(); + this.GB_MEvo2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.PB_M2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_S2)).BeginInit(); + this.GB_MEvo3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.PB_M3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_S3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx)).BeginInit(); + this.SuspendLayout(); + // + // LBL_Item1 + // + this.LBL_Item1.AutoSize = true; + this.LBL_Item1.Location = new System.Drawing.Point(6, 20); + this.LBL_Item1.Name = "LBL_Item1"; + this.LBL_Item1.Size = new System.Drawing.Size(27, 13); + this.LBL_Item1.TabIndex = 9; + this.LBL_Item1.Text = "Item"; + // + // LBL_Forme1 + // + this.LBL_Forme1.AutoSize = true; + this.LBL_Forme1.Location = new System.Drawing.Point(6, 65); + this.LBL_Forme1.Name = "LBL_Forme1"; + this.LBL_Forme1.Size = new System.Drawing.Size(85, 13); + this.LBL_Forme1.TabIndex = 10; + this.LBL_Forme1.Text = "Alt Forme (if any)"; + // + // GB_MEvo1 + // + this.GB_MEvo1.Controls.Add(this.LBL_Into1); + this.GB_MEvo1.Controls.Add(this.PB_M1); + this.GB_MEvo1.Controls.Add(this.PB_S1); + this.GB_MEvo1.Controls.Add(this.CB_Forme1); + this.GB_MEvo1.Controls.Add(this.CB_Item1); + this.GB_MEvo1.Controls.Add(this.LBL_Forme1); + this.GB_MEvo1.Controls.Add(this.LBL_Item1); + this.GB_MEvo1.Enabled = false; + this.GB_MEvo1.Location = new System.Drawing.Point(12, 62); + this.GB_MEvo1.Name = "GB_MEvo1"; + this.GB_MEvo1.Size = new System.Drawing.Size(126, 142); + this.GB_MEvo1.TabIndex = 11; + this.GB_MEvo1.TabStop = false; + this.GB_MEvo1.Text = "Evolution 1"; + // + // LBL_Into1 + // + this.LBL_Into1.AutoSize = true; + this.LBL_Into1.Location = new System.Drawing.Point(51, 117); + this.LBL_Into1.Name = "LBL_Into1"; + this.LBL_Into1.Size = new System.Drawing.Size(28, 13); + this.LBL_Into1.TabIndex = 34; + this.LBL_Into1.Text = "Into:"; + // + // PB_M1 + // + this.PB_M1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.PB_M1.Location = new System.Drawing.Point(81, 106); + this.PB_M1.Name = "PB_M1"; + this.PB_M1.Size = new System.Drawing.Size(42, 32); + this.PB_M1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.PB_M1.TabIndex = 33; + this.PB_M1.TabStop = false; + // + // PB_S1 + // + this.PB_S1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.PB_S1.Location = new System.Drawing.Point(5, 106); + this.PB_S1.Name = "PB_S1"; + this.PB_S1.Size = new System.Drawing.Size(42, 32); + this.PB_S1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.PB_S1.TabIndex = 32; + this.PB_S1.TabStop = false; + // + // CB_Forme1 + // + this.CB_Forme1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Forme1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Forme1.FormattingEnabled = true; + this.CB_Forme1.Location = new System.Drawing.Point(5, 82); + this.CB_Forme1.Name = "CB_Forme1"; + this.CB_Forme1.Size = new System.Drawing.Size(121, 21); + this.CB_Forme1.TabIndex = 18; + this.CB_Forme1.SelectedIndexChanged += new System.EventHandler(this.Update_PBs); + // + // CB_Item1 + // + this.CB_Item1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Item1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Item1.FormattingEnabled = true; + this.CB_Item1.Location = new System.Drawing.Point(2, 35); + this.CB_Item1.Name = "CB_Item1"; + this.CB_Item1.Size = new System.Drawing.Size(121, 21); + this.CB_Item1.TabIndex = 12; + this.CB_Item1.SelectedValueChanged += new System.EventHandler(this.Update_PBs); + // + // GB_MEvo2 + // + this.GB_MEvo2.Controls.Add(this.LBL_Into2); + this.GB_MEvo2.Controls.Add(this.PB_M2); + this.GB_MEvo2.Controls.Add(this.CB_Forme2); + this.GB_MEvo2.Controls.Add(this.PB_S2); + this.GB_MEvo2.Controls.Add(this.CB_Item2); + this.GB_MEvo2.Controls.Add(this.LBL_Forme2); + this.GB_MEvo2.Controls.Add(this.LBL_Item2); + this.GB_MEvo2.Enabled = false; + this.GB_MEvo2.Location = new System.Drawing.Point(144, 62); + this.GB_MEvo2.Name = "GB_MEvo2"; + this.GB_MEvo2.Size = new System.Drawing.Size(126, 142); + this.GB_MEvo2.TabIndex = 12; + this.GB_MEvo2.TabStop = false; + this.GB_MEvo2.Text = "Evolution 2"; + // + // LBL_Into2 + // + this.LBL_Into2.AutoSize = true; + this.LBL_Into2.Location = new System.Drawing.Point(52, 117); + this.LBL_Into2.Name = "LBL_Into2"; + this.LBL_Into2.Size = new System.Drawing.Size(28, 13); + this.LBL_Into2.TabIndex = 35; + this.LBL_Into2.Text = "Into:"; + // + // PB_M2 + // + this.PB_M2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.PB_M2.Location = new System.Drawing.Point(80, 106); + this.PB_M2.Name = "PB_M2"; + this.PB_M2.Size = new System.Drawing.Size(42, 32); + this.PB_M2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.PB_M2.TabIndex = 35; + this.PB_M2.TabStop = false; + // + // CB_Forme2 + // + this.CB_Forme2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Forme2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Forme2.FormattingEnabled = true; + this.CB_Forme2.Location = new System.Drawing.Point(2, 82); + this.CB_Forme2.Name = "CB_Forme2"; + this.CB_Forme2.Size = new System.Drawing.Size(121, 21); + this.CB_Forme2.TabIndex = 19; + this.CB_Forme2.SelectedIndexChanged += new System.EventHandler(this.Update_PBs); + // + // PB_S2 + // + this.PB_S2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.PB_S2.Location = new System.Drawing.Point(4, 106); + this.PB_S2.Name = "PB_S2"; + this.PB_S2.Size = new System.Drawing.Size(42, 32); + this.PB_S2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.PB_S2.TabIndex = 34; + this.PB_S2.TabStop = false; + // + // CB_Item2 + // + this.CB_Item2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Item2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Item2.FormattingEnabled = true; + this.CB_Item2.Location = new System.Drawing.Point(2, 36); + this.CB_Item2.Name = "CB_Item2"; + this.CB_Item2.Size = new System.Drawing.Size(121, 21); + this.CB_Item2.TabIndex = 13; + this.CB_Item2.SelectedValueChanged += new System.EventHandler(this.Update_PBs); + // + // LBL_Forme2 + // + this.LBL_Forme2.AutoSize = true; + this.LBL_Forme2.Location = new System.Drawing.Point(6, 65); + this.LBL_Forme2.Name = "LBL_Forme2"; + this.LBL_Forme2.Size = new System.Drawing.Size(85, 13); + this.LBL_Forme2.TabIndex = 10; + this.LBL_Forme2.Text = "Alt Forme (if any)"; + // + // LBL_Item2 + // + this.LBL_Item2.AutoSize = true; + this.LBL_Item2.Location = new System.Drawing.Point(6, 20); + this.LBL_Item2.Name = "LBL_Item2"; + this.LBL_Item2.Size = new System.Drawing.Size(27, 13); + this.LBL_Item2.TabIndex = 9; + this.LBL_Item2.Text = "Item"; + // + // CHK_MEvo1 + // + this.CHK_MEvo1.AutoSize = true; + this.CHK_MEvo1.Location = new System.Drawing.Point(12, 39); + this.CHK_MEvo1.Name = "CHK_MEvo1"; + this.CHK_MEvo1.Size = new System.Drawing.Size(65, 17); + this.CHK_MEvo1.TabIndex = 13; + this.CHK_MEvo1.Text = "Enabled"; + this.CHK_MEvo1.UseVisualStyleBackColor = true; + this.CHK_MEvo1.CheckedChanged += new System.EventHandler(this.CHK_Changed); + // + // CHK_MEvo2 + // + this.CHK_MEvo2.AutoSize = true; + this.CHK_MEvo2.Location = new System.Drawing.Point(144, 39); + this.CHK_MEvo2.Name = "CHK_MEvo2"; + this.CHK_MEvo2.Size = new System.Drawing.Size(65, 17); + this.CHK_MEvo2.TabIndex = 14; + this.CHK_MEvo2.Text = "Enabled"; + this.CHK_MEvo2.UseVisualStyleBackColor = true; + this.CHK_MEvo2.CheckedChanged += new System.EventHandler(this.CHK_Changed); + // + // CB_Species + // + this.CB_Species.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Species.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Species.FormattingEnabled = true; + this.CB_Species.Location = new System.Drawing.Point(12, 12); + this.CB_Species.Name = "CB_Species"; + this.CB_Species.Size = new System.Drawing.Size(181, 21); + this.CB_Species.TabIndex = 15; + this.CB_Species.SelectedIndexChanged += new System.EventHandler(this.changeIndex); + // + // GB_MEvo3 + // + this.GB_MEvo3.Controls.Add(this.LBL_Into3); + this.GB_MEvo3.Controls.Add(this.PB_M3); + this.GB_MEvo3.Controls.Add(this.CB_Forme3); + this.GB_MEvo3.Controls.Add(this.PB_S3); + this.GB_MEvo3.Controls.Add(this.CB_Item3); + this.GB_MEvo3.Controls.Add(this.LBL_Forme3); + this.GB_MEvo3.Controls.Add(this.LBL_Item3); + this.GB_MEvo3.Enabled = false; + this.GB_MEvo3.Location = new System.Drawing.Point(276, 62); + this.GB_MEvo3.Name = "GB_MEvo3"; + this.GB_MEvo3.Size = new System.Drawing.Size(126, 142); + this.GB_MEvo3.TabIndex = 13; + this.GB_MEvo3.TabStop = false; + this.GB_MEvo3.Text = "Evolution 3"; + // + // LBL_Into3 + // + this.LBL_Into3.AutoSize = true; + this.LBL_Into3.Location = new System.Drawing.Point(48, 117); + this.LBL_Into3.Name = "LBL_Into3"; + this.LBL_Into3.Size = new System.Drawing.Size(28, 13); + this.LBL_Into3.TabIndex = 36; + this.LBL_Into3.Text = "Into:"; + // + // PB_M3 + // + this.PB_M3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.PB_M3.Location = new System.Drawing.Point(79, 106); + this.PB_M3.Name = "PB_M3"; + this.PB_M3.Size = new System.Drawing.Size(42, 32); + this.PB_M3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.PB_M3.TabIndex = 35; + this.PB_M3.TabStop = false; + // + // CB_Forme3 + // + this.CB_Forme3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Forme3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Forme3.FormattingEnabled = true; + this.CB_Forme3.Location = new System.Drawing.Point(3, 82); + this.CB_Forme3.Name = "CB_Forme3"; + this.CB_Forme3.Size = new System.Drawing.Size(121, 21); + this.CB_Forme3.TabIndex = 20; + this.CB_Forme3.SelectedIndexChanged += new System.EventHandler(this.Update_PBs); + // + // PB_S3 + // + this.PB_S3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.PB_S3.Location = new System.Drawing.Point(3, 106); + this.PB_S3.Name = "PB_S3"; + this.PB_S3.Size = new System.Drawing.Size(42, 32); + this.PB_S3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.PB_S3.TabIndex = 34; + this.PB_S3.TabStop = false; + // + // CB_Item3 + // + this.CB_Item3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Item3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Item3.FormattingEnabled = true; + this.CB_Item3.Location = new System.Drawing.Point(3, 36); + this.CB_Item3.Name = "CB_Item3"; + this.CB_Item3.Size = new System.Drawing.Size(121, 21); + this.CB_Item3.TabIndex = 18; + this.CB_Item3.SelectedValueChanged += new System.EventHandler(this.Update_PBs); + // + // LBL_Forme3 + // + this.LBL_Forme3.AutoSize = true; + this.LBL_Forme3.Location = new System.Drawing.Point(6, 65); + this.LBL_Forme3.Name = "LBL_Forme3"; + this.LBL_Forme3.Size = new System.Drawing.Size(85, 13); + this.LBL_Forme3.TabIndex = 10; + this.LBL_Forme3.Text = "Alt Forme (if any)"; + // + // LBL_Item3 + // + this.LBL_Item3.AutoSize = true; + this.LBL_Item3.Location = new System.Drawing.Point(6, 20); + this.LBL_Item3.Name = "LBL_Item3"; + this.LBL_Item3.Size = new System.Drawing.Size(27, 13); + this.LBL_Item3.TabIndex = 9; + this.LBL_Item3.Text = "Item"; + // + // CHK_MEvo3 + // + this.CHK_MEvo3.AutoSize = true; + this.CHK_MEvo3.Location = new System.Drawing.Point(285, 39); + this.CHK_MEvo3.Name = "CHK_MEvo3"; + this.CHK_MEvo3.Size = new System.Drawing.Size(65, 17); + this.CHK_MEvo3.TabIndex = 16; + this.CHK_MEvo3.Text = "Enabled"; + this.CHK_MEvo3.UseVisualStyleBackColor = true; + this.CHK_MEvo3.CheckedChanged += new System.EventHandler(this.CHK_Changed); + // + // bpkx + // + this.bpkx.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.bpkx.Location = new System.Drawing.Point(308, 99); + this.bpkx.Name = "bpkx"; + this.bpkx.Size = new System.Drawing.Size(42, 32); + this.bpkx.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.bpkx.TabIndex = 31; + this.bpkx.TabStop = false; + // + // B_Dump + // + this.B_Dump.Location = new System.Drawing.Point(327, 5); + this.B_Dump.Name = "B_Dump"; + this.B_Dump.Size = new System.Drawing.Size(75, 23); + this.B_Dump.TabIndex = 18; + this.B_Dump.Text = "Dump"; + this.B_Dump.UseVisualStyleBackColor = true; + this.B_Dump.Click += new System.EventHandler(this.B_Dump_Click); + // + // MEE + // + this.AllowDrop = true; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(414, 212); + this.Controls.Add(this.B_Dump); + this.Controls.Add(this.CHK_MEvo3); + this.Controls.Add(this.GB_MEvo3); + this.Controls.Add(this.CB_Species); + this.Controls.Add(this.CHK_MEvo2); + this.Controls.Add(this.CHK_MEvo1); + this.Controls.Add(this.GB_MEvo2); + this.Controls.Add(this.GB_MEvo1); + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(430, 250); + this.MinimumSize = new System.Drawing.Size(430, 250); + this.Name = "MegaEvoEditor6"; + this.Text = "Mega Evo Editor"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.formClosing); + this.GB_MEvo1.ResumeLayout(false); + this.GB_MEvo1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.PB_M1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_S1)).EndInit(); + this.GB_MEvo2.ResumeLayout(false); + this.GB_MEvo2.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.PB_M2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_S2)).EndInit(); + this.GB_MEvo3.ResumeLayout(false); + this.GB_MEvo3.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.PB_M3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.PB_S3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.bpkx)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label LBL_Item1; + private System.Windows.Forms.Label LBL_Forme1; + private System.Windows.Forms.GroupBox GB_MEvo1; + private System.Windows.Forms.GroupBox GB_MEvo2; + private System.Windows.Forms.Label LBL_Forme2; + private System.Windows.Forms.Label LBL_Item2; + private System.Windows.Forms.CheckBox CHK_MEvo1; + private System.Windows.Forms.CheckBox CHK_MEvo2; + private System.Windows.Forms.ComboBox CB_Species; + private System.Windows.Forms.GroupBox GB_MEvo3; + private System.Windows.Forms.Label LBL_Forme3; + private System.Windows.Forms.Label LBL_Item3; + private System.Windows.Forms.CheckBox CHK_MEvo3; + private System.Windows.Forms.ComboBox CB_Item1; + private System.Windows.Forms.ComboBox CB_Item2; + private System.Windows.Forms.ComboBox CB_Item3; + private System.Windows.Forms.ComboBox CB_Forme1; + private System.Windows.Forms.ComboBox CB_Forme2; + private System.Windows.Forms.ComboBox CB_Forme3; + private System.Windows.Forms.PictureBox PB_M1; + private System.Windows.Forms.PictureBox PB_S1; + private System.Windows.Forms.PictureBox PB_M2; + private System.Windows.Forms.PictureBox PB_S2; + private System.Windows.Forms.PictureBox PB_M3; + private System.Windows.Forms.PictureBox PB_S3; + private System.Windows.Forms.PictureBox bpkx; + private System.Windows.Forms.Label LBL_Into1; + private System.Windows.Forms.Label LBL_Into2; + private System.Windows.Forms.Label LBL_Into3; + private System.Windows.Forms.Button B_Dump; + } +} diff --git a/pk3DS/Subforms/Gen7/MegaEvoEditor7.cs b/pk3DS/Subforms/Gen7/MegaEvoEditor7.cs new file mode 100644 index 0000000..29f0f60 --- /dev/null +++ b/pk3DS/Subforms/Gen7/MegaEvoEditor7.cs @@ -0,0 +1,216 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Media; +using System.Text; +using System.Windows.Forms; + +namespace pk3DS +{ + public partial class MegaEvoEditor7 : Form + { + private readonly string[] files = Directory.GetFiles("megaevo"); + private readonly string[] forms = Main.getText(TextName.Forms); + private readonly string[] types = Main.getText(TextName.Types); + private readonly string[] specieslist = Main.getText(TextName.SpeciesNames); + private readonly string[] itemlist = Main.getText(TextName.ItemNames); + private readonly byte[] personalData = File.ReadAllBytes(Directory.GetFiles("personal").Last()); + private readonly GroupBox[] groupbox_spec; + private readonly ComboBox[] forme_spec; + private readonly ComboBox[] item_spec; + private readonly CheckBox[] checkbox_spec; + private readonly PictureBox[][] picturebox_spec; + private bool loaded; + private readonly string[][] AltForms; + private int entry = -1; + private bool dumping; + private MegaEvolutions me; + + public MegaEvoEditor7() // All the initial settings + { + InitializeComponent(); + CB_Species.DisplayMember = "Text"; + CB_Species.ValueMember = "Value"; + #region Intializations + + Array.Resize(ref specieslist, Main.Config.MaxSpeciesID); + specieslist[0] = itemlist[0] = ""; + specieslist[32] += "♂"; specieslist[29] += "♀"; + AltForms = Main.Config.Personal.getFormList(specieslist, Main.Config.MaxSpeciesID); + + groupbox_spec = new[] { GB_MEvo1, GB_MEvo2, GB_MEvo3 }; + item_spec = new[] { CB_Item1, CB_Item2, CB_Item3 }; + forme_spec = new[] { CB_Forme1, CB_Forme2, CB_Forme3 }; + checkbox_spec = new[] { CHK_MEvo1, CHK_MEvo2, CHK_MEvo3 }; + picturebox_spec = new[] { new[] { PB_S1, PB_S2, PB_S3 }, new[] { PB_M1, PB_M2, PB_M3 } }; + #endregion + Setup(); + CB_Species.SelectedIndex = 0; + } + private void Setup() + { + List temp_list = new List(specieslist); + temp_list.Sort(); + + CB_Species.DataSource = temp_list.Select(mon => new Util.cbItem { Text = mon, Value = Array.IndexOf(specieslist, mon) }).ToList(); + + List items = new List(itemlist); + List sorted_items = new List(itemlist); + List[] item_lists = new List[item_spec.Length]; + for (int i = 0; i < item_lists.Length; i++) + item_lists[i] = new List(); + + sorted_items.Sort(); + for (int i = 0; i < items.Count; i++) + { + int index = items.IndexOf(sorted_items[i]); + { + Util.cbItem ncbi = new Util.cbItem(); + if (sorted_items[i] == "???") continue; // Don't allow stubbed items. + ncbi.Text = sorted_items[i] + " - " + index.ToString("000"); + ncbi.Value = index; + foreach (List l in item_lists) + l.Add(ncbi); + } + items[index] = ""; + } + for (int i = 0; i < item_spec.Length; i++) + { + item_spec[i].ValueMember = "Value"; + item_spec[i].DisplayMember = "Text"; + item_spec[i].DataSource = item_lists[i]; + item_spec[i].SelectedValue = 0; + } + + loaded = true; + } + private void CHK_Changed(object sender, EventArgs e) + { + for (int i = 0; i < groupbox_spec.Length; i++) + { + groupbox_spec[i].Enabled = checkbox_spec[i].Checked; + Update_PBs(i); + } + } + + private void changeIndex(object sender, EventArgs e) + { + setEntry(); + entry = (int)CB_Species.SelectedValue; + getEntry(); + } + private void getEntry() + { + if (!loaded) return; + if (Main.Config.ORAS && entry == 384 && !dumping) // Current Mon is Rayquaza + Util.Alert("Rayquaza is special and uses a different activator for its evolution. If it knows Dragon Ascent, it can Mega Evolve", "Don't edit its evolution table if you want to keep this functionality."); + + byte[] data = File.ReadAllBytes(files[entry]); + + foreach (ComboBox CB in forme_spec) + PersonalEditor6.setForms(entry, CB, AltForms); + + me = new MegaEvolutions(data); + for (int i = 0; i < 3; i++) + { + checkbox_spec[i].Checked = me.Method[i] == 1; + item_spec[i].SelectedValue = (int)me.Argument[i]; + forme_spec[i].SelectedIndex = me.Form[i]; + } + } + private void setEntry() + { + if (entry < 1 || entry == 384) return; // Don't edit invalid / Rayquaza. + for (int i = 0; i < 3; i++) + { + if (me.Method[i] > 1) + return; // Shouldn't hit this. + me.Method[i] = (ushort)(checkbox_spec[i].Checked ? 1 : 0); + me.Argument[i] = (ushort)Util.getIndex(item_spec[i]); + me.Form[i] = (ushort)forme_spec[i].SelectedIndex; + } + File.WriteAllBytes(files[entry], me.Write()); + } + + private void Update_PBs(object sender, EventArgs e) + { + if (!loaded) return; + for (int i = 0; i < checkbox_spec.Length; i++) + { + CheckBox CB = checkbox_spec[i]; + if (CB.Checked) + { + UpdateImage(picturebox_spec[0][i], entry, 0, Util.getIndex(item_spec[i]), 0); + UpdateImage(picturebox_spec[1][i], entry, forme_spec[i].SelectedIndex, Util.getIndex(item_spec[i]), 0); + } + else + { + UpdateImage(picturebox_spec[0][i], 0, 0, Util.getIndex(item_spec[i]), 0); + UpdateImage(picturebox_spec[1][i], 0, 0, Util.getIndex(item_spec[i]), 0); + } + } + } + + private void Update_PBs(int i) + { + if (!loaded) return; + CheckBox CB = checkbox_spec[i]; + if (CB.Checked) + { + UpdateImage(picturebox_spec[0][i], entry, 0, Util.getIndex(item_spec[i]), 0); + UpdateImage(picturebox_spec[1][i], entry, forme_spec[i].SelectedIndex, Util.getIndex(item_spec[i]), 0); + } + else + { + UpdateImage(picturebox_spec[0][i], 0, 0, Util.getIndex(item_spec[i]), 0); + UpdateImage(picturebox_spec[1][i], 0, 0, Util.getIndex(item_spec[i]), 0); + } + } + + private void UpdateImage(PictureBox pb, int species, int form, int item, int gender) + { + if (!pb.Enabled) + { + pb.Image = null; + return; + } + pb.Image = Util.getSprite(species, form, gender, item); + } + private void formClosing(object sender, FormClosingEventArgs e) + { + setEntry(); + } + + private void B_Dump_Click(object sender, EventArgs e) + { + if (DialogResult.Yes != Util.Prompt(MessageBoxButtons.YesNo, "Dump all Mega Evolutions to Text File?")) + return; + dumping = true; + string result = ""; + + for (int i = 0; i < Main.Config.MaxSpeciesID; i++) + { + CB_Species.SelectedValue = i; // Get new Species + string header = "======" + Environment.NewLine + entry + " " + CB_Species.Text + Environment.NewLine + "======" + Environment.NewLine; + bool headered = false; + for (int j = 0; j < 3; j++) + { + if (!checkbox_spec[j].Checked) continue; + if (!headered) { result += header; headered = true; } + result += string.Format("Can Mega Evolve into {1} if its held item is {0}." + Environment.NewLine, itemlist[(int)item_spec[j].SelectedValue], forme_spec[j].Text); + } + + if (headered) + result += Environment.NewLine; + } + SaveFileDialog sfd = new SaveFileDialog {FileName = "Mega Evolutions.txt", Filter = "Text File|*.txt"}; + + SystemSounds.Asterisk.Play(); + if (sfd.ShowDialog() == DialogResult.OK) + File.WriteAllText(sfd.FileName, result, Encoding.Unicode); + + dumping = false; + } + } +} \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/MegaEvoEditor7.resx b/pk3DS/Subforms/Gen7/MegaEvoEditor7.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/pk3DS/Subforms/Gen7/MegaEvoEditor7.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/MoveEditor7.Designer.cs b/pk3DS/Subforms/Gen7/MoveEditor7.Designer.cs new file mode 100644 index 0000000..86bce82 --- /dev/null +++ b/pk3DS/Subforms/Gen7/MoveEditor7.Designer.cs @@ -0,0 +1,995 @@ +namespace pk3DS +{ + partial class MoveEditor7 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.L_Type = new System.Windows.Forms.Label(); + this.CB_Move = new System.Windows.Forms.ComboBox(); + this.L_Move = new System.Windows.Forms.Label(); + this.CB_Type = new System.Windows.Forms.ComboBox(); + this.CB_Category = new System.Windows.Forms.ComboBox(); + this.L_Category = new System.Windows.Forms.Label(); + this.L_BP = new System.Windows.Forms.Label(); + this.L_PP = new System.Windows.Forms.Label(); + this.L_Min = new System.Windows.Forms.Label(); + this.L_Max = new System.Windows.Forms.Label(); + this.L_Priority = new System.Windows.Forms.Label(); + this.NUD_HitMax = new System.Windows.Forms.NumericUpDown(); + this.NUD_HitMin = new System.Windows.Forms.NumericUpDown(); + this.NUD_Priority = new System.Windows.Forms.NumericUpDown(); + this.NUD_PP = new System.Windows.Forms.NumericUpDown(); + this.NUD_Power = new System.Windows.Forms.NumericUpDown(); + this.NUD_TurnMin = new System.Windows.Forms.NumericUpDown(); + this.L_TrapMin = new System.Windows.Forms.Label(); + this.NUD_TurnMax = new System.Windows.Forms.NumericUpDown(); + this.L_TrapMax = new System.Windows.Forms.Label(); + this.NUD_Recoil = new System.Windows.Forms.NumericUpDown(); + this.L_Recoil = new System.Windows.Forms.Label(); + this.NUD_Heal = new System.Windows.Forms.NumericUpDown(); + this.L_Heal = new System.Windows.Forms.Label(); + this.NUD_CritStage = new System.Windows.Forms.NumericUpDown(); + this.L_CritStage = new System.Windows.Forms.Label(); + this.NUD_Flinch = new System.Windows.Forms.NumericUpDown(); + this.L_Flinch = new System.Windows.Forms.Label(); + this.GB_Stat = new System.Windows.Forms.GroupBox(); + this.NUD_StatP3 = new System.Windows.Forms.NumericUpDown(); + this.NUD_StatP2 = new System.Windows.Forms.NumericUpDown(); + this.NUD_StatP1 = new System.Windows.Forms.NumericUpDown(); + this.NUD_Stat2 = new System.Windows.Forms.NumericUpDown(); + this.NUD_Stat3 = new System.Windows.Forms.NumericUpDown(); + this.NUD_Stat1 = new System.Windows.Forms.NumericUpDown(); + this.CB_Stat3 = new System.Windows.Forms.ComboBox(); + this.CB_Stat2 = new System.Windows.Forms.ComboBox(); + this.CB_Stat1 = new System.Windows.Forms.ComboBox(); + this.L_Stage3 = new System.Windows.Forms.Label(); + this.L_Stage2 = new System.Windows.Forms.Label(); + this.L_Stage1 = new System.Windows.Forms.Label(); + this.L_Targeting = new System.Windows.Forms.Label(); + this.L_Influcts = new System.Windows.Forms.Label(); + this.RTB = new System.Windows.Forms.RichTextBox(); + this.CB_Targeting = new System.Windows.Forms.ComboBox(); + this.CB_Inflict = new System.Windows.Forms.ComboBox(); + this.L_Inflict = new System.Windows.Forms.Label(); + this.NUD_Inflict = new System.Windows.Forms.NumericUpDown(); + this.NUD_Effect = new System.Windows.Forms.NumericUpDown(); + this.L_Effect = new System.Windows.Forms.Label(); + this.NUD_Accuracy = new System.Windows.Forms.NumericUpDown(); + this.L_Accuracy = new System.Windows.Forms.Label(); + this.CB_Quality = new System.Windows.Forms.ComboBox(); + this.L_Quality = new System.Windows.Forms.Label(); + this.L_0xB = new System.Windows.Forms.Label(); + this.NUD_0xB = new System.Windows.Forms.NumericUpDown(); + this.NUD_0x20 = new System.Windows.Forms.NumericUpDown(); + this.NUD_0x21 = new System.Windows.Forms.NumericUpDown(); + this.L_0x20 = new System.Windows.Forms.Label(); + this.L_0x21 = new System.Windows.Forms.Label(); + this.B_RandAll = new System.Windows.Forms.Button(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.CHK_Type = new System.Windows.Forms.CheckBox(); + this.CHK_Category = new System.Windows.Forms.CheckBox(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_HitMax)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_HitMin)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Priority)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_PP)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Power)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_TurnMin)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_TurnMax)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Recoil)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Heal)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_CritStage)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Flinch)).BeginInit(); + this.GB_Stat.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_StatP3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_StatP2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_StatP1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Stat2)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Stat3)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Stat1)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Inflict)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Effect)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Accuracy)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_0xB)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_0x20)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_0x21)).BeginInit(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // L_Type + // + this.L_Type.AutoSize = true; + this.L_Type.Location = new System.Drawing.Point(32, 38); + this.L_Type.Name = "L_Type"; + this.L_Type.Size = new System.Drawing.Size(34, 13); + this.L_Type.TabIndex = 0; + this.L_Type.Text = "Type:"; + this.L_Type.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // CB_Move + // + this.CB_Move.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest; + this.CB_Move.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move.DropDownWidth = 120; + this.CB_Move.FormattingEnabled = true; + this.CB_Move.Location = new System.Drawing.Point(71, 10); + this.CB_Move.Name = "CB_Move"; + this.CB_Move.Size = new System.Drawing.Size(130, 21); + this.CB_Move.TabIndex = 1; + this.CB_Move.SelectedIndexChanged += new System.EventHandler(this.changeEntry); + // + // L_Move + // + this.L_Move.AutoSize = true; + this.L_Move.Location = new System.Drawing.Point(33, 13); + this.L_Move.Name = "L_Move"; + this.L_Move.Size = new System.Drawing.Size(37, 13); + this.L_Move.TabIndex = 2; + this.L_Move.Text = "Move:"; + this.L_Move.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // CB_Type + // + this.CB_Type.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Type.FormattingEnabled = true; + this.CB_Type.Location = new System.Drawing.Point(71, 35); + this.CB_Type.Name = "CB_Type"; + this.CB_Type.Size = new System.Drawing.Size(99, 21); + this.CB_Type.TabIndex = 3; + // + // CB_Category + // + this.CB_Category.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Category.FormattingEnabled = true; + this.CB_Category.Location = new System.Drawing.Point(71, 58); + this.CB_Category.Name = "CB_Category"; + this.CB_Category.Size = new System.Drawing.Size(99, 21); + this.CB_Category.TabIndex = 4; + // + // L_Category + // + this.L_Category.AutoSize = true; + this.L_Category.Location = new System.Drawing.Point(18, 61); + this.L_Category.Name = "L_Category"; + this.L_Category.Size = new System.Drawing.Size(52, 13); + this.L_Category.TabIndex = 5; + this.L_Category.Text = "Category:"; + this.L_Category.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_BP + // + this.L_BP.AutoSize = true; + this.L_BP.Location = new System.Drawing.Point(26, 132); + this.L_BP.Name = "L_BP"; + this.L_BP.Size = new System.Drawing.Size(40, 13); + this.L_BP.TabIndex = 7; + this.L_BP.Text = "Power:"; + this.L_BP.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_PP + // + this.L_PP.AutoSize = true; + this.L_PP.Location = new System.Drawing.Point(15, 174); + this.L_PP.Name = "L_PP"; + this.L_PP.Size = new System.Drawing.Size(51, 13); + this.L_PP.TabIndex = 8; + this.L_PP.Text = "Base PP:"; + this.L_PP.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_Min + // + this.L_Min.AutoSize = true; + this.L_Min.Location = new System.Drawing.Point(236, 132); + this.L_Min.Name = "L_Min"; + this.L_Min.Size = new System.Drawing.Size(48, 13); + this.L_Min.TabIndex = 10; + this.L_Min.Text = "Min Hits:"; + this.L_Min.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_Max + // + this.L_Max.AutoSize = true; + this.L_Max.Location = new System.Drawing.Point(233, 153); + this.L_Max.Name = "L_Max"; + this.L_Max.Size = new System.Drawing.Size(51, 13); + this.L_Max.TabIndex = 12; + this.L_Max.Text = "Max Hits:"; + this.L_Max.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_Priority + // + this.L_Priority.AutoSize = true; + this.L_Priority.Location = new System.Drawing.Point(25, 195); + this.L_Priority.Name = "L_Priority"; + this.L_Priority.Size = new System.Drawing.Size(41, 13); + this.L_Priority.TabIndex = 17; + this.L_Priority.Text = "Priority:"; + // + // NUD_HitMax + // + this.NUD_HitMax.Location = new System.Drawing.Point(290, 151); + this.NUD_HitMax.Maximum = new decimal(new int[] { + 6, + 0, + 0, + 0}); + this.NUD_HitMax.Name = "NUD_HitMax"; + this.NUD_HitMax.Size = new System.Drawing.Size(30, 20); + this.NUD_HitMax.TabIndex = 18; + // + // NUD_HitMin + // + this.NUD_HitMin.Location = new System.Drawing.Point(290, 130); + this.NUD_HitMin.Maximum = new decimal(new int[] { + 6, + 0, + 0, + 0}); + this.NUD_HitMin.Name = "NUD_HitMin"; + this.NUD_HitMin.Size = new System.Drawing.Size(30, 20); + this.NUD_HitMin.TabIndex = 19; + // + // NUD_Priority + // + this.NUD_Priority.Location = new System.Drawing.Point(72, 193); + this.NUD_Priority.Maximum = new decimal(new int[] { + 8, + 0, + 0, + 0}); + this.NUD_Priority.Minimum = new decimal(new int[] { + 8, + 0, + 0, + -2147483648}); + this.NUD_Priority.Name = "NUD_Priority"; + this.NUD_Priority.Size = new System.Drawing.Size(35, 20); + this.NUD_Priority.TabIndex = 20; + // + // NUD_PP + // + this.NUD_PP.Location = new System.Drawing.Point(72, 172); + this.NUD_PP.Maximum = new decimal(new int[] { + 40, + 0, + 0, + 0}); + this.NUD_PP.Name = "NUD_PP"; + this.NUD_PP.Size = new System.Drawing.Size(35, 20); + this.NUD_PP.TabIndex = 21; + // + // NUD_Power + // + this.NUD_Power.Location = new System.Drawing.Point(72, 130); + this.NUD_Power.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_Power.Name = "NUD_Power"; + this.NUD_Power.Size = new System.Drawing.Size(45, 20); + this.NUD_Power.TabIndex = 22; + // + // NUD_TurnMin + // + this.NUD_TurnMin.Location = new System.Drawing.Point(290, 172); + this.NUD_TurnMin.Maximum = new decimal(new int[] { + 15, + 0, + 0, + 0}); + this.NUD_TurnMin.Name = "NUD_TurnMin"; + this.NUD_TurnMin.Size = new System.Drawing.Size(30, 20); + this.NUD_TurnMin.TabIndex = 26; + // + // L_TrapMin + // + this.L_TrapMin.AutoSize = true; + this.L_TrapMin.Location = new System.Drawing.Point(227, 174); + this.L_TrapMin.Name = "L_TrapMin"; + this.L_TrapMin.Size = new System.Drawing.Size(57, 13); + this.L_TrapMin.TabIndex = 23; + this.L_TrapMin.Text = "Min Turns:"; + this.L_TrapMin.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_TurnMax + // + this.NUD_TurnMax.Location = new System.Drawing.Point(290, 193); + this.NUD_TurnMax.Maximum = new decimal(new int[] { + 15, + 0, + 0, + 0}); + this.NUD_TurnMax.Name = "NUD_TurnMax"; + this.NUD_TurnMax.Size = new System.Drawing.Size(30, 20); + this.NUD_TurnMax.TabIndex = 25; + // + // L_TrapMax + // + this.L_TrapMax.AutoSize = true; + this.L_TrapMax.Location = new System.Drawing.Point(224, 195); + this.L_TrapMax.Name = "L_TrapMax"; + this.L_TrapMax.Size = new System.Drawing.Size(60, 13); + this.L_TrapMax.TabIndex = 24; + this.L_TrapMax.Text = "Max Turns:"; + this.L_TrapMax.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_Recoil + // + this.NUD_Recoil.Location = new System.Drawing.Point(184, 172); + this.NUD_Recoil.Minimum = new decimal(new int[] { + 100, + 0, + 0, + -2147483648}); + this.NUD_Recoil.Name = "NUD_Recoil"; + this.NUD_Recoil.Size = new System.Drawing.Size(40, 20); + this.NUD_Recoil.TabIndex = 34; + // + // L_Recoil + // + this.L_Recoil.AutoSize = true; + this.L_Recoil.Location = new System.Drawing.Point(114, 174); + this.L_Recoil.Name = "L_Recoil"; + this.L_Recoil.Size = new System.Drawing.Size(64, 13); + this.L_Recoil.TabIndex = 31; + this.L_Recoil.Text = "Rec/Abs %:"; + this.L_Recoil.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_Heal + // + this.NUD_Heal.Location = new System.Drawing.Point(184, 151); + this.NUD_Heal.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_Heal.Name = "NUD_Heal"; + this.NUD_Heal.Size = new System.Drawing.Size(40, 20); + this.NUD_Heal.TabIndex = 33; + // + // L_Heal + // + this.L_Heal.AutoSize = true; + this.L_Heal.Location = new System.Drawing.Point(135, 153); + this.L_Heal.Name = "L_Heal"; + this.L_Heal.Size = new System.Drawing.Size(43, 13); + this.L_Heal.TabIndex = 32; + this.L_Heal.Text = "Heal %:"; + this.L_Heal.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_CritStage + // + this.NUD_CritStage.Location = new System.Drawing.Point(184, 193); + this.NUD_CritStage.Maximum = new decimal(new int[] { + 6, + 0, + 0, + 0}); + this.NUD_CritStage.Name = "NUD_CritStage"; + this.NUD_CritStage.Size = new System.Drawing.Size(30, 20); + this.NUD_CritStage.TabIndex = 30; + // + // L_CritStage + // + this.L_CritStage.AutoSize = true; + this.L_CritStage.Location = new System.Drawing.Point(122, 195); + this.L_CritStage.Name = "L_CritStage"; + this.L_CritStage.Size = new System.Drawing.Size(56, 13); + this.L_CritStage.TabIndex = 27; + this.L_CritStage.Text = "Crit Stage:"; + this.L_CritStage.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_Flinch + // + this.NUD_Flinch.Location = new System.Drawing.Point(184, 130); + this.NUD_Flinch.Maximum = new decimal(new int[] { + 101, + 0, + 0, + 0}); + this.NUD_Flinch.Name = "NUD_Flinch"; + this.NUD_Flinch.Size = new System.Drawing.Size(40, 20); + this.NUD_Flinch.TabIndex = 29; + // + // L_Flinch + // + this.L_Flinch.AutoSize = true; + this.L_Flinch.Location = new System.Drawing.Point(129, 132); + this.L_Flinch.Name = "L_Flinch"; + this.L_Flinch.Size = new System.Drawing.Size(49, 13); + this.L_Flinch.TabIndex = 28; + this.L_Flinch.Text = "Flinch %:"; + this.L_Flinch.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // GB_Stat + // + this.GB_Stat.Controls.Add(this.NUD_StatP3); + this.GB_Stat.Controls.Add(this.NUD_StatP2); + this.GB_Stat.Controls.Add(this.NUD_StatP1); + this.GB_Stat.Controls.Add(this.NUD_Stat2); + this.GB_Stat.Controls.Add(this.NUD_Stat3); + this.GB_Stat.Controls.Add(this.NUD_Stat1); + this.GB_Stat.Controls.Add(this.CB_Stat3); + this.GB_Stat.Controls.Add(this.CB_Stat2); + this.GB_Stat.Controls.Add(this.CB_Stat1); + this.GB_Stat.Controls.Add(this.L_Stage3); + this.GB_Stat.Controls.Add(this.L_Stage2); + this.GB_Stat.Controls.Add(this.L_Stage1); + this.GB_Stat.Location = new System.Drawing.Point(11, 216); + this.GB_Stat.Name = "GB_Stat"; + this.GB_Stat.Size = new System.Drawing.Size(212, 100); + this.GB_Stat.TabIndex = 35; + this.GB_Stat.TabStop = false; + this.GB_Stat.Text = "Stat Stage Changes"; + // + // NUD_StatP3 + // + this.NUD_StatP3.Location = new System.Drawing.Point(165, 68); + this.NUD_StatP3.Maximum = new decimal(new int[] { + 101, + 0, + 0, + 0}); + this.NUD_StatP3.Name = "NUD_StatP3"; + this.NUD_StatP3.Size = new System.Drawing.Size(40, 20); + this.NUD_StatP3.TabIndex = 44; + // + // NUD_StatP2 + // + this.NUD_StatP2.Location = new System.Drawing.Point(165, 46); + this.NUD_StatP2.Maximum = new decimal(new int[] { + 101, + 0, + 0, + 0}); + this.NUD_StatP2.Name = "NUD_StatP2"; + this.NUD_StatP2.Size = new System.Drawing.Size(40, 20); + this.NUD_StatP2.TabIndex = 43; + // + // NUD_StatP1 + // + this.NUD_StatP1.Location = new System.Drawing.Point(165, 24); + this.NUD_StatP1.Maximum = new decimal(new int[] { + 101, + 0, + 0, + 0}); + this.NUD_StatP1.Name = "NUD_StatP1"; + this.NUD_StatP1.Size = new System.Drawing.Size(40, 20); + this.NUD_StatP1.TabIndex = 42; + // + // NUD_Stat2 + // + this.NUD_Stat2.Location = new System.Drawing.Point(127, 46); + this.NUD_Stat2.Maximum = new decimal(new int[] { + 5, + 0, + 0, + 0}); + this.NUD_Stat2.Minimum = new decimal(new int[] { + 5, + 0, + 0, + -2147483648}); + this.NUD_Stat2.Name = "NUD_Stat2"; + this.NUD_Stat2.Size = new System.Drawing.Size(35, 20); + this.NUD_Stat2.TabIndex = 41; + // + // NUD_Stat3 + // + this.NUD_Stat3.Location = new System.Drawing.Point(127, 68); + this.NUD_Stat3.Maximum = new decimal(new int[] { + 5, + 0, + 0, + 0}); + this.NUD_Stat3.Minimum = new decimal(new int[] { + 5, + 0, + 0, + -2147483648}); + this.NUD_Stat3.Name = "NUD_Stat3"; + this.NUD_Stat3.Size = new System.Drawing.Size(35, 20); + this.NUD_Stat3.TabIndex = 40; + // + // NUD_Stat1 + // + this.NUD_Stat1.Location = new System.Drawing.Point(127, 24); + this.NUD_Stat1.Maximum = new decimal(new int[] { + 5, + 0, + 0, + 0}); + this.NUD_Stat1.Minimum = new decimal(new int[] { + 5, + 0, + 0, + -2147483648}); + this.NUD_Stat1.Name = "NUD_Stat1"; + this.NUD_Stat1.Size = new System.Drawing.Size(35, 20); + this.NUD_Stat1.TabIndex = 39; + // + // CB_Stat3 + // + this.CB_Stat3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Stat3.FormattingEnabled = true; + this.CB_Stat3.Location = new System.Drawing.Point(27, 67); + this.CB_Stat3.Name = "CB_Stat3"; + this.CB_Stat3.Size = new System.Drawing.Size(99, 21); + this.CB_Stat3.TabIndex = 38; + // + // CB_Stat2 + // + this.CB_Stat2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Stat2.FormattingEnabled = true; + this.CB_Stat2.Location = new System.Drawing.Point(27, 45); + this.CB_Stat2.Name = "CB_Stat2"; + this.CB_Stat2.Size = new System.Drawing.Size(99, 21); + this.CB_Stat2.TabIndex = 37; + // + // CB_Stat1 + // + this.CB_Stat1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Stat1.FormattingEnabled = true; + this.CB_Stat1.Location = new System.Drawing.Point(27, 23); + this.CB_Stat1.Name = "CB_Stat1"; + this.CB_Stat1.Size = new System.Drawing.Size(99, 21); + this.CB_Stat1.TabIndex = 36; + // + // L_Stage3 + // + this.L_Stage3.AutoSize = true; + this.L_Stage3.Location = new System.Drawing.Point(5, 70); + this.L_Stage3.Name = "L_Stage3"; + this.L_Stage3.Size = new System.Drawing.Size(16, 13); + this.L_Stage3.TabIndex = 2; + this.L_Stage3.Text = "3:"; + // + // L_Stage2 + // + this.L_Stage2.AutoSize = true; + this.L_Stage2.Location = new System.Drawing.Point(5, 48); + this.L_Stage2.Name = "L_Stage2"; + this.L_Stage2.Size = new System.Drawing.Size(16, 13); + this.L_Stage2.TabIndex = 1; + this.L_Stage2.Text = "2:"; + // + // L_Stage1 + // + this.L_Stage1.AutoSize = true; + this.L_Stage1.Location = new System.Drawing.Point(5, 26); + this.L_Stage1.Name = "L_Stage1"; + this.L_Stage1.Size = new System.Drawing.Size(16, 13); + this.L_Stage1.TabIndex = 0; + this.L_Stage1.Text = "1:"; + // + // L_Targeting + // + this.L_Targeting.AutoSize = true; + this.L_Targeting.Location = new System.Drawing.Point(173, 38); + this.L_Targeting.Name = "L_Targeting"; + this.L_Targeting.Size = new System.Drawing.Size(55, 13); + this.L_Targeting.TabIndex = 36; + this.L_Targeting.Text = "Targeting:"; + this.L_Targeting.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_Influcts + // + this.L_Influcts.AutoSize = true; + this.L_Influcts.Location = new System.Drawing.Point(188, 60); + this.L_Influcts.Name = "L_Influcts"; + this.L_Influcts.Size = new System.Drawing.Size(40, 13); + this.L_Influcts.TabIndex = 37; + this.L_Influcts.Text = "Inflicts:"; + this.L_Influcts.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // RTB + // + this.RTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.RTB.Location = new System.Drawing.Point(12, 324); + this.RTB.Name = "RTB"; + this.RTB.ReadOnly = true; + this.RTB.Size = new System.Drawing.Size(316, 51); + this.RTB.TabIndex = 38; + this.RTB.Text = ""; + // + // CB_Targeting + // + this.CB_Targeting.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Targeting.DropDownWidth = 150; + this.CB_Targeting.FormattingEnabled = true; + this.CB_Targeting.Location = new System.Drawing.Point(228, 35); + this.CB_Targeting.Name = "CB_Targeting"; + this.CB_Targeting.Size = new System.Drawing.Size(99, 21); + this.CB_Targeting.TabIndex = 39; + // + // CB_Inflict + // + this.CB_Inflict.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Inflict.DropDownWidth = 150; + this.CB_Inflict.FormattingEnabled = true; + this.CB_Inflict.Location = new System.Drawing.Point(228, 57); + this.CB_Inflict.Name = "CB_Inflict"; + this.CB_Inflict.Size = new System.Drawing.Size(99, 21); + this.CB_Inflict.TabIndex = 40; + // + // L_Inflict + // + this.L_Inflict.AutoSize = true; + this.L_Inflict.Location = new System.Drawing.Point(238, 81); + this.L_Inflict.Name = "L_Inflict"; + this.L_Inflict.Size = new System.Drawing.Size(46, 13); + this.L_Inflict.TabIndex = 41; + this.L_Inflict.Text = "Inflict %:"; + this.L_Inflict.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_Inflict + // + this.NUD_Inflict.Location = new System.Drawing.Point(287, 78); + this.NUD_Inflict.Maximum = new decimal(new int[] { + 101, + 0, + 0, + 0}); + this.NUD_Inflict.Name = "NUD_Inflict"; + this.NUD_Inflict.Size = new System.Drawing.Size(40, 20); + this.NUD_Inflict.TabIndex = 42; + // + // NUD_Effect + // + this.NUD_Effect.Location = new System.Drawing.Point(150, 103); + this.NUD_Effect.Maximum = new decimal(new int[] { + 65535, + 0, + 0, + 0}); + this.NUD_Effect.Name = "NUD_Effect"; + this.NUD_Effect.Size = new System.Drawing.Size(50, 20); + this.NUD_Effect.TabIndex = 44; + // + // L_Effect + // + this.L_Effect.AutoSize = true; + this.L_Effect.Location = new System.Drawing.Point(106, 106); + this.L_Effect.Name = "L_Effect"; + this.L_Effect.Size = new System.Drawing.Size(38, 13); + this.L_Effect.TabIndex = 45; + this.L_Effect.Text = "Effect:"; + this.L_Effect.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_Accuracy + // + this.NUD_Accuracy.Location = new System.Drawing.Point(72, 151); + this.NUD_Accuracy.Maximum = new decimal(new int[] { + 101, + 0, + 0, + 0}); + this.NUD_Accuracy.Name = "NUD_Accuracy"; + this.NUD_Accuracy.Size = new System.Drawing.Size(40, 20); + this.NUD_Accuracy.TabIndex = 47; + // + // L_Accuracy + // + this.L_Accuracy.AutoSize = true; + this.L_Accuracy.Location = new System.Drawing.Point(17, 153); + this.L_Accuracy.Name = "L_Accuracy"; + this.L_Accuracy.Size = new System.Drawing.Size(49, 13); + this.L_Accuracy.TabIndex = 46; + this.L_Accuracy.Text = "Accur %:"; + this.L_Accuracy.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // CB_Quality + // + this.CB_Quality.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Quality.DropDownWidth = 170; + this.CB_Quality.FormattingEnabled = true; + this.CB_Quality.Location = new System.Drawing.Point(71, 81); + this.CB_Quality.Name = "CB_Quality"; + this.CB_Quality.Size = new System.Drawing.Size(129, 21); + this.CB_Quality.TabIndex = 48; + // + // L_Quality + // + this.L_Quality.AutoSize = true; + this.L_Quality.Location = new System.Drawing.Point(20, 84); + this.L_Quality.Name = "L_Quality"; + this.L_Quality.Size = new System.Drawing.Size(50, 13); + this.L_Quality.TabIndex = 49; + this.L_Quality.Text = "Qualities:"; + this.L_Quality.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_0xB + // + this.L_0xB.AutoSize = true; + this.L_0xB.Location = new System.Drawing.Point(256, 101); + this.L_0xB.Name = "L_0xB"; + this.L_0xB.Size = new System.Drawing.Size(28, 13); + this.L_0xB.TabIndex = 50; + this.L_0xB.Text = "0xB:"; + this.L_0xB.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // NUD_0xB + // + this.NUD_0xB.Location = new System.Drawing.Point(287, 99); + this.NUD_0xB.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_0xB.Name = "NUD_0xB"; + this.NUD_0xB.Size = new System.Drawing.Size(40, 20); + this.NUD_0xB.TabIndex = 51; + // + // NUD_0x20 + // + this.NUD_0x20.Location = new System.Drawing.Point(282, 239); + this.NUD_0x20.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_0x20.Name = "NUD_0x20"; + this.NUD_0x20.Size = new System.Drawing.Size(40, 20); + this.NUD_0x20.TabIndex = 52; + // + // NUD_0x21 + // + this.NUD_0x21.Location = new System.Drawing.Point(282, 261); + this.NUD_0x21.Maximum = new decimal(new int[] { + 255, + 0, + 0, + 0}); + this.NUD_0x21.Name = "NUD_0x21"; + this.NUD_0x21.Size = new System.Drawing.Size(40, 20); + this.NUD_0x21.TabIndex = 53; + // + // L_0x20 + // + this.L_0x20.AutoSize = true; + this.L_0x20.Location = new System.Drawing.Point(232, 242); + this.L_0x20.Name = "L_0x20"; + this.L_0x20.Size = new System.Drawing.Size(44, 13); + this.L_0x20.TabIndex = 59; + this.L_0x20.Text = "Flags 1:"; + this.L_0x20.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // L_0x21 + // + this.L_0x21.AutoSize = true; + this.L_0x21.Location = new System.Drawing.Point(233, 264); + this.L_0x21.Name = "L_0x21"; + this.L_0x21.Size = new System.Drawing.Size(44, 13); + this.L_0x21.TabIndex = 62; + this.L_0x21.Text = "Flags 2:"; + this.L_0x21.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // B_RandAll + // + this.B_RandAll.Location = new System.Drawing.Point(333, 10); + this.B_RandAll.Name = "B_RandAll"; + this.B_RandAll.Size = new System.Drawing.Size(98, 23); + this.B_RandAll.TabIndex = 63; + this.B_RandAll.Text = "Randomize!"; + this.B_RandAll.UseVisualStyleBackColor = true; + this.B_RandAll.Click += new System.EventHandler(this.B_RandAll_Click); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.CHK_Category); + this.groupBox1.Controls.Add(this.CHK_Type); + this.groupBox1.Location = new System.Drawing.Point(333, 33); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(98, 342); + this.groupBox1.TabIndex = 64; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Options"; + // + // CHK_Type + // + this.CHK_Type.AutoSize = true; + this.CHK_Type.Location = new System.Drawing.Point(6, 19); + this.CHK_Type.Name = "CHK_Type"; + this.CHK_Type.Size = new System.Drawing.Size(50, 17); + this.CHK_Type.TabIndex = 0; + this.CHK_Type.Text = "Type"; + this.CHK_Type.UseVisualStyleBackColor = true; + // + // CHK_Category + // + this.CHK_Category.AutoSize = true; + this.CHK_Category.Location = new System.Drawing.Point(6, 34); + this.CHK_Category.Name = "CHK_Category"; + this.CHK_Category.Size = new System.Drawing.Size(68, 17); + this.CHK_Category.TabIndex = 1; + this.CHK_Category.Text = "Category"; + this.CHK_Category.UseVisualStyleBackColor = true; + // + // Moves + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(439, 382); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.B_RandAll); + this.Controls.Add(this.L_0x21); + this.Controls.Add(this.L_0x20); + this.Controls.Add(this.NUD_0x21); + this.Controls.Add(this.NUD_0x20); + this.Controls.Add(this.NUD_0xB); + this.Controls.Add(this.L_0xB); + this.Controls.Add(this.CB_Quality); + this.Controls.Add(this.L_Quality); + this.Controls.Add(this.NUD_Accuracy); + this.Controls.Add(this.L_Accuracy); + this.Controls.Add(this.L_Effect); + this.Controls.Add(this.NUD_Effect); + this.Controls.Add(this.NUD_Inflict); + this.Controls.Add(this.L_Inflict); + this.Controls.Add(this.CB_Inflict); + this.Controls.Add(this.CB_Targeting); + this.Controls.Add(this.RTB); + this.Controls.Add(this.L_Targeting); + this.Controls.Add(this.L_Influcts); + this.Controls.Add(this.GB_Stat); + this.Controls.Add(this.NUD_Recoil); + this.Controls.Add(this.L_Recoil); + this.Controls.Add(this.NUD_Heal); + this.Controls.Add(this.L_Heal); + this.Controls.Add(this.NUD_CritStage); + this.Controls.Add(this.L_CritStage); + this.Controls.Add(this.NUD_Flinch); + this.Controls.Add(this.L_Flinch); + this.Controls.Add(this.NUD_TurnMin); + this.Controls.Add(this.L_TrapMin); + this.Controls.Add(this.NUD_TurnMax); + this.Controls.Add(this.L_TrapMax); + this.Controls.Add(this.L_Type); + this.Controls.Add(this.L_BP); + this.Controls.Add(this.CB_Type); + this.Controls.Add(this.NUD_Power); + this.Controls.Add(this.CB_Category); + this.Controls.Add(this.L_Category); + this.Controls.Add(this.NUD_PP); + this.Controls.Add(this.NUD_Priority); + this.Controls.Add(this.NUD_HitMin); + this.Controls.Add(this.L_PP); + this.Controls.Add(this.L_Min); + this.Controls.Add(this.L_Priority); + this.Controls.Add(this.NUD_HitMax); + this.Controls.Add(this.L_Max); + this.Controls.Add(this.L_Move); + this.Controls.Add(this.CB_Move); + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(455, 420); + this.MinimumSize = new System.Drawing.Size(355, 420); + this.Name = "MoveEditor6"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Move Editor"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.formClosing); + ((System.ComponentModel.ISupportInitialize)(this.NUD_HitMax)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_HitMin)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Priority)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_PP)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Power)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_TurnMin)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_TurnMax)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Recoil)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Heal)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_CritStage)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Flinch)).EndInit(); + this.GB_Stat.ResumeLayout(false); + this.GB_Stat.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_StatP3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_StatP2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_StatP1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Stat2)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Stat3)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Stat1)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Inflict)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Effect)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_Accuracy)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_0xB)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_0x20)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_0x21)).EndInit(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label L_Type; + private System.Windows.Forms.ComboBox CB_Move; + private System.Windows.Forms.Label L_Move; + private System.Windows.Forms.ComboBox CB_Type; + private System.Windows.Forms.ComboBox CB_Category; + private System.Windows.Forms.Label L_Category; + private System.Windows.Forms.Label L_BP; + private System.Windows.Forms.Label L_PP; + private System.Windows.Forms.Label L_Min; + private System.Windows.Forms.Label L_Max; + private System.Windows.Forms.Label L_Priority; + private System.Windows.Forms.NumericUpDown NUD_HitMax; + private System.Windows.Forms.NumericUpDown NUD_HitMin; + private System.Windows.Forms.NumericUpDown NUD_Priority; + private System.Windows.Forms.NumericUpDown NUD_PP; + private System.Windows.Forms.NumericUpDown NUD_Power; + private System.Windows.Forms.NumericUpDown NUD_TurnMin; + private System.Windows.Forms.Label L_TrapMin; + private System.Windows.Forms.NumericUpDown NUD_TurnMax; + private System.Windows.Forms.Label L_TrapMax; + private System.Windows.Forms.NumericUpDown NUD_Recoil; + private System.Windows.Forms.Label L_Recoil; + private System.Windows.Forms.NumericUpDown NUD_Heal; + private System.Windows.Forms.Label L_Heal; + private System.Windows.Forms.NumericUpDown NUD_CritStage; + private System.Windows.Forms.Label L_CritStage; + private System.Windows.Forms.NumericUpDown NUD_Flinch; + private System.Windows.Forms.Label L_Flinch; + private System.Windows.Forms.GroupBox GB_Stat; + private System.Windows.Forms.NumericUpDown NUD_Stat2; + private System.Windows.Forms.NumericUpDown NUD_Stat3; + private System.Windows.Forms.NumericUpDown NUD_Stat1; + private System.Windows.Forms.ComboBox CB_Stat3; + private System.Windows.Forms.ComboBox CB_Stat2; + private System.Windows.Forms.ComboBox CB_Stat1; + private System.Windows.Forms.Label L_Stage3; + private System.Windows.Forms.Label L_Stage2; + private System.Windows.Forms.Label L_Stage1; + private System.Windows.Forms.Label L_Targeting; + private System.Windows.Forms.Label L_Influcts; + private System.Windows.Forms.RichTextBox RTB; + private System.Windows.Forms.ComboBox CB_Targeting; + private System.Windows.Forms.ComboBox CB_Inflict; + private System.Windows.Forms.Label L_Inflict; + private System.Windows.Forms.NumericUpDown NUD_Inflict; + private System.Windows.Forms.NumericUpDown NUD_Effect; + private System.Windows.Forms.Label L_Effect; + private System.Windows.Forms.NumericUpDown NUD_Accuracy; + private System.Windows.Forms.Label L_Accuracy; + private System.Windows.Forms.ComboBox CB_Quality; + private System.Windows.Forms.Label L_Quality; + private System.Windows.Forms.NumericUpDown NUD_StatP3; + private System.Windows.Forms.NumericUpDown NUD_StatP2; + private System.Windows.Forms.NumericUpDown NUD_StatP1; + private System.Windows.Forms.Label L_0xB; + private System.Windows.Forms.NumericUpDown NUD_0xB; + private System.Windows.Forms.NumericUpDown NUD_0x20; + private System.Windows.Forms.NumericUpDown NUD_0x21; + private System.Windows.Forms.Label L_0x20; + private System.Windows.Forms.Label L_0x21; + private System.Windows.Forms.Button B_RandAll; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.CheckBox CHK_Category; + private System.Windows.Forms.CheckBox CHK_Type; + } +} \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/MoveEditor7.cs b/pk3DS/Subforms/Gen7/MoveEditor7.cs new file mode 100644 index 0000000..1a8db45 --- /dev/null +++ b/pk3DS/Subforms/Gen7/MoveEditor7.cs @@ -0,0 +1,207 @@ +using System; +using System.IO; +using System.Windows.Forms; + +namespace pk3DS +{ + public partial class MoveEditor7 : Form + { + public MoveEditor7() + { + CTR.mini.unpackMini(Directory.GetFiles("move")[0], "WD"); + + movelist[0] = ""; + sortedmoves = (string[])movelist.Clone(); + Array.Sort(sortedmoves); + + InitializeComponent(); + Setup(); + } + private string[] files = Directory.GetFiles("move"); + private readonly string[] types = Main.getText(TextName.Types); + private readonly string[] moveflavor = Main.getText(TextName.MoveFlavor); + private readonly string[] movelist = Main.getText(TextName.MoveNames); + private readonly string[] sortedmoves; + private readonly string[] MoveCategories = { "Status", "Physical", "Special", }; + private readonly string[] StatCategories = { "None", "Attack", "Defense", "Special Attack", "Special Defense", "Speed", "Accuracy", "Evasion", "All", }; + + private readonly string[] TargetingTypes = + { "Single Adjacent Ally/Foe", + "Any Ally", "Any Adjacent Ally", "Single Adjacent Foe", "Everyone but User", "All Foes", + "All Allies", "Self", "All Pokemon on Field", "Single Adjacent Foe (2)", "Entire Field", + "Opponent's Field", "User's Field", "Self", + }; + + private readonly string[] InflictionTypes = + { "None", + "Paralyze", "Sleep", "Freeze", "Burn", "Poison", + "Confusion", "Attract", "Capture", "Nightmare", "Curse", + "Taunt", "Torment", "Disable", "Yawn", "Heal Block", + "?", "Detect", "Leech Seed", "Embargo", "Perish Song", + "Ingrain", + }; + + private readonly string[] MoveQualities = + { "Only DMG", + "No DMG -> Inflict Status", "No DMG -> -Target/+User Stat", "No DMG | Heal User", "DMG | Inflict Status", "No DMG | STATUS | +Target Stat", + "DMG | -Target Stat", "DMG | +User Stat", "DMG | Absorbs DMG", "One-Hit KO", "Affects Whole Field", + "Affect One Side of the Field", "Forces Target to Switch", "Unique Effect", }; + private void Setup() + { + foreach (string s in sortedmoves) CB_Move.Items.Add(s); + foreach (string s in types) CB_Type.Items.Add(s); + foreach (string s in MoveCategories) CB_Category.Items.Add(s); + foreach (string s in StatCategories) CB_Stat1.Items.Add(s); + foreach (string s in StatCategories) CB_Stat2.Items.Add(s); + foreach (string s in StatCategories) CB_Stat3.Items.Add(s); + foreach (string s in TargetingTypes) CB_Targeting.Items.Add(s); + foreach (string s in MoveQualities) CB_Quality.Items.Add(s); + foreach (string s in InflictionTypes) CB_Inflict.Items.Add(s); + CB_Inflict.Items.Add("Special"); + + CB_Move.Items.RemoveAt(0); + files = Directory.GetFiles("move"); + CB_Move.SelectedIndex = 0; + } + private int entry = -1; + private void changeEntry(object sender, EventArgs e) + { + setEntry(); + entry = Array.IndexOf(movelist, CB_Move.Text); + getEntry(); + } + private void getEntry() + { + if (entry < 1) return; + byte[] data = File.ReadAllBytes(files[entry]); + { + string flavor = moveflavor[entry].Replace("\\n", Environment.NewLine); + RTB.Text = flavor; + + CB_Type.SelectedIndex = data[0x00]; + CB_Quality.SelectedIndex = data[0x01]; + CB_Category.SelectedIndex = data[0x02]; + NUD_Power.Value = data[0x3]; + NUD_Accuracy.Value = data[0x4]; + NUD_PP.Value = data[0x05]; + NUD_Priority.Value = (sbyte)data[0x06]; + NUD_HitMin.Value = data[0x7] & 0xF; + NUD_HitMax.Value = data[0x7] >> 4; + short inflictVal = BitConverter.ToInt16(data, 0x08); + CB_Inflict.SelectedIndex = inflictVal < 0 ? CB_Inflict.Items.Count - 1 : inflictVal; + NUD_Inflict.Value = data[0xA]; + NUD_0xB.Value = data[0xB]; // 0xB ~ Something to deal with skipImmunity + NUD_TurnMin.Value = data[0xC]; + NUD_TurnMax.Value = data[0xD]; + NUD_CritStage.Value = data[0xE]; + NUD_Flinch.Value = data[0xF]; + NUD_Effect.Value = BitConverter.ToUInt16(data, 0x10); + NUD_Recoil.Value = (sbyte)data[0x12]; + NUD_Heal.Value = data[0x13]; + + CB_Targeting.SelectedIndex = data[0x14]; + CB_Stat1.SelectedIndex = data[0x15]; + CB_Stat2.SelectedIndex = data[0x16]; + CB_Stat3.SelectedIndex = data[0x17]; + NUD_Stat1.Value = (sbyte)data[0x18]; + NUD_Stat2.Value = (sbyte)data[0x19]; + NUD_Stat3.Value = (sbyte)data[0x1A]; + NUD_StatP1.Value = data[0x1B]; + NUD_StatP2.Value = data[0x1C]; + NUD_StatP3.Value = data[0x1D]; + + // Unknown (Bitflag Related for stuff like Contact and Extra Move Effects) + NUD_0x20.Value = data[0x20]; // 0x20 + NUD_0x21.Value = data[0x21]; // 0x21 + // end, the other bytes aren't used. + + //NUD_0x1E.Value = data[0x1E]; // 0x1E + //NUD_0x1F.Value = data[0x1F]; // 0x1F + //NUD_0x22.Value = data[0x22]; // 0x22 + //NUD_0x23.Value = data[0x23]; // 0x23 + } + } + private void setEntry() + { + if (entry < 1) return; + byte[] data = File.ReadAllBytes(files[entry]); + { + data[0x00] = (byte)CB_Type.SelectedIndex; + data[0x01] = (byte)CB_Quality.SelectedIndex; + data[0x02] = (byte)CB_Category.SelectedIndex; + data[0x03] = (byte)NUD_Power.Value; + data[0x04] = (byte)NUD_Accuracy.Value; + data[0x05] = (byte)NUD_PP.Value; + data[0x06] = (byte)(int)NUD_Priority.Value; + data[0x07] = (byte)((byte)NUD_HitMin.Value | ((byte)NUD_HitMax.Value << 4)); + int inflictval = CB_Inflict.SelectedIndex; if (inflictval == CB_Inflict.Items.Count) inflictval = -1; + Array.Copy(BitConverter.GetBytes((short)inflictval), 0, data, 0x08, 2); + data[0x0A] = (byte)NUD_Inflict.Value; + data[0x0B] = (byte)NUD_0xB.Value; + data[0x0C] = (byte)NUD_TurnMin.Value; + data[0x0D] = (byte)NUD_TurnMax.Value; + data[0x0E] = (byte)NUD_CritStage.Value; + data[0x0F] = (byte)NUD_Flinch.Value; + Array.Copy(BitConverter.GetBytes((ushort)NUD_Effect.Value), 0, data, 0x10, 2); + data[0x12] = (byte)(int)NUD_Recoil.Value; + data[0x13] = (byte)NUD_Heal.Value; + data[0x14] = (byte)CB_Targeting.SelectedIndex; + data[0x15] = (byte)CB_Stat1.SelectedIndex; + data[0x16] = (byte)CB_Stat2.SelectedIndex; + data[0x17] = (byte)CB_Stat3.SelectedIndex; + data[0x18] = (byte)(int)NUD_Stat1.Value; + data[0x19] = (byte)(int)NUD_Stat2.Value; + data[0x1A] = (byte)(int)NUD_Stat3.Value; + data[0x1B] = (byte)NUD_StatP1.Value; + data[0x1C] = (byte)NUD_StatP2.Value; + data[0x1D] = (byte)NUD_StatP3.Value; + + data[0x20] = (byte)NUD_0x20.Value; + data[0x21] = (byte)NUD_0x21.Value; + // end, the other bytes aren't used. + } + File.WriteAllBytes(files[entry], data); + } + private void formClosing(object sender, FormClosingEventArgs e) + { + setEntry(); + + if (Main.Config.ORAS) + CTR.mini.packMini("move", "WD", "0", ".bin"); + } + + private void B_RandAll_Click(object sender, EventArgs e) + { + if (!CHK_Category.Checked && !CHK_Type.Checked) return; + Random rnd = new Random(); + for (int i = 0; i < CB_Move.Items.Count; i++) + { + CB_Move.SelectedIndex = i; // Get new Move + if (i == 165 || i == 174) continue; // Don't change Struggle or Curse + + // Change Damage Category if Not Status + if (CB_Category.SelectedIndex > 0 && CHK_Category.Checked) // Not Status + CB_Category.SelectedIndex = rnd.Next(1, 3); + + // Change Move Type + if (CHK_Type.Checked) + CB_Type.SelectedIndex = rnd.Next(0, 18); + } + Util.Alert("Moves have been randomized!"); + } + + internal static Move[] getMoves() + { + CTR.mini.unpackMini(Directory.GetFiles("move")[0], "WD"); + string[] f2 = Directory.GetFiles("move"); + Move[] moves = new Move[f2.Length]; + for (int i = 0; i < f2.Length; i++) + moves[i] = new Move(File.ReadAllBytes(f2[i])); + + if (Main.Config.ORAS) + CTR.mini.packMini("move", "WD", "0", ".bin"); + + return moves; + } + } +} \ No newline at end of file diff --git a/pk3DS/Subforms/Gen7/MoveEditor7.resx b/pk3DS/Subforms/Gen7/MoveEditor7.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/pk3DS/Subforms/Gen7/MoveEditor7.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/pk3DS/pk3DS.csproj b/pk3DS/pk3DS.csproj index 580e8a6..1b59d75 100644 --- a/pk3DS/pk3DS.csproj +++ b/pk3DS/pk3DS.csproj @@ -99,12 +99,24 @@ EggMoveEditor7.cs + + Form + + + ItemEditor7.cs + Form LevelUpEditor7.cs + + Form + + + MoveEditor7.cs + Form @@ -331,9 +343,15 @@ EggMoveEditor7.cs + + ItemEditor7.cs + LevelUpEditor7.cs + + MoveEditor7.cs + PersonalEditor7.cs