Most of join avenue editor done.

This commit is contained in:
suloku
2016-06-17 15:57:25 +02:00
parent 048d94b5be
commit e2220dd2fd
7 changed files with 3634 additions and 1 deletions

View File

@@ -54,6 +54,10 @@
<Compile Include="Editors\Entralink_DreamWorld.Designer.cs">
<DependentUpon>Entralink_DreamWorld.cs</DependentUpon>
</Compile>
<Compile Include="Editors\Join_avenue.cs" />
<Compile Include="Editors\Join_avenue.Designer.cs">
<DependentUpon>Join_avenue.cs</DependentUpon>
</Compile>
<Compile Include="Editors\KeySystem.cs" />
<Compile Include="Editors\KeySystem.Designer.cs">
<DependentUpon>KeySystem.cs</DependentUpon>
@@ -109,6 +113,9 @@
<EmbeddedResource Include="Editors\Grotto.resx">
<DependentUpon>Grotto.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Editors\Join_avenue.resx">
<DependentUpon>Join_avenue.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Editors\KeySystem.resx">
<DependentUpon>KeySystem.cs</DependentUpon>
</EmbeddedResource>

2241
BW_tool/Editors/Join_avenue.Designer.cs generated Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,120 @@
<?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>
</root>

View File

@@ -28,7 +28,7 @@ namespace BW_tool
keys = new KEY(MainForm.save.getBlock(keyblock));
if (keys.KeysUnlocked() == false)
MessageBox.Show("\t\tWarning!\n\nThis savefile doesn't seem to have unlocked the key system yet.\nKey system is unlocked after beating the Elite Four.\n\nYou can still edit it though.");
MessageBox.Show(" Warning!\n\nThis savefile doesn't seem to have unlocked the key system yet.\nKey system is unlocked after beating the Elite Four.\n\nYou can still edit it though.");
updatekeys();

View File

@@ -26,6 +26,7 @@ namespace BW_tool
private System.Windows.Forms.Button medal_but;
private System.Windows.Forms.Button forest_but;
private System.Windows.Forms.Button key_but;
private System.Windows.Forms.Button join_but;
/// <summary>
/// Disposes resources used by the form.
@@ -60,6 +61,7 @@ namespace BW_tool
this.medal_but = new System.Windows.Forms.Button();
this.forest_but = new System.Windows.Forms.Button();
this.key_but = new System.Windows.Forms.Button();
this.join_but = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// loadsave_but
@@ -186,11 +188,23 @@ namespace BW_tool
this.key_but.UseVisualStyleBackColor = true;
this.key_but.Click += new System.EventHandler(this.Key_butClick);
//
// join_but
//
this.join_but.Enabled = false;
this.join_but.Location = new System.Drawing.Point(12, 136);
this.join_but.Name = "join_but";
this.join_but.Size = new System.Drawing.Size(140, 23);
this.join_but.TabIndex = 12;
this.join_but.Text = "Join Avenue";
this.join_but.UseVisualStyleBackColor = true;
this.join_but.Click += new System.EventHandler(this.Join_butClick);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(503, 192);
this.Controls.Add(this.join_but);
this.Controls.Add(this.key_but);
this.Controls.Add(this.forest_but);
this.Controls.Add(this.medal_but);

View File

@@ -66,6 +66,7 @@ namespace BW_tool
medal_but.Enabled = true;
forest_but.Enabled = true;
key_but.Enabled = true;
join_but.Enabled = true;
}
else if (save.BW)
{
@@ -80,6 +81,7 @@ namespace BW_tool
medal_but.Enabled = false;
forest_but.Enabled = true;
key_but.Enabled = false;
join_but.Enabled = false;
}
else versiontext.Text = "Invalid file";
@@ -96,6 +98,7 @@ namespace BW_tool
medal_but.Enabled = false;
forest_but.Enabled = false;
key_but.Enabled = false;
join_but.Enabled = false;
}
}
void Save_butClick(object sender, EventArgs e)
@@ -146,5 +149,10 @@ namespace BW_tool
Form keys = new KeySystem();
keys.ShowDialog();
}
void Join_butClick(object sender, EventArgs e)
{
Form join = new Join_avenue();
join.ShowDialog();
}
}
}