diff --git a/PKHeX.csproj b/PKHeX.csproj index 32c9d22c8..99f2d626b 100644 --- a/PKHeX.csproj +++ b/PKHeX.csproj @@ -102,6 +102,12 @@ f3-MemoryAmie.cs + + Form + + + SAV_SecretBase.cs + Form @@ -217,6 +223,9 @@ f3-MemoryAmie.cs + + SAV_SecretBase.cs + SAV_EventFlagsORAS.cs diff --git a/PKX/f1-Main.Designer.cs b/PKX/f1-Main.Designer.cs index 7249e5a57..c7ab3c62d 100644 --- a/PKX/f1-Main.Designer.cs +++ b/PKX/f1-Main.Designer.cs @@ -298,6 +298,7 @@ this.subepkx1 = new System.Windows.Forms.PictureBox(); this.subepkx2 = new System.Windows.Forms.PictureBox(); this.subepkx3 = new System.Windows.Forms.PictureBox(); + this.B_OpenSecretBase = new System.Windows.Forms.Button(); this.GB_GTS = new System.Windows.Forms.GroupBox(); this.gtspkx = new System.Windows.Forms.PictureBox(); this.GB_Fused = new System.Windows.Forms.GroupBox(); @@ -3368,8 +3369,9 @@ // // Tab_Other // - this.Tab_Other.Controls.Add(this.GB_Daycare); + this.Tab_Other.Controls.Add(this.B_OpenSecretBase); this.Tab_Other.Controls.Add(this.GB_SUBE); + this.Tab_Other.Controls.Add(this.GB_Daycare); this.Tab_Other.Controls.Add(this.GB_GTS); this.Tab_Other.Controls.Add(this.GB_Fused); this.Tab_Other.Controls.Add(this.L_ReadOnlyOther); @@ -3547,6 +3549,17 @@ this.subepkx3.TabIndex = 20; this.subepkx3.TabStop = false; // + // B_OpenSecretBase + // + this.B_OpenSecretBase.Location = new System.Drawing.Point(227, 151); + this.B_OpenSecretBase.Name = "B_OpenSecretBase"; + this.B_OpenSecretBase.Size = new System.Drawing.Size(60, 37); + this.B_OpenSecretBase.TabIndex = 21; + this.B_OpenSecretBase.Text = "Secret Base"; + this.B_OpenSecretBase.UseVisualStyleBackColor = true; + this.B_OpenSecretBase.Visible = false; + this.B_OpenSecretBase.Click += new System.EventHandler(this.B_OpenSecretBase_Click); + // // GB_GTS // this.GB_GTS.Controls.Add(this.gtspkx); @@ -4326,6 +4339,7 @@ private System.Windows.Forms.CheckBox CHK_HackedStats; private System.Windows.Forms.MaskedTextBox MT_Level; private System.Windows.Forms.MaskedTextBox MT_Form; + private System.Windows.Forms.Button B_OpenSecretBase; } } diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index c3180332c..ac96ee787 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -1215,7 +1215,7 @@ namespace PKHeX TB_TID.Text = 12345.ToString(); TB_SID.Text = 54321.ToString(); } - updateAbilityList(); + updateAbilityList(TB_AbilityNumber,Util.getIndex(CB_Species),CB_Ability,CB_Form); } private void InitializeLanguage() { @@ -1681,7 +1681,7 @@ namespace PKHeX TB_PID.Text = PID.ToString("X8"); CB_Species.SelectedValue = species; CB_HeldItem.SelectedValue = helditem; - updateAbilityList(); + updateAbilityList(TB_AbilityNumber, species, CB_Ability, CB_Form); TB_AbilityNumber.Text = abilitynum.ToString(); if (abilitynum>>1 < 3) CB_Ability.SelectedIndex = abilitynum>>1; // error handling else CB_Ability.SelectedIndex = 0; @@ -1816,7 +1816,7 @@ namespace PKHeX TB_Level.Text = level.ToString(); // Setup Forms - setForms(species); + setForms(species, CB_Form); try { CB_Form.SelectedIndex = altforms; @@ -1897,7 +1897,7 @@ namespace PKHeX } setMarkings(); } - private void setForms(int species) + public void setForms(int species, ComboBox cb) { // Form Tables // @@ -2124,9 +2124,9 @@ namespace PKHeX new { Text = forms[734], Value = 6}, // Cosplay }; - CB_Form.DataSource = form_list; - CB_Form.DisplayMember = "Text"; - CB_Form.ValueMember = "Value"; + cb.DataSource = form_list; + cb.DisplayMember = "Text"; + cb.ValueMember = "Value"; // Mega List int[] mspec = { // XY @@ -2138,8 +2138,8 @@ namespace PKHeX { if (mspec[i] == species) { - CB_Form.DataSource = form_mega; - CB_Form.Enabled = true; // Mega Form Selection + cb.DataSource = form_mega; + cb.Enabled = true; // Mega Form Selection return; } } @@ -2147,8 +2147,8 @@ namespace PKHeX // MegaXY List if ((species == 6) || (species == 150)) { - CB_Form.DataSource = form_megaxy; - CB_Form.Enabled = true; // Mega Form Selection + cb.DataSource = form_megaxy; + cb.Enabled = true; // Mega Form Selection return; } @@ -2188,12 +2188,12 @@ namespace PKHeX else { - CB_Form.Enabled = false; + cb.Enabled = false; return; }; - CB_Form.DataSource = form_list; - CB_Form.Enabled = true; + cb.DataSource = form_list; + cb.Enabled = true; } private void setGenderLabel() { @@ -2693,7 +2693,7 @@ namespace PKHeX { updateStats(); // Repopulate Abilities if Species Form has different abilities - updateAbilityList(); + updateAbilityList(TB_AbilityNumber, Util.getIndex(CB_Species), CB_Ability, CB_Form); // If form has a single gender, account for it. if (CB_Form.Text == "♂") @@ -2740,7 +2740,7 @@ namespace PKHeX if (MT_Level.Visible) level = Util.ToInt32(MT_Level.Text); // Get Forms for Given Species - setForms(species); + setForms(species, CB_Form); // Recalculate EXP for Given Level uint exp = PKX.getEXP(level, species); @@ -2766,7 +2766,7 @@ namespace PKHeX } setGenderLabel(); - updateAbilityList(); + updateAbilityList(TB_AbilityNumber, Util.getIndex(CB_Species), CB_Ability, CB_Form); updateForm(null, null); // If species changes and no nickname, set the new name == speciesName. @@ -3490,20 +3490,19 @@ namespace PKHeX Stat_SPD.Text = ((((((SPD_IV + (2 * SPD_B) + (SPD_EV / 4)) * level) / 100) + 5) * n4) / 10).ToString(); Stat_SPE.Text = ((((((SPE_IV + (2 * SPE_B) + (SPE_EV / 4)) * level) / 100) + 5) * n5) / 10).ToString(); } - private void updateAbilityList() + public void updateAbilityList(MaskedTextBox tb_abil, int species, ComboBox cb_abil, ComboBox cb_forme) { if (!init) return; - int newabil = Convert.ToInt16(TB_AbilityNumber.Text) >> 1; - int species = Util.getIndex(CB_Species); + int newabil = Convert.ToInt16(tb_abil.Text) >> 1; int[] abils = { 0, 0, 0 }; // // Alternate Forms have different abilities. We must account for them! // - if (CB_Form.SelectedIndex > 0) + if (cb_forme.SelectedIndex > 0) { - int formnum = CB_Form.SelectedIndex; + int formnum = cb_forme.SelectedIndex; if (species == 492 && formnum == 1) { species = 727; } // Shaymin else if (species == 487 && formnum == 1) { species = 728; } // Giratina-O else if (species == 550 && formnum == 1) { species = 738; } // Basculin Blue @@ -3576,10 +3575,10 @@ namespace PKHeX ability_list.Add(abilitylist[abils[0]] + " (1)"); ability_list.Add(abilitylist[abils[1]] + " (2)"); ability_list.Add(abilitylist[abils[2]] + " (H)"); - CB_Ability.DataSource = ability_list; + cb_abil.DataSource = ability_list; - if (newabil < 3) CB_Ability.SelectedIndex = newabil; - else CB_Ability.SelectedIndex = 0; + if (newabil < 3) cb_abil.SelectedIndex = newabil; + else cb_abil.SelectedIndex = 0; } private void updateAbilityNumber() { @@ -3941,7 +3940,8 @@ namespace PKHeX GB_SUBE.Visible = B_OpenOPowers.Enabled = B_OpenPokedex.Enabled = B_OpenBerryField.Enabled = !oras; - //B_OpenTrainerInfo.Enabled = B_OpenPokepuffs.Enabled = B_OpenBoxLayout.Enabled = + + B_OpenSecretBase.Visible = oras; this.Width = largeWidth; } @@ -5856,6 +5856,12 @@ namespace PKHeX SAV_HallOfFame halloffame = new PKHeX.SAV_HallOfFame(this); halloffame.ShowDialog(); } + private void B_OpenSecretBase_Click(object sender, EventArgs e) + { + // Open Secret Base Menu + SAV_SecretBase secretbase = new PKHeX.SAV_SecretBase(this); + secretbase.ShowDialog(); + } private void B_OpenTemp_Click(object sender, EventArgs e) { diff --git a/PKX/f1-Main.resx b/PKX/f1-Main.resx index ef449a201..bdc9868bf 100644 --- a/PKX/f1-Main.resx +++ b/PKX/f1-Main.resx @@ -528,6 +528,12 @@ True + + True + + + True + True @@ -564,12 +570,6 @@ True - - True - - - True - True diff --git a/Resources/text/changelog.txt b/Resources/text/changelog.txt index 4e47165a4..eaaeb9547 100644 --- a/Resources/text/changelog.txt +++ b/Resources/text/changelog.txt @@ -342,8 +342,11 @@ http://projectpokemon.org/forums/showthread.php?36986 - Fixed: EXP now calculates and sets properly; switched from formulas (rounding errata) to a lookup table. - Changed: Reorganized and cleaned up the source code in prep for future usage/updates. -11/05/14 - New Update: +11/05/14 - New Update: (Stable X/Y) - Fixed: Casting error for base happiness. 11/21/14 - New Update: - - Added: Basic ORAS Support \ No newline at end of file + - Added: Basic ORAS Support + +11/22/14 - New Update: + - Improved ORAS support \ No newline at end of file diff --git a/SAV/SAV_SecretBase.Designer.cs b/SAV/SAV_SecretBase.Designer.cs new file mode 100644 index 000000000..fc4201caa --- /dev/null +++ b/SAV/SAV_SecretBase.Designer.cs @@ -0,0 +1,1283 @@ +namespace PKHeX +{ + partial class SAV_SecretBase + { + /// + /// 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() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SAV_SecretBase)); + this.B_Save = new System.Windows.Forms.Button(); + this.B_Cancel = new System.Windows.Forms.Button(); + this.LB_Favorite = new System.Windows.Forms.ListBox(); + this.LB_Passerby = new System.Windows.Forms.ListBox(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.B_FDisplay = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.button4 = new System.Windows.Forms.Button(); + this.tabControl2 = new System.Windows.Forms.TabControl(); + this.tabPage3 = new System.Windows.Forms.TabPage(); + this.tabPage4 = new System.Windows.Forms.TabPage(); + this.f_PKM = new System.Windows.Forms.TabPage(); + this.GB_PKM = new System.Windows.Forms.GroupBox(); + this.TB_SPEIV = new System.Windows.Forms.MaskedTextBox(); + this.TB_SPDIV = new System.Windows.Forms.MaskedTextBox(); + this.TB_SPAIV = new System.Windows.Forms.MaskedTextBox(); + this.TB_DEFIV = new System.Windows.Forms.MaskedTextBox(); + this.TB_ATKIV = new System.Windows.Forms.MaskedTextBox(); + this.TB_HPIV = new System.Windows.Forms.MaskedTextBox(); + this.TB_ATKEV = new System.Windows.Forms.MaskedTextBox(); + this.TB_DEFEV = new System.Windows.Forms.MaskedTextBox(); + this.TB_SPEEV = new System.Windows.Forms.MaskedTextBox(); + this.TB_SPDEV = new System.Windows.Forms.MaskedTextBox(); + this.TB_SPAEV = new System.Windows.Forms.MaskedTextBox(); + this.TB_HPEV = new System.Windows.Forms.MaskedTextBox(); + this.Label_Gender = new System.Windows.Forms.Label(); + this.MT_AbilNo = new System.Windows.Forms.MaskedTextBox(); + this.CB_Ability = new System.Windows.Forms.ComboBox(); + this.L_PKFriendship = new System.Windows.Forms.Label(); + this.CB_Ball = new System.Windows.Forms.ComboBox(); + this.TB_Friendship = new System.Windows.Forms.MaskedTextBox(); + this.TB_Level = new System.Windows.Forms.MaskedTextBox(); + this.CB_Form = new System.Windows.Forms.ComboBox(); + this.checkBox1 = new System.Windows.Forms.CheckBox(); + this.Label_PPups = new System.Windows.Forms.Label(); + this.CB_PPu4 = new System.Windows.Forms.ComboBox(); + this.CB_PPu3 = new System.Windows.Forms.ComboBox(); + this.CB_PPu2 = new System.Windows.Forms.ComboBox(); + this.CB_Move4 = new System.Windows.Forms.ComboBox(); + this.CB_PPu1 = new System.Windows.Forms.ComboBox(); + this.CB_Move3 = new System.Windows.Forms.ComboBox(); + this.CB_Move2 = new System.Windows.Forms.ComboBox(); + this.CB_Move1 = new System.Windows.Forms.ComboBox(); + this.label23 = new System.Windows.Forms.Label(); + this.NUD_FPKM = new System.Windows.Forms.NumericUpDown(); + this.CB_Species = new System.Windows.Forms.ComboBox(); + this.CB_HeldItem = new System.Windows.Forms.ComboBox(); + this.CB_Nature = new System.Windows.Forms.ComboBox(); + this.label22 = new System.Windows.Forms.Label(); + this.TB_EC = new System.Windows.Forms.TextBox(); + this.label21 = new System.Windows.Forms.Label(); + this.label20 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label18 = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); + this.label16 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label14 = new System.Windows.Forms.Label(); + this.f_MAIN = new System.Windows.Forms.TabPage(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.NUD_FX = new System.Windows.Forms.NumericUpDown(); + this.NUD_FY = new System.Windows.Forms.NumericUpDown(); + this.label11 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.NUD_FRot = new System.Windows.Forms.NumericUpDown(); + this.NUD_FObjType = new System.Windows.Forms.NumericUpDown(); + this.label9 = new System.Windows.Forms.Label(); + this.NUD_FObject = new System.Windows.Forms.NumericUpDown(); + this.label8 = new System.Windows.Forms.Label(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.TB_FSay4 = new System.Windows.Forms.TextBox(); + this.TB_FSay3 = new System.Windows.Forms.TextBox(); + this.TB_FSay2 = new System.Windows.Forms.TextBox(); + this.TB_FSay1 = new System.Windows.Forms.TextBox(); + this.TB_FOT = new System.Windows.Forms.TextBox(); + this.label7 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.tabControl1 = new System.Windows.Forms.TabControl(); + this.B_GiveDecor = new System.Windows.Forms.Button(); + this.B_FSave = new System.Windows.Forms.Button(); + this.tabControl2.SuspendLayout(); + this.f_PKM.SuspendLayout(); + this.GB_PKM.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FPKM)).BeginInit(); + this.f_MAIN.SuspendLayout(); + this.groupBox1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FX)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FY)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FRot)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FObjType)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FObject)).BeginInit(); + this.tabControl1.SuspendLayout(); + this.SuspendLayout(); + // + // B_Save + // + this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.B_Save.Location = new System.Drawing.Point(427, 2); + this.B_Save.Name = "B_Save"; + this.B_Save.Size = new System.Drawing.Size(75, 23); + this.B_Save.TabIndex = 0; + this.B_Save.Text = "Save"; + this.B_Save.UseVisualStyleBackColor = true; + this.B_Save.Click += new System.EventHandler(this.B_Save_Click); + // + // B_Cancel + // + this.B_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.B_Cancel.Location = new System.Drawing.Point(350, 2); + this.B_Cancel.Name = "B_Cancel"; + this.B_Cancel.Size = new System.Drawing.Size(71, 23); + this.B_Cancel.TabIndex = 1; + this.B_Cancel.Text = "Cancel"; + this.B_Cancel.UseVisualStyleBackColor = true; + this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click); + // + // LB_Favorite + // + this.LB_Favorite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left))); + this.LB_Favorite.FormattingEnabled = true; + this.LB_Favorite.Location = new System.Drawing.Point(12, 25); + this.LB_Favorite.Name = "LB_Favorite"; + this.LB_Favorite.Size = new System.Drawing.Size(78, 264); + this.LB_Favorite.TabIndex = 4; + // + // LB_Passerby + // + this.LB_Passerby.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.LB_Passerby.FormattingEnabled = true; + this.LB_Passerby.Location = new System.Drawing.Point(9, 316); + this.LB_Passerby.Name = "LB_Passerby"; + this.LB_Passerby.Size = new System.Drawing.Size(78, 186); + this.LB_Passerby.Sorted = true; + this.LB_Passerby.TabIndex = 5; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(12, 9); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(53, 13); + this.label1.TabIndex = 6; + this.label1.Text = "Favorites:"; + // + // label2 + // + this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(9, 300); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 13); + this.label2.TabIndex = 7; + this.label2.Text = "Passerby:"; + // + // B_FDisplay + // + this.B_FDisplay.Location = new System.Drawing.Point(96, 25); + this.B_FDisplay.Name = "B_FDisplay"; + this.B_FDisplay.Size = new System.Drawing.Size(18, 24); + this.B_FDisplay.TabIndex = 8; + this.B_FDisplay.Text = ">"; + this.B_FDisplay.UseVisualStyleBackColor = true; + this.B_FDisplay.Click += new System.EventHandler(this.B_SAV2FAV); + // + // button2 + // + this.button2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button2.Location = new System.Drawing.Point(93, 316); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(18, 24); + this.button2.TabIndex = 16; + this.button2.Text = "X"; + this.button2.UseVisualStyleBackColor = true; + // + // button3 + // + this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button3.Location = new System.Drawing.Point(93, 376); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(18, 24); + this.button3.TabIndex = 15; + this.button3.Text = "<"; + this.button3.UseVisualStyleBackColor = true; + // + // button4 + // + this.button4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.button4.Location = new System.Drawing.Point(93, 346); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(18, 24); + this.button4.TabIndex = 14; + this.button4.Text = ">"; + this.button4.UseVisualStyleBackColor = true; + // + // tabControl2 + // + this.tabControl2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tabControl2.Controls.Add(this.tabPage3); + this.tabControl2.Controls.Add(this.tabPage4); + this.tabControl2.Location = new System.Drawing.Point(124, 300); + this.tabControl2.Name = "tabControl2"; + this.tabControl2.SelectedIndex = 0; + this.tabControl2.Size = new System.Drawing.Size(382, 203); + this.tabControl2.TabIndex = 18; + // + // tabPage3 + // + this.tabPage3.Location = new System.Drawing.Point(4, 22); + this.tabPage3.Name = "tabPage3"; + this.tabPage3.Padding = new System.Windows.Forms.Padding(3); + this.tabPage3.Size = new System.Drawing.Size(374, 177); + this.tabPage3.TabIndex = 0; + this.tabPage3.Text = "tabPage3"; + this.tabPage3.UseVisualStyleBackColor = true; + // + // tabPage4 + // + this.tabPage4.Location = new System.Drawing.Point(4, 22); + this.tabPage4.Name = "tabPage4"; + this.tabPage4.Padding = new System.Windows.Forms.Padding(3); + this.tabPage4.Size = new System.Drawing.Size(374, 177); + this.tabPage4.TabIndex = 1; + this.tabPage4.Text = "tabPage4"; + this.tabPage4.UseVisualStyleBackColor = true; + // + // f_PKM + // + this.f_PKM.Controls.Add(this.GB_PKM); + this.f_PKM.Location = new System.Drawing.Point(4, 22); + this.f_PKM.Name = "f_PKM"; + this.f_PKM.Size = new System.Drawing.Size(370, 262); + this.f_PKM.TabIndex = 2; + this.f_PKM.Text = "Pokemon"; + this.f_PKM.UseVisualStyleBackColor = true; + // + // GB_PKM + // + this.GB_PKM.Controls.Add(this.TB_SPEIV); + this.GB_PKM.Controls.Add(this.TB_SPDIV); + this.GB_PKM.Controls.Add(this.TB_SPAIV); + this.GB_PKM.Controls.Add(this.TB_DEFIV); + this.GB_PKM.Controls.Add(this.TB_ATKIV); + this.GB_PKM.Controls.Add(this.TB_HPIV); + this.GB_PKM.Controls.Add(this.TB_ATKEV); + this.GB_PKM.Controls.Add(this.TB_DEFEV); + this.GB_PKM.Controls.Add(this.TB_SPEEV); + this.GB_PKM.Controls.Add(this.TB_SPDEV); + this.GB_PKM.Controls.Add(this.TB_SPAEV); + this.GB_PKM.Controls.Add(this.TB_HPEV); + this.GB_PKM.Controls.Add(this.Label_Gender); + this.GB_PKM.Controls.Add(this.MT_AbilNo); + this.GB_PKM.Controls.Add(this.CB_Ability); + this.GB_PKM.Controls.Add(this.L_PKFriendship); + this.GB_PKM.Controls.Add(this.CB_Ball); + this.GB_PKM.Controls.Add(this.TB_Friendship); + this.GB_PKM.Controls.Add(this.TB_Level); + this.GB_PKM.Controls.Add(this.CB_Form); + this.GB_PKM.Controls.Add(this.checkBox1); + this.GB_PKM.Controls.Add(this.Label_PPups); + this.GB_PKM.Controls.Add(this.CB_PPu4); + this.GB_PKM.Controls.Add(this.CB_PPu3); + this.GB_PKM.Controls.Add(this.CB_PPu2); + this.GB_PKM.Controls.Add(this.CB_Move4); + this.GB_PKM.Controls.Add(this.CB_PPu1); + this.GB_PKM.Controls.Add(this.CB_Move3); + this.GB_PKM.Controls.Add(this.CB_Move2); + this.GB_PKM.Controls.Add(this.CB_Move1); + this.GB_PKM.Controls.Add(this.label23); + this.GB_PKM.Controls.Add(this.NUD_FPKM); + this.GB_PKM.Controls.Add(this.CB_Species); + this.GB_PKM.Controls.Add(this.CB_HeldItem); + this.GB_PKM.Controls.Add(this.CB_Nature); + this.GB_PKM.Controls.Add(this.label22); + this.GB_PKM.Controls.Add(this.TB_EC); + this.GB_PKM.Controls.Add(this.label21); + this.GB_PKM.Controls.Add(this.label20); + this.GB_PKM.Controls.Add(this.label17); + this.GB_PKM.Controls.Add(this.label18); + this.GB_PKM.Controls.Add(this.label19); + this.GB_PKM.Controls.Add(this.label16); + this.GB_PKM.Controls.Add(this.label15); + this.GB_PKM.Controls.Add(this.label14); + this.GB_PKM.Location = new System.Drawing.Point(0, 0); + this.GB_PKM.Name = "GB_PKM"; + this.GB_PKM.Size = new System.Drawing.Size(369, 263); + this.GB_PKM.TabIndex = 84; + this.GB_PKM.TabStop = false; + // + // TB_SPEIV + // + this.TB_SPEIV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_SPEIV.Location = new System.Drawing.Point(265, 138); + this.TB_SPEIV.Mask = "00"; + this.TB_SPEIV.Name = "TB_SPEIV"; + this.TB_SPEIV.Size = new System.Drawing.Size(22, 20); + this.TB_SPEIV.TabIndex = 91; + this.TB_SPEIV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_SPDIV + // + this.TB_SPDIV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_SPDIV.Location = new System.Drawing.Point(265, 116); + this.TB_SPDIV.Mask = "00"; + this.TB_SPDIV.Name = "TB_SPDIV"; + this.TB_SPDIV.Size = new System.Drawing.Size(22, 20); + this.TB_SPDIV.TabIndex = 90; + this.TB_SPDIV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_SPAIV + // + this.TB_SPAIV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_SPAIV.Location = new System.Drawing.Point(265, 94); + this.TB_SPAIV.Mask = "00"; + this.TB_SPAIV.Name = "TB_SPAIV"; + this.TB_SPAIV.Size = new System.Drawing.Size(22, 20); + this.TB_SPAIV.TabIndex = 89; + this.TB_SPAIV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_DEFIV + // + this.TB_DEFIV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_DEFIV.Location = new System.Drawing.Point(265, 72); + this.TB_DEFIV.Mask = "00"; + this.TB_DEFIV.Name = "TB_DEFIV"; + this.TB_DEFIV.Size = new System.Drawing.Size(22, 20); + this.TB_DEFIV.TabIndex = 88; + this.TB_DEFIV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_ATKIV + // + this.TB_ATKIV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_ATKIV.Location = new System.Drawing.Point(265, 50); + this.TB_ATKIV.Mask = "00"; + this.TB_ATKIV.Name = "TB_ATKIV"; + this.TB_ATKIV.Size = new System.Drawing.Size(22, 20); + this.TB_ATKIV.TabIndex = 87; + this.TB_ATKIV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_HPIV + // + this.TB_HPIV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_HPIV.Location = new System.Drawing.Point(265, 28); + this.TB_HPIV.Mask = "00"; + this.TB_HPIV.Name = "TB_HPIV"; + this.TB_HPIV.Size = new System.Drawing.Size(22, 20); + this.TB_HPIV.TabIndex = 86; + this.TB_HPIV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_ATKEV + // + this.TB_ATKEV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_ATKEV.Location = new System.Drawing.Point(293, 50); + this.TB_ATKEV.Mask = "000"; + this.TB_ATKEV.Name = "TB_ATKEV"; + this.TB_ATKEV.Size = new System.Drawing.Size(31, 20); + this.TB_ATKEV.TabIndex = 93; + this.TB_ATKEV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_DEFEV + // + this.TB_DEFEV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_DEFEV.Location = new System.Drawing.Point(293, 72); + this.TB_DEFEV.Mask = "000"; + this.TB_DEFEV.Name = "TB_DEFEV"; + this.TB_DEFEV.Size = new System.Drawing.Size(31, 20); + this.TB_DEFEV.TabIndex = 94; + this.TB_DEFEV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_SPEEV + // + this.TB_SPEEV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_SPEEV.Location = new System.Drawing.Point(293, 138); + this.TB_SPEEV.Mask = "000"; + this.TB_SPEEV.Name = "TB_SPEEV"; + this.TB_SPEEV.Size = new System.Drawing.Size(31, 20); + this.TB_SPEEV.TabIndex = 97; + this.TB_SPEEV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_SPDEV + // + this.TB_SPDEV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_SPDEV.Location = new System.Drawing.Point(293, 116); + this.TB_SPDEV.Mask = "000"; + this.TB_SPDEV.Name = "TB_SPDEV"; + this.TB_SPDEV.Size = new System.Drawing.Size(31, 20); + this.TB_SPDEV.TabIndex = 96; + this.TB_SPDEV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_SPAEV + // + this.TB_SPAEV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_SPAEV.Location = new System.Drawing.Point(293, 94); + this.TB_SPAEV.Mask = "000"; + this.TB_SPAEV.Name = "TB_SPAEV"; + this.TB_SPAEV.Size = new System.Drawing.Size(31, 20); + this.TB_SPAEV.TabIndex = 95; + this.TB_SPAEV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // TB_HPEV + // + this.TB_HPEV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_HPEV.Location = new System.Drawing.Point(293, 28); + this.TB_HPEV.Mask = "000"; + this.TB_HPEV.Name = "TB_HPEV"; + this.TB_HPEV.Size = new System.Drawing.Size(31, 20); + this.TB_HPEV.TabIndex = 92; + this.TB_HPEV.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // Label_Gender + // + this.Label_Gender.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Label_Gender.Location = new System.Drawing.Point(174, 69); + this.Label_Gender.Name = "Label_Gender"; + this.Label_Gender.Size = new System.Drawing.Size(16, 13); + this.Label_Gender.TabIndex = 85; + this.Label_Gender.Text = "-"; + this.Label_Gender.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.Label_Gender.Click += new System.EventHandler(this.Label_Gender_Click); + // + // MT_AbilNo + // + this.MT_AbilNo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.MT_AbilNo.Location = new System.Drawing.Point(146, 110); + this.MT_AbilNo.Mask = "000"; + this.MT_AbilNo.Name = "MT_AbilNo"; + this.MT_AbilNo.Size = new System.Drawing.Size(22, 20); + this.MT_AbilNo.TabIndex = 84; + this.MT_AbilNo.Text = "0"; + this.MT_AbilNo.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.MT_AbilNo.Visible = false; + // + // CB_Ability + // + this.CB_Ability.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Ability.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Ability.FormattingEnabled = true; + this.CB_Ability.Location = new System.Drawing.Point(15, 110); + this.CB_Ability.Name = "CB_Ability"; + this.CB_Ability.Size = new System.Drawing.Size(122, 21); + this.CB_Ability.TabIndex = 83; + // + // L_PKFriendship + // + this.L_PKFriendship.AutoSize = true; + this.L_PKFriendship.Location = new System.Drawing.Point(265, 166); + this.L_PKFriendship.Name = "L_PKFriendship"; + this.L_PKFriendship.Size = new System.Drawing.Size(55, 13); + this.L_PKFriendship.TabIndex = 82; + this.L_PKFriendship.Text = "Friendship"; + // + // CB_Ball + // + this.CB_Ball.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.CB_Ball.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Ball.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Ball.FormattingEnabled = true; + this.CB_Ball.Location = new System.Drawing.Point(226, 217); + this.CB_Ball.Name = "CB_Ball"; + this.CB_Ball.Size = new System.Drawing.Size(122, 21); + this.CB_Ball.TabIndex = 81; + // + // TB_Friendship + // + this.TB_Friendship.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.TB_Friendship.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_Friendship.Location = new System.Drawing.Point(326, 164); + this.TB_Friendship.Mask = "000"; + this.TB_Friendship.Name = "TB_Friendship"; + this.TB_Friendship.Size = new System.Drawing.Size(22, 20); + this.TB_Friendship.TabIndex = 80; + // + // TB_Level + // + this.TB_Level.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_Level.Location = new System.Drawing.Point(146, 67); + this.TB_Level.Mask = "000"; + this.TB_Level.Name = "TB_Level"; + this.TB_Level.Size = new System.Drawing.Size(22, 20); + this.TB_Level.TabIndex = 79; + this.TB_Level.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // CB_Form + // + this.CB_Form.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_Form.DropDownWidth = 85; + this.CB_Form.Enabled = false; + this.CB_Form.FormattingEnabled = true; + this.CB_Form.Location = new System.Drawing.Point(68, 88); + this.CB_Form.Name = "CB_Form"; + this.CB_Form.Size = new System.Drawing.Size(69, 21); + this.CB_Form.TabIndex = 78; + this.CB_Form.SelectedIndexChanged += new System.EventHandler(this.updateForm); + // + // checkBox1 + // + this.checkBox1.AutoSize = true; + this.checkBox1.Location = new System.Drawing.Point(146, 92); + this.checkBox1.Name = "checkBox1"; + this.checkBox1.Size = new System.Drawing.Size(38, 17); + this.checkBox1.TabIndex = 77; + this.checkBox1.Text = "☆"; + this.checkBox1.UseVisualStyleBackColor = true; + // + // Label_PPups + // + this.Label_PPups.Location = new System.Drawing.Point(142, 145); + this.Label_PPups.Name = "Label_PPups"; + this.Label_PPups.Size = new System.Drawing.Size(45, 13); + this.Label_PPups.TabIndex = 75; + this.Label_PPups.Text = "PP Ups"; + this.Label_PPups.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // CB_PPu4 + // + this.CB_PPu4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_PPu4.FormattingEnabled = true; + this.CB_PPu4.Items.AddRange(new object[] { + "0", + "1", + "2", + "3"}); + this.CB_PPu4.Location = new System.Drawing.Point(145, 225); + this.CB_PPu4.Name = "CB_PPu4"; + this.CB_PPu4.Size = new System.Drawing.Size(38, 21); + this.CB_PPu4.TabIndex = 76; + // + // CB_PPu3 + // + this.CB_PPu3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_PPu3.FormattingEnabled = true; + this.CB_PPu3.Items.AddRange(new object[] { + "0", + "1", + "2", + "3"}); + this.CB_PPu3.Location = new System.Drawing.Point(145, 203); + this.CB_PPu3.Name = "CB_PPu3"; + this.CB_PPu3.Size = new System.Drawing.Size(38, 21); + this.CB_PPu3.TabIndex = 73; + // + // CB_PPu2 + // + this.CB_PPu2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_PPu2.FormattingEnabled = true; + this.CB_PPu2.Items.AddRange(new object[] { + "0", + "1", + "2", + "3"}); + this.CB_PPu2.Location = new System.Drawing.Point(145, 181); + this.CB_PPu2.Name = "CB_PPu2"; + this.CB_PPu2.Size = new System.Drawing.Size(38, 21); + this.CB_PPu2.TabIndex = 71; + // + // CB_Move4 + // + this.CB_Move4.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Move4.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move4.FormattingEnabled = true; + this.CB_Move4.Location = new System.Drawing.Point(15, 225); + this.CB_Move4.Name = "CB_Move4"; + this.CB_Move4.Size = new System.Drawing.Size(121, 21); + this.CB_Move4.TabIndex = 74; + // + // CB_PPu1 + // + this.CB_PPu1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.CB_PPu1.FormattingEnabled = true; + this.CB_PPu1.Items.AddRange(new object[] { + "0", + "1", + "2", + "3"}); + this.CB_PPu1.Location = new System.Drawing.Point(145, 159); + this.CB_PPu1.Name = "CB_PPu1"; + this.CB_PPu1.Size = new System.Drawing.Size(38, 21); + this.CB_PPu1.TabIndex = 69; + // + // CB_Move3 + // + this.CB_Move3.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Move3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move3.FormattingEnabled = true; + this.CB_Move3.Location = new System.Drawing.Point(15, 203); + this.CB_Move3.Name = "CB_Move3"; + this.CB_Move3.Size = new System.Drawing.Size(121, 21); + this.CB_Move3.TabIndex = 72; + // + // CB_Move2 + // + this.CB_Move2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Move2.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move2.FormattingEnabled = true; + this.CB_Move2.Location = new System.Drawing.Point(15, 181); + this.CB_Move2.Name = "CB_Move2"; + this.CB_Move2.Size = new System.Drawing.Size(121, 21); + this.CB_Move2.TabIndex = 70; + // + // CB_Move1 + // + this.CB_Move1.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Move1.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Move1.FormattingEnabled = true; + this.CB_Move1.Location = new System.Drawing.Point(15, 159); + this.CB_Move1.Name = "CB_Move1"; + this.CB_Move1.Size = new System.Drawing.Size(121, 21); + this.CB_Move1.TabIndex = 68; + // + // label23 + // + this.label23.AutoSize = true; + this.label23.Location = new System.Drawing.Point(12, 19); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(60, 13); + this.label23.TabIndex = 67; + this.label23.Text = "Participant:"; + // + // NUD_FPKM + // + this.NUD_FPKM.Location = new System.Drawing.Point(78, 17); + this.NUD_FPKM.Maximum = new decimal(new int[] { + 3, + 0, + 0, + 0}); + this.NUD_FPKM.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.NUD_FPKM.Name = "NUD_FPKM"; + this.NUD_FPKM.Size = new System.Drawing.Size(35, 20); + this.NUD_FPKM.TabIndex = 66; + this.NUD_FPKM.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.NUD_FPKM.ValueChanged += new System.EventHandler(this.changeFavPKM); + // + // CB_Species + // + this.CB_Species.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Species.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Species.FormattingEnabled = true; + this.CB_Species.Location = new System.Drawing.Point(15, 66); + this.CB_Species.Name = "CB_Species"; + this.CB_Species.Size = new System.Drawing.Size(122, 21); + this.CB_Species.TabIndex = 65; + this.CB_Species.SelectedIndexChanged += new System.EventHandler(this.updateSpecies); + // + // CB_HeldItem + // + this.CB_HeldItem.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_HeldItem.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_HeldItem.FormattingEnabled = true; + this.CB_HeldItem.Location = new System.Drawing.Point(15, 132); + this.CB_HeldItem.Name = "CB_HeldItem"; + this.CB_HeldItem.Size = new System.Drawing.Size(122, 21); + this.CB_HeldItem.TabIndex = 64; + // + // CB_Nature + // + this.CB_Nature.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.CB_Nature.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.CB_Nature.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems; + this.CB_Nature.FormattingEnabled = true; + this.CB_Nature.Location = new System.Drawing.Point(226, 190); + this.CB_Nature.Name = "CB_Nature"; + this.CB_Nature.Size = new System.Drawing.Size(122, 21); + this.CB_Nature.TabIndex = 63; + // + // label22 + // + this.label22.AutoSize = true; + this.label22.Location = new System.Drawing.Point(12, 47); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(32, 13); + this.label22.TabIndex = 62; + this.label22.Text = "ENC:"; + // + // TB_EC + // + this.TB_EC.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.TB_EC.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TB_EC.Location = new System.Drawing.Point(53, 45); + this.TB_EC.MaxLength = 8; + this.TB_EC.Name = "TB_EC"; + this.TB_EC.Size = new System.Drawing.Size(60, 20); + this.TB_EC.TabIndex = 61; + this.TB_EC.Text = "12345678"; + // + // label21 + // + this.label21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label21.AutoSize = true; + this.label21.Location = new System.Drawing.Point(294, 12); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(26, 13); + this.label21.TabIndex = 23; + this.label21.Text = "EVs"; + // + // label20 + // + this.label20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label20.AutoSize = true; + this.label20.Location = new System.Drawing.Point(265, 12); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(22, 13); + this.label20.TabIndex = 16; + this.label20.Text = "IVs"; + // + // label17 + // + this.label17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(235, 140); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(28, 13); + this.label17.TabIndex = 13; + this.label17.Text = "SPE"; + // + // label18 + // + this.label18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label18.AutoSize = true; + this.label18.Location = new System.Drawing.Point(235, 118); + this.label18.Name = "label18"; + this.label18.Size = new System.Drawing.Size(28, 13); + this.label18.TabIndex = 12; + this.label18.Text = "SpD"; + // + // label19 + // + this.label19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(236, 96); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(27, 13); + this.label19.TabIndex = 11; + this.label19.Text = "SpA"; + // + // label16 + // + this.label16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label16.AutoSize = true; + this.label16.Location = new System.Drawing.Point(235, 74); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(28, 13); + this.label16.TabIndex = 4; + this.label16.Text = "DEF"; + // + // label15 + // + this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(235, 52); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(28, 13); + this.label15.TabIndex = 3; + this.label15.Text = "ATK"; + // + // label14 + // + this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(241, 30); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(22, 13); + this.label14.TabIndex = 2; + this.label14.Text = "HP"; + // + // f_MAIN + // + this.f_MAIN.Controls.Add(this.groupBox1); + this.f_MAIN.Controls.Add(this.label8); + this.f_MAIN.Controls.Add(this.textBox1); + this.f_MAIN.Controls.Add(this.TB_FSay4); + this.f_MAIN.Controls.Add(this.TB_FSay3); + this.f_MAIN.Controls.Add(this.TB_FSay2); + this.f_MAIN.Controls.Add(this.TB_FSay1); + this.f_MAIN.Controls.Add(this.TB_FOT); + this.f_MAIN.Controls.Add(this.label7); + this.f_MAIN.Controls.Add(this.label6); + this.f_MAIN.Controls.Add(this.label5); + this.f_MAIN.Controls.Add(this.label4); + this.f_MAIN.Controls.Add(this.label3); + this.f_MAIN.Location = new System.Drawing.Point(4, 22); + this.f_MAIN.Name = "f_MAIN"; + this.f_MAIN.Padding = new System.Windows.Forms.Padding(3); + this.f_MAIN.Size = new System.Drawing.Size(370, 262); + this.f_MAIN.TabIndex = 0; + this.f_MAIN.Text = "Main"; + this.f_MAIN.UseVisualStyleBackColor = true; + // + // groupBox1 + // + this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBox1.Controls.Add(this.label13); + this.groupBox1.Controls.Add(this.label12); + this.groupBox1.Controls.Add(this.NUD_FX); + this.groupBox1.Controls.Add(this.NUD_FY); + this.groupBox1.Controls.Add(this.label11); + this.groupBox1.Controls.Add(this.label10); + this.groupBox1.Controls.Add(this.NUD_FRot); + this.groupBox1.Controls.Add(this.NUD_FObjType); + this.groupBox1.Controls.Add(this.label9); + this.groupBox1.Controls.Add(this.NUD_FObject); + this.groupBox1.Location = new System.Drawing.Point(6, 98); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(357, 163); + this.groupBox1.TabIndex = 13; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Object Layout"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(120, 47); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(71, 13); + this.label13.TabIndex = 9; + this.label13.Text = "Y Coordinate:"; + // + // label12 + // + this.label12.AutoSize = true; + this.label12.Location = new System.Drawing.Point(120, 21); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(71, 13); + this.label12.TabIndex = 8; + this.label12.Text = "X Coordinate:"; + // + // NUD_FX + // + this.NUD_FX.Location = new System.Drawing.Point(197, 19); + this.NUD_FX.Maximum = new decimal(new int[] { + 40, + 0, + 0, + 0}); + this.NUD_FX.Name = "NUD_FX"; + this.NUD_FX.Size = new System.Drawing.Size(36, 20); + this.NUD_FX.TabIndex = 7; + this.NUD_FX.ValueChanged += new System.EventHandler(this.changeObjectQuality); + // + // NUD_FY + // + this.NUD_FY.Location = new System.Drawing.Point(197, 45); + this.NUD_FY.Maximum = new decimal(new int[] { + 40, + 0, + 0, + 0}); + this.NUD_FY.Name = "NUD_FY"; + this.NUD_FY.Size = new System.Drawing.Size(36, 20); + this.NUD_FY.TabIndex = 6; + this.NUD_FY.ValueChanged += new System.EventHandler(this.changeObjectQuality); + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(6, 73); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(68, 13); + this.label11.TabIndex = 5; + this.label11.Text = "Rotation Val:"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.Location = new System.Drawing.Point(6, 47); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(68, 13); + this.label10.TabIndex = 4; + this.label10.Text = "Object Type:"; + // + // NUD_FRot + // + this.NUD_FRot.Location = new System.Drawing.Point(76, 71); + this.NUD_FRot.Maximum = new decimal(new int[] { + 7, + 0, + 0, + 0}); + this.NUD_FRot.Name = "NUD_FRot"; + this.NUD_FRot.Size = new System.Drawing.Size(36, 20); + this.NUD_FRot.TabIndex = 3; + this.NUD_FRot.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.NUD_FRot.ValueChanged += new System.EventHandler(this.changeObjectQuality); + // + // NUD_FObjType + // + this.NUD_FObjType.Location = new System.Drawing.Point(76, 45); + this.NUD_FObjType.Maximum = new decimal(new int[] { + 173, + 0, + 0, + 0}); + this.NUD_FObjType.Minimum = new decimal(new int[] { + 1, + 0, + 0, + -2147483648}); + this.NUD_FObjType.Name = "NUD_FObjType"; + this.NUD_FObjType.Size = new System.Drawing.Size(36, 20); + this.NUD_FObjType.TabIndex = 2; + this.NUD_FObjType.Value = new decimal(new int[] { + 1, + 0, + 0, + -2147483648}); + this.NUD_FObjType.ValueChanged += new System.EventHandler(this.changeObjectQuality); + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(6, 21); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(70, 13); + this.label9.TabIndex = 1; + this.label9.Text = "Object Index:"; + // + // NUD_FObject + // + this.NUD_FObject.Location = new System.Drawing.Point(76, 19); + this.NUD_FObject.Maximum = new decimal(new int[] { + 25, + 0, + 0, + 0}); + this.NUD_FObject.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.NUD_FObject.Name = "NUD_FObject"; + this.NUD_FObject.Size = new System.Drawing.Size(36, 20); + this.NUD_FObject.TabIndex = 0; + this.NUD_FObject.Value = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.NUD_FObject.ValueChanged += new System.EventHandler(this.changeObjectIndex); + // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(6, 35); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(112, 13); + this.label8.TabIndex = 11; + this.label8.Text = "Secret Base Location:"; + // + // textBox1 + // + this.textBox1.Enabled = false; + this.textBox1.Location = new System.Drawing.Point(134, 32); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(45, 20); + this.textBox1.TabIndex = 10; + // + // TB_FSay4 + // + this.TB_FSay4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.TB_FSay4.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TB_FSay4.Location = new System.Drawing.Point(240, 72); + this.TB_FSay4.MaxLength = 16; + this.TB_FSay4.Name = "TB_FSay4"; + this.TB_FSay4.Size = new System.Drawing.Size(124, 20); + this.TB_FSay4.TabIndex = 4; + // + // TB_FSay3 + // + this.TB_FSay3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.TB_FSay3.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TB_FSay3.Location = new System.Drawing.Point(240, 50); + this.TB_FSay3.MaxLength = 16; + this.TB_FSay3.Name = "TB_FSay3"; + this.TB_FSay3.Size = new System.Drawing.Size(124, 20); + this.TB_FSay3.TabIndex = 3; + // + // TB_FSay2 + // + this.TB_FSay2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.TB_FSay2.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TB_FSay2.Location = new System.Drawing.Point(240, 28); + this.TB_FSay2.MaxLength = 16; + this.TB_FSay2.Name = "TB_FSay2"; + this.TB_FSay2.Size = new System.Drawing.Size(124, 20); + this.TB_FSay2.TabIndex = 2; + // + // TB_FSay1 + // + this.TB_FSay1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.TB_FSay1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TB_FSay1.Location = new System.Drawing.Point(240, 6); + this.TB_FSay1.MaxLength = 16; + this.TB_FSay1.Name = "TB_FSay1"; + this.TB_FSay1.Size = new System.Drawing.Size(124, 20); + this.TB_FSay1.TabIndex = 1; + // + // TB_FOT + // + this.TB_FOT.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.TB_FOT.Location = new System.Drawing.Point(86, 6); + this.TB_FOT.MaxLength = 12; + this.TB_FOT.Name = "TB_FOT"; + this.TB_FOT.Size = new System.Drawing.Size(93, 20); + this.TB_FOT.TabIndex = 0; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.Location = new System.Drawing.Point(6, 9); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(74, 13); + this.label7.TabIndex = 9; + this.label7.Text = "Trainer Name:"; + // + // label6 + // + this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label6.AutoSize = true; + this.label6.Location = new System.Drawing.Point(188, 75); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(51, 13); + this.label6.TabIndex = 8; + this.label6.Text = "Saying 4:"; + this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(188, 53); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(51, 13); + this.label5.TabIndex = 7; + this.label5.Text = "Saying 3:"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label4 + // + this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label4.AutoSize = true; + this.label4.Location = new System.Drawing.Point(188, 31); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(51, 13); + this.label4.TabIndex = 6; + this.label4.Text = "Saying 2:"; + this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label3 + // + this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(188, 9); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(51, 13); + this.label3.TabIndex = 5; + this.label3.Text = "Saying 1:"; + this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // tabControl1 + // + this.tabControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tabControl1.Controls.Add(this.f_MAIN); + this.tabControl1.Controls.Add(this.f_PKM); + this.tabControl1.Location = new System.Drawing.Point(120, 9); + this.tabControl1.Name = "tabControl1"; + this.tabControl1.SelectedIndex = 0; + this.tabControl1.Size = new System.Drawing.Size(378, 288); + this.tabControl1.TabIndex = 17; + // + // B_GiveDecor + // + this.B_GiveDecor.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.B_GiveDecor.Location = new System.Drawing.Point(232, 2); + this.B_GiveDecor.Name = "B_GiveDecor"; + this.B_GiveDecor.Size = new System.Drawing.Size(112, 23); + this.B_GiveDecor.TabIndex = 19; + this.B_GiveDecor.Text = "Give All Decorations"; + this.B_GiveDecor.UseVisualStyleBackColor = true; + this.B_GiveDecor.Click += new System.EventHandler(this.B_GiveDecor_Click); + // + // B_FSave + // + this.B_FSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.B_FSave.Location = new System.Drawing.Point(96, 55); + this.B_FSave.Name = "B_FSave"; + this.B_FSave.Size = new System.Drawing.Size(18, 24); + this.B_FSave.TabIndex = 20; + this.B_FSave.Text = "<"; + this.B_FSave.UseVisualStyleBackColor = true; + this.B_FSave.Click += new System.EventHandler(this.B_FAV2SAV); + // + // SAV_SecretBase + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(514, 512); + this.Controls.Add(this.B_FSave); + this.Controls.Add(this.B_GiveDecor); + this.Controls.Add(this.tabControl2); + this.Controls.Add(this.B_Cancel); + this.Controls.Add(this.B_Save); + this.Controls.Add(this.tabControl1); + this.Controls.Add(this.button2); + this.Controls.Add(this.button3); + this.Controls.Add(this.button4); + this.Controls.Add(this.B_FDisplay); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.LB_Passerby); + this.Controls.Add(this.LB_Favorite); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "SAV_SecretBase"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Secret Base Editor"; + this.tabControl2.ResumeLayout(false); + this.f_PKM.ResumeLayout(false); + this.GB_PKM.ResumeLayout(false); + this.GB_PKM.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FPKM)).EndInit(); + this.f_MAIN.ResumeLayout(false); + this.f_MAIN.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.groupBox1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FX)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FY)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FRot)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FObjType)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.NUD_FObject)).EndInit(); + this.tabControl1.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button B_Save; + private System.Windows.Forms.Button B_Cancel; + private System.Windows.Forms.ListBox LB_Favorite; + private System.Windows.Forms.ListBox LB_Passerby; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button B_FDisplay; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.TabControl tabControl2; + private System.Windows.Forms.TabPage tabPage3; + private System.Windows.Forms.TabPage tabPage4; + private System.Windows.Forms.TabPage f_PKM; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Label label16; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label14; + private System.Windows.Forms.TabPage f_MAIN; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.NumericUpDown NUD_FX; + private System.Windows.Forms.NumericUpDown NUD_FY; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.NumericUpDown NUD_FRot; + private System.Windows.Forms.NumericUpDown NUD_FObjType; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.NumericUpDown NUD_FObject; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox TB_FSay4; + private System.Windows.Forms.TextBox TB_FSay3; + private System.Windows.Forms.TextBox TB_FSay2; + private System.Windows.Forms.TextBox TB_FSay1; + private System.Windows.Forms.TextBox TB_FOT; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TabControl tabControl1; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.TextBox TB_EC; + private System.Windows.Forms.ComboBox CB_HeldItem; + private System.Windows.Forms.ComboBox CB_Nature; + private System.Windows.Forms.Label label23; + private System.Windows.Forms.NumericUpDown NUD_FPKM; + public System.Windows.Forms.ComboBox CB_Species; + private System.Windows.Forms.CheckBox checkBox1; + private System.Windows.Forms.Label Label_PPups; + private System.Windows.Forms.ComboBox CB_PPu4; + private System.Windows.Forms.ComboBox CB_PPu3; + private System.Windows.Forms.ComboBox CB_PPu2; + private System.Windows.Forms.ComboBox CB_Move4; + private System.Windows.Forms.ComboBox CB_PPu1; + private System.Windows.Forms.ComboBox CB_Move3; + private System.Windows.Forms.ComboBox CB_Move2; + public System.Windows.Forms.ComboBox CB_Move1; + private System.Windows.Forms.ComboBox CB_Form; + public System.Windows.Forms.MaskedTextBox TB_Friendship; + private System.Windows.Forms.MaskedTextBox TB_Level; + private System.Windows.Forms.ComboBox CB_Ball; + private System.Windows.Forms.Label L_PKFriendship; + private System.Windows.Forms.ComboBox CB_Ability; + private System.Windows.Forms.GroupBox GB_PKM; + private System.Windows.Forms.MaskedTextBox MT_AbilNo; + private System.Windows.Forms.Label Label_Gender; + private System.Windows.Forms.Button B_GiveDecor; + private System.Windows.Forms.MaskedTextBox TB_SPEIV; + private System.Windows.Forms.MaskedTextBox TB_SPDIV; + private System.Windows.Forms.MaskedTextBox TB_SPAIV; + private System.Windows.Forms.MaskedTextBox TB_DEFIV; + private System.Windows.Forms.MaskedTextBox TB_ATKIV; + private System.Windows.Forms.MaskedTextBox TB_HPIV; + private System.Windows.Forms.MaskedTextBox TB_ATKEV; + private System.Windows.Forms.MaskedTextBox TB_DEFEV; + private System.Windows.Forms.MaskedTextBox TB_SPEEV; + private System.Windows.Forms.MaskedTextBox TB_SPDEV; + private System.Windows.Forms.MaskedTextBox TB_SPAEV; + private System.Windows.Forms.MaskedTextBox TB_HPEV; + private System.Windows.Forms.Button B_FSave; + } +} \ No newline at end of file diff --git a/SAV/SAV_SecretBase.cs b/SAV/SAV_SecretBase.cs new file mode 100644 index 000000000..ecbfe4570 --- /dev/null +++ b/SAV/SAV_SecretBase.cs @@ -0,0 +1,641 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using System.IO; + +namespace PKHeX +{ + public partial class SAV_SecretBase : Form + { + public SAV_SecretBase(Form1 frm1) + { + InitializeComponent(); + m_parent = frm1; + Array.Copy(m_parent.savefile, sav, 0x100000); + savindex = m_parent.savindex; + + specieslist = Form1.specieslist; + movelist = Form1.movelist; + itemlist = Form1.itemlist; + abilitylist = Form1.abilitylist; + natures = Form1.natures; + + setupComboBoxes(); + popFavorite(); + popFavorite(); + + LB_Favorite.SelectedIndex = 0; + B_SAV2FAV(null, null); + + if (LB_Passerby.Items.Count > 0) + LB_Passerby.SelectedIndex = 0; + } + Form1 m_parent; + public byte[] sav = new Byte[0x100000]; + public byte[] wondercard_data = new Byte[0x108]; + public bool editing = false; + private static uint ToUInt32(String value) + { + if (String.IsNullOrEmpty(value)) + return 0; + return UInt32.Parse(value); + } + public int savindex; int sv = 0; + private int fav_offset = 0x23A00; + private int pass_offset = 0x2B600 + 0x408; + private bool loading = true; + + public static string[] specieslist = { }; + public static string[] movelist = { }; + public static string[] itemlist = { }; + public static string[] abilitylist = { }; + public static string[] natures = { }; + + private void setupComboBoxes() + { + #region Balls + { + // Allowed Balls + int[] ball_nums = { 7, 576, 13, 492, 497, 14, 495, 493, 496, 494, 11, 498, 8, 6, 12, 15, 9, 5, 499, 10, 1, 16 }; + int[] ball_vals = { 7, 25, 13, 17, 22, 14, 20, 18, 21, 19, 11, 23, 8, 6, 12, 15, 9, 5, 24, 10, 1, 16 }; + + // Set up + List ball_list = new List(); + + for (int i = 4; i > 1; i--) // add 4,3,2 + { + // First 3 Balls are always first + cbItem ncbi = new cbItem(); + ncbi.Text = itemlist[i]; + ncbi.Value = i; + ball_list.Add(ncbi); + } + + // Sort the Rest based on String Name + string[] ballnames = new string[ball_nums.Length]; + for (int i = 0; i < ball_nums.Length; i++) + ballnames[i] = itemlist[ball_nums[i]]; + + string[] sortedballs = new string[ball_nums.Length]; + Array.Copy(ballnames, sortedballs, ballnames.Length); + Array.Sort(sortedballs); + + // Add the rest of the balls + for (int i = 0; i < sortedballs.Length; i++) + { + cbItem ncbi = new cbItem(); + ncbi.Text = sortedballs[i]; + ncbi.Value = ball_vals[Array.IndexOf(ballnames, sortedballs[i])]; + ball_list.Add(ncbi); + } + CB_Ball.DisplayMember = "Text"; + CB_Ball.ValueMember = "Value"; + CB_Ball.DataSource = ball_list; + } + #endregion + #region Held Items + { + // List of valid items to hold + int[] item_nums = { + 000,001,002,003,004,005,006,007,008,009,010,011,012,013,014,015,017,018,019,020,021,022,023,024,025,026,027,028,029,030,031,032,033,034,035, + 036,037,038,039,040,041,042,043,044,045,046,047,048,049,050,051,052,053,054,055,056,057,058,059,060,061,062,063,064,065,066,067,068,069,070, + 071,072,073,074,075,076,077,078,079,080,081,082,083,084,085,086,087,088,089,090,091,092,093,094,099,100,101,102,103,104,105,106,107,108,109, + 110,112,116,117,118,119,134,135,136,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174, + 175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209, + 210,211,212,213,214,215,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244, + 245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279, + 280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314, + 315,316,317,318,319,320,321,322,323,324,325,326,327,504,537,538,539,540,541,542,543,544,545,546,547,548,549,550,551,552,553,554,555,556,557, + 558,559,560,561,562,563,564,565,566,567,568,569,570,571,572,573,577,580,581,582,583,584,585,586,587,588,589,590,591,639,640,644,645,646,647, + 648,649,650,652,653,654,655,656,657,658,659,660,661,662,663,664,665,666,667,668,669,670,671,672,673,674,675,676,677,678,679,680,681,682,683, + 684,685,686,687,688,699,704,708,709,710,711,715, + + // Appended ORAS Items (Orbs & Mega Stones) + 534,535, + 752,753,754,755,756,757,758,759,760,761,762,763,764,767,768,769,770, + }; + List item_list = new List(); + // Sort the Rest based on String Name + string[] itemnames = new string[item_nums.Length]; + for (int i = 0; i < item_nums.Length; i++) + itemnames[i] = itemlist[item_nums[i]]; + + string[] sorteditems = new string[item_nums.Length]; + Array.Copy(itemnames, sorteditems, itemnames.Length); + Array.Sort(sorteditems); + + // Add the rest of the items + for (int i = 0; i < sorteditems.Length; i++) + { + cbItem ncbi = new cbItem(); + ncbi.Text = sorteditems[i]; + ncbi.Value = item_nums[Array.IndexOf(itemnames, sorteditems[i])]; + item_list.Add(ncbi); + } + CB_HeldItem.DisplayMember = "Text"; + CB_HeldItem.ValueMember = "Value"; + CB_HeldItem.DataSource = item_list; + } + #endregion + #region Species + { + List species_list = new List(); + // Sort the Rest based on String Name + string[] sortedspecies = new string[specieslist.Length]; + Array.Copy(specieslist, sortedspecies, specieslist.Length); + Array.Sort(sortedspecies); + + // Add the rest of the items + for (int i = 0; i < sortedspecies.Length; i++) + { + cbItem ncbi = new cbItem(); + ncbi.Text = sortedspecies[i]; + ncbi.Value = Array.IndexOf(specieslist, sortedspecies[i]); + species_list.Add(ncbi); + } + CB_Species.DisplayMember = "Text"; + CB_Species.ValueMember = "Value"; + CB_Species.DataSource = species_list; + } + #endregion + #region Natures + { + List natures_list = new List(); + // Sort the Rest based on String Name + string[] sortednatures = new string[natures.Length]; + Array.Copy(natures, sortednatures, natures.Length); + Array.Sort(sortednatures); + + // Add the rest of the items + for (int i = 0; i < sortednatures.Length; i++) + { + cbItem ncbi = new cbItem(); + ncbi.Text = sortednatures[i]; + ncbi.Value = Array.IndexOf(natures, sortednatures[i]); + natures_list.Add(ncbi); + } + CB_Nature.DisplayMember = "Text"; + CB_Nature.ValueMember = "Value"; + CB_Nature.DataSource = natures_list; + } + #endregion + #region Moves + { + List move_list = new List(); + // Sort the Rest based on String Name + string[] sortedmoves = new string[movelist.Length]; + Array.Copy(movelist, sortedmoves, movelist.Length); + Array.Sort(sortedmoves); + + // Add the rest of the items + for (int i = 0; i < sortedmoves.Length; i++) + { + cbItem ncbi = new cbItem(); + ncbi.Text = sortedmoves[i]; + ncbi.Value = Array.IndexOf(movelist, sortedmoves[i]); + move_list.Add(ncbi); + } + + CB_Move1.DisplayMember = CB_Move2.DisplayMember = CB_Move3.DisplayMember = CB_Move4.DisplayMember = "Text"; + CB_Move1.ValueMember = CB_Move2.ValueMember = CB_Move3.ValueMember = CB_Move4.ValueMember = "Value"; + + var move1_list = new BindingSource(move_list, null); + CB_Move1.DataSource = move1_list; + + var move2_list = new BindingSource(move_list, null); + CB_Move2.DataSource = move2_list; + + var move3_list = new BindingSource(move_list, null); + CB_Move3.DataSource = move3_list; + + var move4_list = new BindingSource(move_list, null); + CB_Move4.DataSource = move4_list; + } + #endregion + } + + // Repopulation Functions + private void popFavorite() + { + LB_Favorite.Items.Clear(); + + int playeroff = fav_offset + 0x5400 + 0x326; + int favoff = fav_offset + 0x5400 + 0x63A; + string OT = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + playeroff + 0x218, 0x1A)); + LB_Favorite.Items.Add("* " + OT); + for (int i = 0; i < 30; i++) + { + string BaseTrainer = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + favoff + i * 0x3E0 + 0x218, 0x1A)); + if (BaseTrainer.Length < 1 || BaseTrainer[0] == '\0') + BaseTrainer = "Empty"; + LB_Favorite.Items.Add(i.ToString() + " " + BaseTrainer); + } + } + private void popPasserby() + { + for (int i = 0; i < 30; i++) // Passerby + { + // Trainer Names + string BaseTrainer = Encoding.Unicode.GetString(sav, sv + pass_offset + (0x298) * i + 0x14, 0x1A); + LB_Passerby.Items.Add(i.ToString() + " " + BaseTrainer); + } + } + private void B_SAV2FAV(object sender, EventArgs e) + { + loading = true; + int index = LB_Favorite.SelectedIndex; + if (index < 0) return; + int offset = fav_offset + 0x5400 + 0x25A; + + // Base Offset Changing + if (index == 0) + offset = fav_offset + 0x5400 + 0x326; + else offset += 0x3E0 * index; + + string TrainerName = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + offset + 0x218, 0x1A)); + + string saying1 = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + offset + 0x276 + 0x22 * 0, 0x22)); + string saying2 = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + offset + 0x276 + 0x22 * 1, 0x22)); + string saying3 = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + offset + 0x276 + 0x22 * 2, 0x22)); + string saying4 = Util.TrimFromZero(Encoding.Unicode.GetString(sav, sv + offset + 0x276 + 0x22 * 3, 0x22)); + + int baseloc = BitConverter.ToInt16(sav, sv + offset); + textBox1.Text = baseloc.ToString(); + + TB_FOT.Text = TrainerName; TB_FSay1.Text = saying1; TB_FSay2.Text = saying2; TB_FSay3.Text = saying3; TB_FSay4.Text = saying4; + + // Gather data for Object Array + objdata = new byte[25, 12]; + for (int i = 0; i < 25; i++) + for (int z = 0; z < 12; z++) + objdata[i, z] = sav[sv + offset + 2 + 12 * i + z]; + NUD_FObject.Value = 1; // Trigger Update + changeObjectIndex(null, null); + + GB_PKM.Enabled = (index > 0); + + // Trainer Pokemon + pkmdata = new byte[3, 0x34]; + if (index > 0) + for (int i = 0; i < 3; i++) + for (int z = 0; z < 0x34; z++) + pkmdata[i, z] = sav[sv + offset + 0x32E + 0x34 * i + z]; + + NUD_FPKM.Value = 1; + changeFavPKM(null, null); // Trigger Update + + loading = false; + } + private byte[,] objdata; + private byte[,] pkmdata; + private void B_FAV2SAV(object sender, EventArgs e) + { + // Write data back to save + int index = LB_Favorite.SelectedIndex; // store for restoring + + if (index < 0) return; + int offset = fav_offset + 0x5400 + 0x25A; + + // Base Offset Changing + if (index == 0) + offset = fav_offset + 0x5400 + 0x326; + else offset += 0x3E0 * index; + + + + string TrainerName = TB_FOT.Text; + byte[] tr = Encoding.Unicode.GetBytes(TrainerName); + Array.Resize(ref tr, 0x22); Array.Copy(tr, 0, sav, sv + offset + 0x218, 0x1A); + + string saying1 = TB_FSay1.Text; + string saying2 = TB_FSay2.Text; + string saying3 = TB_FSay3.Text; + string saying4 = TB_FSay4.Text; + byte[] s1 = Encoding.Unicode.GetBytes(saying1); + Array.Resize(ref s1, 0x22); Array.Copy(s1, 0, sav, sv + offset + 0x276 + 0x22 * 0, 0x22); + byte[] s2 = Encoding.Unicode.GetBytes(saying2); + Array.Resize(ref s2, 0x22); Array.Copy(s2, 0, sav, sv + offset + 0x276 + 0x22 * 1, 0x22); + byte[] s3 = Encoding.Unicode.GetBytes(saying3); + Array.Resize(ref s3, 0x22); Array.Copy(s3, 0, sav, sv + offset + 0x276 + 0x22 * 2, 0x22); + byte[] s4 = Encoding.Unicode.GetBytes(saying4); + Array.Resize(ref s4, 0x22); Array.Copy(s4, 0, sav, sv + offset + 0x276 + 0x22 * 3, 0x22); + + int baseloc = Convert.ToInt16(textBox1.Text); + Array.Copy(BitConverter.GetBytes(baseloc), 0, sav, sv + offset, 2); + + TB_FOT.Text = TrainerName; TB_FSay1.Text = saying1; TB_FSay2.Text = saying2; TB_FSay3.Text = saying3; TB_FSay4.Text = saying4; + + // Copy back Objects + for (int i = 0; i < 25; i++) + for (int z = 0; z < 12; z++) + sav[sv + offset + 2 + 12 * i + z] = objdata[i, z]; + + if (GB_PKM.Enabled) // Copy pkm data back in + for (int i = 0; i < 3; i++) + for (int z = 0; z < 0x34; z++) + sav[sv + offset + 0x32E + 0x34 * i + z] = pkmdata[i, z]; + + popFavorite(); + LB_Favorite.SelectedIndex = index; + } + + // Button Specific + private void B_Cancel_Click(object sender, EventArgs e) + { + Close(); + } + private void B_Save_Click(object sender, EventArgs e) + { + Array.Copy(sav, m_parent.savefile, 0x100000); + m_parent.savedited = true; + Close(); + } + private void B_GiveDecor_Click(object sender, EventArgs e) + { + int offset = sv + 0x23A00 + 0x5400; + for (int i = 0; i < 173; i++) + { + int qty = BitConverter.ToUInt16(sav, offset + i * 4); + int has = BitConverter.ToUInt16(sav, offset + i * 4 + 2); + + if (qty == 0) // give 1. + { + sav[offset + i * 4] = (byte)(1 + 4 * Convert.ToInt16(ModifierKeys == Keys.Control)); // give 4 more if ctrl is pressed. + sav[offset + i * 4 + 2] = 1; + } + } + } + + private void changeObjectIndex(object sender, EventArgs e) + { + int objindex = (int)(NUD_FObject.Value) - 1; + byte[] objinfo = new Byte[12]; + for (int i = 0; i < 12; i++) + objinfo[i] = objdata[objindex, i]; + + // Array with object data acquired. Fill data. + int val = objinfo[0]; if (val == 0xFF) val = -1; + byte x = objinfo[2]; + byte y = objinfo[4]; + byte rot = objinfo[6]; + byte unk1 = objinfo[7]; + ushort unk2 = BitConverter.ToUInt16(objinfo, 0x8); + + // Set values to display + editing = true; + + NUD_FObjType.Value = val; + NUD_FX.Value = x; + NUD_FY.Value = y; + NUD_FRot.Value = rot; + + editing = false; + } + private void changeObjectQuality(object sender, EventArgs e) + { + if (editing) return; + + int objindex = (int)(NUD_FObject.Value) - 1; + + byte val = (byte)(NUD_FObjType.Value); + byte x = (byte)(NUD_FX.Value); + byte y = (byte)(NUD_FY.Value); + byte rot = (byte)(NUD_FRot.Value); + + objdata[objindex, 0] = val; + objdata[objindex, 2] = x; + objdata[objindex, 4] = y; + objdata[objindex, 6] = rot; + } + + private int currentpkm; + private void changeFavPKM(object sender, EventArgs e) + { + int index = (int)(NUD_FPKM.Value); + saveFavPKM(); // Save existing PKM + currentpkm = index; + loadFavPKM(); + } + private void saveFavPKM() + { + if (loading || !GB_PKM.Enabled) return; + int index = currentpkm; + byte[] pkm = new Byte[0x34]; + + Array.Copy(BitConverter.GetBytes(Util.getHEXval(TB_EC)), 0, pkm, 0, 4); // EC + Array.Copy(BitConverter.GetBytes(Util.getIndex(CB_Species)), 0, pkm, 8, 2); + Array.Copy(BitConverter.GetBytes(Util.getIndex(CB_HeldItem)), 0, pkm, 0xA, 2); + pkm[0xC] = (byte)Array.IndexOf(abilitylist, (CB_Ability.Text).Remove((CB_Ability.Text).Length - 4)); // Ability + pkm[0xD] = (byte)(CB_Ability.SelectedIndex << 1); // Number + pkm[0x14] = (byte)Util.getIndex(CB_Nature); + + int fegform = 0; + fegform += (Convert.ToInt32(Label_Gender.Text == "♀") * 2); // Female Gender + fegform += (Convert.ToInt32(Label_Gender.Text == "-") * 4); // Genderless + fegform += ((Util.getIndex(CB_Form)) * 8); + pkm[0x15] = (byte)fegform; + + pkm[0x16] = (byte)(Convert.ToByte( TB_HPEV.Text) & 0x1F); + pkm[0x17] = (byte)(Convert.ToByte(TB_ATKEV.Text) & 0x1F); + pkm[0x18] = (byte)(Convert.ToByte(TB_DEFEV.Text) & 0x1F); + pkm[0x19] = (byte)(Convert.ToByte(TB_SPAEV.Text) & 0x1F); + pkm[0x1A] = (byte)(Convert.ToByte(TB_SPDEV.Text) & 0x1F); + pkm[0x1B] = (byte)(Convert.ToByte(TB_SPEEV.Text) & 0x1F); + + Array.Copy(BitConverter.GetBytes(Util.getIndex(CB_Move1)), 0, pkm, 0x1C, 2); + Array.Copy(BitConverter.GetBytes(Util.getIndex(CB_Move2)), 0, pkm, 0x1E, 2); + Array.Copy(BitConverter.GetBytes(Util.getIndex(CB_Move3)), 0, pkm, 0x20, 2); + Array.Copy(BitConverter.GetBytes(Util.getIndex(CB_Move4)), 0, pkm, 0x22, 2); + + pkm[0x24] = (byte)CB_PPu1.SelectedIndex; + pkm[0x25] = (byte)CB_PPu2.SelectedIndex; + pkm[0x26] = (byte)CB_PPu3.SelectedIndex; + pkm[0x27] = (byte)CB_PPu4.SelectedIndex; + + pkm[0x28] = (byte)(Convert.ToByte(TB_HPIV.Text) & 0x1F); + pkm[0x29] = (byte)(Convert.ToByte(TB_ATKIV.Text) & 0x1F); + pkm[0x2A] = (byte)(Convert.ToByte(TB_DEFIV.Text) & 0x1F); + pkm[0x2B] = (byte)(Convert.ToByte(TB_SPAIV.Text) & 0x1F); + pkm[0x2C] = (byte)(Convert.ToByte(TB_SPDIV.Text) & 0x1F); + pkm[0x2D] = (byte)(Convert.ToByte(TB_SPEIV.Text) & 0x1F); + int shiny = (checkBox1.Checked? 1 : 0) << 6; + pkm[0x2D] |= (byte)shiny; + + pkm[0x2E] = Convert.ToByte(TB_Friendship.Text); + pkm[0x2F] = (byte)Util.getIndex(CB_Ball); + pkm[0x30] = Convert.ToByte(TB_Level.Text); + + for (int i = 0; i < 0x34; i++) // Copy data back to storage. + pkmdata[index - 1, i] = pkm[i]; + } + private void loadFavPKM() + { + int index = currentpkm - 1; + byte[] fpkm = new Byte[0x34]; + for (int i = 0; i < 0x34; i++) + fpkm[i] = pkmdata[index, i]; + + uint ec = BitConverter.ToUInt32(fpkm, 0); + uint unk = BitConverter.ToUInt32(fpkm, 4); + int spec = BitConverter.ToInt16(fpkm, 8); + int item = BitConverter.ToInt16(fpkm, 0xA); + int abil = fpkm[0xC]; + int abil_no = fpkm[0xD]; + MT_AbilNo.Text = abil_no.ToString(); + // 6 unknown bytes, contest? + + int nature = fpkm[0x14]; + byte genform = fpkm[0x15]; + genderflag = (genform >> 1) & 0x3; + setGenderLabel(); + + byte HP_EV = fpkm[0x16]; + byte AT_EV = fpkm[0x17]; + byte DE_EV = fpkm[0x18]; + byte SA_EV = fpkm[0x19]; + byte SD_EV = fpkm[0x1A]; + byte SP_EV = fpkm[0x1B]; + + int move1 = BitConverter.ToInt16(fpkm, 0x1C); + int move2 = BitConverter.ToInt16(fpkm, 0x1E); + int move3 = BitConverter.ToInt16(fpkm, 0x20); + int move4 = BitConverter.ToInt16(fpkm, 0x22); + + byte ppu1 = fpkm[0x24]; + byte ppu2 = fpkm[0x25]; + byte ppu3 = fpkm[0x26]; + byte ppu4 = fpkm[0x27]; + + byte HP_IV = fpkm[0x28]; + byte AT_IV = fpkm[0x29]; + byte DE_IV = fpkm[0x2A]; + byte SA_IV = fpkm[0x2B]; + byte SD_IV = fpkm[0x2C]; + byte SP_IV = fpkm[0x2D]; + + bool isshiny = ((SP_IV & 0x40) > 0); + SP_IV &= 0x40; + + byte friendship = fpkm[0x2E]; + int ball = fpkm[0x2F]; + byte level = fpkm[0x30]; + + // Put data into fields. + TB_EC.Text = ec.ToString("X8"); + CB_Species.SelectedValue = spec; + CB_HeldItem.SelectedValue = item; + + CB_Nature.SelectedValue = nature; + CB_Ball.SelectedValue = ball; + + TB_HPIV.Text = HP_IV.ToString(); + TB_ATKIV.Text = AT_IV.ToString(); + TB_DEFIV.Text = DE_IV.ToString(); + TB_SPAIV.Text = SA_IV.ToString(); + TB_SPDIV.Text = SD_IV.ToString(); + TB_SPEIV.Text = (SP_IV & 0x1F).ToString(); + + TB_HPEV.Text = HP_EV.ToString(); + TB_ATKEV.Text = AT_EV.ToString(); + TB_DEFEV.Text = DE_EV.ToString(); + TB_SPAEV.Text = SA_EV.ToString(); + TB_SPDEV.Text = SD_EV.ToString(); + TB_SPEEV.Text = SP_EV.ToString(); + + TB_Friendship.Text = friendship.ToString(); + TB_Level.Text = level.ToString(); + + CB_Move1.SelectedValue = move1; + CB_Move2.SelectedValue = move2; + CB_Move3.SelectedValue = move3; + CB_Move4.SelectedValue = move4; + CB_PPu1.SelectedIndex = ppu1; + CB_PPu2.SelectedIndex = ppu2; + CB_PPu3.SelectedIndex = ppu3; + CB_PPu4.SelectedIndex = ppu4; + + checkBox1.Checked = isshiny; + + // Set Form + m_parent.setForms(spec, CB_Form); + int form = genform >> 3; + CB_Form.SelectedIndex = form; + + // Set Ability + m_parent.updateAbilityList(MT_AbilNo, spec, CB_Ability, CB_Form); + } + + private void updateSpecies(object sender, EventArgs e) + { + int species = Util.getIndex(CB_Species); + + // Get Forms for Given Species + m_parent.setForms(species, CB_Form); + + // Check for Gender Changes + // Get Gender Threshold + species = Util.getIndex(CB_Species); + DataTable spectable = PKX.SpeciesTable(); + gt = (int)spectable.Rows[species][8]; + + if (gt == 258) // Genderless + genderflag = 2; + else if (gt == 257) // Female Only + genderflag = 1; + else if (gt == 256) // Male Only + genderflag = 0; + + setGenderLabel(); + m_parent.updateAbilityList(MT_AbilNo, Util.getIndex(CB_Species), CB_Ability, CB_Form); + } + + private void updateForm(object sender, EventArgs e) + { + m_parent.updateAbilityList(MT_AbilNo, Util.getIndex(CB_Species), CB_Ability, CB_Form); + + // If form has a single gender, account for it. + if (CB_Form.Text == "♂") + Label_Gender.Text = "♂"; + else if (CB_Form.Text == "♀") + Label_Gender.Text = "♀"; + } + private int species; private int gt; private int genderflag; + private void Label_Gender_Click(object sender, EventArgs e) + { + // Get Gender Threshold + species = Util.getIndex(CB_Species); + DataTable spectable = PKX.SpeciesTable(); + gt = (int)spectable.Rows[species][8]; + + if (gt > 255) // Single gender/genderless + return; + + if (gt < 256) // If not a single gender(less) species: + { + if (Label_Gender.Text == "♂") + Label_Gender.Text = "♀"; + else + Label_Gender.Text = "♂"; + } + } + private void setGenderLabel() + { + if (genderflag == 0) + { + // Gender = Male + Label_Gender.Text = "♂"; + } + else if (genderflag == 1) + { + // Gender = Female + Label_Gender.Text = "♀"; + } + else { Label_Gender.Text = "-"; } + } + } +} diff --git a/SAV/SAV_SecretBase.resx b/SAV/SAV_SecretBase.resx new file mode 100644 index 000000000..603f660be --- /dev/null +++ b/SAV/SAV_SecretBase.resx @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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, PublicKeyTo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