Trainer Info/Pokedex editing for Gen I

This commit is contained in:
Michael Scire 2016-08-29 17:48:05 -07:00
parent b94f3c8918
commit b91324fb2e
10 changed files with 902 additions and 12 deletions

View file

@ -3366,6 +3366,8 @@ namespace PKHeX
new SAV_PokedexORAS().ShowDialog();
else if (SAV.XY)
new SAV_PokedexXY().ShowDialog();
else if (SAV.RBY)
new SAV_SimplePokedex().ShowDialog();
}
private void B_OUTPasserby_Click(object sender, EventArgs e)
{

View file

@ -201,6 +201,12 @@
<Compile Include="Subforms\Save Editors\SAV_BoxViewer.Designer.cs">
<DependentUpon>SAV_BoxViewer.cs</DependentUpon>
</Compile>
<Compile Include="Subforms\Save Editors\SAV_SimplePokedex.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Subforms\Save Editors\SAV_SimplePokedex.Designer.cs">
<DependentUpon>SAV_SimplePokedex.cs</DependentUpon>
</Compile>
<Compile Include="Subforms\SAV_Database.cs">
<SubType>Form</SubType>
</Compile>
@ -354,6 +360,9 @@
<EmbeddedResource Include="Subforms\Save Editors\SAV_BoxViewer.resx">
<DependentUpon>SAV_BoxViewer.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Subforms\Save Editors\SAV_SimplePokedex.resx">
<DependentUpon>SAV_SimplePokedex.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Subforms\SAV_Database.resx">
<DependentUpon>SAV_Database.cs</DependentUpon>
</EmbeddedResource>
@ -412,6 +421,7 @@
<SubType>Designer</SubType>
</EmbeddedResource>
<None Include="app.config" />
<None Include="ClassDiagram1.cd" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>

View file

@ -98,6 +98,9 @@ namespace PKHeX
daycareList.GetBytes().CopyTo(Data, getPartyOffset(7));
Daycare = getPartyOffset(7);
// Enable Pokedex editing
PokeDex = 0;
if (!Exportable)
resetBoxes();
}
@ -134,7 +137,7 @@ namespace PKHeX
partyPL.GetBytes().CopyTo(Data, Japanese ? 0x2ED5 : 0x2F2C);
// Daycare is read-only, but in case it ever becomes editable, copy it back in.
byte[] rawDC = getData(getDaycareSlotOffset(0, 0), SIZE_STORED);
byte[] rawDC = getData(getDaycareSlotOffset(), SIZE_STORED);
byte[] dc = new byte[1 + 2*StringLength + PKX.SIZE_1STORED];
dc[0] = rawDC[0];
Array.Copy(rawDC, 2 + 1 + PKX.SIZE_1PARTY + StringLength, dc, 1, StringLength);
@ -268,6 +271,58 @@ namespace PKHeX
set { Data[Japanese ? 0x2CA3 : 0x2CF0] = (byte)value; }
}
public int Badges
{
get { return Data[Japanese ? 0x25F8 : 0x2602]; }
set { if (value < 0) return; Data[Japanese ? 0x25F8 : 0x2602] = (byte)value; }
}
private byte Options
{
get { return Data[Japanese ? 0x25F7 : 0x2601]; }
set { Data[Japanese ? 0x25F7 : 0x2601] = value; }
}
public bool BattleEffects
{
get { return (Options & 0x80) == 0; }
set { Options = (byte)((Options & 0x7F) | (value ? 0 : 0x80)); }
}
public bool BattleStyleSwitch
{
get { return (Options & 0x40) == 0; }
set { Options = (byte)((Options & 0xBF) | (value ? 0 : 0x40)); }
}
public int Sound
{
get { return (Options & 0x30) >> 4; }
set
{
var new_sound = value;
if (new_sound > 3)
new_sound = 3;
if (new_sound < 0)
new_sound = 0;
Options = (byte)((Options & 0xCF) | (new_sound << 4));
}
}
public int TextSpeed
{
get { return Options & 0x7; }
set
{
var new_speed = value;
if (new_speed > 7)
new_speed = 7;
if (new_speed < 0)
new_speed = 0;
Options = (byte)((Options & 0xF8) | new_speed);
}
}
public override uint Money
{
get { return uint.Parse((Util.SwapEndianness(BitConverter.ToUInt32(Data, Japanese ? 0x25EE : 0x25F3)) >> 8).ToString("X6")); }
@ -396,7 +451,39 @@ namespace PKHeX
return data;
}
protected override void setDex(PKM pkm)
public override bool getSeen(PKM pkm)
{
if (pkm.Species == 0)
return false;
if (pkm.Species > MaxSpeciesID)
return false;
if (Version == GameVersion.Unknown)
return false;
int bit = pkm.Species - 1;
int ofs = bit >> 3;
byte bitval = (byte)(1 << (bit & 7));
// Get the Seen Flag
return (Data[(Japanese ? 0x25B1 : 0x25B6) + ofs] & bitval) != 0;
}
public override bool getCaught(PKM pkm)
{
if (pkm.Species == 0)
return false;
if (pkm.Species > MaxSpeciesID)
return false;
if (Version == GameVersion.Unknown)
return false;
int bit = pkm.Species - 1;
int ofs = bit >> 3;
byte bitval = (byte)(1 << (bit & 7));
// Get the Caught Flag
return (Data[(Japanese ? 0x259E : 0x25A3) + ofs] & bitval) != 0;
}
protected internal override void setSeen(PKM pkm, bool seen)
{
if (pkm.Species == 0)
return;
@ -404,16 +491,32 @@ namespace PKHeX
return;
if (Version == GameVersion.Unknown)
return;
int bit = pkm.Species - 1;
int ofs = bit >> 3;
byte bitval = (byte)(1 << (bit % 7));
// Set the Captured Flag
Data[(Japanese ? 0x259E : 0x25A3) + ofs] |= bitval;
byte bitval = (byte)(1 << (bit & 7));
// Set the Seen Flag
Data[(Japanese ? 0x25B1 : 0x25B6) + ofs] |= bitval;
Data[(Japanese ? 0x25B1 : 0x25B6) + ofs] &= (byte)(~bitval);
if (seen)
Data[(Japanese ? 0x25B1 : 0x25B6) + ofs] |= bitval;
}
protected internal override void setCaught(PKM pkm, bool caught)
{
if (pkm.Species == 0)
return;
if (pkm.Species > MaxSpeciesID)
return;
if (Version == GameVersion.Unknown)
return;
int bit = pkm.Species - 1;
int ofs = bit >> 3;
byte bitval = (byte)(1 << (bit & 7));
// Set the Captured Flag
Data[(Japanese ? 0x259E : 0x25A3) + ofs] &= (byte)(~bitval);
if (caught)
Data[(Japanese ? 0x259E : 0x25A3) + ofs] |= bitval;
}
}
}

View file

@ -487,7 +487,16 @@ namespace PKHeX
}
protected virtual void setPKM(PKM pkm) { }
protected virtual void setDex(PKM pkm) { }
protected virtual void setDex(PKM pkm)
{
setSeen(pkm);
setCaught(pkm);
}
public virtual bool getSeen(PKM pkm) { throw new NotImplementedException(); }
public virtual bool getCaught(PKM pkm) { throw new NotImplementedException(); }
protected internal virtual void setSeen(PKM pkm, bool seen = true) { }
protected internal virtual void setCaught(PKM pkm, bool caught = true) { }
public byte[] getData(int Offset, int Length)
{

View file

@ -0,0 +1,179 @@
namespace PKHeX
{
partial class SAV_SimplePokedex
{
/// <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_SimplePokedex));
this.B_Save = new System.Windows.Forms.Button();
this.B_Cancel = new System.Windows.Forms.Button();
this.B_CaughtNone = new System.Windows.Forms.Button();
this.B_CaughtAll = new System.Windows.Forms.Button();
this.B_SeenNone = new System.Windows.Forms.Button();
this.B_SeenAll = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.CLB_Caught = new System.Windows.Forms.CheckedListBox();
this.Label_Seen = new System.Windows.Forms.Label();
this.CLB_Seen = new System.Windows.Forms.CheckedListBox();
this.SuspendLayout();
//
// B_Save
//
this.B_Save.Location = new System.Drawing.Point(146, 301);
this.B_Save.Name = "B_Save";
this.B_Save.Size = new System.Drawing.Size(85, 23);
this.B_Save.TabIndex = 19;
this.B_Save.Text = "Save";
this.B_Save.UseVisualStyleBackColor = true;
this.B_Save.Click += new System.EventHandler(this.B_Save_Click);
//
// B_Cancel
//
this.B_Cancel.Location = new System.Drawing.Point(53, 301);
this.B_Cancel.Name = "B_Cancel";
this.B_Cancel.Size = new System.Drawing.Size(85, 23);
this.B_Cancel.TabIndex = 18;
this.B_Cancel.Text = "Cancel";
this.B_Cancel.UseVisualStyleBackColor = true;
this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
//
// B_CaughtNone
//
this.B_CaughtNone.Location = new System.Drawing.Point(151, 267);
this.B_CaughtNone.Name = "B_CaughtNone";
this.B_CaughtNone.Size = new System.Drawing.Size(120, 23);
this.B_CaughtNone.TabIndex = 17;
this.B_CaughtNone.Text = "Caught None";
this.B_CaughtNone.UseVisualStyleBackColor = true;
this.B_CaughtNone.Click += new System.EventHandler(this.B_CaughtNone_Click);
//
// B_CaughtAll
//
this.B_CaughtAll.Location = new System.Drawing.Point(151, 238);
this.B_CaughtAll.Name = "B_CaughtAll";
this.B_CaughtAll.Size = new System.Drawing.Size(120, 23);
this.B_CaughtAll.TabIndex = 16;
this.B_CaughtAll.Text = "Caught All";
this.B_CaughtAll.UseVisualStyleBackColor = true;
this.B_CaughtAll.Click += new System.EventHandler(this.B_CaughtAll_Click);
//
// B_SeenNone
//
this.B_SeenNone.Location = new System.Drawing.Point(14, 267);
this.B_SeenNone.Name = "B_SeenNone";
this.B_SeenNone.Size = new System.Drawing.Size(120, 23);
this.B_SeenNone.TabIndex = 15;
this.B_SeenNone.Text = "Seen None";
this.B_SeenNone.UseVisualStyleBackColor = true;
this.B_SeenNone.Click += new System.EventHandler(this.B_SeenNone_Click);
//
// B_SeenAll
//
this.B_SeenAll.Location = new System.Drawing.Point(14, 238);
this.B_SeenAll.Name = "B_SeenAll";
this.B_SeenAll.Size = new System.Drawing.Size(120, 23);
this.B_SeenAll.TabIndex = 14;
this.B_SeenAll.Text = "Seen All";
this.B_SeenAll.UseVisualStyleBackColor = true;
this.B_SeenAll.Click += new System.EventHandler(this.B_SeenAll_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(151, 13);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(44, 13);
this.label2.TabIndex = 13;
this.label2.Text = "Caught:";
//
// CLB_Caught
//
this.CLB_Caught.FormattingEnabled = true;
this.CLB_Caught.Location = new System.Drawing.Point(151, 33);
this.CLB_Caught.Name = "CLB_Caught";
this.CLB_Caught.Size = new System.Drawing.Size(120, 199);
this.CLB_Caught.TabIndex = 12;
this.CLB_Caught.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.CLB_Caught_ItemCheck);
//
// Label_Seen
//
this.Label_Seen.AutoSize = true;
this.Label_Seen.Location = new System.Drawing.Point(14, 13);
this.Label_Seen.Name = "Label_Seen";
this.Label_Seen.Size = new System.Drawing.Size(35, 13);
this.Label_Seen.TabIndex = 11;
this.Label_Seen.Text = "Seen:";
//
// CLB_Seen
//
this.CLB_Seen.FormattingEnabled = true;
this.CLB_Seen.Location = new System.Drawing.Point(14, 33);
this.CLB_Seen.Name = "CLB_Seen";
this.CLB_Seen.Size = new System.Drawing.Size(120, 199);
this.CLB_Seen.TabIndex = 10;
this.CLB_Seen.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.CLB_Seen_ItemCheck);
//
// SAV_SimplePokedex
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(284, 336);
this.Controls.Add(this.B_Save);
this.Controls.Add(this.B_Cancel);
this.Controls.Add(this.B_CaughtNone);
this.Controls.Add(this.B_CaughtAll);
this.Controls.Add(this.B_SeenNone);
this.Controls.Add(this.B_SeenAll);
this.Controls.Add(this.label2);
this.Controls.Add(this.CLB_Caught);
this.Controls.Add(this.Label_Seen);
this.Controls.Add(this.CLB_Seen);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximumSize = new System.Drawing.Size(300, 375);
this.MinimumSize = new System.Drawing.Size(300, 375);
this.Name = "SAV_SimplePokedex";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Pokedex Editor";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button B_Save;
private System.Windows.Forms.Button B_Cancel;
private System.Windows.Forms.Button B_CaughtNone;
private System.Windows.Forms.Button B_CaughtAll;
private System.Windows.Forms.Button B_SeenNone;
private System.Windows.Forms.Button B_SeenAll;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.CheckedListBox CLB_Caught;
private System.Windows.Forms.Label Label_Seen;
private System.Windows.Forms.CheckedListBox CLB_Seen;
}
}

View file

@ -0,0 +1,93 @@
using System;
using System.Linq;
using System.Windows.Forms;
using System.Windows.Forms.VisualStyles;
namespace PKHeX
{
public partial class SAV_SimplePokedex : Form
{
public SAV_SimplePokedex()
{
InitializeComponent();
Util.TranslateInterface(this, Main.curlanguage);
seen = new bool[SAV.MaxSpeciesID];
caught = new bool[SAV.MaxSpeciesID];
string[] spec = Util.getSpeciesList(Main.curlanguage);
for (int i = 0; i < seen.Length; i++)
{
PKM tempPkm = new PK6();
tempPkm.Species = i + 1;
seen[i] = SAV.getSeen(tempPkm);
caught[i] = SAV.getCaught(tempPkm);
CLB_Seen.Items.Add(spec[i + 1]);
CLB_Caught.Items.Add(spec[i + 1]);
CLB_Seen.SetItemChecked(i, seen[i]);
CLB_Caught.SetItemChecked(i, caught[i]);
}
initialized = true;
}
private readonly CheckBox[] cba;
private readonly SaveFile SAV = Main.SAV.Clone();
private bool[] seen;
private bool[] caught;
private bool initialized;
private void B_Save_Click(object sender, EventArgs e)
{
for (int i = 0; i < seen.Length; i++)
{
PKM tempPkm = new PK6();
tempPkm.Species = i + 1;
SAV.setSeen(tempPkm, seen[i]);
SAV.setCaught(tempPkm, caught[i]);
}
SAV.Data.CopyTo(Main.SAV.Data, 0);
Main.SAV.Edited = true;
Close();
}
private void B_Cancel_Click(object sender, EventArgs e)
{
Close();
}
private void B_SeenAll_Click(object sender, EventArgs e)
{
for (int i = 0; i < SAV.MaxSpeciesID; i++)
CLB_Seen.SetItemChecked(i, true);
}
private void B_SeenNone_Click(object sender, EventArgs e)
{
for (int i = 0; i < SAV.MaxSpeciesID; i++)
CLB_Seen.SetItemChecked(i, false);
}
private void B_CaughtAll_Click(object sender, EventArgs e)
{
for (int i = 0; i < SAV.MaxSpeciesID; i++)
CLB_Caught.SetItemChecked(i, true);
}
private void B_CaughtNone_Click(object sender, EventArgs e)
{
for (int i = 0; i < SAV.MaxSpeciesID; i++)
CLB_Caught.SetItemChecked(i, false);
}
private void CLB_Seen_ItemCheck(object sender, ItemCheckEventArgs e)
{
if (!initialized) return;
seen[e.Index] = e.NewValue == CheckState.Checked;
}
private void CLB_Caught_ItemCheck(object sender, ItemCheckEventArgs e)
{
if (!initialized) return;
caught[e.Index] = e.NewValue == CheckState.Checked;
}
}
}

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
AAAAAAAAAAAAAAAAAAAAAAAAIyMjAQAAAAALCwsPJiYmJysrKycqKionKSkpJykpKScpKSknKioqJyoq
KicrKysnJycnJw0ODQ8AAAAAJiYmAQAAAABpaWlHq6ur17+/v+6+vr7svr6+7b6+vu2+vr7tvr6+7b6+
vu2+vr7tvr6+7L+/v+6rq6vXampqSAAAAAAoKSgXvr++3eLi4v/g4OD94eHh/+Hh4f/i4uL/4uLi/+Li
4v/i4uL/4eHh/+Dh4P/g4OD94uLi/7+/v90sLCwXfn5+PNna2frg4OD/39/f/uHh4f7h4eH+39/f/uDg
4P7g4OD+39/f/uHh4f7h4OH+39/f/t/g3//a2tr6g4ODPoOCgz7X19f64+Pj/+Li4v7k5OT/4+Tj//Ly
8v/19fX/9PT0//T09P/k5OT/5OTk/+Pj4/7j4+P/19jX+4qLikCDhIM+2tra++Xl5f/k5eT+5OTk//Lz
8v+urq7/RUVF/z4+Pv+Zmpn/8fHx/+Xm5f/k5eT+5e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Bx7Ay0tdkg3N5emMTGpxSwsp8gsLKfILCynyCwsp8gsLKfILCynyCws
p8gsLKfILCynyCwsp8gsLKfILCynyCwsp8gsLKfILCynyCwsp8gsLKfILCynyDExqcU2NpenLi54Shsb
ewMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////8AAAD+AAAAfAAAADwAAAA8AAAAPAAAADwAAAA8AA
AAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AA
AAPAAAADwAAAA8AAAAPAAAAD4AAAB/gAAB//////
</value>
</data>
</root>

View file

@ -28,6 +28,7 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SAV_SimpleTrainer));
this.GB_Adventure = new System.Windows.Forms.GroupBox();
this.L_Started = new System.Windows.Forms.Label();
this.CAL_AdventureStartDate = new System.Windows.Forms.DateTimePicker();
@ -63,6 +64,9 @@
this.B_Save = new System.Windows.Forms.Button();
this.B_Cancel = new System.Windows.Forms.Button();
this.GB_Trainer = new System.Windows.Forms.GroupBox();
this.B_MaxCoins = new System.Windows.Forms.Button();
this.L_Coins = new System.Windows.Forms.Label();
this.MT_Coins = new System.Windows.Forms.MaskedTextBox();
this.GB_Badges = new System.Windows.Forms.GroupBox();
this.CHK_H8 = new System.Windows.Forms.CheckBox();
this.CHK_H7 = new System.Windows.Forms.CheckBox();
@ -80,6 +84,14 @@
this.CHK_3 = new System.Windows.Forms.CheckBox();
this.CHK_2 = new System.Windows.Forms.CheckBox();
this.CHK_1 = new System.Windows.Forms.CheckBox();
this.GB_Options = new System.Windows.Forms.GroupBox();
this.label1 = new System.Windows.Forms.Label();
this.CB_SoundType = new System.Windows.Forms.ComboBox();
this.LBL_TextSpeed = new System.Windows.Forms.Label();
this.CB_TextSpeed = new System.Windows.Forms.ComboBox();
this.LBL_BattleStyle = new System.Windows.Forms.Label();
this.CB_BattleStyle = new System.Windows.Forms.ComboBox();
this.CHK_BattleEffects = new System.Windows.Forms.CheckBox();
this.GB_Adventure.SuspendLayout();
this.GB_Map.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.NUD_Z)).BeginInit();
@ -88,6 +100,7 @@
((System.ComponentModel.ISupportInitialize)(this.NUD_X)).BeginInit();
this.GB_Trainer.SuspendLayout();
this.GB_Badges.SuspendLayout();
this.GB_Options.SuspendLayout();
this.SuspendLayout();
//
// GB_Adventure
@ -248,7 +261,7 @@
this.CB_Gender.Items.AddRange(new object[] {
"♂",
"♀"});
this.CB_Gender.Location = new System.Drawing.Point(99, 55);
this.CB_Gender.Location = new System.Drawing.Point(119, 55);
this.CB_Gender.Name = "CB_Gender";
this.CB_Gender.Size = new System.Drawing.Size(40, 21);
this.CB_Gender.TabIndex = 68;
@ -458,6 +471,9 @@
//
// GB_Trainer
//
this.GB_Trainer.Controls.Add(this.B_MaxCoins);
this.GB_Trainer.Controls.Add(this.L_Coins);
this.GB_Trainer.Controls.Add(this.MT_Coins);
this.GB_Trainer.Controls.Add(this.TB_OTName);
this.GB_Trainer.Controls.Add(this.B_MaxCash);
this.GB_Trainer.Controls.Add(this.MT_SID);
@ -475,6 +491,37 @@
this.GB_Trainer.TabStop = false;
this.GB_Trainer.Text = "Trainer";
//
// B_MaxCoins
//
this.B_MaxCoins.Location = new System.Drawing.Point(95, 56);
this.B_MaxCoins.Name = "B_MaxCoins";
this.B_MaxCoins.Size = new System.Drawing.Size(20, 20);
this.B_MaxCoins.TabIndex = 71;
this.B_MaxCoins.Text = "+";
this.B_MaxCoins.UseVisualStyleBackColor = true;
this.B_MaxCoins.Visible = false;
//
// L_Coins
//
this.L_Coins.AutoSize = true;
this.L_Coins.Location = new System.Drawing.Point(11, 59);
this.L_Coins.Name = "L_Coins";
this.L_Coins.Size = new System.Drawing.Size(36, 13);
this.L_Coins.TabIndex = 70;
this.L_Coins.Text = "Coins:";
this.L_Coins.Visible = false;
//
// MT_Coins
//
this.MT_Coins.Location = new System.Drawing.Point(53, 55);
this.MT_Coins.Mask = "00000";
this.MT_Coins.Name = "MT_Coins";
this.MT_Coins.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
this.MT_Coins.Size = new System.Drawing.Size(39, 20);
this.MT_Coins.TabIndex = 69;
this.MT_Coins.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.MT_Coins.Visible = false;
//
// GB_Badges
//
this.GB_Badges.Controls.Add(this.CHK_H8);
@ -660,17 +707,100 @@
this.CHK_1.UseVisualStyleBackColor = true;
this.CHK_1.Visible = false;
//
// GB_Options
//
this.GB_Options.Controls.Add(this.label1);
this.GB_Options.Controls.Add(this.CB_SoundType);
this.GB_Options.Controls.Add(this.LBL_TextSpeed);
this.GB_Options.Controls.Add(this.CB_TextSpeed);
this.GB_Options.Controls.Add(this.LBL_BattleStyle);
this.GB_Options.Controls.Add(this.CB_BattleStyle);
this.GB_Options.Controls.Add(this.CHK_BattleEffects);
this.GB_Options.Location = new System.Drawing.Point(217, 99);
this.GB_Options.Name = "GB_Options";
this.GB_Options.Size = new System.Drawing.Size(157, 125);
this.GB_Options.TabIndex = 72;
this.GB_Options.TabStop = false;
this.GB_Options.Text = "Options";
this.GB_Options.Visible = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(3, 71);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(68, 13);
this.label1.TabIndex = 25;
this.label1.Text = "Sound Type:";
//
// CB_SoundType
//
this.CB_SoundType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_SoundType.FormattingEnabled = true;
this.CB_SoundType.Location = new System.Drawing.Point(71, 68);
this.CB_SoundType.Name = "CB_SoundType";
this.CB_SoundType.Size = new System.Drawing.Size(80, 21);
this.CB_SoundType.TabIndex = 24;
//
// LBL_TextSpeed
//
this.LBL_TextSpeed.AutoSize = true;
this.LBL_TextSpeed.Location = new System.Drawing.Point(6, 98);
this.LBL_TextSpeed.Name = "LBL_TextSpeed";
this.LBL_TextSpeed.Size = new System.Drawing.Size(65, 13);
this.LBL_TextSpeed.TabIndex = 23;
this.LBL_TextSpeed.Text = "Text Speed:";
//
// CB_TextSpeed
//
this.CB_TextSpeed.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_TextSpeed.FormattingEnabled = true;
this.CB_TextSpeed.Location = new System.Drawing.Point(71, 95);
this.CB_TextSpeed.Name = "CB_TextSpeed";
this.CB_TextSpeed.Size = new System.Drawing.Size(80, 21);
this.CB_TextSpeed.TabIndex = 22;
//
// LBL_BattleStyle
//
this.LBL_BattleStyle.AutoSize = true;
this.LBL_BattleStyle.Location = new System.Drawing.Point(8, 44);
this.LBL_BattleStyle.Name = "LBL_BattleStyle";
this.LBL_BattleStyle.Size = new System.Drawing.Size(63, 13);
this.LBL_BattleStyle.TabIndex = 21;
this.LBL_BattleStyle.Text = "Battle Style:";
//
// CB_BattleStyle
//
this.CB_BattleStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.CB_BattleStyle.FormattingEnabled = true;
this.CB_BattleStyle.Location = new System.Drawing.Point(71, 41);
this.CB_BattleStyle.Name = "CB_BattleStyle";
this.CB_BattleStyle.Size = new System.Drawing.Size(80, 21);
this.CB_BattleStyle.TabIndex = 20;
//
// CHK_BattleEffects
//
this.CHK_BattleEffects.AutoSize = true;
this.CHK_BattleEffects.Location = new System.Drawing.Point(26, 18);
this.CHK_BattleEffects.Name = "CHK_BattleEffects";
this.CHK_BattleEffects.Size = new System.Drawing.Size(111, 17);
this.CHK_BattleEffects.TabIndex = 19;
this.CHK_BattleEffects.Text = "Use Battle Effects";
this.CHK_BattleEffects.UseVisualStyleBackColor = true;
//
// SAV_SimpleTrainer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(384, 261);
this.Controls.Add(this.GB_Options);
this.Controls.Add(this.GB_Badges);
this.Controls.Add(this.GB_Trainer);
this.Controls.Add(this.B_Save);
this.Controls.Add(this.B_Cancel);
this.Controls.Add(this.GB_Map);
this.Controls.Add(this.GB_Adventure);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(400, 300);
this.Name = "SAV_SimpleTrainer";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
@ -686,6 +816,8 @@
this.GB_Trainer.PerformLayout();
this.GB_Badges.ResumeLayout(false);
this.GB_Badges.PerformLayout();
this.GB_Options.ResumeLayout(false);
this.GB_Options.PerformLayout();
this.ResumeLayout(false);
}
@ -744,5 +876,16 @@
private System.Windows.Forms.CheckBox CHK_H3;
private System.Windows.Forms.CheckBox CHK_H2;
private System.Windows.Forms.CheckBox CHK_H1;
private System.Windows.Forms.Button B_MaxCoins;
private System.Windows.Forms.Label L_Coins;
private System.Windows.Forms.MaskedTextBox MT_Coins;
private System.Windows.Forms.GroupBox GB_Options;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.ComboBox CB_SoundType;
private System.Windows.Forms.Label LBL_TextSpeed;
private System.Windows.Forms.ComboBox CB_TextSpeed;
private System.Windows.Forms.Label LBL_BattleStyle;
private System.Windows.Forms.ComboBox CB_BattleStyle;
private System.Windows.Forms.CheckBox CHK_BattleEffects;
}
}

View file

@ -14,10 +14,15 @@ namespace PKHeX
cba = new[] {CHK_1, CHK_2, CHK_3, CHK_4, CHK_5, CHK_6, CHK_7, CHK_8};
TB_OTName.MaxLength = SAV.OTLength;
B_MaxCash.Click += (sender, e) => MT_Money.Text = "9,999,999";
B_MaxCoins.Click += (sender, e) => MT_Coins.Text = "9999";
CB_Gender.Items.Clear();
CB_Gender.Items.AddRange(Main.gendersymbols.Take(2).ToArray()); // m/f depending on unicode selection
L_SID.Visible = MT_SID.Visible = SAV.Generation > 2;
L_Coins.Visible = B_MaxCoins.Visible = MT_Coins.Visible = SAV.Generation < 3;
CB_Gender.Visible = SAV.Generation > 1;
TB_OTName.Text = SAV.OT;
CB_Gender.SelectedIndex = SAV.Gender;
MT_TID.Text = SAV.TID.ToString("00000");
@ -27,6 +32,29 @@ namespace PKHeX
MT_Minutes.Text = SAV.PlayedMinutes.ToString();
MT_Seconds.Text = SAV.PlayedSeconds.ToString();
int badgeval = 0;
if (SAV is SAV1)
{
SAV1 sav1 = (SAV1)SAV;
MT_Coins.Text = sav1.Coin.ToString();
badgeval = sav1.Badges;
L_Started.Visible = L_Fame.Visible = false;
CAL_AdventureStartDate.Visible = CAL_HoFDate.Visible = false;
CAL_AdventureStartTime.Visible = CAL_HoFTime.Visible = false;
GB_Map.Visible = false;
GB_Options.Visible = true;
CB_BattleStyle.Items.AddRange(new[] { "Switch", "Set" });
CB_SoundType.Items.AddRange(new[] { "Mono", "Stereo", "Earphone2", "Earphone3" });
CB_TextSpeed.Items.AddRange(new[] { "0 (Instant)", "1 (Fast)", "2", "3 (Normal)", "4", "5 (Slow)", "6", "7" });
CHK_BattleEffects.Checked = sav1.BattleEffects;
CB_BattleStyle.SelectedIndex = sav1.BattleStyleSwitch ? 0 : 1;
CB_SoundType.SelectedIndex = sav1.Sound;
CB_TextSpeed.SelectedIndex = sav1.TextSpeed;
}
if (SAV is SAV3)
{
GB_Map.Visible = false;
@ -38,7 +66,6 @@ namespace PKHeX
return;
}
int badgeval = 0;
if (SAV is SAV4)
{
SAV4 s = (SAV4)SAV;
@ -104,6 +131,18 @@ namespace PKHeX
for (int i = 0; i < cba.Length; i++)
badgeval |= (cba[i].Checked ? 1 : 0) << i;
if (SAV is SAV1)
{
SAV1 sav1 = (SAV1) SAV;
sav1.Coin = (ushort) Util.ToUInt32(MT_Coins.Text);
sav1.Badges = badgeval & 0xFF;
sav1.BattleEffects = CHK_BattleEffects.Checked;
sav1.BattleStyleSwitch = CB_BattleStyle.SelectedIndex == 0;
sav1.Sound = CB_SoundType.SelectedIndex;
sav1.TextSpeed = CB_TextSpeed.SelectedIndex;
}
if (SAV is SAV4)
{
SAV4 s = (SAV4)SAV;

View file

@ -117,4 +117,100 @@
<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
AAAAAAAAAAAAAAAAAAAAAAAAIyMjAQAAAAALCwsPJiYmJysrKycqKionKSkpJykpKScpKSknKioqJyoq
KicrKysnJycnJw0ODQ8AAAAAJiYmAQAAAABpaWlHq6ur17+/v+6+vr7svr6+7b6+vu2+vr7tvr6+7b6+
vu2+vr7tvr6+7L+/v+6rq6vXampqSAAAAAAoKSgXvr++3eLi4v/g4OD94eHh/+Hh4f/i4uL/4uLi/+Li
4v/i4uL/4eHh/+Dh4P/g4OD94uLi/7+/v90sLCwXfn5+PNna2frg4OD/39/f/uHh4f7h4eH+39/f/uDg
4P7g4OD+39/f/uHh4f7h4OH+39/f/t/g3//a2tr6g4ODPoOCgz7X19f64+Pj/+Li4v7k5OT/4+Tj//Ly
8v/19fX/9PT0//T09P/k5OT/5OTk/+Pj4/7j4+P/19jX+4qLikCDhIM+2tra++Xl5f/k5eT+5OTk//Lz
8v+urq7/RUVF/z4+Pv+Zmpn/8fHx/+Xm5f/k5eT+5eXl/9ra2vyLi4tAhYWFPuXm5vvx8vP/7+/w/v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