From ca16f08e365f0c0a7cbcc14b5fbbb5ce32272ad9 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 7 Jul 2018 12:22:30 -0700 Subject: [PATCH] Use new trainerstat control misc cleanup/reorg inside control --- .../Gen7/SAV_Trainer7.Designer.cs | 785 +++++++++--------- .../Save Editors/Gen7/SAV_Trainer7.cs | 45 +- .../Subforms/Save Editors/TrainerStat.cs | 21 +- 3 files changed, 384 insertions(+), 467 deletions(-) diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs index 284a93e9c..84b45faf7 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.Designer.cs @@ -100,17 +100,14 @@ private void InitializeComponent() this.L_SinglesC = new System.Windows.Forms.Label(); this.TC_Editor = new System.Windows.Forms.TabControl(); this.Tab_Overview = new System.Windows.Forms.TabPage(); + this.trainerID1 = new PKHeX.WinForms.Controls.TrainerID(); this.CB_Vivillon = new System.Windows.Forms.ComboBox(); this.L_Vivillon = new System.Windows.Forms.Label(); this.GB_Stats = new System.Windows.Forms.GroupBox(); - this.NUD_Stat = new System.Windows.Forms.NumericUpDown(); this.NUD_FC = new System.Windows.Forms.NumericUpDown(); this.NUD_BP = new System.Windows.Forms.NumericUpDown(); this.L_FC = new System.Windows.Forms.Label(); - this.L_Offset = new System.Windows.Forms.Label(); this.L_BP = new System.Windows.Forms.Label(); - this.L_Value = new System.Windows.Forms.Label(); - this.CB_Stats = new System.Windows.Forms.ComboBox(); this.CB_AlolaTime = new System.Windows.Forms.ComboBox(); this.L_AlolaTime = new System.Windows.Forms.Label(); this.GB_Adventure = new System.Windows.Forms.GroupBox(); @@ -204,11 +201,10 @@ private void InitializeComponent() this.NUD_Surf2 = new System.Windows.Forms.NumericUpDown(); this.NUD_Surf1 = new System.Windows.Forms.NumericUpDown(); this.NUD_Surf0 = new System.Windows.Forms.NumericUpDown(); - this.trainerID1 = new PKHeX.WinForms.Controls.TrainerID(); + this.TrainerStats = new PKHeX.WinForms.Subforms.Save_Editors.TrainerStat(); this.TC_Editor.SuspendLayout(); this.Tab_Overview.SuspendLayout(); this.GB_Stats.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.NUD_Stat)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.NUD_FC)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.NUD_BP)).BeginInit(); this.GB_Adventure.SuspendLayout(); @@ -248,9 +244,9 @@ private void InitializeComponent() ((System.ComponentModel.ISupportInitialize)(this.NUD_Surf1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.NUD_Surf0)).BeginInit(); this.SuspendLayout(); - // + // // B_Cancel - // + // this.B_Cancel.Location = new System.Drawing.Point(250, 334); this.B_Cancel.Name = "B_Cancel"; this.B_Cancel.Size = new System.Drawing.Size(75, 23); @@ -258,9 +254,9 @@ private void InitializeComponent() this.B_Cancel.Text = "Cancel"; this.B_Cancel.UseVisualStyleBackColor = true; this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click); - // + // // B_Save - // + // this.B_Save.Location = new System.Drawing.Point(331, 334); this.B_Save.Name = "B_Save"; this.B_Save.Size = new System.Drawing.Size(75, 23); @@ -268,9 +264,9 @@ private void InitializeComponent() this.B_Save.Text = "Save"; this.B_Save.UseVisualStyleBackColor = true; this.B_Save.Click += new System.EventHandler(this.B_Save_Click); - // + // // TB_OTName - // + // this.TB_OTName.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TB_OTName.Location = new System.Drawing.Point(99, 7); this.TB_OTName.MaxLength = 12; @@ -280,17 +276,17 @@ private void InitializeComponent() this.TB_OTName.Text = "WWWWWWWWWWWW"; this.TB_OTName.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.TB_OTName.MouseDown += new System.Windows.Forms.MouseEventHandler(this.ClickOT); - // + // // L_TrainerName - // + // this.L_TrainerName.Location = new System.Drawing.Point(7, 9); this.L_TrainerName.Name = "L_TrainerName"; this.L_TrainerName.Size = new System.Drawing.Size(87, 16); this.L_TrainerName.TabIndex = 3; this.L_TrainerName.Text = "Trainer Name:"; - // + // // MT_Money - // + // this.MT_Money.Location = new System.Drawing.Point(119, 29); this.MT_Money.Mask = "0000000"; this.MT_Money.Name = "MT_Money"; @@ -298,97 +294,97 @@ private void InitializeComponent() this.MT_Money.Size = new System.Drawing.Size(52, 20); this.MT_Money.TabIndex = 4; this.MT_Money.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // + // // L_Money - // + // this.L_Money.AutoSize = true; this.L_Money.Location = new System.Drawing.Point(102, 32); this.L_Money.Name = "L_Money"; this.L_Money.Size = new System.Drawing.Size(16, 13); this.L_Money.TabIndex = 5; this.L_Money.Text = "$:"; - // + // // L_Saying5 - // + // this.L_Saying5.Location = new System.Drawing.Point(0, 0); this.L_Saying5.Name = "L_Saying5"; this.L_Saying5.Size = new System.Drawing.Size(100, 23); this.L_Saying5.TabIndex = 0; - // + // // L_Saying4 - // + // this.L_Saying4.Location = new System.Drawing.Point(0, 0); this.L_Saying4.Name = "L_Saying4"; this.L_Saying4.Size = new System.Drawing.Size(100, 23); this.L_Saying4.TabIndex = 0; - // + // // L_Saying3 - // + // this.L_Saying3.Location = new System.Drawing.Point(0, 0); this.L_Saying3.Name = "L_Saying3"; this.L_Saying3.Size = new System.Drawing.Size(100, 23); this.L_Saying3.TabIndex = 0; - // + // // L_Saying2 - // + // this.L_Saying2.Location = new System.Drawing.Point(0, 0); this.L_Saying2.Name = "L_Saying2"; this.L_Saying2.Size = new System.Drawing.Size(100, 23); this.L_Saying2.TabIndex = 0; - // + // // L_Saying1 - // + // this.L_Saying1.Location = new System.Drawing.Point(0, 0); this.L_Saying1.Name = "L_Saying1"; this.L_Saying1.Size = new System.Drawing.Size(100, 23); this.L_Saying1.TabIndex = 0; - // + // // TB_Saying5 - // + // this.TB_Saying5.Location = new System.Drawing.Point(0, 0); this.TB_Saying5.Name = "TB_Saying5"; this.TB_Saying5.Size = new System.Drawing.Size(100, 20); this.TB_Saying5.TabIndex = 0; - // + // // TB_Saying4 - // + // this.TB_Saying4.Location = new System.Drawing.Point(0, 0); this.TB_Saying4.Name = "TB_Saying4"; this.TB_Saying4.Size = new System.Drawing.Size(100, 20); this.TB_Saying4.TabIndex = 0; - // + // // TB_Saying3 - // + // this.TB_Saying3.Location = new System.Drawing.Point(0, 0); this.TB_Saying3.Name = "TB_Saying3"; this.TB_Saying3.Size = new System.Drawing.Size(100, 20); this.TB_Saying3.TabIndex = 0; - // + // // TB_Saying2 - // + // this.TB_Saying2.Location = new System.Drawing.Point(0, 0); this.TB_Saying2.Name = "TB_Saying2"; this.TB_Saying2.Size = new System.Drawing.Size(100, 20); this.TB_Saying2.TabIndex = 0; - // + // // TB_Saying1 - // + // this.TB_Saying1.Location = new System.Drawing.Point(0, 0); this.TB_Saying1.Name = "TB_Saying1"; this.TB_Saying1.Size = new System.Drawing.Size(100, 20); this.TB_Saying1.TabIndex = 0; - // + // // L_LastSaved - // + // this.L_LastSaved.Location = new System.Drawing.Point(3, 110); this.L_LastSaved.Name = "L_LastSaved"; this.L_LastSaved.Size = new System.Drawing.Size(80, 20); this.L_LastSaved.TabIndex = 32; this.L_LastSaved.Text = "Last Saved:"; this.L_LastSaved.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CAL_LastSavedDate - // + // this.CAL_LastSavedDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.CAL_LastSavedDate.Location = new System.Drawing.Point(89, 110); this.CAL_LastSavedDate.MaxDate = new System.DateTime(4095, 12, 31, 0, 0, 0, 0); @@ -396,27 +392,27 @@ private void InitializeComponent() this.CAL_LastSavedDate.Size = new System.Drawing.Size(99, 20); this.CAL_LastSavedDate.TabIndex = 31; this.CAL_LastSavedDate.Value = new System.DateTime(2000, 1, 1, 0, 0, 0, 0); - // + // // L_Seconds - // + // this.L_Seconds.AutoSize = true; this.L_Seconds.Location = new System.Drawing.Point(136, 17); this.L_Seconds.Name = "L_Seconds"; this.L_Seconds.Size = new System.Drawing.Size(29, 13); this.L_Seconds.TabIndex = 30; this.L_Seconds.Text = "Sec:"; - // + // // L_Minutes - // + // this.L_Minutes.AutoSize = true; this.L_Minutes.Location = new System.Drawing.Point(84, 17); this.L_Minutes.Name = "L_Minutes"; this.L_Minutes.Size = new System.Drawing.Size(27, 13); this.L_Minutes.TabIndex = 29; this.L_Minutes.Text = "Min:"; - // + // // MT_Seconds - // + // this.MT_Seconds.Location = new System.Drawing.Point(166, 14); this.MT_Seconds.Mask = "00"; this.MT_Seconds.Name = "MT_Seconds"; @@ -424,9 +420,9 @@ private void InitializeComponent() this.MT_Seconds.TabIndex = 28; this.MT_Seconds.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.MT_Seconds.TextChanged += new System.EventHandler(this.Change255); - // + // // MT_Minutes - // + // this.MT_Minutes.Location = new System.Drawing.Point(111, 14); this.MT_Minutes.Mask = "00"; this.MT_Minutes.Name = "MT_Minutes"; @@ -434,63 +430,63 @@ private void InitializeComponent() this.MT_Minutes.TabIndex = 27; this.MT_Minutes.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.MT_Minutes.TextChanged += new System.EventHandler(this.Change255); - // + // // L_Hours - // + // this.L_Hours.AutoSize = true; this.L_Hours.Location = new System.Drawing.Point(12, 17); this.L_Hours.Name = "L_Hours"; this.L_Hours.Size = new System.Drawing.Size(26, 13); this.L_Hours.TabIndex = 26; this.L_Hours.Text = "Hrs:"; - // + // // MT_Hours - // + // this.MT_Hours.Location = new System.Drawing.Point(44, 14); this.MT_Hours.Mask = "00000"; this.MT_Hours.Name = "MT_Hours"; this.MT_Hours.Size = new System.Drawing.Size(38, 20); this.MT_Hours.TabIndex = 25; this.MT_Hours.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // + // // L_Language - // + // this.L_Language.Location = new System.Drawing.Point(202, 82); this.L_Language.Name = "L_Language"; this.L_Language.Size = new System.Drawing.Size(80, 13); this.L_Language.TabIndex = 21; this.L_Language.Text = "Language:"; this.L_Language.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_Region - // + // this.L_Region.Location = new System.Drawing.Point(202, 32); this.L_Region.Name = "L_Region"; this.L_Region.Size = new System.Drawing.Size(80, 13); this.L_Region.TabIndex = 20; this.L_Region.Text = "Sub Region:"; this.L_Region.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_Country - // + // this.L_Country.Location = new System.Drawing.Point(202, 10); this.L_Country.Name = "L_Country"; this.L_Country.Size = new System.Drawing.Size(80, 13); this.L_Country.TabIndex = 19; this.L_Country.Text = "Country:"; this.L_Country.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_Region - // + // this.CB_Region.DropDownWidth = 180; this.CB_Region.FormattingEnabled = true; this.CB_Region.Location = new System.Drawing.Point(287, 29); this.CB_Region.Name = "CB_Region"; this.CB_Region.Size = new System.Drawing.Size(93, 21); this.CB_Region.TabIndex = 18; - // + // // CB_Country - // + // this.CB_Country.DropDownWidth = 180; this.CB_Country.FormattingEnabled = true; this.CB_Country.Location = new System.Drawing.Point(287, 7); @@ -498,45 +494,45 @@ private void InitializeComponent() this.CB_Country.Size = new System.Drawing.Size(93, 21); this.CB_Country.TabIndex = 17; this.CB_Country.SelectedIndexChanged += new System.EventHandler(this.UpdateCountry); - // + // // B_MaxCash - // + // this.B_MaxCash.Location = new System.Drawing.Point(172, 29); this.B_MaxCash.Name = "B_MaxCash"; this.B_MaxCash.Size = new System.Drawing.Size(20, 20); this.B_MaxCash.TabIndex = 16; this.B_MaxCash.Text = "+"; this.B_MaxCash.UseVisualStyleBackColor = true; - // + // // CB_3DSReg - // + // this.CB_3DSReg.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_3DSReg.FormattingEnabled = true; this.CB_3DSReg.Location = new System.Drawing.Point(287, 51); this.CB_3DSReg.Name = "CB_3DSReg"; this.CB_3DSReg.Size = new System.Drawing.Size(93, 21); this.CB_3DSReg.TabIndex = 14; - // + // // CB_Language - // + // this.CB_Language.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_Language.FormattingEnabled = true; this.CB_Language.Location = new System.Drawing.Point(287, 79); this.CB_Language.Name = "CB_Language"; this.CB_Language.Size = new System.Drawing.Size(93, 21); this.CB_Language.TabIndex = 15; - // + // // L_3DSReg - // + // this.L_3DSReg.Location = new System.Drawing.Point(202, 54); this.L_3DSReg.Name = "L_3DSReg"; this.L_3DSReg.Size = new System.Drawing.Size(80, 13); this.L_3DSReg.TabIndex = 10; this.L_3DSReg.Text = "3DS Region:"; this.L_3DSReg.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_Game - // + // this.CB_Game.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_Game.FormattingEnabled = true; this.CB_Game.Items.AddRange(new object[] { @@ -548,9 +544,9 @@ private void InitializeComponent() this.CB_Game.Name = "CB_Game"; this.CB_Game.Size = new System.Drawing.Size(51, 21); this.CB_Game.TabIndex = 24; - // + // // CB_Gender - // + // this.CB_Gender.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_Gender.Enabled = false; this.CB_Gender.FormattingEnabled = true; @@ -561,247 +557,247 @@ private void InitializeComponent() this.CB_Gender.Name = "CB_Gender"; this.CB_Gender.Size = new System.Drawing.Size(40, 21); this.CB_Gender.TabIndex = 22; - // + // // TB_MBMS - // + // this.TB_MBMS.Location = new System.Drawing.Point(0, 0); this.TB_MBMS.Name = "TB_MBMS"; this.TB_MBMS.Size = new System.Drawing.Size(100, 20); this.TB_MBMS.TabIndex = 0; - // + // // TB_MBMN - // + // this.TB_MBMN.Location = new System.Drawing.Point(0, 0); this.TB_MBMN.Name = "TB_MBMN"; this.TB_MBMN.Size = new System.Drawing.Size(100, 20); this.TB_MBMN.TabIndex = 0; - // + // // TB_MBRS - // + // this.TB_MBRS.Location = new System.Drawing.Point(0, 0); this.TB_MBRS.Name = "TB_MBRS"; this.TB_MBRS.Size = new System.Drawing.Size(100, 20); this.TB_MBRS.TabIndex = 0; - // + // // TB_MBRN - // + // this.TB_MBRN.Location = new System.Drawing.Point(0, 0); this.TB_MBRN.Name = "TB_MBRN"; this.TB_MBRN.Size = new System.Drawing.Size(100, 20); this.TB_MBRN.TabIndex = 0; - // + // // TB_MBTS - // + // this.TB_MBTS.Location = new System.Drawing.Point(0, 0); this.TB_MBTS.Name = "TB_MBTS"; this.TB_MBTS.Size = new System.Drawing.Size(100, 20); this.TB_MBTS.TabIndex = 0; - // + // // TB_MBTN - // + // this.TB_MBTN.Location = new System.Drawing.Point(0, 0); this.TB_MBTN.Name = "TB_MBTN"; this.TB_MBTN.Size = new System.Drawing.Size(100, 20); this.TB_MBTN.TabIndex = 0; - // + // // TB_MBDS - // + // this.TB_MBDS.Location = new System.Drawing.Point(0, 0); this.TB_MBDS.Name = "TB_MBDS"; this.TB_MBDS.Size = new System.Drawing.Size(100, 20); this.TB_MBDS.TabIndex = 0; - // + // // TB_MBDN - // + // this.TB_MBDN.Location = new System.Drawing.Point(0, 0); this.TB_MBDN.Name = "TB_MBDN"; this.TB_MBDN.Size = new System.Drawing.Size(100, 20); this.TB_MBDN.TabIndex = 0; - // + // // TB_MBSS - // + // this.TB_MBSS.Location = new System.Drawing.Point(0, 0); this.TB_MBSS.Name = "TB_MBSS"; this.TB_MBSS.Size = new System.Drawing.Size(100, 20); this.TB_MBSS.TabIndex = 0; - // + // // TB_MBSN - // + // this.TB_MBSN.Location = new System.Drawing.Point(0, 0); this.TB_MBSN.Name = "TB_MBSN"; this.TB_MBSN.Size = new System.Drawing.Size(100, 20); this.TB_MBSN.TabIndex = 0; - // + // // L_SuperB - // + // this.L_SuperB.Location = new System.Drawing.Point(0, 0); this.L_SuperB.Name = "L_SuperB"; this.L_SuperB.Size = new System.Drawing.Size(100, 23); this.L_SuperB.TabIndex = 0; - // + // // L_NormalB - // + // this.L_NormalB.Location = new System.Drawing.Point(0, 0); this.L_NormalB.Name = "L_NormalB"; this.L_NormalB.Size = new System.Drawing.Size(100, 23); this.L_NormalB.TabIndex = 0; - // + // // L_MultiB - // + // this.L_MultiB.Location = new System.Drawing.Point(0, 0); this.L_MultiB.Name = "L_MultiB"; this.L_MultiB.Size = new System.Drawing.Size(100, 23); this.L_MultiB.TabIndex = 0; - // + // // L_RotationB - // + // this.L_RotationB.Location = new System.Drawing.Point(0, 0); this.L_RotationB.Name = "L_RotationB"; this.L_RotationB.Size = new System.Drawing.Size(100, 23); this.L_RotationB.TabIndex = 0; - // + // // L_TriplesB - // + // this.L_TriplesB.Location = new System.Drawing.Point(0, 0); this.L_TriplesB.Name = "L_TriplesB"; this.L_TriplesB.Size = new System.Drawing.Size(100, 23); this.L_TriplesB.TabIndex = 0; - // + // // L_DoublesB - // + // this.L_DoublesB.Location = new System.Drawing.Point(0, 0); this.L_DoublesB.Name = "L_DoublesB"; this.L_DoublesB.Size = new System.Drawing.Size(100, 23); this.L_DoublesB.TabIndex = 0; - // + // // L_SinglesB - // + // this.L_SinglesB.Location = new System.Drawing.Point(0, 0); this.L_SinglesB.Name = "L_SinglesB"; this.L_SinglesB.Size = new System.Drawing.Size(100, 23); this.L_SinglesB.TabIndex = 0; - // + // // TB_MCMS - // + // this.TB_MCMS.Location = new System.Drawing.Point(0, 0); this.TB_MCMS.Name = "TB_MCMS"; this.TB_MCMS.Size = new System.Drawing.Size(100, 20); this.TB_MCMS.TabIndex = 0; - // + // // TB_MCMN - // + // this.TB_MCMN.Location = new System.Drawing.Point(0, 0); this.TB_MCMN.Name = "TB_MCMN"; this.TB_MCMN.Size = new System.Drawing.Size(100, 20); this.TB_MCMN.TabIndex = 0; - // + // // TB_MCRS - // + // this.TB_MCRS.Location = new System.Drawing.Point(0, 0); this.TB_MCRS.Name = "TB_MCRS"; this.TB_MCRS.Size = new System.Drawing.Size(100, 20); this.TB_MCRS.TabIndex = 0; - // + // // TB_MCRN - // + // this.TB_MCRN.Location = new System.Drawing.Point(0, 0); this.TB_MCRN.Name = "TB_MCRN"; this.TB_MCRN.Size = new System.Drawing.Size(100, 20); this.TB_MCRN.TabIndex = 0; - // + // // TB_MCTS - // + // this.TB_MCTS.Location = new System.Drawing.Point(0, 0); this.TB_MCTS.Name = "TB_MCTS"; this.TB_MCTS.Size = new System.Drawing.Size(100, 20); this.TB_MCTS.TabIndex = 0; - // + // // TB_MCTN - // + // this.TB_MCTN.Location = new System.Drawing.Point(0, 0); this.TB_MCTN.Name = "TB_MCTN"; this.TB_MCTN.Size = new System.Drawing.Size(100, 20); this.TB_MCTN.TabIndex = 0; - // + // // TB_MCDS - // + // this.TB_MCDS.Location = new System.Drawing.Point(0, 0); this.TB_MCDS.Name = "TB_MCDS"; this.TB_MCDS.Size = new System.Drawing.Size(100, 20); this.TB_MCDS.TabIndex = 0; - // + // // TB_MCDN - // + // this.TB_MCDN.Location = new System.Drawing.Point(0, 0); this.TB_MCDN.Name = "TB_MCDN"; this.TB_MCDN.Size = new System.Drawing.Size(100, 20); this.TB_MCDN.TabIndex = 0; - // + // // TB_MCSS - // + // this.TB_MCSS.Location = new System.Drawing.Point(0, 0); this.TB_MCSS.Name = "TB_MCSS"; this.TB_MCSS.Size = new System.Drawing.Size(100, 20); this.TB_MCSS.TabIndex = 0; - // + // // TB_MCSN - // + // this.TB_MCSN.Location = new System.Drawing.Point(0, 0); this.TB_MCSN.Name = "TB_MCSN"; this.TB_MCSN.Size = new System.Drawing.Size(100, 20); this.TB_MCSN.TabIndex = 0; - // + // // L_SuperC - // + // this.L_SuperC.Location = new System.Drawing.Point(0, 0); this.L_SuperC.Name = "L_SuperC"; this.L_SuperC.Size = new System.Drawing.Size(100, 23); this.L_SuperC.TabIndex = 0; - // + // // L_NormalC - // + // this.L_NormalC.Location = new System.Drawing.Point(0, 0); this.L_NormalC.Name = "L_NormalC"; this.L_NormalC.Size = new System.Drawing.Size(100, 23); this.L_NormalC.TabIndex = 0; - // + // // L_MultiC - // + // this.L_MultiC.Location = new System.Drawing.Point(0, 0); this.L_MultiC.Name = "L_MultiC"; this.L_MultiC.Size = new System.Drawing.Size(100, 23); this.L_MultiC.TabIndex = 0; - // + // // L_RotationC - // + // this.L_RotationC.Location = new System.Drawing.Point(0, 0); this.L_RotationC.Name = "L_RotationC"; this.L_RotationC.Size = new System.Drawing.Size(100, 23); this.L_RotationC.TabIndex = 0; - // + // // L_TriplesC - // + // this.L_TriplesC.Location = new System.Drawing.Point(0, 0); this.L_TriplesC.Name = "L_TriplesC"; this.L_TriplesC.Size = new System.Drawing.Size(100, 23); this.L_TriplesC.TabIndex = 0; - // + // // L_DoublesC - // + // this.L_DoublesC.Location = new System.Drawing.Point(0, 0); this.L_DoublesC.Name = "L_DoublesC"; this.L_DoublesC.Size = new System.Drawing.Size(100, 23); this.L_DoublesC.TabIndex = 0; - // + // // L_SinglesC - // + // this.L_SinglesC.Location = new System.Drawing.Point(0, 0); this.L_SinglesC.Name = "L_SinglesC"; this.L_SinglesC.Size = new System.Drawing.Size(100, 23); this.L_SinglesC.TabIndex = 0; - // + // // TC_Editor - // + // this.TC_Editor.Controls.Add(this.Tab_Overview); this.TC_Editor.Controls.Add(this.Tab_BadgeMap); this.TC_Editor.Controls.Add(this.Tab_BattleTree); @@ -812,9 +808,9 @@ private void InitializeComponent() this.TC_Editor.SelectedIndex = 0; this.TC_Editor.Size = new System.Drawing.Size(394, 316); this.TC_Editor.TabIndex = 54; - // + // // Tab_Overview - // + // this.Tab_Overview.Controls.Add(this.trainerID1); this.Tab_Overview.Controls.Add(this.CB_Vivillon); this.Tab_Overview.Controls.Add(this.L_Vivillon); @@ -844,52 +840,48 @@ private void InitializeComponent() this.Tab_Overview.TabIndex = 0; this.Tab_Overview.Text = "Overview"; this.Tab_Overview.UseVisualStyleBackColor = true; - // + // + // trainerID1 + // + this.trainerID1.Location = new System.Drawing.Point(6, 26); + this.trainerID1.Name = "trainerID1"; + this.trainerID1.Size = new System.Drawing.Size(90, 64); + this.trainerID1.TabIndex = 66; + // // CB_Vivillon - // + // this.CB_Vivillon.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_Vivillon.FormattingEnabled = true; this.CB_Vivillon.Location = new System.Drawing.Point(85, 98); this.CB_Vivillon.Name = "CB_Vivillon"; this.CB_Vivillon.Size = new System.Drawing.Size(93, 21); this.CB_Vivillon.TabIndex = 65; - // + // // L_Vivillon - // + // this.L_Vivillon.Location = new System.Drawing.Point(-1, 101); this.L_Vivillon.Name = "L_Vivillon"; this.L_Vivillon.Size = new System.Drawing.Size(80, 12); this.L_Vivillon.TabIndex = 64; this.L_Vivillon.Text = "Vivillon:"; this.L_Vivillon.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // GB_Stats - // - this.GB_Stats.Controls.Add(this.NUD_Stat); + // + this.GB_Stats.Controls.Add(this.TrainerStats); this.GB_Stats.Controls.Add(this.NUD_FC); this.GB_Stats.Controls.Add(this.NUD_BP); this.GB_Stats.Controls.Add(this.L_FC); - this.GB_Stats.Controls.Add(this.L_Offset); this.GB_Stats.Controls.Add(this.L_BP); - this.GB_Stats.Controls.Add(this.L_Value); - this.GB_Stats.Controls.Add(this.CB_Stats); this.GB_Stats.Location = new System.Drawing.Point(212, 130); this.GB_Stats.Name = "GB_Stats"; this.GB_Stats.Size = new System.Drawing.Size(171, 137); this.GB_Stats.TabIndex = 60; this.GB_Stats.TabStop = false; this.GB_Stats.Text = "Stats"; - // - // NUD_Stat - // - this.NUD_Stat.Location = new System.Drawing.Point(59, 90); - this.NUD_Stat.Name = "NUD_Stat"; - this.NUD_Stat.Size = new System.Drawing.Size(103, 20); - this.NUD_Stat.TabIndex = 31; - this.NUD_Stat.ValueChanged += new System.EventHandler(this.ChangeStatVal); - // + // // NUD_FC - // + // this.NUD_FC.Location = new System.Drawing.Point(96, 39); this.NUD_FC.Maximum = new decimal(new int[] { 9999999, @@ -904,9 +896,9 @@ private void InitializeComponent() 0, 0, 0}); - // + // // NUD_BP - // + // this.NUD_BP.Location = new System.Drawing.Point(96, 18); this.NUD_BP.Maximum = new decimal(new int[] { 9999, @@ -921,77 +913,45 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_FC - // + // this.L_FC.Location = new System.Drawing.Point(6, 37); this.L_FC.Name = "L_FC"; this.L_FC.Size = new System.Drawing.Size(84, 20); this.L_FC.TabIndex = 0; this.L_FC.Text = "Festa Coins:"; this.L_FC.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // L_Offset - // - this.L_Offset.Font = new System.Drawing.Font("Courier New", 8.25F); - this.L_Offset.Location = new System.Drawing.Point(22, 113); - this.L_Offset.Name = "L_Offset"; - this.L_Offset.Size = new System.Drawing.Size(140, 20); - this.L_Offset.TabIndex = 28; - this.L_Offset.Text = "(offset)"; - this.L_Offset.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_BP - // + // this.L_BP.Location = new System.Drawing.Point(9, 16); this.L_BP.Name = "L_BP"; this.L_BP.Size = new System.Drawing.Size(81, 20); this.L_BP.TabIndex = 1; this.L_BP.Text = "BP:"; this.L_BP.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // L_Value - // - this.L_Value.AutoSize = true; - this.L_Value.Location = new System.Drawing.Point(19, 92); - this.L_Value.Name = "L_Value"; - this.L_Value.Size = new System.Drawing.Size(34, 13); - this.L_Value.TabIndex = 22; - this.L_Value.Text = "Value"; - // - // CB_Stats - // - this.CB_Stats.DropDownHeight = 256; - this.CB_Stats.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.CB_Stats.DropDownWidth = 200; - this.CB_Stats.FormattingEnabled = true; - this.CB_Stats.IntegralHeight = false; - this.CB_Stats.Location = new System.Drawing.Point(22, 68); - this.CB_Stats.Name = "CB_Stats"; - this.CB_Stats.Size = new System.Drawing.Size(140, 21); - this.CB_Stats.TabIndex = 23; - this.CB_Stats.SelectedIndexChanged += new System.EventHandler(this.ChangeStat); - // + // // CB_AlolaTime - // + // this.CB_AlolaTime.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_AlolaTime.FormattingEnabled = true; this.CB_AlolaTime.Location = new System.Drawing.Point(287, 106); this.CB_AlolaTime.Name = "CB_AlolaTime"; this.CB_AlolaTime.Size = new System.Drawing.Size(93, 21); this.CB_AlolaTime.TabIndex = 59; - // + // // L_AlolaTime - // + // this.L_AlolaTime.Location = new System.Drawing.Point(209, 109); this.L_AlolaTime.Name = "L_AlolaTime"; this.L_AlolaTime.Size = new System.Drawing.Size(72, 13); this.L_AlolaTime.TabIndex = 58; this.L_AlolaTime.Text = "Time Offset:"; this.L_AlolaTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // GB_Adventure - // + // this.GB_Adventure.Controls.Add(this.L_Fame); this.GB_Adventure.Controls.Add(this.CAL_HoFDate); this.GB_Adventure.Controls.Add(this.CAL_HoFTime); @@ -1013,18 +973,18 @@ private void InitializeComponent() this.GB_Adventure.TabIndex = 56; this.GB_Adventure.TabStop = false; this.GB_Adventure.Text = "Adventure Info"; - // + // // L_Fame - // + // this.L_Fame.Location = new System.Drawing.Point(3, 72); this.L_Fame.Name = "L_Fame"; this.L_Fame.Size = new System.Drawing.Size(80, 20); this.L_Fame.TabIndex = 40; this.L_Fame.Text = "HoF Entered:"; this.L_Fame.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CAL_HoFDate - // + // this.CAL_HoFDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.CAL_HoFDate.Location = new System.Drawing.Point(89, 72); this.CAL_HoFDate.MaxDate = new System.DateTime(2050, 12, 31, 0, 0, 0, 0); @@ -1033,9 +993,9 @@ private void InitializeComponent() this.CAL_HoFDate.Size = new System.Drawing.Size(99, 20); this.CAL_HoFDate.TabIndex = 39; this.CAL_HoFDate.Value = new System.DateTime(2000, 1, 1, 0, 0, 0, 0); - // + // // CAL_HoFTime - // + // this.CAL_HoFTime.CustomFormat = "hh:mm tt"; this.CAL_HoFTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_HoFTime.Location = new System.Drawing.Point(115, 91); @@ -1046,18 +1006,18 @@ private void InitializeComponent() this.CAL_HoFTime.Size = new System.Drawing.Size(73, 20); this.CAL_HoFTime.TabIndex = 38; this.CAL_HoFTime.Value = new System.DateTime(2001, 1, 1, 0, 0, 0, 0); - // + // // L_Started - // + // this.L_Started.Location = new System.Drawing.Point(3, 35); this.L_Started.Name = "L_Started"; this.L_Started.Size = new System.Drawing.Size(80, 20); this.L_Started.TabIndex = 36; this.L_Started.Text = "Game Started:"; this.L_Started.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CAL_AdventureStartDate - // + // this.CAL_AdventureStartDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.CAL_AdventureStartDate.Location = new System.Drawing.Point(89, 35); this.CAL_AdventureStartDate.MaxDate = new System.DateTime(2050, 12, 31, 0, 0, 0, 0); @@ -1066,9 +1026,9 @@ private void InitializeComponent() this.CAL_AdventureStartDate.Size = new System.Drawing.Size(99, 20); this.CAL_AdventureStartDate.TabIndex = 35; this.CAL_AdventureStartDate.Value = new System.DateTime(2000, 1, 1, 0, 0, 0, 0); - // + // // CAL_AdventureStartTime - // + // this.CAL_AdventureStartTime.CustomFormat = "hh:mm tt"; this.CAL_AdventureStartTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_AdventureStartTime.Location = new System.Drawing.Point(115, 54); @@ -1079,9 +1039,9 @@ private void InitializeComponent() this.CAL_AdventureStartTime.Size = new System.Drawing.Size(73, 20); this.CAL_AdventureStartTime.TabIndex = 34; this.CAL_AdventureStartTime.Value = new System.DateTime(2001, 1, 1, 0, 0, 0, 0); - // + // // CAL_LastSavedTime - // + // this.CAL_LastSavedTime.CustomFormat = "hh:mm tt"; this.CAL_LastSavedTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; this.CAL_LastSavedTime.Location = new System.Drawing.Point(115, 129); @@ -1091,9 +1051,9 @@ private void InitializeComponent() this.CAL_LastSavedTime.Size = new System.Drawing.Size(73, 20); this.CAL_LastSavedTime.TabIndex = 37; this.CAL_LastSavedTime.Value = new System.DateTime(2001, 1, 1, 0, 0, 0, 0); - // + // // Tab_BadgeMap - // + // this.Tab_BadgeMap.Controls.Add(this.GB_MapUnmask); this.Tab_BadgeMap.Controls.Add(this.GB_FlyDest); this.Tab_BadgeMap.Controls.Add(this.GB_Map); @@ -1103,9 +1063,9 @@ private void InitializeComponent() this.Tab_BadgeMap.TabIndex = 3; this.Tab_BadgeMap.Text = "Map"; this.Tab_BadgeMap.UseVisualStyleBackColor = true; - // + // // GB_MapUnmask - // + // this.GB_MapUnmask.Controls.Add(this.B_AllMapUnmask); this.GB_MapUnmask.Controls.Add(this.CLB_MapUnmask); this.GB_MapUnmask.Location = new System.Drawing.Point(218, 150); @@ -1114,9 +1074,9 @@ private void InitializeComponent() this.GB_MapUnmask.TabIndex = 60; this.GB_MapUnmask.TabStop = false; this.GB_MapUnmask.Text = "Map Unmask"; - // + // // B_AllMapUnmask - // + // this.B_AllMapUnmask.Location = new System.Drawing.Point(5, 21); this.B_AllMapUnmask.Name = "B_AllMapUnmask"; this.B_AllMapUnmask.Size = new System.Drawing.Size(75, 25); @@ -1124,18 +1084,18 @@ private void InitializeComponent() this.B_AllMapUnmask.Text = "Check All"; this.B_AllMapUnmask.UseVisualStyleBackColor = true; this.B_AllMapUnmask.Click += new System.EventHandler(this.B_AllMapUnmask_Click); - // + // // CLB_MapUnmask - // + // this.CLB_MapUnmask.CheckOnClick = true; this.CLB_MapUnmask.FormattingEnabled = true; this.CLB_MapUnmask.Location = new System.Drawing.Point(6, 54); this.CLB_MapUnmask.Name = "CLB_MapUnmask"; this.CLB_MapUnmask.Size = new System.Drawing.Size(128, 79); this.CLB_MapUnmask.TabIndex = 1; - // + // // GB_FlyDest - // + // this.GB_FlyDest.Controls.Add(this.B_AllFlyDest); this.GB_FlyDest.Controls.Add(this.CLB_FlyDest); this.GB_FlyDest.Location = new System.Drawing.Point(218, 6); @@ -1144,9 +1104,9 @@ private void InitializeComponent() this.GB_FlyDest.TabIndex = 59; this.GB_FlyDest.TabStop = false; this.GB_FlyDest.Text = "Fly Destination"; - // + // // B_AllFlyDest - // + // this.B_AllFlyDest.Location = new System.Drawing.Point(5, 21); this.B_AllFlyDest.Name = "B_AllFlyDest"; this.B_AllFlyDest.Size = new System.Drawing.Size(75, 25); @@ -1154,18 +1114,18 @@ private void InitializeComponent() this.B_AllFlyDest.Text = "Check All"; this.B_AllFlyDest.UseVisualStyleBackColor = true; this.B_AllFlyDest.Click += new System.EventHandler(this.B_AllFlyDest_Click); - // + // // CLB_FlyDest - // + // this.CLB_FlyDest.CheckOnClick = true; this.CLB_FlyDest.FormattingEnabled = true; this.CLB_FlyDest.Location = new System.Drawing.Point(6, 54); this.CLB_FlyDest.Name = "CLB_FlyDest"; this.CLB_FlyDest.Size = new System.Drawing.Size(128, 79); this.CLB_FlyDest.TabIndex = 1; - // + // // GB_Map - // + // this.GB_Map.Controls.Add(this.NUD_R); this.GB_Map.Controls.Add(this.L_R); this.GB_Map.Controls.Add(this.NUD_Z); @@ -1182,10 +1142,10 @@ private void InitializeComponent() this.GB_Map.TabIndex = 58; this.GB_Map.TabStop = false; this.GB_Map.Text = "Map Position"; - // + // // NUD_R - // - this.NUD_R.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.NUD_R.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.NUD_R.DecimalPlaces = 5; this.NUD_R.Location = new System.Drawing.Point(93, 120); @@ -1203,19 +1163,19 @@ private void InitializeComponent() this.NUD_R.Size = new System.Drawing.Size(96, 20); this.NUD_R.TabIndex = 55; this.NUD_R.ValueChanged += new System.EventHandler(this.ChangeMapValue); - // + // // L_R - // + // this.L_R.Location = new System.Drawing.Point(6, 120); this.L_R.Name = "L_R"; this.L_R.Size = new System.Drawing.Size(80, 20); this.L_R.TabIndex = 54; this.L_R.Text = "Rotation:"; this.L_R.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_Z - // - this.NUD_Z.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.NUD_Z.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.NUD_Z.DecimalPlaces = 5; this.NUD_Z.Location = new System.Drawing.Point(93, 68); @@ -1233,9 +1193,9 @@ private void InitializeComponent() this.NUD_Z.Size = new System.Drawing.Size(96, 20); this.NUD_Z.TabIndex = 53; this.NUD_Z.ValueChanged += new System.EventHandler(this.ChangeMapValue); - // + // // NUD_M - // + // this.NUD_M.Location = new System.Drawing.Point(93, 16); this.NUD_M.Maximum = new decimal(new int[] { 1000, @@ -1246,10 +1206,10 @@ private void InitializeComponent() this.NUD_M.Size = new System.Drawing.Size(50, 20); this.NUD_M.TabIndex = 52; this.NUD_M.ValueChanged += new System.EventHandler(this.ChangeMapValue); - // + // // NUD_Y - // - this.NUD_Y.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.NUD_Y.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.NUD_Y.DecimalPlaces = 5; this.NUD_Y.Location = new System.Drawing.Point(93, 94); @@ -1267,10 +1227,10 @@ private void InitializeComponent() this.NUD_Y.Size = new System.Drawing.Size(96, 20); this.NUD_Y.TabIndex = 51; this.NUD_Y.ValueChanged += new System.EventHandler(this.ChangeMapValue); - // + // // NUD_X - // - this.NUD_X.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.NUD_X.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.NUD_X.DecimalPlaces = 5; this.NUD_X.Location = new System.Drawing.Point(93, 42); @@ -1288,45 +1248,45 @@ private void InitializeComponent() this.NUD_X.Size = new System.Drawing.Size(96, 20); this.NUD_X.TabIndex = 50; this.NUD_X.ValueChanged += new System.EventHandler(this.ChangeMapValue); - // + // // L_Y - // + // this.L_Y.Location = new System.Drawing.Point(6, 94); this.L_Y.Name = "L_Y"; this.L_Y.Size = new System.Drawing.Size(80, 20); this.L_Y.TabIndex = 49; this.L_Y.Text = "Y Coordinate:"; this.L_Y.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_CurrentMap - // + // this.L_CurrentMap.Location = new System.Drawing.Point(6, 16); this.L_CurrentMap.Name = "L_CurrentMap"; this.L_CurrentMap.Size = new System.Drawing.Size(80, 20); this.L_CurrentMap.TabIndex = 46; this.L_CurrentMap.Text = "Current Map:"; this.L_CurrentMap.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_Z - // + // this.L_Z.Location = new System.Drawing.Point(6, 68); this.L_Z.Name = "L_Z"; this.L_Z.Size = new System.Drawing.Size(80, 20); this.L_Z.TabIndex = 48; this.L_Z.Text = "Z Coordinate:"; this.L_Z.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_X - // + // this.L_X.Location = new System.Drawing.Point(6, 42); this.L_X.Name = "L_X"; this.L_X.Size = new System.Drawing.Size(80, 20); this.L_X.TabIndex = 47; this.L_X.Text = "X Coordinate:"; this.L_X.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // Tab_BattleTree - // + // this.Tab_BattleTree.Controls.Add(this.GB_UnlockSupers); this.Tab_BattleTree.Controls.Add(this.L_Super); this.Tab_BattleTree.Controls.Add(this.L_Regular); @@ -1355,9 +1315,9 @@ private void InitializeComponent() this.Tab_BattleTree.TabIndex = 5; this.Tab_BattleTree.Text = "Battle Tree"; this.Tab_BattleTree.UseVisualStyleBackColor = true; - // + // // GB_UnlockSupers - // + // this.GB_UnlockSupers.Controls.Add(this.CHK_UnlockSuperMulti); this.GB_UnlockSupers.Controls.Add(this.CHK_UnlockSuperDoubles); this.GB_UnlockSupers.Controls.Add(this.CHK_UnlockSuperSingles); @@ -1367,9 +1327,9 @@ private void InitializeComponent() this.GB_UnlockSupers.TabIndex = 95; this.GB_UnlockSupers.TabStop = false; this.GB_UnlockSupers.Text = "Unlock Super*"; - // + // // CHK_UnlockSuperMulti - // + // this.CHK_UnlockSuperMulti.AutoSize = true; this.CHK_UnlockSuperMulti.Location = new System.Drawing.Point(144, 18); this.CHK_UnlockSuperMulti.Name = "CHK_UnlockSuperMulti"; @@ -1377,9 +1337,9 @@ private void InitializeComponent() this.CHK_UnlockSuperMulti.TabIndex = 2; this.CHK_UnlockSuperMulti.Text = "Multi"; this.CHK_UnlockSuperMulti.UseVisualStyleBackColor = true; - // + // // CHK_UnlockSuperDoubles - // + // this.CHK_UnlockSuperDoubles.AutoSize = true; this.CHK_UnlockSuperDoubles.Location = new System.Drawing.Point(73, 18); this.CHK_UnlockSuperDoubles.Name = "CHK_UnlockSuperDoubles"; @@ -1387,9 +1347,9 @@ private void InitializeComponent() this.CHK_UnlockSuperDoubles.TabIndex = 1; this.CHK_UnlockSuperDoubles.Text = "Doubles"; this.CHK_UnlockSuperDoubles.UseVisualStyleBackColor = true; - // + // // CHK_UnlockSuperSingles - // + // this.CHK_UnlockSuperSingles.AutoSize = true; this.CHK_UnlockSuperSingles.Location = new System.Drawing.Point(6, 18); this.CHK_UnlockSuperSingles.Name = "CHK_UnlockSuperSingles"; @@ -1397,27 +1357,27 @@ private void InitializeComponent() this.CHK_UnlockSuperSingles.TabIndex = 0; this.CHK_UnlockSuperSingles.Text = "Singles"; this.CHK_UnlockSuperSingles.UseVisualStyleBackColor = true; - // + // // L_Super - // + // this.L_Super.Location = new System.Drawing.Point(243, 37); this.L_Super.Name = "L_Super"; this.L_Super.Size = new System.Drawing.Size(60, 20); this.L_Super.TabIndex = 94; this.L_Super.Text = "Super"; this.L_Super.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // + // // L_Regular - // + // this.L_Regular.Location = new System.Drawing.Point(177, 37); this.L_Regular.Name = "L_Regular"; this.L_Regular.Size = new System.Drawing.Size(60, 20); this.L_Regular.TabIndex = 93; this.L_Regular.Text = "Regular"; this.L_Regular.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // + // // NUD_SMStreak2 - // + // this.NUD_SMStreak2.Location = new System.Drawing.Point(251, 195); this.NUD_SMStreak2.Maximum = new decimal(new int[] { 65535, @@ -1432,9 +1392,9 @@ private void InitializeComponent() 0, 0, 0}); - // + // // NUD_SCStreak2 - // + // this.NUD_SCStreak2.Location = new System.Drawing.Point(251, 174); this.NUD_SCStreak2.Maximum = new decimal(new int[] { 65535, @@ -1449,9 +1409,9 @@ private void InitializeComponent() 0, 0, 0}); - // + // // NUD_SMStreak1 - // + // this.NUD_SMStreak1.Location = new System.Drawing.Point(251, 138); this.NUD_SMStreak1.Maximum = new decimal(new int[] { 65535, @@ -1466,9 +1426,9 @@ private void InitializeComponent() 0, 0, 0}); - // + // // NUD_SCStreak1 - // + // this.NUD_SCStreak1.Location = new System.Drawing.Point(251, 117); this.NUD_SCStreak1.Maximum = new decimal(new int[] { 65535, @@ -1483,9 +1443,9 @@ private void InitializeComponent() 0, 0, 0}); - // + // // NUD_SMStreak0 - // + // this.NUD_SMStreak0.Location = new System.Drawing.Point(251, 81); this.NUD_SMStreak0.Maximum = new decimal(new int[] { 65535, @@ -1500,9 +1460,9 @@ private void InitializeComponent() 0, 0, 0}); - // + // // NUD_SCStreak0 - // + // this.NUD_SCStreak0.Location = new System.Drawing.Point(251, 60); this.NUD_SCStreak0.Maximum = new decimal(new int[] { 65535, @@ -1517,9 +1477,9 @@ private void InitializeComponent() 0, 0, 0}); - // + // // NUD_RMStreak2 - // + // this.NUD_RMStreak2.Location = new System.Drawing.Point(185, 195); this.NUD_RMStreak2.Maximum = new decimal(new int[] { 65535, @@ -1534,18 +1494,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_MStreak2 - // + // this.L_MStreak2.Location = new System.Drawing.Point(51, 193); this.L_MStreak2.Name = "L_MStreak2"; this.L_MStreak2.Size = new System.Drawing.Size(128, 20); this.L_MStreak2.TabIndex = 85; this.L_MStreak2.Text = "Max Streak Multi:"; this.L_MStreak2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_RCStreak2 - // + // this.NUD_RCStreak2.Location = new System.Drawing.Point(185, 174); this.NUD_RCStreak2.Maximum = new decimal(new int[] { 65535, @@ -1560,18 +1520,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_CStreak2 - // + // this.L_CStreak2.Location = new System.Drawing.Point(51, 172); this.L_CStreak2.Name = "L_CStreak2"; this.L_CStreak2.Size = new System.Drawing.Size(128, 20); this.L_CStreak2.TabIndex = 83; this.L_CStreak2.Text = "Current Streak Multi:"; this.L_CStreak2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_RMStreak1 - // + // this.NUD_RMStreak1.Location = new System.Drawing.Point(185, 138); this.NUD_RMStreak1.Maximum = new decimal(new int[] { 65535, @@ -1586,18 +1546,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_MStreak1 - // + // this.L_MStreak1.Location = new System.Drawing.Point(51, 136); this.L_MStreak1.Name = "L_MStreak1"; this.L_MStreak1.Size = new System.Drawing.Size(128, 20); this.L_MStreak1.TabIndex = 81; this.L_MStreak1.Text = "Max Streak Doubles:"; this.L_MStreak1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_RCStreak1 - // + // this.NUD_RCStreak1.Location = new System.Drawing.Point(185, 117); this.NUD_RCStreak1.Maximum = new decimal(new int[] { 65535, @@ -1612,18 +1572,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_CStreak1 - // + // this.L_CStreak1.Location = new System.Drawing.Point(51, 115); this.L_CStreak1.Name = "L_CStreak1"; this.L_CStreak1.Size = new System.Drawing.Size(128, 20); this.L_CStreak1.TabIndex = 79; this.L_CStreak1.Text = "Current Streak Doubles:"; this.L_CStreak1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_RMStreak0 - // + // this.NUD_RMStreak0.Location = new System.Drawing.Point(185, 81); this.NUD_RMStreak0.Maximum = new decimal(new int[] { 65535, @@ -1638,18 +1598,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_MStreak0 - // + // this.L_MStreak0.Location = new System.Drawing.Point(51, 79); this.L_MStreak0.Name = "L_MStreak0"; this.L_MStreak0.Size = new System.Drawing.Size(128, 20); this.L_MStreak0.TabIndex = 77; this.L_MStreak0.Text = "Max Streak Singles:"; this.L_MStreak0.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_RCStreak0 - // + // this.NUD_RCStreak0.Location = new System.Drawing.Point(185, 60); this.NUD_RCStreak0.Maximum = new decimal(new int[] { 65535, @@ -1664,18 +1624,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_CStreak0 - // + // this.L_CStreak0.Location = new System.Drawing.Point(51, 58); this.L_CStreak0.Name = "L_CStreak0"; this.L_CStreak0.Size = new System.Drawing.Size(128, 20); this.L_CStreak0.TabIndex = 75; this.L_CStreak0.Text = "Current Streak Singles:"; this.L_CStreak0.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // Tab_Misc - // + // this.Tab_Misc.Controls.Add(this.CHK_UnlockZMove); this.Tab_Misc.Controls.Add(this.CHK_UnlockMega); this.Tab_Misc.Controls.Add(this.L_BallThrowType); @@ -1701,9 +1661,9 @@ private void InitializeComponent() this.Tab_Misc.TabIndex = 4; this.Tab_Misc.Text = "Misc"; this.Tab_Misc.UseVisualStyleBackColor = true; - // + // // CHK_UnlockZMove - // + // this.CHK_UnlockZMove.AutoSize = true; this.CHK_UnlockZMove.Location = new System.Drawing.Point(6, 273); this.CHK_UnlockZMove.Name = "CHK_UnlockZMove"; @@ -1711,9 +1671,9 @@ private void InitializeComponent() this.CHK_UnlockZMove.TabIndex = 73; this.CHK_UnlockZMove.Text = "Unlock Z Moves"; this.CHK_UnlockZMove.UseVisualStyleBackColor = true; - // + // // CHK_UnlockMega - // + // this.CHK_UnlockMega.AutoSize = true; this.CHK_UnlockMega.Location = new System.Drawing.Point(6, 256); this.CHK_UnlockMega.Name = "CHK_UnlockMega"; @@ -1721,26 +1681,26 @@ private void InitializeComponent() this.CHK_UnlockMega.TabIndex = 72; this.CHK_UnlockMega.Text = "Unlock Mega"; this.CHK_UnlockMega.UseVisualStyleBackColor = true; - // + // // L_BallThrowType - // + // this.L_BallThrowType.Location = new System.Drawing.Point(144, 50); this.L_BallThrowType.Name = "L_BallThrowType"; this.L_BallThrowType.Size = new System.Drawing.Size(117, 20); this.L_BallThrowType.TabIndex = 65; this.L_BallThrowType.Text = "Ball Throw Type:"; this.L_BallThrowType.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_BallThrowType - // + // this.CB_BallThrowType.FormattingEnabled = true; this.CB_BallThrowType.Location = new System.Drawing.Point(267, 51); this.CB_BallThrowType.Name = "CB_BallThrowType"; this.CB_BallThrowType.Size = new System.Drawing.Size(109, 21); this.CB_BallThrowType.TabIndex = 66; - // + // // CB_BallThrowTypeListMode - // + // this.CB_BallThrowTypeListMode.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_BallThrowTypeListMode.FormattingEnabled = true; this.CB_BallThrowTypeListMode.Items.AddRange(new object[] { @@ -1751,9 +1711,9 @@ private void InitializeComponent() this.CB_BallThrowTypeListMode.Size = new System.Drawing.Size(107, 21); this.CB_BallThrowTypeListMode.TabIndex = 67; this.CB_BallThrowTypeListMode.SelectedIndexChanged += new System.EventHandler(this.UpdateBattleStyle); - // + // // LB_BallThrowTypeUnlocked - // + // this.LB_BallThrowTypeUnlocked.FormattingEnabled = true; this.LB_BallThrowTypeUnlocked.Location = new System.Drawing.Point(267, 74); this.LB_BallThrowTypeUnlocked.Name = "LB_BallThrowTypeUnlocked"; @@ -1761,9 +1721,9 @@ private void InitializeComponent() this.LB_BallThrowTypeUnlocked.Size = new System.Drawing.Size(109, 43); this.LB_BallThrowTypeUnlocked.TabIndex = 68; this.LB_BallThrowTypeUnlocked.SelectedIndexChanged += new System.EventHandler(this.UpdateBallThrowTypeUnlocked); - // + // // LB_BallThrowTypeLearned - // + // this.LB_BallThrowTypeLearned.FormattingEnabled = true; this.LB_BallThrowTypeLearned.Location = new System.Drawing.Point(267, 74); this.LB_BallThrowTypeLearned.Name = "LB_BallThrowTypeLearned"; @@ -1772,9 +1732,9 @@ private void InitializeComponent() this.LB_BallThrowTypeLearned.TabIndex = 69; this.LB_BallThrowTypeLearned.Visible = false; this.LB_BallThrowTypeLearned.SelectedIndexChanged += new System.EventHandler(this.UpdateBallThrowTypeLearned); - // + // // L_Stamps - // + // this.L_Stamps.AutoSize = true; this.L_Stamps.Location = new System.Drawing.Point(214, 174); this.L_Stamps.Name = "L_Stamps"; @@ -1782,27 +1742,27 @@ private void InitializeComponent() this.L_Stamps.TabIndex = 70; this.L_Stamps.Text = "Stamps:"; this.L_Stamps.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // + // // LB_Stamps - // + // this.LB_Stamps.FormattingEnabled = true; this.LB_Stamps.Location = new System.Drawing.Point(217, 194); this.LB_Stamps.Name = "LB_Stamps"; this.LB_Stamps.SelectionMode = System.Windows.Forms.SelectionMode.MultiSimple; this.LB_Stamps.Size = new System.Drawing.Size(159, 43); this.LB_Stamps.TabIndex = 71; - // + // // L_DaysFromRefreshed - // + // this.L_DaysFromRefreshed.Location = new System.Drawing.Point(144, 28); this.L_DaysFromRefreshed.Name = "L_DaysFromRefreshed"; this.L_DaysFromRefreshed.Size = new System.Drawing.Size(117, 18); this.L_DaysFromRefreshed.TabIndex = 63; this.L_DaysFromRefreshed.Text = "Days from Refreshed:"; this.L_DaysFromRefreshed.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_DaysFromRefreshed - // + // this.NUD_DaysFromRefreshed.Location = new System.Drawing.Point(267, 30); this.NUD_DaysFromRefreshed.Maximum = new decimal(new int[] { 255, @@ -1817,9 +1777,9 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_PlazaName - // + // this.L_PlazaName.AutoSize = true; this.L_PlazaName.Location = new System.Drawing.Point(214, 130); this.L_PlazaName.Name = "L_PlazaName"; @@ -1827,9 +1787,9 @@ private void InitializeComponent() this.L_PlazaName.TabIndex = 62; this.L_PlazaName.Text = "Festival Plaza Name:"; this.L_PlazaName.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - // + // // TB_PlazaName - // + // this.TB_PlazaName.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TB_PlazaName.Location = new System.Drawing.Point(217, 150); this.TB_PlazaName.MaxLength = 20; @@ -1837,9 +1797,9 @@ private void InitializeComponent() this.TB_PlazaName.Size = new System.Drawing.Size(159, 20); this.TB_PlazaName.TabIndex = 61; this.TB_PlazaName.Text = "WWWWWWWWWWWWWWWWWWWW"; - // + // // CB_Fashion - // + // this.CB_Fashion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_Fashion.FormattingEnabled = true; this.CB_Fashion.Items.AddRange(new object[] { @@ -1850,26 +1810,26 @@ private void InitializeComponent() this.CB_Fashion.Name = "CB_Fashion"; this.CB_Fashion.Size = new System.Drawing.Size(107, 21); this.CB_Fashion.TabIndex = 60; - // + // // L_SkinColor - // + // this.L_SkinColor.Location = new System.Drawing.Point(144, 6); this.L_SkinColor.Name = "L_SkinColor"; this.L_SkinColor.Size = new System.Drawing.Size(117, 20); this.L_SkinColor.TabIndex = 59; this.L_SkinColor.Text = "Skin Color:"; this.L_SkinColor.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // CB_SkinColor - // + // this.CB_SkinColor.FormattingEnabled = true; this.CB_SkinColor.Location = new System.Drawing.Point(267, 7); this.CB_SkinColor.Name = "CB_SkinColor"; this.CB_SkinColor.Size = new System.Drawing.Size(109, 21); this.CB_SkinColor.TabIndex = 58; - // + // // GB_PokeFinder - // + // this.GB_PokeFinder.Controls.Add(this.CHK_Gyro); this.GB_PokeFinder.Controls.Add(this.CB_CameraVersion); this.GB_PokeFinder.Controls.Add(this.L_CameraVersion); @@ -1885,9 +1845,9 @@ private void InitializeComponent() this.GB_PokeFinder.TabIndex = 57; this.GB_PokeFinder.TabStop = false; this.GB_PokeFinder.Text = "Poké Finder"; - // + // // CHK_Gyro - // + // this.CHK_Gyro.AutoSize = true; this.CHK_Gyro.Location = new System.Drawing.Point(129, 122); this.CHK_Gyro.Name = "CHK_Gyro"; @@ -1895,9 +1855,9 @@ private void InitializeComponent() this.CHK_Gyro.TabIndex = 46; this.CHK_Gyro.Text = "Gyro"; this.CHK_Gyro.UseVisualStyleBackColor = true; - // + // // CB_CameraVersion - // + // this.CB_CameraVersion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.CB_CameraVersion.FormattingEnabled = true; this.CB_CameraVersion.Items.AddRange(new object[] { @@ -1910,18 +1870,18 @@ private void InitializeComponent() this.CB_CameraVersion.Name = "CB_CameraVersion"; this.CB_CameraVersion.Size = new System.Drawing.Size(40, 21); this.CB_CameraVersion.TabIndex = 44; - // + // // L_CameraVersion - // + // this.L_CameraVersion.Location = new System.Drawing.Point(6, 100); this.L_CameraVersion.Name = "L_CameraVersion"; this.L_CameraVersion.Size = new System.Drawing.Size(117, 20); this.L_CameraVersion.TabIndex = 43; this.L_CameraVersion.Text = "Camera Version:"; this.L_CameraVersion.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_SnapCount - // + // this.NUD_SnapCount.Location = new System.Drawing.Point(129, 79); this.NUD_SnapCount.Maximum = new decimal(new int[] { 9999999, @@ -1936,18 +1896,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_SnapCount - // + // this.L_SnapCount.Location = new System.Drawing.Point(6, 77); this.L_SnapCount.Name = "L_SnapCount"; this.L_SnapCount.Size = new System.Drawing.Size(117, 20); this.L_SnapCount.TabIndex = 41; this.L_SnapCount.Text = "Snap Count:"; this.L_SnapCount.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_ThumbsRecord - // + // this.NUD_ThumbsRecord.Location = new System.Drawing.Point(129, 40); this.NUD_ThumbsRecord.Maximum = new decimal(new int[] { 9999999, @@ -1962,18 +1922,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_ThumbsRecord - // + // this.L_ThumbsRecord.Location = new System.Drawing.Point(6, 38); this.L_ThumbsRecord.Name = "L_ThumbsRecord"; this.L_ThumbsRecord.Size = new System.Drawing.Size(117, 20); this.L_ThumbsRecord.TabIndex = 39; this.L_ThumbsRecord.Text = "Record Thumbs-Ups:"; this.L_ThumbsRecord.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_ThumbsTotal - // + // this.NUD_ThumbsTotal.Location = new System.Drawing.Point(129, 18); this.NUD_ThumbsTotal.Maximum = new decimal(new int[] { 9999999, @@ -1988,18 +1948,18 @@ private void InitializeComponent() 0, 0, 0}); - // + // // L_ThumbsTotal - // + // this.L_ThumbsTotal.Location = new System.Drawing.Point(6, 16); this.L_ThumbsTotal.Name = "L_ThumbsTotal"; this.L_ThumbsTotal.Size = new System.Drawing.Size(117, 20); this.L_ThumbsTotal.TabIndex = 37; this.L_ThumbsTotal.Text = "Total Thumbs-Ups:"; this.L_ThumbsTotal.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // B_Fashion - // + // this.B_Fashion.Location = new System.Drawing.Point(6, 6); this.B_Fashion.Name = "B_Fashion"; this.B_Fashion.Size = new System.Drawing.Size(132, 68); @@ -2007,9 +1967,9 @@ private void InitializeComponent() this.B_Fashion.Text = "Give all Fashion Items"; this.B_Fashion.UseVisualStyleBackColor = true; this.B_Fashion.Click += new System.EventHandler(this.B_Fashion_Click); - // + // // Tab_Ultra - // + // this.Tab_Ultra.Controls.Add(this.TB_RotomOT); this.Tab_Ultra.Controls.Add(this.L_RotomOT); this.Tab_Ultra.Controls.Add(this.GB_Surf); @@ -2020,9 +1980,9 @@ private void InitializeComponent() this.Tab_Ultra.TabIndex = 6; this.Tab_Ultra.Text = "Ultra"; this.Tab_Ultra.UseVisualStyleBackColor = true; - // + // // TB_RotomOT - // + // this.TB_RotomOT.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.TB_RotomOT.Location = new System.Drawing.Point(85, 117); this.TB_RotomOT.MaxLength = 12; @@ -2031,18 +1991,18 @@ private void InitializeComponent() this.TB_RotomOT.TabIndex = 4; this.TB_RotomOT.Text = "WWWWWWWWWWWW"; this.TB_RotomOT.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - // + // // L_RotomOT - // + // this.L_RotomOT.Location = new System.Drawing.Point(12, 114); this.L_RotomOT.Name = "L_RotomOT"; this.L_RotomOT.Size = new System.Drawing.Size(67, 32); this.L_RotomOT.TabIndex = 5; this.L_RotomOT.Text = "Rotom OT Name:"; this.L_RotomOT.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // GB_Surf - // + // this.GB_Surf.Controls.Add(this.L_Surf3); this.GB_Surf.Controls.Add(this.L_Surf2); this.GB_Surf.Controls.Add(this.L_Surf1); @@ -2057,10 +2017,10 @@ private void InitializeComponent() this.GB_Surf.TabIndex = 0; this.GB_Surf.TabStop = false; this.GB_Surf.Text = "Surf Scores"; - // + // // L_Surf3 - // - this.L_Surf3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.L_Surf3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.L_Surf3.Location = new System.Drawing.Point(6, 76); this.L_Surf3.Name = "L_Surf3"; @@ -2068,10 +2028,10 @@ private void InitializeComponent() this.L_Surf3.TabIndex = 7; this.L_Surf3.Text = "Poni"; this.L_Surf3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_Surf2 - // - this.L_Surf2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.L_Surf2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.L_Surf2.Location = new System.Drawing.Point(6, 55); this.L_Surf2.Name = "L_Surf2"; @@ -2079,10 +2039,10 @@ private void InitializeComponent() this.L_Surf2.TabIndex = 6; this.L_Surf2.Text = "Ula\'ula"; this.L_Surf2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_Surf1 - // - this.L_Surf1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.L_Surf1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.L_Surf1.Location = new System.Drawing.Point(6, 34); this.L_Surf1.Name = "L_Surf1"; @@ -2090,10 +2050,10 @@ private void InitializeComponent() this.L_Surf1.TabIndex = 5; this.L_Surf1.Text = "Akala"; this.L_Surf1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // L_Surf0 - // - this.L_Surf0.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + // + this.L_Surf0.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.L_Surf0.Location = new System.Drawing.Point(6, 13); this.L_Surf0.Name = "L_Surf0"; @@ -2101,9 +2061,9 @@ private void InitializeComponent() this.L_Surf0.TabIndex = 4; this.L_Surf0.Text = "Melemele"; this.L_Surf0.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // + // // NUD_Surf3 - // + // this.NUD_Surf3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.NUD_Surf3.Location = new System.Drawing.Point(88, 78); this.NUD_Surf3.Maximum = new decimal(new int[] { @@ -2114,9 +2074,9 @@ private void InitializeComponent() this.NUD_Surf3.Name = "NUD_Surf3"; this.NUD_Surf3.Size = new System.Drawing.Size(79, 20); this.NUD_Surf3.TabIndex = 3; - // + // // NUD_Surf2 - // + // this.NUD_Surf2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.NUD_Surf2.Location = new System.Drawing.Point(88, 57); this.NUD_Surf2.Maximum = new decimal(new int[] { @@ -2127,9 +2087,9 @@ private void InitializeComponent() this.NUD_Surf2.Name = "NUD_Surf2"; this.NUD_Surf2.Size = new System.Drawing.Size(79, 20); this.NUD_Surf2.TabIndex = 2; - // + // // NUD_Surf1 - // + // this.NUD_Surf1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.NUD_Surf1.Location = new System.Drawing.Point(88, 36); this.NUD_Surf1.Maximum = new decimal(new int[] { @@ -2140,9 +2100,9 @@ private void InitializeComponent() this.NUD_Surf1.Name = "NUD_Surf1"; this.NUD_Surf1.Size = new System.Drawing.Size(79, 20); this.NUD_Surf1.TabIndex = 1; - // + // // NUD_Surf0 - // + // this.NUD_Surf0.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.NUD_Surf0.Location = new System.Drawing.Point(88, 15); this.NUD_Surf0.Maximum = new decimal(new int[] { @@ -2158,16 +2118,16 @@ private void InitializeComponent() 0, 0, 0}); - // - // trainerID1 - // - this.trainerID1.Location = new System.Drawing.Point(6, 26); - this.trainerID1.Name = "trainerID1"; - this.trainerID1.Size = new System.Drawing.Size(90, 64); - this.trainerID1.TabIndex = 66; - // + // + // trainerStat1 + // + this.TrainerStats.Location = new System.Drawing.Point(19, 61); + this.TrainerStats.Name = "TrainerStats"; + this.TrainerStats.Size = new System.Drawing.Size(146, 72); + this.TrainerStats.TabIndex = 67; + // // SAV_Trainer7 - // + // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(414, 366); @@ -2185,8 +2145,6 @@ private void InitializeComponent() this.Tab_Overview.ResumeLayout(false); this.Tab_Overview.PerformLayout(); this.GB_Stats.ResumeLayout(false); - this.GB_Stats.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.NUD_Stat)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.NUD_FC)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.NUD_BP)).EndInit(); this.GB_Adventure.ResumeLayout(false); @@ -2332,7 +2290,6 @@ private void InitializeComponent() private System.Windows.Forms.GroupBox GB_Stats; private System.Windows.Forms.Label L_FC; private System.Windows.Forms.Label L_BP; - private System.Windows.Forms.ComboBox CB_Stats; private System.Windows.Forms.NumericUpDown NUD_FC; private System.Windows.Forms.NumericUpDown NUD_BP; private System.Windows.Forms.TabPage Tab_Misc; @@ -2370,9 +2327,6 @@ private void InitializeComponent() private System.Windows.Forms.Label L_Super; private System.Windows.Forms.ComboBox CB_SkinColor; private System.Windows.Forms.Label L_SkinColor; - private System.Windows.Forms.NumericUpDown NUD_Stat; - private System.Windows.Forms.Label L_Value; - private System.Windows.Forms.Label L_Offset; private System.Windows.Forms.ComboBox CB_Fashion; private System.Windows.Forms.TextBox TB_PlazaName; private System.Windows.Forms.Label L_PlazaName; @@ -2412,5 +2366,6 @@ private void InitializeComponent() private System.Windows.Forms.TextBox TB_RotomOT; private System.Windows.Forms.Label L_RotomOT; private Controls.TrainerID trainerID1; + private Subforms.Save_Editors.TrainerStat TrainerStats; } } \ No newline at end of file diff --git a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs index b4b757e83..adaafde7a 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/Gen7/SAV_Trainer7.cs @@ -28,15 +28,8 @@ public SAV_Trainer7(SaveFile sav) GetComboBoxes(); GetTextBoxes(); - CB_Stats.Items.Clear(); - for (int i = 0; i < 200; i++) - { - if (!RecordList.TryGetValue(i, out string name)) - name = $"{i:D3}"; - - CB_Stats.Items.Add(name); - } - CB_Stats.SelectedIndex = RecordList.First().Key; + TrainerStats.LoadRecords(SAV, RecordList); + TrainerStats.GetToolTipText = UpdateTip; CB_Fashion.SelectedIndex = 1; if (SAV.USUM) @@ -47,10 +40,8 @@ public SAV_Trainer7(SaveFile sav) Loading = false; } - private readonly ToolTip Tip1 = new ToolTip(), Tip2 = new ToolTip(), Tip3 = new ToolTip(); private readonly bool Loading; private bool MapUpdated; - private bool editing; private static readonly string[] TrainerStampTitle = { "01:Official Pokemon Trainer", "02:Melemele Trial Completion", "03:Akala Trial Completion", "04:Ula'ula Trial Completion", "05:Poni Trial Completion", "06:Island Challenge Completion", "07:Melemele Pokedex Completion", "08:Akala Pokedex Completion", "09:Ula'ula Pokedex Completion", "10:Poni Pokedex Completion", "11:Alola Pokedex Completion", "12:50 Consecutive Single Battle Wins", "13:50 Consecutive Double Battle Wins", "14:50 Consecutive Multi Battle Wins", "15:Poke Finder Pro" }; private static readonly string[] BattleStyles = { "Normal", "Elegant", "Girlish", "Reverent", "Smug", "Left-handed", "Passionate", "Idol" }; @@ -577,26 +568,7 @@ private void B_Fashion_Click(object sender, EventArgs e) } System.Media.SystemSounds.Asterisk.Play(); } - private void ChangeStat(object sender, EventArgs e) - { - editing = true; - int index = CB_Stats.SelectedIndex; - NUD_Stat.Maximum = SAV.GetRecordMax(index); - NUD_Stat.Value = SAV.GetRecord(index); - - int offset = SAV.GetRecordOffset(index); - L_Offset.Text = $"Offset: 0x{offset:X3}"; - UpdateTip(index, true); - editing = false; - } - private void ChangeStatVal(object sender, EventArgs e) - { - if (editing) return; - int index = CB_Stats.SelectedIndex; - SAV.SetRecord(index, (int)NUD_Stat.Value); - UpdateTip(index, false); - } - private void UpdateTip(int index, bool updateStats) + private string UpdateTip(int index) { switch (index) { @@ -604,17 +576,10 @@ private void UpdateTip(int index, bool updateStats) int seconds = (int)(CAL_AdventureStartDate.Value - new DateTime(2000, 1, 1)).TotalSeconds; seconds -= seconds % 86400; seconds += (int)(CAL_AdventureStartTime.Value - new DateTime(2000, 1, 1)).TotalSeconds; - Tip3.SetToolTip(NUD_Stat, ConvertDateValueToString(SAV.GetRecord(index), seconds)); - break; + return ConvertDateValueToString(SAV.GetRecord(index), seconds); default: - Tip3.RemoveAll(); - break; + return null; } - if (!updateStats) - return; - - if (RecordList.TryGetValue(index, out string tip)) - Tip3.SetToolTip(CB_Stats, tip); } private static string ConvertDateValueToString(int value, int secondsBias = -1) { diff --git a/PKHeX.WinForms/Subforms/Save Editors/TrainerStat.cs b/PKHeX.WinForms/Subforms/Save Editors/TrainerStat.cs index 6c4761f7a..e6a021724 100644 --- a/PKHeX.WinForms/Subforms/Save Editors/TrainerStat.cs +++ b/PKHeX.WinForms/Subforms/Save Editors/TrainerStat.cs @@ -8,13 +8,12 @@ namespace PKHeX.WinForms.Subforms.Save_Editors { public partial class TrainerStat : UserControl { - public TrainerStat() - { - InitializeComponent(); - } - + public TrainerStat() => InitializeComponent(); + private readonly ToolTip Tip = new ToolTip(); private bool Editing; private ITrainerStatRecord SAV; + private Dictionary RecordList; // index, description + public Func GetToolTipText { private get; set; } public void LoadRecords(ITrainerStatRecord sav, Dictionary records) { @@ -31,8 +30,6 @@ public void LoadRecords(ITrainerStatRecord sav, Dictionary records) CB_Stats.SelectedIndex = RecordList.First().Key; } - private Dictionary RecordList; // index, description - private void ChangeStat(object sender, EventArgs e) { Editing = true; @@ -45,6 +42,7 @@ private void ChangeStat(object sender, EventArgs e) UpdateTip(index, true); Editing = false; } + private void ChangeStatVal(object sender, EventArgs e) { if (Editing) @@ -54,8 +52,6 @@ private void ChangeStatVal(object sender, EventArgs e) UpdateTip(index, false); } - private readonly ToolTip Tip3 = new ToolTip(); - public Func GetToolTipText { private get; set; } private void UpdateTip(int index, bool updateStats) { if (GetToolTipText != null) @@ -69,19 +65,20 @@ private void UpdateToolTipSpecial(int index, bool updateStats) var str = GetToolTipText(index); if (str != null) { - Tip3.SetToolTip(NUD_Stat, str); + Tip.SetToolTip(NUD_Stat, str); return; } UpdateToolTipDefault(index, updateStats); // fallback } + private void UpdateToolTipDefault(int index, bool updateStats) { if (!updateStats || !RecordList.TryGetValue(index, out string tip)) { - Tip3.RemoveAll(); + Tip.RemoveAll(); return; } - Tip3.SetToolTip(CB_Stats, tip); + Tip.SetToolTip(CB_Stats, tip); } } }