Add full TM compat. to Gen6

This commit is contained in:
CodingKoopa 2020-09-16 17:09:00 -04:00
parent f7646eec86
commit dbaae6c3bc
4 changed files with 23 additions and 16 deletions

View File

@ -149,6 +149,7 @@ private void InitializeComponent()
this.B_Randomize = new System.Windows.Forms.Button();
this.PB_MonSprite = new System.Windows.Forms.PictureBox();
this.B_Dump = new System.Windows.Forms.Button();
this.CHK_FullTMCompatibility = new System.Windows.Forms.CheckBox();
this.CHK_FullHMCompatibility = new System.Windows.Forms.CheckBox();
this.TC_Pokemon.SuspendLayout();
this.TP_General.SuspendLayout();
@ -1048,6 +1049,7 @@ private void InitializeComponent()
//
// GB_Modifier
//
this.GB_Modifier.Controls.Add(this.CHK_FullTMCompatibility);
this.GB_Modifier.Controls.Add(this.CHK_FullHMCompatibility);
this.GB_Modifier.Controls.Add(this.CHK_NoTutor);
this.GB_Modifier.Controls.Add(this.CHK_CatchRateMod);
@ -1061,7 +1063,7 @@ private void InitializeComponent()
this.GB_Modifier.Controls.Add(this.CHK_NoEV);
this.GB_Modifier.Location = new System.Drawing.Point(4, 147);
this.GB_Modifier.Name = "GB_Modifier";
this.GB_Modifier.Size = new System.Drawing.Size(345, 152);
this.GB_Modifier.Size = new System.Drawing.Size(345, 176);
this.GB_Modifier.TabIndex = 419;
this.GB_Modifier.TabStop = false;
this.GB_Modifier.Text = "Modifier Options";
@ -1535,13 +1537,23 @@ private void InitializeComponent()
this.B_Dump.UseVisualStyleBackColor = true;
this.B_Dump.Click += new System.EventHandler(this.B_Dump_Click);
//
// CHK_FullTMCompatibility
//
this.CHK_FullTMCompatibility.AutoSize = true;
this.CHK_FullTMCompatibility.Location = new System.Drawing.Point(6, 131);
this.CHK_FullTMCompatibility.Name = "CHK_FullTMCompatibility";
this.CHK_FullTMCompatibility.Size = new System.Drawing.Size(122, 17);
this.CHK_FullTMCompatibility.TabIndex = 21;
this.CHK_FullTMCompatibility.Text = "Full TM Compatibility";
this.CHK_FullTMCompatibility.UseVisualStyleBackColor = true;
//
// CHK_FullHMCompatibility
//
this.CHK_FullHMCompatibility.AutoSize = true;
this.CHK_FullHMCompatibility.Location = new System.Drawing.Point(6, 127);
this.CHK_FullHMCompatibility.Location = new System.Drawing.Point(6, 154);
this.CHK_FullHMCompatibility.Name = "CHK_FullHMCompatibility";
this.CHK_FullHMCompatibility.Size = new System.Drawing.Size(123, 17);
this.CHK_FullHMCompatibility.TabIndex = 21;
this.CHK_FullHMCompatibility.TabIndex = 22;
this.CHK_FullHMCompatibility.Text = "Full HM Compatibility";
this.CHK_FullHMCompatibility.UseVisualStyleBackColor = true;
//
@ -1706,6 +1718,7 @@ private void InitializeComponent()
private System.Windows.Forms.Label L_Ability2;
private System.Windows.Forms.Label L_Ability1;
private System.Windows.Forms.TextBox TB_RawColor;
private System.Windows.Forms.CheckBox CHK_FullTMCompatibility;
private System.Windows.Forms.CheckBox CHK_FullHMCompatibility;
}
}

View File

@ -400,6 +400,9 @@ private void B_ModifyAll(object sender, EventArgs e)
CLB_ORASTutors.SetItemCheckState(ao, CheckState.Unchecked);
}
if (CHK_FullTMCompatibility.Checked)
for (int h = 0; h < 100; h++)
CLB_TMHM.SetItemCheckState(h, CheckState.Checked);
if (CHK_FullHMCompatibility.Checked)
for (int h = 100; h < CLB_TMHM.Items.Count; h++)
CLB_TMHM.SetItemCheckState(h, CheckState.Checked);

View File

@ -1,4 +1,4 @@
namespace pk3DS
namespace pk3DS
{
partial class StaticEncounterEditor7
{
@ -2169,17 +2169,6 @@ private void InitializeComponent()
this.CHK_G1.Text = "Gen 1";
this.CHK_G1.UseVisualStyleBackColor = true;
//
// B_Starters
//
this.B_Starters.Location = new System.Drawing.Point(256, 490);
this.B_Starters.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.B_Starters.Name = "B_Starters";
this.B_Starters.Size = new System.Drawing.Size(163, 28);
this.B_Starters.TabIndex = 9;
this.B_Starters.Text = "Randomize Starters";
this.B_Starters.UseVisualStyleBackColor = true;
this.B_Starters.Click += new System.EventHandler(this.B_Starters_Click);
//
// B_Save
//
this.B_Save.Location = new System.Drawing.Point(580, 638);

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
@ -722,6 +722,8 @@ private void B_RandAll_Click(object sender, EventArgs e)
GetTrade();
WinFormsUtil.Alert("Randomized Static Encounters according to specification!");
B_Starters_Click(sender, e);
}
// Mirror Changes