This commit is contained in:
Kurt
2014-07-27 18:30:54 -07:00
parent 4d108a8bb4
commit 44e163cba8
14 changed files with 1755 additions and 834 deletions

View File

@@ -44,15 +44,16 @@ private void InitializeComponent()
this.B_Clear = new System.Windows.Forms.Button();
this.B_Copy = new System.Windows.Forms.Button();
this.B_Diff = new System.Windows.Forms.Button();
this.CHK_Break = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// RTB_Code
//
this.RTB_Code.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.RTB_Code.Location = new System.Drawing.Point(8, 43);
this.RTB_Code.Location = new System.Drawing.Point(8, 52);
this.RTB_Code.Name = "RTB_Code";
this.RTB_Code.ReadOnly = true;
this.RTB_Code.Size = new System.Drawing.Size(160, 200);
this.RTB_Code.Size = new System.Drawing.Size(160, 191);
this.RTB_Code.TabIndex = 0;
this.RTB_Code.Text = "01234567 01234567 ";
//
@@ -240,11 +241,24 @@ private void InitializeComponent()
this.B_Diff.UseVisualStyleBackColor = true;
this.B_Diff.Click += new System.EventHandler(this.B_Diff_Click);
//
// CHK_Break
//
this.CHK_Break.AutoSize = true;
this.CHK_Break.Checked = true;
this.CHK_Break.CheckState = System.Windows.Forms.CheckState.Checked;
this.CHK_Break.Location = new System.Drawing.Point(8, 35);
this.CHK_Break.Name = "CHK_Break";
this.CHK_Break.Size = new System.Drawing.Size(156, 17);
this.CHK_Break.TabIndex = 19;
this.CHK_Break.Text = "Line Break for Simple Mode";
this.CHK_Break.UseVisualStyleBackColor = true;
//
// CodeGenerator
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(176, 249);
this.Controls.Add(this.CHK_Break);
this.Controls.Add(this.B_Diff);
this.Controls.Add(this.B_Copy);
this.Controls.Add(this.B_Clear);
@@ -289,5 +303,6 @@ private void InitializeComponent()
private System.Windows.Forms.Button B_Clear;
private System.Windows.Forms.Button B_Copy;
private System.Windows.Forms.Button B_Diff;
private System.Windows.Forms.CheckBox CHK_Break;
}
}

View File

@@ -260,7 +260,8 @@ private void B_Save_Click(object sender, EventArgs e)
private void B_Copy_Click(object sender, EventArgs e)
{
Clipboard.SetText(RTB_Code.Text);
if (RTB_Code.Text.Length > 0) Clipboard.SetText(RTB_Code.Text);
else {MessageBox.Show("No code created!\n\nClick [Create Diff], then make sure that data appears in the Text Box below.\nIf no code appears, then you didn't save your changes.\n\nBe sure to Set the Pokemon you edited back into a Box/Party slot!","Alert");}
}
private void B_Diff_Click(object sender, EventArgs e)
@@ -281,12 +282,12 @@ private void B_Diff_Click(object sender, EventArgs e)
result += ((0x20000000 + i).ToString("X8") + " ");
result += (BitConverter.ToUInt32(newcyber, i).ToString("X8") + "\n");
lines++;
if (lines % 128 == 0)
if ((lines % 128 == 0) && CHK_Break.Checked)
{ result += ("\r\n--- Segment " + (lines / 128 + 1).ToString() + " ---\r\n\r\n"); }
if (lines > 10000) goto toomany;
}
}
if (lines / 128 > 0)
if ((lines / 128 > 0) && CHK_Break.Checked)
{
MessageBox.Show((1+ (lines / 128)).ToString() + " Code Segments","Alert");
}

View File

@@ -150,6 +150,12 @@
<Compile Include="SAV_OPower.Designer.cs">
<DependentUpon>SAV_OPower.cs</DependentUpon>
</Compile>
<Compile Include="SAV_Pokedex.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="SAV_Pokedex.Designer.cs">
<DependentUpon>SAV_Pokedex.cs</DependentUpon>
</Compile>
<Compile Include="SAV_Pokepuff.cs">
<SubType>Form</SubType>
</Compile>
@@ -216,6 +222,9 @@
<EmbeddedResource Include="SAV_OPower.resx">
<DependentUpon>SAV_OPower.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SAV_Pokedex.resx">
<DependentUpon>SAV_Pokedex.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="SAV_Pokepuff.resx">
<DependentUpon>SAV_Pokepuff.cs</DependentUpon>
</EmbeddedResource>

302
SAV_OPower.Designer.cs generated
View File

@@ -67,6 +67,18 @@ private void InitializeComponent()
this.B_Save = new System.Windows.Forms.Button();
this.B_MaxP = new System.Windows.Forms.Button();
this.B_AllMax = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.CHK_1 = new System.Windows.Forms.CheckBox();
this.CHK_2 = new System.Windows.Forms.CheckBox();
this.CHK_3 = new System.Windows.Forms.CheckBox();
this.CHK_4 = new System.Windows.Forms.CheckBox();
this.CHK_5 = new System.Windows.Forms.CheckBox();
this.CHK_6 = new System.Windows.Forms.CheckBox();
this.CHK_7 = new System.Windows.Forms.CheckBox();
this.CHK_8 = new System.Windows.Forms.CheckBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// CB_1
@@ -79,14 +91,14 @@ private void InitializeComponent()
"2",
"3",
"S"});
this.CB_1.Location = new System.Drawing.Point(78, 8);
this.CB_1.Location = new System.Drawing.Point(86, 20);
this.CB_1.Name = "CB_1";
this.CB_1.Size = new System.Drawing.Size(37, 21);
this.CB_1.TabIndex = 0;
//
// L_1
//
this.L_1.Location = new System.Drawing.Point(4, 11);
this.L_1.Location = new System.Drawing.Point(12, 23);
this.L_1.Name = "L_1";
this.L_1.Size = new System.Drawing.Size(70, 13);
this.L_1.TabIndex = 1;
@@ -95,7 +107,7 @@ private void InitializeComponent()
//
// L_2
//
this.L_2.Location = new System.Drawing.Point(4, 38);
this.L_2.Location = new System.Drawing.Point(12, 50);
this.L_2.Name = "L_2";
this.L_2.Size = new System.Drawing.Size(70, 13);
this.L_2.TabIndex = 3;
@@ -112,14 +124,14 @@ private void InitializeComponent()
"2",
"3",
"S"});
this.CB_2.Location = new System.Drawing.Point(78, 35);
this.CB_2.Location = new System.Drawing.Point(86, 47);
this.CB_2.Name = "CB_2";
this.CB_2.Size = new System.Drawing.Size(37, 21);
this.CB_2.TabIndex = 2;
//
// L_3
//
this.L_3.Location = new System.Drawing.Point(4, 65);
this.L_3.Location = new System.Drawing.Point(12, 77);
this.L_3.Name = "L_3";
this.L_3.Size = new System.Drawing.Size(70, 13);
this.L_3.TabIndex = 5;
@@ -136,14 +148,14 @@ private void InitializeComponent()
"2",
"3",
"S"});
this.CB_3.Location = new System.Drawing.Point(78, 62);
this.CB_3.Location = new System.Drawing.Point(86, 74);
this.CB_3.Name = "CB_3";
this.CB_3.Size = new System.Drawing.Size(37, 21);
this.CB_3.TabIndex = 4;
//
// L_4
//
this.L_4.Location = new System.Drawing.Point(4, 92);
this.L_4.Location = new System.Drawing.Point(12, 104);
this.L_4.Name = "L_4";
this.L_4.Size = new System.Drawing.Size(70, 13);
this.L_4.TabIndex = 7;
@@ -160,14 +172,14 @@ private void InitializeComponent()
"2",
"3",
"S"});
this.CB_4.Location = new System.Drawing.Point(78, 89);
this.CB_4.Location = new System.Drawing.Point(86, 101);
this.CB_4.Name = "CB_4";
this.CB_4.Size = new System.Drawing.Size(37, 21);
this.CB_4.TabIndex = 6;
//
// L_5
//
this.L_5.Location = new System.Drawing.Point(4, 119);
this.L_5.Location = new System.Drawing.Point(12, 131);
this.L_5.Name = "L_5";
this.L_5.Size = new System.Drawing.Size(70, 13);
this.L_5.TabIndex = 9;
@@ -184,14 +196,14 @@ private void InitializeComponent()
"2",
"3",
"S"});
this.CB_5.Location = new System.Drawing.Point(78, 116);
this.CB_5.Location = new System.Drawing.Point(86, 128);
this.CB_5.Name = "CB_5";
this.CB_5.Size = new System.Drawing.Size(37, 21);
this.CB_5.TabIndex = 8;
//
// L_6
//
this.L_6.Location = new System.Drawing.Point(4, 146);
this.L_6.Location = new System.Drawing.Point(12, 158);
this.L_6.Name = "L_6";
this.L_6.Size = new System.Drawing.Size(70, 13);
this.L_6.TabIndex = 11;
@@ -207,14 +219,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_6.Location = new System.Drawing.Point(78, 143);
this.CB_6.Location = new System.Drawing.Point(86, 155);
this.CB_6.Name = "CB_6";
this.CB_6.Size = new System.Drawing.Size(37, 21);
this.CB_6.TabIndex = 10;
//
// L_7
//
this.L_7.Location = new System.Drawing.Point(4, 173);
this.L_7.Location = new System.Drawing.Point(12, 185);
this.L_7.Name = "L_7";
this.L_7.Size = new System.Drawing.Size(70, 13);
this.L_7.TabIndex = 13;
@@ -230,14 +242,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_7.Location = new System.Drawing.Point(78, 170);
this.CB_7.Location = new System.Drawing.Point(86, 182);
this.CB_7.Name = "CB_7";
this.CB_7.Size = new System.Drawing.Size(37, 21);
this.CB_7.TabIndex = 12;
//
// L_8
//
this.L_8.Location = new System.Drawing.Point(4, 200);
this.L_8.Location = new System.Drawing.Point(12, 212);
this.L_8.Name = "L_8";
this.L_8.Size = new System.Drawing.Size(70, 13);
this.L_8.TabIndex = 15;
@@ -253,14 +265,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_8.Location = new System.Drawing.Point(78, 197);
this.CB_8.Location = new System.Drawing.Point(86, 209);
this.CB_8.Name = "CB_8";
this.CB_8.Size = new System.Drawing.Size(37, 21);
this.CB_8.TabIndex = 14;
//
// L_17
//
this.L_17.Location = new System.Drawing.Point(116, 200);
this.L_17.Location = new System.Drawing.Point(124, 212);
this.L_17.Name = "L_17";
this.L_17.Size = new System.Drawing.Size(70, 13);
this.L_17.TabIndex = 31;
@@ -276,14 +288,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_17.Location = new System.Drawing.Point(187, 197);
this.CB_17.Location = new System.Drawing.Point(195, 209);
this.CB_17.Name = "CB_17";
this.CB_17.Size = new System.Drawing.Size(37, 21);
this.CB_17.TabIndex = 30;
//
// L_16
//
this.L_16.Location = new System.Drawing.Point(116, 173);
this.L_16.Location = new System.Drawing.Point(124, 185);
this.L_16.Name = "L_16";
this.L_16.Size = new System.Drawing.Size(70, 13);
this.L_16.TabIndex = 29;
@@ -299,14 +311,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_16.Location = new System.Drawing.Point(187, 170);
this.CB_16.Location = new System.Drawing.Point(195, 182);
this.CB_16.Name = "CB_16";
this.CB_16.Size = new System.Drawing.Size(37, 21);
this.CB_16.TabIndex = 28;
//
// L_15
//
this.L_15.Location = new System.Drawing.Point(116, 146);
this.L_15.Location = new System.Drawing.Point(124, 158);
this.L_15.Name = "L_15";
this.L_15.Size = new System.Drawing.Size(70, 13);
this.L_15.TabIndex = 27;
@@ -322,14 +334,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_15.Location = new System.Drawing.Point(187, 143);
this.CB_15.Location = new System.Drawing.Point(195, 155);
this.CB_15.Name = "CB_15";
this.CB_15.Size = new System.Drawing.Size(37, 21);
this.CB_15.TabIndex = 26;
//
// L_14
//
this.L_14.Location = new System.Drawing.Point(116, 119);
this.L_14.Location = new System.Drawing.Point(124, 131);
this.L_14.Name = "L_14";
this.L_14.Size = new System.Drawing.Size(70, 13);
this.L_14.TabIndex = 25;
@@ -345,14 +357,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_14.Location = new System.Drawing.Point(187, 116);
this.CB_14.Location = new System.Drawing.Point(195, 128);
this.CB_14.Name = "CB_14";
this.CB_14.Size = new System.Drawing.Size(37, 21);
this.CB_14.TabIndex = 24;
//
// L_13
//
this.L_13.Location = new System.Drawing.Point(116, 92);
this.L_13.Location = new System.Drawing.Point(124, 104);
this.L_13.Name = "L_13";
this.L_13.Size = new System.Drawing.Size(70, 13);
this.L_13.TabIndex = 23;
@@ -368,14 +380,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_13.Location = new System.Drawing.Point(187, 89);
this.CB_13.Location = new System.Drawing.Point(195, 101);
this.CB_13.Name = "CB_13";
this.CB_13.Size = new System.Drawing.Size(37, 21);
this.CB_13.TabIndex = 22;
//
// L_12
//
this.L_12.Location = new System.Drawing.Point(116, 65);
this.L_12.Location = new System.Drawing.Point(124, 77);
this.L_12.Name = "L_12";
this.L_12.Size = new System.Drawing.Size(70, 13);
this.L_12.TabIndex = 21;
@@ -391,14 +403,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_12.Location = new System.Drawing.Point(187, 62);
this.CB_12.Location = new System.Drawing.Point(195, 74);
this.CB_12.Name = "CB_12";
this.CB_12.Size = new System.Drawing.Size(37, 21);
this.CB_12.TabIndex = 20;
//
// L_11
//
this.L_11.Location = new System.Drawing.Point(116, 38);
this.L_11.Location = new System.Drawing.Point(124, 50);
this.L_11.Name = "L_11";
this.L_11.Size = new System.Drawing.Size(70, 13);
this.L_11.TabIndex = 19;
@@ -414,14 +426,14 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_11.Location = new System.Drawing.Point(187, 35);
this.CB_11.Location = new System.Drawing.Point(195, 47);
this.CB_11.Name = "CB_11";
this.CB_11.Size = new System.Drawing.Size(37, 21);
this.CB_11.TabIndex = 18;
//
// L_10
//
this.L_10.Location = new System.Drawing.Point(116, 11);
this.L_10.Location = new System.Drawing.Point(124, 23);
this.L_10.Name = "L_10";
this.L_10.Size = new System.Drawing.Size(70, 13);
this.L_10.TabIndex = 17;
@@ -438,14 +450,14 @@ private void InitializeComponent()
"2",
"3",
"S"});
this.CB_10.Location = new System.Drawing.Point(187, 8);
this.CB_10.Location = new System.Drawing.Point(195, 20);
this.CB_10.Name = "CB_10";
this.CB_10.Size = new System.Drawing.Size(37, 21);
this.CB_10.TabIndex = 16;
//
// L_9
//
this.L_9.Location = new System.Drawing.Point(4, 227);
this.L_9.Location = new System.Drawing.Point(12, 239);
this.L_9.Name = "L_9";
this.L_9.Size = new System.Drawing.Size(70, 13);
this.L_9.TabIndex = 33;
@@ -461,16 +473,16 @@ private void InitializeComponent()
"1",
"2",
"3"});
this.CB_9.Location = new System.Drawing.Point(78, 224);
this.CB_9.Location = new System.Drawing.Point(86, 236);
this.CB_9.Name = "CB_9";
this.CB_9.Size = new System.Drawing.Size(37, 21);
this.CB_9.TabIndex = 32;
//
// B_Cancel
//
this.B_Cancel.Location = new System.Drawing.Point(124, 249);
this.B_Cancel.Location = new System.Drawing.Point(268, 246);
this.B_Cancel.Name = "B_Cancel";
this.B_Cancel.Size = new System.Drawing.Size(54, 23);
this.B_Cancel.Size = new System.Drawing.Size(56, 23);
this.B_Cancel.TabIndex = 34;
this.B_Cancel.Text = "Cancel";
this.B_Cancel.UseVisualStyleBackColor = true;
@@ -478,9 +490,9 @@ private void InitializeComponent()
//
// B_Save
//
this.B_Save.Location = new System.Drawing.Point(178, 249);
this.B_Save.Location = new System.Drawing.Point(330, 246);
this.B_Save.Name = "B_Save";
this.B_Save.Size = new System.Drawing.Size(54, 23);
this.B_Save.Size = new System.Drawing.Size(64, 23);
this.B_Save.TabIndex = 35;
this.B_Save.Text = "Save";
this.B_Save.UseVisualStyleBackColor = true;
@@ -488,67 +500,183 @@ private void InitializeComponent()
//
// B_MaxP
//
this.B_MaxP.Location = new System.Drawing.Point(178, 223);
this.B_MaxP.Location = new System.Drawing.Point(140, 234);
this.B_MaxP.Name = "B_MaxP";
this.B_MaxP.Size = new System.Drawing.Size(54, 23);
this.B_MaxP.Size = new System.Drawing.Size(92, 23);
this.B_MaxP.TabIndex = 36;
this.B_MaxP.Text = "MAX+S";
this.B_MaxP.Text = "Give All";
this.B_MaxP.UseVisualStyleBackColor = true;
this.B_MaxP.Click += new System.EventHandler(this.B_MaxP_Click);
//
// B_AllMax
//
this.B_AllMax.Location = new System.Drawing.Point(124, 223);
this.B_AllMax.Location = new System.Drawing.Point(29, 192);
this.B_AllMax.Name = "B_AllMax";
this.B_AllMax.Size = new System.Drawing.Size(54, 23);
this.B_AllMax.Size = new System.Drawing.Size(68, 23);
this.B_AllMax.TabIndex = 37;
this.B_AllMax.Text = "All MAX";
this.B_AllMax.Text = "Give All";
this.B_AllMax.UseVisualStyleBackColor = true;
this.B_AllMax.Click += new System.EventHandler(this.B_AllMax_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.CHK_8);
this.groupBox1.Controls.Add(this.CHK_7);
this.groupBox1.Controls.Add(this.CHK_6);
this.groupBox1.Controls.Add(this.CHK_5);
this.groupBox1.Controls.Add(this.CHK_4);
this.groupBox1.Controls.Add(this.CHK_3);
this.groupBox1.Controls.Add(this.CHK_2);
this.groupBox1.Controls.Add(this.CHK_1);
this.groupBox1.Controls.Add(this.B_AllMax);
this.groupBox1.Location = new System.Drawing.Point(268, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(126, 225);
this.groupBox1.TabIndex = 38;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Event";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.B_MaxP);
this.groupBox2.Controls.Add(this.L_9);
this.groupBox2.Controls.Add(this.CB_9);
this.groupBox2.Controls.Add(this.L_17);
this.groupBox2.Controls.Add(this.CB_17);
this.groupBox2.Controls.Add(this.L_16);
this.groupBox2.Controls.Add(this.CB_16);
this.groupBox2.Controls.Add(this.L_15);
this.groupBox2.Controls.Add(this.CB_15);
this.groupBox2.Controls.Add(this.L_14);
this.groupBox2.Controls.Add(this.CB_14);
this.groupBox2.Controls.Add(this.L_13);
this.groupBox2.Controls.Add(this.CB_13);
this.groupBox2.Controls.Add(this.L_12);
this.groupBox2.Controls.Add(this.CB_12);
this.groupBox2.Controls.Add(this.L_11);
this.groupBox2.Controls.Add(this.CB_11);
this.groupBox2.Controls.Add(this.L_10);
this.groupBox2.Controls.Add(this.CB_10);
this.groupBox2.Controls.Add(this.L_8);
this.groupBox2.Controls.Add(this.CB_8);
this.groupBox2.Controls.Add(this.L_7);
this.groupBox2.Controls.Add(this.CB_7);
this.groupBox2.Controls.Add(this.L_6);
this.groupBox2.Controls.Add(this.CB_6);
this.groupBox2.Controls.Add(this.L_5);
this.groupBox2.Controls.Add(this.CB_5);
this.groupBox2.Controls.Add(this.L_4);
this.groupBox2.Controls.Add(this.CB_4);
this.groupBox2.Controls.Add(this.L_3);
this.groupBox2.Controls.Add(this.CB_3);
this.groupBox2.Controls.Add(this.L_2);
this.groupBox2.Controls.Add(this.CB_2);
this.groupBox2.Controls.Add(this.L_1);
this.groupBox2.Controls.Add(this.CB_1);
this.groupBox2.Location = new System.Drawing.Point(12, 12);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(250, 270);
this.groupBox2.TabIndex = 39;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Regular";
//
// CHK_1
//
this.CHK_1.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_1.Location = new System.Drawing.Point(9, 22);
this.CHK_1.Name = "CHK_1";
this.CHK_1.Size = new System.Drawing.Size(100, 17);
this.CHK_1.TabIndex = 38;
this.CHK_1.Text = "?Bargain MAX";
this.CHK_1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_1.UseVisualStyleBackColor = true;
//
// CHK_2
//
this.CHK_2.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_2.Location = new System.Drawing.Point(9, 43);
this.CHK_2.Name = "CHK_2";
this.CHK_2.Size = new System.Drawing.Size(100, 17);
this.CHK_2.TabIndex = 39;
this.CHK_2.Text = "?EXP MAX";
this.CHK_2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_2.UseVisualStyleBackColor = true;
//
// CHK_3
//
this.CHK_3.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_3.Location = new System.Drawing.Point(9, 64);
this.CHK_3.Name = "CHK_3";
this.CHK_3.Size = new System.Drawing.Size(100, 17);
this.CHK_3.TabIndex = 40;
this.CHK_3.Text = "?Prize MAX";
this.CHK_3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_3.UseVisualStyleBackColor = true;
//
// CHK_4
//
this.CHK_4.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_4.Location = new System.Drawing.Point(9, 85);
this.CHK_4.Name = "CHK_4";
this.CHK_4.Size = new System.Drawing.Size(100, 17);
this.CHK_4.TabIndex = 41;
this.CHK_4.Text = "?Hatch MAX";
this.CHK_4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_4.UseVisualStyleBackColor = true;
//
// CHK_5
//
this.CHK_5.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_5.Location = new System.Drawing.Point(9, 106);
this.CHK_5.Name = "CHK_5";
this.CHK_5.Size = new System.Drawing.Size(100, 17);
this.CHK_5.TabIndex = 42;
this.CHK_5.Text = "?Capture MAX";
this.CHK_5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_5.UseVisualStyleBackColor = true;
//
// CHK_6
//
this.CHK_6.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_6.Location = new System.Drawing.Point(9, 127);
this.CHK_6.Name = "CHK_6";
this.CHK_6.Size = new System.Drawing.Size(100, 17);
this.CHK_6.TabIndex = 43;
this.CHK_6.Text = "?Restore MAX";
this.CHK_6.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_6.UseVisualStyleBackColor = true;
//
// CHK_7
//
this.CHK_7.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_7.Location = new System.Drawing.Point(9, 148);
this.CHK_7.Name = "CHK_7";
this.CHK_7.Size = new System.Drawing.Size(100, 17);
this.CHK_7.TabIndex = 44;
this.CHK_7.Text = "?Befriend MAX";
this.CHK_7.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_7.UseVisualStyleBackColor = true;
//
// CHK_8
//
this.CHK_8.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_8.Location = new System.Drawing.Point(9, 169);
this.CHK_8.Name = "CHK_8";
this.CHK_8.Size = new System.Drawing.Size(100, 17);
this.CHK_8.TabIndex = 45;
this.CHK_8.Text = "?Unused";
this.CHK_8.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.CHK_8.UseVisualStyleBackColor = true;
//
// SAV_OPower
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(244, 278);
this.Controls.Add(this.B_AllMax);
this.Controls.Add(this.B_MaxP);
this.ClientSize = new System.Drawing.Size(404, 292);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.B_Save);
this.Controls.Add(this.B_Cancel);
this.Controls.Add(this.L_9);
this.Controls.Add(this.CB_9);
this.Controls.Add(this.L_17);
this.Controls.Add(this.CB_17);
this.Controls.Add(this.L_16);
this.Controls.Add(this.CB_16);
this.Controls.Add(this.L_15);
this.Controls.Add(this.CB_15);
this.Controls.Add(this.L_14);
this.Controls.Add(this.CB_14);
this.Controls.Add(this.L_13);
this.Controls.Add(this.CB_13);
this.Controls.Add(this.L_12);
this.Controls.Add(this.CB_12);
this.Controls.Add(this.L_11);
this.Controls.Add(this.CB_11);
this.Controls.Add(this.L_10);
this.Controls.Add(this.CB_10);
this.Controls.Add(this.L_8);
this.Controls.Add(this.CB_8);
this.Controls.Add(this.L_7);
this.Controls.Add(this.CB_7);
this.Controls.Add(this.L_6);
this.Controls.Add(this.CB_6);
this.Controls.Add(this.L_5);
this.Controls.Add(this.CB_5);
this.Controls.Add(this.L_4);
this.Controls.Add(this.CB_4);
this.Controls.Add(this.L_3);
this.Controls.Add(this.CB_3);
this.Controls.Add(this.L_2);
this.Controls.Add(this.CB_2);
this.Controls.Add(this.L_1);
this.Controls.Add(this.CB_1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
@@ -556,6 +684,8 @@ private void InitializeComponent()
this.Name = "SAV_OPower";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "O-Power Editor";
this.groupBox1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.ResumeLayout(false);
}
@@ -600,5 +730,15 @@ private void InitializeComponent()
private System.Windows.Forms.Button B_Save;
private System.Windows.Forms.Button B_MaxP;
private System.Windows.Forms.Button B_AllMax;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.CheckBox CHK_8;
private System.Windows.Forms.CheckBox CHK_7;
private System.Windows.Forms.CheckBox CHK_6;
private System.Windows.Forms.CheckBox CHK_5;
private System.Windows.Forms.CheckBox CHK_4;
private System.Windows.Forms.CheckBox CHK_3;
private System.Windows.Forms.CheckBox CHK_2;
private System.Windows.Forms.CheckBox CHK_1;
private System.Windows.Forms.GroupBox groupBox2;
}
}

View File

@@ -52,7 +52,7 @@ private void LoadData()
CB_9.SelectedIndex = getIndex(o, 3); o += 3; // 23
o++;
CB_10.SelectedIndex = getIndex(o, 4); o += 4; o++; // @ 27
CB_10.SelectedIndex = getIndex(o, 4); o += 4; o++; // @ 27-
CB_11.SelectedIndex = getIndex(o, 3); o += 3; // 2C-2E
CB_12.SelectedIndex = getIndex(o, 3); o += 3; // 2F-31
@@ -61,6 +61,16 @@ private void LoadData()
CB_15.SelectedIndex = getIndex(o, 3); o += 3; // 38-3A
CB_16.SelectedIndex = getIndex(o, 3); o += 3; // 3B-3D
CB_17.SelectedIndex = getIndex(o, 3); o += 3; // 3E-40
// Load Maxes
CHK_1.Checked = Convert.ToBoolean(m_parent.savefile[0x1BE00 + 0x00]);
CHK_2.Checked = Convert.ToBoolean(m_parent.savefile[0x1BE00 + 0x05]);
CHK_3.Checked = Convert.ToBoolean(m_parent.savefile[0x1BE00 + 0x0A]);
CHK_4.Checked = Convert.ToBoolean(m_parent.savefile[0x1BE00 + 0x0F]);
CHK_5.Checked = Convert.ToBoolean(m_parent.savefile[0x1BE00 + 0x14]);
CHK_6.Checked = Convert.ToBoolean(m_parent.savefile[0x1BE00 + 0x19]);
CHK_7.Checked = Convert.ToBoolean(m_parent.savefile[0x1BE00 + 0x26]);
CHK_8.Checked = Convert.ToBoolean(m_parent.savefile[0x1BE00 + 0x2B]);
}
private void SaveData()
{
@@ -85,10 +95,17 @@ private void SaveData()
}
Array.Copy(data, 0, m_parent.savefile, o + offsets[i], data.Length);
}
}
private void setindex(int o, int l, int v)
{
// Save Maxes
m_parent.savefile[m_parent.savindex * 0x7F000 + 0x1BE00 + 0x00] = Convert.ToByte(CHK_1.Checked);
m_parent.savefile[m_parent.savindex * 0x7F000 + 0x1BE00 + 0x05] = Convert.ToByte(CHK_2.Checked);
m_parent.savefile[m_parent.savindex * 0x7F000 + 0x1BE00 + 0x0A] = Convert.ToByte(CHK_3.Checked);
m_parent.savefile[m_parent.savindex * 0x7F000 + 0x1BE00 + 0x0F] = Convert.ToByte(CHK_4.Checked);
m_parent.savefile[m_parent.savindex * 0x7F000 + 0x1BE00 + 0x14] = Convert.ToByte(CHK_5.Checked);
m_parent.savefile[m_parent.savindex * 0x7F000 + 0x1BE00 + 0x19] = Convert.ToByte(CHK_6.Checked);
m_parent.savefile[m_parent.savindex * 0x7F000 + 0x1BE00 + 0x26] = Convert.ToByte(CHK_7.Checked);
m_parent.savefile[m_parent.savindex * 0x7F000 + 0x1BE00 + 0x2B] = Convert.ToByte(CHK_8.Checked);
}
private int getIndex(int o, int l)
{
@@ -123,15 +140,23 @@ private void max(bool s)
CB_1, CB_2, CB_3, CB_4, CB_5, CB_6, CB_7, CB_8, CB_9,
CB_10, CB_11, CB_12, CB_13, CB_14, CB_15, CB_16, CB_17,
};
if (s)
CheckBox[] echk = new CheckBox[] { CHK_1, CHK_2, CHK_3, CHK_4, CHK_5, CHK_6, CHK_7, CHK_8 };
{
for (int i = 0; i < cba.Length; i++)
cba[i].SelectedIndex = cba[i].Items.Count-1;
cba[i].SelectedIndex = (cba[i].Items.Count-1);
}
else
if (!s)
{
for (int i = 0; i < echk.Length; i++)
echk[i].Checked = !(ModifierKeys == Keys.Control);
}
else if (ModifierKeys == Keys.Control)
{
for (int i = 0; i < cba.Length; i++)
cba[i].SelectedIndex = 3;
cba[i].SelectedIndex = 0;
for (int i = 0; i < echk.Length; i++)
echk[i].Checked = false;
}
}
}

View File

@@ -117,120 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="CB_1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_7.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_7.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_17.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_17.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_16.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_16.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_15.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_15.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_14.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_14.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_13.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_13.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_12.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_12.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_11.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_11.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_10.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_10.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_9.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_9.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_Cancel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_Save.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_MaxP.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_AllMax.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>

398
SAV_Pokedex.Designer.cs generated Normal file
View File

@@ -0,0 +1,398 @@
namespace PKHeX
{
partial class SAV_Pokedex
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SAV_Pokedex));
this.B_Cancel = new System.Windows.Forms.Button();
this.L_Beta = new System.Windows.Forms.Label();
this.LB_Species = new System.Windows.Forms.ListBox();
this.CHK_P1 = new System.Windows.Forms.CheckBox();
this.CHK_P2 = new System.Windows.Forms.CheckBox();
this.CHK_P3 = new System.Windows.Forms.CheckBox();
this.CHK_P4 = new System.Windows.Forms.CheckBox();
this.CHK_P5 = new System.Windows.Forms.CheckBox();
this.CHK_P6 = new System.Windows.Forms.CheckBox();
this.CHK_P7 = new System.Windows.Forms.CheckBox();
this.CHK_P8 = new System.Windows.Forms.CheckBox();
this.CHK_P9 = new System.Windows.Forms.CheckBox();
this.CHK_P10 = new System.Windows.Forms.CheckBox();
this.CHK_L7 = new System.Windows.Forms.CheckBox();
this.CHK_L6 = new System.Windows.Forms.CheckBox();
this.CHK_L5 = new System.Windows.Forms.CheckBox();
this.CHK_L4 = new System.Windows.Forms.CheckBox();
this.CHK_L3 = new System.Windows.Forms.CheckBox();
this.CHK_L2 = new System.Windows.Forms.CheckBox();
this.CHK_L1 = new System.Windows.Forms.CheckBox();
this.label1 = new System.Windows.Forms.Label();
this.CB_Species = new System.Windows.Forms.ComboBox();
this.B_GiveAll = new System.Windows.Forms.Button();
this.B_Save = new System.Windows.Forms.Button();
this.B_FillDex = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// B_Cancel
//
this.B_Cancel.Location = new System.Drawing.Point(262, 189);
this.B_Cancel.Name = "B_Cancel";
this.B_Cancel.Size = new System.Drawing.Size(80, 23);
this.B_Cancel.TabIndex = 0;
this.B_Cancel.Text = "Cancel";
this.B_Cancel.UseVisualStyleBackColor = true;
this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
//
// L_Beta
//
this.L_Beta.AutoSize = true;
this.L_Beta.ForeColor = System.Drawing.Color.Red;
this.L_Beta.Location = new System.Drawing.Point(156, 209);
this.L_Beta.Name = "L_Beta";
this.L_Beta.Size = new System.Drawing.Size(84, 13);
this.L_Beta.TabIndex = 1;
this.L_Beta.Text = "Still researching.";
//
// LB_Species
//
this.LB_Species.FormattingEnabled = true;
this.LB_Species.Location = new System.Drawing.Point(12, 40);
this.LB_Species.Name = "LB_Species";
this.LB_Species.Size = new System.Drawing.Size(130, 173);
this.LB_Species.TabIndex = 2;
this.LB_Species.SelectedIndexChanged += new System.EventHandler(this.changeLBSpecies);
//
// CHK_P1
//
this.CHK_P1.AutoSize = true;
this.CHK_P1.Enabled = false;
this.CHK_P1.Location = new System.Drawing.Point(159, 40);
this.CHK_P1.Name = "CHK_P1";
this.CHK_P1.Size = new System.Drawing.Size(73, 17);
this.CHK_P1.TabIndex = 3;
this.CHK_P1.Text = "Partition 1";
this.CHK_P1.UseVisualStyleBackColor = true;
//
// CHK_P2
//
this.CHK_P2.AutoSize = true;
this.CHK_P2.Enabled = false;
this.CHK_P2.Location = new System.Drawing.Point(159, 57);
this.CHK_P2.Name = "CHK_P2";
this.CHK_P2.Size = new System.Drawing.Size(73, 17);
this.CHK_P2.TabIndex = 4;
this.CHK_P2.Text = "Partition 2";
this.CHK_P2.UseVisualStyleBackColor = true;
//
// CHK_P3
//
this.CHK_P3.AutoSize = true;
this.CHK_P3.Enabled = false;
this.CHK_P3.Location = new System.Drawing.Point(159, 74);
this.CHK_P3.Name = "CHK_P3";
this.CHK_P3.Size = new System.Drawing.Size(73, 17);
this.CHK_P3.TabIndex = 5;
this.CHK_P3.Text = "Partition 3";
this.CHK_P3.UseVisualStyleBackColor = true;
//
// CHK_P4
//
this.CHK_P4.AutoSize = true;
this.CHK_P4.Enabled = false;
this.CHK_P4.Location = new System.Drawing.Point(159, 91);
this.CHK_P4.Name = "CHK_P4";
this.CHK_P4.Size = new System.Drawing.Size(73, 17);
this.CHK_P4.TabIndex = 6;
this.CHK_P4.Text = "Partition 4";
this.CHK_P4.UseVisualStyleBackColor = true;
//
// CHK_P5
//
this.CHK_P5.AutoSize = true;
this.CHK_P5.Enabled = false;
this.CHK_P5.Location = new System.Drawing.Point(159, 108);
this.CHK_P5.Name = "CHK_P5";
this.CHK_P5.Size = new System.Drawing.Size(73, 17);
this.CHK_P5.TabIndex = 7;
this.CHK_P5.Text = "Partition 5";
this.CHK_P5.UseVisualStyleBackColor = true;
//
// CHK_P6
//
this.CHK_P6.AutoSize = true;
this.CHK_P6.Enabled = false;
this.CHK_P6.Location = new System.Drawing.Point(159, 125);
this.CHK_P6.Name = "CHK_P6";
this.CHK_P6.Size = new System.Drawing.Size(73, 17);
this.CHK_P6.TabIndex = 8;
this.CHK_P6.Text = "Partition 6";
this.CHK_P6.UseVisualStyleBackColor = true;
//
// CHK_P7
//
this.CHK_P7.AutoSize = true;
this.CHK_P7.Enabled = false;
this.CHK_P7.Location = new System.Drawing.Point(159, 142);
this.CHK_P7.Name = "CHK_P7";
this.CHK_P7.Size = new System.Drawing.Size(73, 17);
this.CHK_P7.TabIndex = 9;
this.CHK_P7.Text = "Partition 7";
this.CHK_P7.UseVisualStyleBackColor = true;
//
// CHK_P8
//
this.CHK_P8.AutoSize = true;
this.CHK_P8.Enabled = false;
this.CHK_P8.Location = new System.Drawing.Point(159, 159);
this.CHK_P8.Name = "CHK_P8";
this.CHK_P8.Size = new System.Drawing.Size(73, 17);
this.CHK_P8.TabIndex = 10;
this.CHK_P8.Text = "Partition 8";
this.CHK_P8.UseVisualStyleBackColor = true;
//
// CHK_P9
//
this.CHK_P9.AutoSize = true;
this.CHK_P9.Enabled = false;
this.CHK_P9.Location = new System.Drawing.Point(159, 176);
this.CHK_P9.Name = "CHK_P9";
this.CHK_P9.Size = new System.Drawing.Size(73, 17);
this.CHK_P9.TabIndex = 11;
this.CHK_P9.Text = "Partition 9";
this.CHK_P9.UseVisualStyleBackColor = true;
//
// CHK_P10
//
this.CHK_P10.AutoSize = true;
this.CHK_P10.Enabled = false;
this.CHK_P10.Location = new System.Drawing.Point(159, 193);
this.CHK_P10.Name = "CHK_P10";
this.CHK_P10.Size = new System.Drawing.Size(74, 17);
this.CHK_P10.TabIndex = 12;
this.CHK_P10.Text = "Partition A";
this.CHK_P10.UseVisualStyleBackColor = true;
//
// CHK_L7
//
this.CHK_L7.AutoSize = true;
this.CHK_L7.Enabled = false;
this.CHK_L7.Location = new System.Drawing.Point(262, 142);
this.CHK_L7.Name = "CHK_L7";
this.CHK_L7.Size = new System.Drawing.Size(83, 17);
this.CHK_L7.TabIndex = 19;
this.CHK_L7.Text = "Language 7";
this.CHK_L7.UseVisualStyleBackColor = true;
//
// CHK_L6
//
this.CHK_L6.AutoSize = true;
this.CHK_L6.Enabled = false;
this.CHK_L6.Location = new System.Drawing.Point(262, 125);
this.CHK_L6.Name = "CHK_L6";
this.CHK_L6.Size = new System.Drawing.Size(83, 17);
this.CHK_L6.TabIndex = 18;
this.CHK_L6.Text = "Language 6";
this.CHK_L6.UseVisualStyleBackColor = true;
//
// CHK_L5
//
this.CHK_L5.AutoSize = true;
this.CHK_L5.Enabled = false;
this.CHK_L5.Location = new System.Drawing.Point(262, 108);
this.CHK_L5.Name = "CHK_L5";
this.CHK_L5.Size = new System.Drawing.Size(83, 17);
this.CHK_L5.TabIndex = 17;
this.CHK_L5.Text = "Language 5";
this.CHK_L5.UseVisualStyleBackColor = true;
//
// CHK_L4
//
this.CHK_L4.AutoSize = true;
this.CHK_L4.Enabled = false;
this.CHK_L4.Location = new System.Drawing.Point(262, 91);
this.CHK_L4.Name = "CHK_L4";
this.CHK_L4.Size = new System.Drawing.Size(83, 17);
this.CHK_L4.TabIndex = 16;
this.CHK_L4.Text = "Language 4";
this.CHK_L4.UseVisualStyleBackColor = true;
//
// CHK_L3
//
this.CHK_L3.AutoSize = true;
this.CHK_L3.Enabled = false;
this.CHK_L3.Location = new System.Drawing.Point(262, 74);
this.CHK_L3.Name = "CHK_L3";
this.CHK_L3.Size = new System.Drawing.Size(83, 17);
this.CHK_L3.TabIndex = 15;
this.CHK_L3.Text = "Language 3";
this.CHK_L3.UseVisualStyleBackColor = true;
//
// CHK_L2
//
this.CHK_L2.AutoSize = true;
this.CHK_L2.Enabled = false;
this.CHK_L2.Location = new System.Drawing.Point(262, 57);
this.CHK_L2.Name = "CHK_L2";
this.CHK_L2.Size = new System.Drawing.Size(83, 17);
this.CHK_L2.TabIndex = 14;
this.CHK_L2.Text = "Language 2";
this.CHK_L2.UseVisualStyleBackColor = true;
//
// CHK_L1
//
this.CHK_L1.AutoSize = true;
this.CHK_L1.Enabled = false;
this.CHK_L1.Location = new System.Drawing.Point(262, 40);
this.CHK_L1.Name = "CHK_L1";
this.CHK_L1.Size = new System.Drawing.Size(83, 17);
this.CHK_L1.TabIndex = 13;
this.CHK_L1.Text = "Language 1";
this.CHK_L1.UseVisualStyleBackColor = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 16);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(31, 13);
this.label1.TabIndex = 20;
this.label1.Text = "goto:";
//
// CB_Species
//
this.CB_Species.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
this.CB_Species.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.CB_Species.DropDownWidth = 95;
this.CB_Species.FormattingEnabled = true;
this.CB_Species.Location = new System.Drawing.Point(50, 13);
this.CB_Species.Name = "CB_Species";
this.CB_Species.Size = new System.Drawing.Size(92, 21);
this.CB_Species.TabIndex = 21;
this.CB_Species.SelectedIndexChanged += new System.EventHandler(this.changeCBSpecies);
this.CB_Species.SelectedValueChanged += new System.EventHandler(this.changeCBSpecies);
this.CB_Species.KeyDown += new System.Windows.Forms.KeyEventHandler(this.removedropCB);
//
// B_GiveAll
//
this.B_GiveAll.Enabled = false;
this.B_GiveAll.Location = new System.Drawing.Point(157, 11);
this.B_GiveAll.Name = "B_GiveAll";
this.B_GiveAll.Size = new System.Drawing.Size(80, 23);
this.B_GiveAll.TabIndex = 23;
this.B_GiveAll.Text = "Give All";
this.B_GiveAll.UseVisualStyleBackColor = true;
//
// B_Save
//
this.B_Save.Enabled = false;
this.B_Save.Location = new System.Drawing.Point(262, 165);
this.B_Save.Name = "B_Save";
this.B_Save.Size = new System.Drawing.Size(80, 23);
this.B_Save.TabIndex = 24;
this.B_Save.Text = "Save";
this.B_Save.UseVisualStyleBackColor = true;
//
// B_FillDex
//
this.B_FillDex.Enabled = false;
this.B_FillDex.Location = new System.Drawing.Point(262, 11);
this.B_FillDex.Name = "B_FillDex";
this.B_FillDex.Size = new System.Drawing.Size(80, 23);
this.B_FillDex.TabIndex = 25;
this.B_FillDex.Text = "Fill Dex";
this.B_FillDex.UseVisualStyleBackColor = true;
//
// SAV_Pokedex
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(354, 222);
this.Controls.Add(this.L_Beta);
this.Controls.Add(this.B_FillDex);
this.Controls.Add(this.B_Save);
this.Controls.Add(this.B_GiveAll);
this.Controls.Add(this.CB_Species);
this.Controls.Add(this.label1);
this.Controls.Add(this.CHK_L7);
this.Controls.Add(this.CHK_L6);
this.Controls.Add(this.CHK_L5);
this.Controls.Add(this.CHK_L4);
this.Controls.Add(this.CHK_L3);
this.Controls.Add(this.CHK_L2);
this.Controls.Add(this.CHK_L1);
this.Controls.Add(this.CHK_P10);
this.Controls.Add(this.CHK_P9);
this.Controls.Add(this.CHK_P8);
this.Controls.Add(this.CHK_P7);
this.Controls.Add(this.CHK_P6);
this.Controls.Add(this.CHK_P5);
this.Controls.Add(this.CHK_P4);
this.Controls.Add(this.CHK_P3);
this.Controls.Add(this.CHK_P2);
this.Controls.Add(this.CHK_P1);
this.Controls.Add(this.LB_Species);
this.Controls.Add(this.B_Cancel);
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_Pokedex";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Pokédex Editor";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button B_Cancel;
private System.Windows.Forms.Label L_Beta;
private System.Windows.Forms.ListBox LB_Species;
private System.Windows.Forms.CheckBox CHK_P1;
private System.Windows.Forms.CheckBox CHK_P2;
private System.Windows.Forms.CheckBox CHK_P3;
private System.Windows.Forms.CheckBox CHK_P4;
private System.Windows.Forms.CheckBox CHK_P5;
private System.Windows.Forms.CheckBox CHK_P6;
private System.Windows.Forms.CheckBox CHK_P7;
private System.Windows.Forms.CheckBox CHK_P8;
private System.Windows.Forms.CheckBox CHK_P9;
private System.Windows.Forms.CheckBox CHK_P10;
private System.Windows.Forms.CheckBox CHK_L7;
private System.Windows.Forms.CheckBox CHK_L6;
private System.Windows.Forms.CheckBox CHK_L5;
private System.Windows.Forms.CheckBox CHK_L4;
private System.Windows.Forms.CheckBox CHK_L3;
private System.Windows.Forms.CheckBox CHK_L2;
private System.Windows.Forms.CheckBox CHK_L1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox CB_Species;
private System.Windows.Forms.Button B_GiveAll;
private System.Windows.Forms.Button B_Save;
private System.Windows.Forms.Button B_FillDex;
}
}

115
SAV_Pokedex.cs Normal file
View File

@@ -0,0 +1,115 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace PKHeX
{
public partial class SAV_Pokedex : Form
{
public SAV_Pokedex(Form1 frm1)
{
m_parent = frm1;
InitializeComponent();
Array.Copy(m_parent.savefile, sav, sav.Length);
savshift = m_parent.savindex*0x7F000;
Setup();
editing = false;
}
public byte[] sav = new Byte[0x100000];
public int savshift = 0;
public bool[,] specbools = new bool[10, 0x60 * 8];
public bool[,] langbools = new bool[7, 0x60 * 8];
Form1 m_parent;
private void Setup()
{
// Clear Listbox and ComboBox
LB_Species.Items.Clear();
CB_Species.Items.Clear();
// Fill List
List<cbItem> species_list = (List<cbItem>)m_parent.CB_Species.DataSource;
species_list.RemoveAt(0); // Remove 0th Entry
CB_Species.DataSource = species_list;
CB_Species.DisplayMember = "Text";
CB_Species.ValueMember = "Value";
for (int i = 1; i < m_parent.specieslist.Length; i++)
{
LB_Species.Items.Add(i.ToString("000") + " - " + m_parent.specieslist[i]);
}
// Fill Bit arrays
for (int i = 0; i < 0xA; i++)
{
byte[] data = new Byte[0x60];
Array.Copy(sav, savshift + 0x1A408 + 0x60 * i, data, 0, 0x60);
BitArray BitRegion = new BitArray(data);
for (int b = 0; b < (0x60 * 8); b++)
specbools[i, b] = BitRegion[b];
}
// Fill Language arrays
byte[] langdata = new Byte[0x280];
Array.Copy(sav, savshift + 0x1A7C8, langdata, 0, 0x280);
BitArray LangRegion = new BitArray(langdata);
for (int b = 0; b < (0x60 * 8); b++)
langbools[b % 7, b / 7] = LangRegion[b];
}
private void B_Cancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void changeCBSpecies(object sender, EventArgs e)
{
if (!editing)
{
editing = true;
int index = (int)CB_Species.SelectedValue;
LB_Species.SelectedIndex = index - 1; // Since we don't allow index0 in combobox, everything is shifted by 1
LB_Species.TopIndex = (int)(LB_Species.SelectedIndex);
editing = false;
}
loadchks();
}
bool editing = true;
private void changeLBSpecies(object sender, EventArgs e)
{
if (!editing)
{
editing = true;
int index = LB_Species.SelectedIndex + 1;
CB_Species.SelectedValue = index;
editing = false;
}
loadchks();
}
private void loadchks()
{
// Load Bools for the data
int pk = (int)((PKHeX.cbItem)(CB_Species.SelectedItem)).Value;
CheckBox[] CP = new CheckBox[] {
CHK_P1,CHK_P2,CHK_P3,CHK_P4,CHK_P5,CHK_P6,CHK_P7,CHK_P8,CHK_P9,CHK_P10,
};
CheckBox[] CL = new CheckBox[] {
CHK_L1,CHK_L2,CHK_L3,CHK_L4,CHK_L5,CHK_L6,CHK_L7,
};
// Load Partitions
for (int i = 0; i < 10; i++)
CP[i].Checked = specbools[i, pk-1];
for (int i = 0; i < 7; i++)
CL[i].Checked = langbools[i, pk-1];
}
private void removedropCB(object sender, KeyEventArgs e)
{
((ComboBox)sender).DroppedDown = false;
}
}
}

216
SAV_Pokedex.resx Normal file
View File

@@ -0,0 +1,216 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAIAEBAAAAEAIABoBAAAJgAAACAgAAABACAAqBAAAI4EAAAoAAAAEAAAACAAAAABACAAAAAAAAAE
AAAAAAAAAAAAAAAAAAAAAAA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YGMz/GBjM/xgYzP8YGM3/GBjN/xgYzf8YGM3/GBjM/xgY
zP8YGMz/GBjL/xcXy/8XF8r/FxfJ/xcXyf8WFsj/FRXH/xQUw/8jI8f0Dg5GGwAAAAAAAAAAFhZxAiUl
eIUZGcr/FBTI/xUVyv8WFsv/FhbM/xYWzP8WFsz/FhbN/xcXzf8XF83/FxfN/xcXzv8XF87/FxfO/xcX
zv8XF87/FxfN/xcXzf8WFs3/FhbM/xYWzP8WFsz/FhbL/xUVyv8UFMj/GBjJ/yYmeogWFnYCAAAAAAAA
AAAAAAAAGBh1BzMzk50kJNP+FxfK/xgYzP8YGMz/GBjN/xgYzf8YGM3/GBjN/xgYzf8ZGc7/GRnO/xkZ
zv8ZGc7/GRnO/xkZzv8YGM3/GBjN/xgYzf8YGM3/GBjN/xgYzP8YGMz/FxfK/yMj0v4zM5WfFBRkBwAA
AAAAAAAAAAAAAAAAAAAAAAAAHBx7Ay0tdkg3N5emMTGpxSwsp8gsLKfILCynyCwsp8gsLKfILCynyCws
p8gsLKfILCynyCwsp8gsLKfILCynyCwsp8gsLKfILCynyCwsp8gsLKfILCynyDExqcU2NpenLi54Shsb
ewMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////8AAAD+AAAAfAAAADwAAAA8AAAAPAAAADwAAAA8AA
AAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AA
AAPAAAADwAAAA8AAAAPAAAAD4AAAB/gAAB//////
</value>
</data>
</root>

1140
SAV_Trainer.Designer.cs generated

File diff suppressed because it is too large Load Diff

View File

@@ -284,10 +284,10 @@ private void getTextBoxes()
TB_MBMN.Text = BitConverter.ToUInt16(sav, savshift + 0x205C0 + 2 * 18).ToString();
TB_MBMS.Text = BitConverter.ToUInt16(sav, savshift + 0x205C0 + 2 * 19).ToString();
TB_CoordM.Text = BitConverter.ToUInt16(sav, savshift + 0x6802).ToString("X4");
TB_CoordX.Text = BitConverter.ToSingle(sav, savshift + 0x6810).ToString("0.0");
TB_CoordZ.Text = BitConverter.ToSingle(sav, savshift + 0x6814).ToString("0.0");
TB_CoordY.Text = BitConverter.ToSingle(sav, savshift + 0x6818).ToString("0.0");
TB_CoordM.Text = BitConverter.ToUInt16(sav, savshift + 0x6802).ToString();
TB_CoordX.Text = BitConverter.ToSingle(sav, savshift + 0x6810).ToString();
TB_CoordZ.Text = BitConverter.ToSingle(sav, savshift + 0x6814).ToString();
TB_CoordY.Text = BitConverter.ToSingle(sav, savshift + 0x6818).ToString();
// Load BP and PokeMiles
TB_BP.Text = BitConverter.ToUInt32(sav, savshift + 0x963C).ToString();
@@ -353,7 +353,7 @@ private void save()
// New stuff.
// Copy Maison Data in
TextBox[] tba = new TextBox[] {
MaskedTextBox[] tba = new MaskedTextBox[] {
TB_MCSN,TB_MCSS,TB_MBSN,TB_MBSS,
TB_MCDN,TB_MCDS,TB_MBDN,TB_MBDS,
TB_MCTN,TB_MCTS,TB_MBTN,TB_MBTS,
@@ -372,8 +372,6 @@ private void save()
byte[] x = BitConverter.GetBytes(Single.Parse(TB_CoordX.Text)); Array.Resize(ref x, 4); Array.Copy(x,0,sav, savshift + 0x6810,4);
byte[] z = BitConverter.GetBytes(Single.Parse(TB_CoordZ.Text)); Array.Resize(ref z, 4); Array.Copy(z,0,sav, savshift + 0x6814,4);
byte[] y = BitConverter.GetBytes(Single.Parse(TB_CoordY.Text)); Array.Resize(ref y, 4); Array.Copy(y,0,sav, savshift + 0x6818,4);
TB_BP.Text = BitConverter.ToUInt32(sav, savshift + 0x963C).ToString();
TB_PM.Text = BitConverter.ToUInt32(sav, savshift + 0x238FC).ToString();
byte[] bp = BitConverter.GetBytes(ToUInt32(TB_BP.Text)); Array.Resize(ref bp, 2); Array.Copy(bp, 0, sav, savshift + 0x963C, 2);
byte[] pm = BitConverter.GetBytes(ToUInt32(TB_PM.Text)); Array.Resize(ref pm, 4); Array.Copy(pm, 0, sav, savshift + 0x238FC, 4); Array.Copy(pm, 0, sav, savshift + 0x23900, 4);
@@ -421,6 +419,7 @@ private void changeBadge(object sender, EventArgs e)
private void changeStyle(object sender, EventArgs e)
{
if (TB_Style.Text == "") TB_Style.Text = "0";
if (int.Parse(TB_Style.Text) > 255) TB_Style.Text = "255";
}

View File

@@ -117,210 +117,6 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="B_Cancel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_Save.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_OTName.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MT_Money.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_TID.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="L_SID.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MT_TID.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="MT_SID.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cb1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cb2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cb3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cb4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cb5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cb6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cb7.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="cb8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="GB_Badges.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pb8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pb6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pb4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pb2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pb7.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pb5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pb3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="pb1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="GB_Overview.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_Region.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_Country.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="B_MaxCash.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_3DSReg.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_Language.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_Game.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="CB_Gender.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox2.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label8.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label7.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label6.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label5.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label4.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label3.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MBMN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MBRN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MBTN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MBDN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MBSN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="groupBox1.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label11.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label12.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label13.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label14.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label15.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label16.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MCMN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MCRN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MCTN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MCDN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_MCSN.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_CoordZ.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_CoordY.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_CoordX.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="TB_CoordM.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label17.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label18.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label19.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="label20.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>

2
f1-Main.Designer.cs generated
View File

@@ -3755,13 +3755,13 @@ public void InitializeComponent()
//
// B_OpenPokedex
//
this.B_OpenPokedex.Enabled = false;
this.B_OpenPokedex.Location = new System.Drawing.Point(177, 70);
this.B_OpenPokedex.Name = "B_OpenPokedex";
this.B_OpenPokedex.Size = new System.Drawing.Size(75, 23);
this.B_OpenPokedex.TabIndex = 14;
this.B_OpenPokedex.Text = "Pokédex";
this.B_OpenPokedex.UseVisualStyleBackColor = true;
this.B_OpenPokedex.Click += new System.EventHandler(this.B_OpenPokedex_Click);
//
// GB_SAVtools
//

View File

@@ -6720,6 +6720,7 @@ public byte[] preparepkx(byte[] buff)
byte[] pkx = buff;
// Repopulate PKX with Edited Stuff
if (getHEXval(TB_EC) == 0) BTN_RerollEC.PerformClick(); // Prevent 0 Encryption Constants
Array.Copy(BitConverter.GetBytes(getHEXval(TB_EC)), 0, pkx, 0, 4); // EK
Array.Copy(BitConverter.GetBytes(0), 0, pkx, 0x4, 4); // 0 CHK for now
@@ -8433,6 +8434,12 @@ private void B_OpenOPowers_Click(object sender, EventArgs e)
SAV_OPower opower = new PKHeX.SAV_OPower(this);
opower.ShowDialog();
}
private void B_OpenPokedex_Click(object sender, EventArgs e)
{
// Open Pokedex Menu
SAV_Pokedex pokedex = new PKHeX.SAV_Pokedex(this);
pokedex.ShowDialog();
}
private void B_OUTPasserby_Click(object sender, EventArgs e)
{
RTB_T.Text = "PSS List\r\n\r\n";
@@ -8665,6 +8672,8 @@ private void reportToolStripMenuItem_Click(object sender, EventArgs e)
}
}
#region Structs & Classes
public class cbItem