mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Add Ribbon/Super Training editor
Split from the existing form, now can handle multiple generations. Need to rename / add ribbon images so that they show up in the box. WIP.
This commit is contained in:
parent
b47b26222f
commit
34fb98179c
7 changed files with 1080 additions and 4 deletions
19
PKHeX.csproj
19
PKHeX.csproj
|
@ -125,6 +125,18 @@
|
||||||
<Compile Include="Subforms\PKM Editors\BatchEditor.Designer.cs">
|
<Compile Include="Subforms\PKM Editors\BatchEditor.Designer.cs">
|
||||||
<DependentUpon>BatchEditor.cs</DependentUpon>
|
<DependentUpon>BatchEditor.cs</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Subforms\PKM Editors\SuperTraining.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Subforms\PKM Editors\SuperTraining.Designer.cs">
|
||||||
|
<DependentUpon>SuperTraining.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Subforms\PKM Editors\RibbMedal2.cs">
|
||||||
|
<SubType>Form</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Subforms\PKM Editors\RibbMedal2.Designer.cs">
|
||||||
|
<DependentUpon>RibbMedal2.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Subforms\PKM Editors\Text.cs">
|
<Compile Include="Subforms\PKM Editors\Text.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
@ -279,6 +291,7 @@
|
||||||
<Compile Include="Util\ImageUtil.cs" />
|
<Compile Include="Util\ImageUtil.cs" />
|
||||||
<Compile Include="Util\PathUtil.cs" />
|
<Compile Include="Util\PathUtil.cs" />
|
||||||
<Compile Include="Util\RandUtil.cs" />
|
<Compile Include="Util\RandUtil.cs" />
|
||||||
|
<Compile Include="Util\ReflectUtil.cs" />
|
||||||
<Compile Include="Util\StringUtil.cs" />
|
<Compile Include="Util\StringUtil.cs" />
|
||||||
<EmbeddedResource Include="Misc\QR.resx">
|
<EmbeddedResource Include="Misc\QR.resx">
|
||||||
<DependentUpon>QR.cs</DependentUpon>
|
<DependentUpon>QR.cs</DependentUpon>
|
||||||
|
@ -287,6 +300,12 @@
|
||||||
<EmbeddedResource Include="Subforms\PKM Editors\BatchEditor.resx">
|
<EmbeddedResource Include="Subforms\PKM Editors\BatchEditor.resx">
|
||||||
<DependentUpon>BatchEditor.cs</DependentUpon>
|
<DependentUpon>BatchEditor.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Subforms\PKM Editors\SuperTraining.resx">
|
||||||
|
<DependentUpon>SuperTraining.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
|
<EmbeddedResource Include="Subforms\PKM Editors\RibbMedal2.resx">
|
||||||
|
<DependentUpon>RibbMedal2.cs</DependentUpon>
|
||||||
|
</EmbeddedResource>
|
||||||
<EmbeddedResource Include="Subforms\PKM Editors\Text.resx">
|
<EmbeddedResource Include="Subforms\PKM Editors\Text.resx">
|
||||||
<DependentUpon>Text.cs</DependentUpon>
|
<DependentUpon>Text.cs</DependentUpon>
|
||||||
</EmbeddedResource>
|
</EmbeddedResource>
|
||||||
|
|
188
Subforms/PKM Editors/RibbonEditor.Designer.cs
generated
Normal file
188
Subforms/PKM Editors/RibbonEditor.Designer.cs
generated
Normal file
|
@ -0,0 +1,188 @@
|
||||||
|
namespace PKHeX
|
||||||
|
{
|
||||||
|
partial class RibbonEditor
|
||||||
|
{
|
||||||
|
/// <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(RibbonEditor));
|
||||||
|
this.B_Save = new System.Windows.Forms.Button();
|
||||||
|
this.B_Cancel = new System.Windows.Forms.Button();
|
||||||
|
this.B_None = new System.Windows.Forms.Button();
|
||||||
|
this.B_All = new System.Windows.Forms.Button();
|
||||||
|
this.PAN_Container = new System.Windows.Forms.Panel();
|
||||||
|
this.SPLIT_Ribbons = new System.Windows.Forms.SplitContainer();
|
||||||
|
this.FLP_Ribbons = new System.Windows.Forms.FlowLayoutPanel();
|
||||||
|
this.TLP_Ribbons = new System.Windows.Forms.TableLayoutPanel();
|
||||||
|
this.PAN_Container.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.SPLIT_Ribbons)).BeginInit();
|
||||||
|
this.SPLIT_Ribbons.Panel1.SuspendLayout();
|
||||||
|
this.SPLIT_Ribbons.Panel2.SuspendLayout();
|
||||||
|
this.SPLIT_Ribbons.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// B_Save
|
||||||
|
//
|
||||||
|
this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.B_Save.Location = new System.Drawing.Point(318, 249);
|
||||||
|
this.B_Save.Name = "B_Save";
|
||||||
|
this.B_Save.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.B_Save.TabIndex = 1;
|
||||||
|
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.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.B_Cancel.Location = new System.Drawing.Point(222, 249);
|
||||||
|
this.B_Cancel.Name = "B_Cancel";
|
||||||
|
this.B_Cancel.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.B_Cancel.TabIndex = 2;
|
||||||
|
this.B_Cancel.Text = "Cancel";
|
||||||
|
this.B_Cancel.UseVisualStyleBackColor = true;
|
||||||
|
this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
|
||||||
|
//
|
||||||
|
// B_None
|
||||||
|
//
|
||||||
|
this.B_None.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.B_None.Location = new System.Drawing.Point(108, 249);
|
||||||
|
this.B_None.Name = "B_None";
|
||||||
|
this.B_None.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.B_None.TabIndex = 5;
|
||||||
|
this.B_None.Text = "Remove All";
|
||||||
|
this.B_None.UseVisualStyleBackColor = true;
|
||||||
|
this.B_None.Click += new System.EventHandler(this.B_None_Click);
|
||||||
|
//
|
||||||
|
// B_All
|
||||||
|
//
|
||||||
|
this.B_All.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.B_All.Location = new System.Drawing.Point(12, 249);
|
||||||
|
this.B_All.Name = "B_All";
|
||||||
|
this.B_All.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.B_All.TabIndex = 4;
|
||||||
|
this.B_All.Text = "Give All";
|
||||||
|
this.B_All.UseVisualStyleBackColor = true;
|
||||||
|
this.B_All.Click += new System.EventHandler(this.B_All_Click);
|
||||||
|
//
|
||||||
|
// PAN_Container
|
||||||
|
//
|
||||||
|
this.PAN_Container.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.PAN_Container.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
this.PAN_Container.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.PAN_Container.Controls.Add(this.SPLIT_Ribbons);
|
||||||
|
this.PAN_Container.Location = new System.Drawing.Point(12, 12);
|
||||||
|
this.PAN_Container.Name = "PAN_Container";
|
||||||
|
this.PAN_Container.Size = new System.Drawing.Size(396, 231);
|
||||||
|
this.PAN_Container.TabIndex = 6;
|
||||||
|
//
|
||||||
|
// SPLIT_Ribbons
|
||||||
|
//
|
||||||
|
this.SPLIT_Ribbons.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.SPLIT_Ribbons.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.SPLIT_Ribbons.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||||
|
this.SPLIT_Ribbons.IsSplitterFixed = true;
|
||||||
|
this.SPLIT_Ribbons.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.SPLIT_Ribbons.Name = "SPLIT_Ribbons";
|
||||||
|
//
|
||||||
|
// SPLIT_Ribbons.Panel1
|
||||||
|
//
|
||||||
|
this.SPLIT_Ribbons.Panel1.Controls.Add(this.FLP_Ribbons);
|
||||||
|
this.SPLIT_Ribbons.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||||
|
this.SPLIT_Ribbons.Panel1MinSize = 1;
|
||||||
|
//
|
||||||
|
// SPLIT_Ribbons.Panel2
|
||||||
|
//
|
||||||
|
this.SPLIT_Ribbons.Panel2.Controls.Add(this.TLP_Ribbons);
|
||||||
|
this.SPLIT_Ribbons.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||||
|
this.SPLIT_Ribbons.Panel2MinSize = 1;
|
||||||
|
this.SPLIT_Ribbons.Size = new System.Drawing.Size(394, 229);
|
||||||
|
this.SPLIT_Ribbons.SplitterDistance = 150;
|
||||||
|
this.SPLIT_Ribbons.SplitterWidth = 1;
|
||||||
|
this.SPLIT_Ribbons.TabIndex = 7;
|
||||||
|
//
|
||||||
|
// FLP_Ribbons
|
||||||
|
//
|
||||||
|
this.FLP_Ribbons.AutoScroll = true;
|
||||||
|
this.FLP_Ribbons.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.FLP_Ribbons.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.FLP_Ribbons.Name = "FLP_Ribbons";
|
||||||
|
this.FLP_Ribbons.Size = new System.Drawing.Size(148, 227);
|
||||||
|
this.FLP_Ribbons.TabIndex = 5;
|
||||||
|
//
|
||||||
|
// TLP_Ribbons
|
||||||
|
//
|
||||||
|
this.TLP_Ribbons.AutoScroll = true;
|
||||||
|
this.TLP_Ribbons.ColumnCount = 2;
|
||||||
|
this.TLP_Ribbons.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||||
|
this.TLP_Ribbons.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||||
|
this.TLP_Ribbons.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||||
|
this.TLP_Ribbons.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.TLP_Ribbons.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.TLP_Ribbons.Name = "TLP_Ribbons";
|
||||||
|
this.TLP_Ribbons.RowCount = 1;
|
||||||
|
this.TLP_Ribbons.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||||
|
this.TLP_Ribbons.Size = new System.Drawing.Size(241, 227);
|
||||||
|
this.TLP_Ribbons.TabIndex = 3;
|
||||||
|
//
|
||||||
|
// RibbMedal2
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(424, 281);
|
||||||
|
this.Controls.Add(this.PAN_Container);
|
||||||
|
this.Controls.Add(this.B_None);
|
||||||
|
this.Controls.Add(this.B_All);
|
||||||
|
this.Controls.Add(this.B_Cancel);
|
||||||
|
this.Controls.Add(this.B_Save);
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimumSize = new System.Drawing.Size(440, 320);
|
||||||
|
this.Name = "RibbonEditor";
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
|
this.Text = "Ribbon Editor";
|
||||||
|
this.PAN_Container.ResumeLayout(false);
|
||||||
|
this.SPLIT_Ribbons.Panel1.ResumeLayout(false);
|
||||||
|
this.SPLIT_Ribbons.Panel2.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.SPLIT_Ribbons)).EndInit();
|
||||||
|
this.SPLIT_Ribbons.ResumeLayout(false);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
private System.Windows.Forms.Button B_Save;
|
||||||
|
private System.Windows.Forms.Button B_Cancel;
|
||||||
|
private System.Windows.Forms.Button B_None;
|
||||||
|
private System.Windows.Forms.Button B_All;
|
||||||
|
private System.Windows.Forms.Panel PAN_Container;
|
||||||
|
private System.Windows.Forms.TableLayoutPanel TLP_Ribbons;
|
||||||
|
private System.Windows.Forms.FlowLayoutPanel FLP_Ribbons;
|
||||||
|
private System.Windows.Forms.SplitContainer SPLIT_Ribbons;
|
||||||
|
}
|
||||||
|
}
|
216
Subforms/PKM Editors/RibbonEditor.resx
Normal file
216
Subforms/PKM Editors/RibbonEditor.resx
Normal 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+5eXl/9ra2vyLi4tAhYWFPuXm5vvx8vP/7+/w/v//
|
||||||
|
//+sra3/AgIC/15eXv9tbG3/BQUF/4yMjP//////7+/w/vHy8//l5ub8jY2NQC4uLD5LS0f7UFBL/09P
|
||||||
|
Sv5YWVP/FBUS/29wcP///////////5SUlP8PDw//U1NO/1BQS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8r/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>
|
270
Subforms/PKM Editors/SuperTrainingEditor.Designer.cs
generated
Normal file
270
Subforms/PKM Editors/SuperTrainingEditor.Designer.cs
generated
Normal file
|
@ -0,0 +1,270 @@
|
||||||
|
namespace PKHeX
|
||||||
|
{
|
||||||
|
partial class SuperTrainingEditor
|
||||||
|
{
|
||||||
|
/// <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(SuperTrainingEditor));
|
||||||
|
this.B_Save = new System.Windows.Forms.Button();
|
||||||
|
this.B_Cancel = new System.Windows.Forms.Button();
|
||||||
|
this.B_None = new System.Windows.Forms.Button();
|
||||||
|
this.B_All = new System.Windows.Forms.Button();
|
||||||
|
this.PAN_Training = new System.Windows.Forms.Panel();
|
||||||
|
this.SPLIT_Training = new System.Windows.Forms.SplitContainer();
|
||||||
|
this.TLP_SuperTrain = new System.Windows.Forms.TableLayoutPanel();
|
||||||
|
this.CHK_Secret = new System.Windows.Forms.CheckBox();
|
||||||
|
this.CB_Bag = new System.Windows.Forms.ComboBox();
|
||||||
|
this.L_Bag = new System.Windows.Forms.Label();
|
||||||
|
this.NUD_BagHits = new System.Windows.Forms.NumericUpDown();
|
||||||
|
this.L_Hits = new System.Windows.Forms.Label();
|
||||||
|
this.TLP_DistSuperTrain = new System.Windows.Forms.TableLayoutPanel();
|
||||||
|
this.PAN_Training.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.SPLIT_Training)).BeginInit();
|
||||||
|
this.SPLIT_Training.Panel1.SuspendLayout();
|
||||||
|
this.SPLIT_Training.Panel2.SuspendLayout();
|
||||||
|
this.SPLIT_Training.SuspendLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.NUD_BagHits)).BeginInit();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// B_Save
|
||||||
|
//
|
||||||
|
this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.B_Save.Location = new System.Drawing.Point(318, 249);
|
||||||
|
this.B_Save.Name = "B_Save";
|
||||||
|
this.B_Save.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.B_Save.TabIndex = 1;
|
||||||
|
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.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.B_Cancel.Location = new System.Drawing.Point(222, 249);
|
||||||
|
this.B_Cancel.Name = "B_Cancel";
|
||||||
|
this.B_Cancel.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.B_Cancel.TabIndex = 2;
|
||||||
|
this.B_Cancel.Text = "Cancel";
|
||||||
|
this.B_Cancel.UseVisualStyleBackColor = true;
|
||||||
|
this.B_Cancel.Click += new System.EventHandler(this.B_Cancel_Click);
|
||||||
|
//
|
||||||
|
// B_None
|
||||||
|
//
|
||||||
|
this.B_None.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.B_None.Location = new System.Drawing.Point(108, 249);
|
||||||
|
this.B_None.Name = "B_None";
|
||||||
|
this.B_None.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.B_None.TabIndex = 5;
|
||||||
|
this.B_None.Text = "Remove All";
|
||||||
|
this.B_None.UseVisualStyleBackColor = true;
|
||||||
|
this.B_None.Click += new System.EventHandler(this.B_None_Click);
|
||||||
|
//
|
||||||
|
// B_All
|
||||||
|
//
|
||||||
|
this.B_All.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
|
this.B_All.Location = new System.Drawing.Point(12, 249);
|
||||||
|
this.B_All.Name = "B_All";
|
||||||
|
this.B_All.Size = new System.Drawing.Size(90, 23);
|
||||||
|
this.B_All.TabIndex = 4;
|
||||||
|
this.B_All.Text = "Give All";
|
||||||
|
this.B_All.UseVisualStyleBackColor = true;
|
||||||
|
this.B_All.Click += new System.EventHandler(this.B_All_Click);
|
||||||
|
//
|
||||||
|
// PAN_Training
|
||||||
|
//
|
||||||
|
this.PAN_Training.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.PAN_Training.Controls.Add(this.SPLIT_Training);
|
||||||
|
this.PAN_Training.Location = new System.Drawing.Point(12, 12);
|
||||||
|
this.PAN_Training.Name = "PAN_Training";
|
||||||
|
this.PAN_Training.Size = new System.Drawing.Size(396, 231);
|
||||||
|
this.PAN_Training.TabIndex = 6;
|
||||||
|
//
|
||||||
|
// SPLIT_Training
|
||||||
|
//
|
||||||
|
this.SPLIT_Training.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
this.SPLIT_Training.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
this.SPLIT_Training.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.SPLIT_Training.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||||
|
this.SPLIT_Training.IsSplitterFixed = true;
|
||||||
|
this.SPLIT_Training.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.SPLIT_Training.Name = "SPLIT_Training";
|
||||||
|
//
|
||||||
|
// SPLIT_Training.Panel1
|
||||||
|
//
|
||||||
|
this.SPLIT_Training.Panel1.Controls.Add(this.TLP_SuperTrain);
|
||||||
|
this.SPLIT_Training.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||||
|
this.SPLIT_Training.Panel1MinSize = 1;
|
||||||
|
//
|
||||||
|
// SPLIT_Training.Panel2
|
||||||
|
//
|
||||||
|
this.SPLIT_Training.Panel2.Controls.Add(this.CHK_Secret);
|
||||||
|
this.SPLIT_Training.Panel2.Controls.Add(this.CB_Bag);
|
||||||
|
this.SPLIT_Training.Panel2.Controls.Add(this.L_Bag);
|
||||||
|
this.SPLIT_Training.Panel2.Controls.Add(this.NUD_BagHits);
|
||||||
|
this.SPLIT_Training.Panel2.Controls.Add(this.L_Hits);
|
||||||
|
this.SPLIT_Training.Panel2.Controls.Add(this.TLP_DistSuperTrain);
|
||||||
|
this.SPLIT_Training.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
||||||
|
this.SPLIT_Training.Panel2MinSize = 1;
|
||||||
|
this.SPLIT_Training.Size = new System.Drawing.Size(396, 231);
|
||||||
|
this.SPLIT_Training.SplitterDistance = 175;
|
||||||
|
this.SPLIT_Training.TabIndex = 4;
|
||||||
|
//
|
||||||
|
// TLP_SuperTrain
|
||||||
|
//
|
||||||
|
this.TLP_SuperTrain.AutoScroll = true;
|
||||||
|
this.TLP_SuperTrain.ColumnCount = 2;
|
||||||
|
this.TLP_SuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||||
|
this.TLP_SuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||||
|
this.TLP_SuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||||
|
this.TLP_SuperTrain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||||
|
this.TLP_SuperTrain.Location = new System.Drawing.Point(0, 0);
|
||||||
|
this.TLP_SuperTrain.Name = "TLP_SuperTrain";
|
||||||
|
this.TLP_SuperTrain.RowCount = 1;
|
||||||
|
this.TLP_SuperTrain.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||||
|
this.TLP_SuperTrain.Size = new System.Drawing.Size(173, 229);
|
||||||
|
this.TLP_SuperTrain.TabIndex = 4;
|
||||||
|
//
|
||||||
|
// CHK_Secret
|
||||||
|
//
|
||||||
|
this.CHK_Secret.AutoSize = true;
|
||||||
|
this.CHK_Secret.Location = new System.Drawing.Point(3, 2);
|
||||||
|
this.CHK_Secret.Name = "CHK_Secret";
|
||||||
|
this.CHK_Secret.Size = new System.Drawing.Size(171, 17);
|
||||||
|
this.CHK_Secret.TabIndex = 36;
|
||||||
|
this.CHK_Secret.Text = "Secret Super Training Enabled";
|
||||||
|
this.CHK_Secret.UseVisualStyleBackColor = true;
|
||||||
|
this.CHK_Secret.CheckedChanged += new System.EventHandler(this.CHK_Secret_CheckedChanged);
|
||||||
|
//
|
||||||
|
// CB_Bag
|
||||||
|
//
|
||||||
|
this.CB_Bag.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.CB_Bag.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||||
|
this.CB_Bag.FormattingEnabled = true;
|
||||||
|
this.CB_Bag.Location = new System.Drawing.Point(46, 50);
|
||||||
|
this.CB_Bag.Name = "CB_Bag";
|
||||||
|
this.CB_Bag.Size = new System.Drawing.Size(138, 21);
|
||||||
|
this.CB_Bag.TabIndex = 35;
|
||||||
|
//
|
||||||
|
// L_Bag
|
||||||
|
//
|
||||||
|
this.L_Bag.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.L_Bag.Location = new System.Drawing.Point(31, 34);
|
||||||
|
this.L_Bag.Name = "L_Bag";
|
||||||
|
this.L_Bag.Size = new System.Drawing.Size(100, 13);
|
||||||
|
this.L_Bag.TabIndex = 34;
|
||||||
|
this.L_Bag.Text = "Last Used Bag:";
|
||||||
|
this.L_Bag.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||||
|
//
|
||||||
|
// NUD_BagHits
|
||||||
|
//
|
||||||
|
this.NUD_BagHits.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.NUD_BagHits.Location = new System.Drawing.Point(134, 75);
|
||||||
|
this.NUD_BagHits.Maximum = new decimal(new int[] {
|
||||||
|
255,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
this.NUD_BagHits.Name = "NUD_BagHits";
|
||||||
|
this.NUD_BagHits.Size = new System.Drawing.Size(50, 20);
|
||||||
|
this.NUD_BagHits.TabIndex = 33;
|
||||||
|
this.NUD_BagHits.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
|
||||||
|
this.NUD_BagHits.Value = new decimal(new int[] {
|
||||||
|
255,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0});
|
||||||
|
//
|
||||||
|
// L_Hits
|
||||||
|
//
|
||||||
|
this.L_Hits.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
this.L_Hits.Location = new System.Drawing.Point(31, 77);
|
||||||
|
this.L_Hits.Name = "L_Hits";
|
||||||
|
this.L_Hits.Size = new System.Drawing.Size(100, 13);
|
||||||
|
this.L_Hits.TabIndex = 32;
|
||||||
|
this.L_Hits.Text = "Hits Remaining:";
|
||||||
|
this.L_Hits.TextAlign = System.Drawing.ContentAlignment.TopRight;
|
||||||
|
//
|
||||||
|
// TLP_DistSuperTrain
|
||||||
|
//
|
||||||
|
this.TLP_DistSuperTrain.AutoScroll = true;
|
||||||
|
this.TLP_DistSuperTrain.ColumnCount = 2;
|
||||||
|
this.TLP_DistSuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||||
|
this.TLP_DistSuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||||
|
this.TLP_DistSuperTrain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
|
||||||
|
this.TLP_DistSuperTrain.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||||
|
this.TLP_DistSuperTrain.Location = new System.Drawing.Point(0, 101);
|
||||||
|
this.TLP_DistSuperTrain.Name = "TLP_DistSuperTrain";
|
||||||
|
this.TLP_DistSuperTrain.RowCount = 1;
|
||||||
|
this.TLP_DistSuperTrain.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||||
|
this.TLP_DistSuperTrain.Size = new System.Drawing.Size(215, 128);
|
||||||
|
this.TLP_DistSuperTrain.TabIndex = 3;
|
||||||
|
//
|
||||||
|
// SuperTrainingEditor
|
||||||
|
//
|
||||||
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
|
this.ClientSize = new System.Drawing.Size(424, 281);
|
||||||
|
this.Controls.Add(this.PAN_Training);
|
||||||
|
this.Controls.Add(this.B_None);
|
||||||
|
this.Controls.Add(this.B_All);
|
||||||
|
this.Controls.Add(this.B_Cancel);
|
||||||
|
this.Controls.Add(this.B_Save);
|
||||||
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||||
|
this.MaximizeBox = false;
|
||||||
|
this.MinimumSize = new System.Drawing.Size(440, 320);
|
||||||
|
this.Name = "SuperTrainingEditor";
|
||||||
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
|
this.Text = "Ribbon Editor";
|
||||||
|
this.PAN_Training.ResumeLayout(false);
|
||||||
|
this.SPLIT_Training.Panel1.ResumeLayout(false);
|
||||||
|
this.SPLIT_Training.Panel2.ResumeLayout(false);
|
||||||
|
this.SPLIT_Training.Panel2.PerformLayout();
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.SPLIT_Training)).EndInit();
|
||||||
|
this.SPLIT_Training.ResumeLayout(false);
|
||||||
|
((System.ComponentModel.ISupportInitialize)(this.NUD_BagHits)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
private System.Windows.Forms.Button B_Save;
|
||||||
|
private System.Windows.Forms.Button B_Cancel;
|
||||||
|
private System.Windows.Forms.Button B_None;
|
||||||
|
private System.Windows.Forms.Button B_All;
|
||||||
|
private System.Windows.Forms.Panel PAN_Training;
|
||||||
|
private System.Windows.Forms.TableLayoutPanel TLP_DistSuperTrain;
|
||||||
|
private System.Windows.Forms.Label L_Hits;
|
||||||
|
private System.Windows.Forms.NumericUpDown NUD_BagHits;
|
||||||
|
private System.Windows.Forms.Label L_Bag;
|
||||||
|
private System.Windows.Forms.ComboBox CB_Bag;
|
||||||
|
private System.Windows.Forms.CheckBox CHK_Secret;
|
||||||
|
private System.Windows.Forms.TableLayoutPanel TLP_SuperTrain;
|
||||||
|
private System.Windows.Forms.SplitContainer SPLIT_Training;
|
||||||
|
}
|
||||||
|
}
|
154
Subforms/PKM Editors/SuperTrainingEditor.cs
Normal file
154
Subforms/PKM Editors/SuperTrainingEditor.cs
Normal file
|
@ -0,0 +1,154 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace PKHeX
|
||||||
|
{
|
||||||
|
public partial class SuperTrainingEditor : Form
|
||||||
|
{
|
||||||
|
public SuperTrainingEditor()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
int vertScrollWidth = SystemInformation.VerticalScrollBarWidth;
|
||||||
|
TLP_SuperTrain.Padding = TLP_DistSuperTrain.Padding = new Padding(0, 0, vertScrollWidth, 0);
|
||||||
|
|
||||||
|
populateRegimens("SuperTrain", TLP_SuperTrain, reglist);
|
||||||
|
populateRegimens("DistSuperTrain", TLP_DistSuperTrain, distlist);
|
||||||
|
|
||||||
|
CB_Bag.Items.Clear();
|
||||||
|
CB_Bag.Items.Add("---");
|
||||||
|
for (int i = 1; i < Main.trainingbags.Length - 1; i++)
|
||||||
|
CB_Bag.Items.Add(Main.trainingbags[i]);
|
||||||
|
|
||||||
|
if (pkm is PK6)
|
||||||
|
{
|
||||||
|
PK6 pk6 = (PK6)pkm;
|
||||||
|
CB_Bag.SelectedIndex = pk6.TrainingBag;
|
||||||
|
NUD_BagHits.Value = pk6.TrainingBagHits;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CB_Bag.Visible = NUD_BagHits.Visible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private readonly List<RegimenInfo> reglist = new List<RegimenInfo>();
|
||||||
|
private readonly List<RegimenInfo> distlist = new List<RegimenInfo>();
|
||||||
|
private readonly PKM pkm = Main.pkm.Clone();
|
||||||
|
private const string PrefixLabel = "L_";
|
||||||
|
private const string PrefixCHK = "CHK_";
|
||||||
|
|
||||||
|
private void B_Cancel_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
private void B_Save_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
save();
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void populateRegimens(string Type, TableLayoutPanel TLP, List<RegimenInfo> list)
|
||||||
|
{
|
||||||
|
// Get a list of all Regimen Attregutes in the PKM
|
||||||
|
var RegimenNames = ReflectUtil.getPropertiesStartWithPrefix(pkm.GetType(), Type);
|
||||||
|
list.AddRange(from RegimenName in RegimenNames
|
||||||
|
let RegimenValue = ReflectUtil.GetValue(pkm, RegimenName)
|
||||||
|
where RegimenValue is bool
|
||||||
|
select new RegimenInfo(RegimenName, (bool) RegimenValue));
|
||||||
|
TLP.ColumnCount = 2;
|
||||||
|
TLP.RowCount = 0;
|
||||||
|
|
||||||
|
// Add Regimens
|
||||||
|
foreach (var reg in list)
|
||||||
|
addRegimenChoice(reg);
|
||||||
|
|
||||||
|
// Force auto-size
|
||||||
|
foreach (RowStyle style in TLP.RowStyles)
|
||||||
|
style.SizeType = SizeType.AutoSize;
|
||||||
|
foreach (ColumnStyle style in TLP.ColumnStyles)
|
||||||
|
style.SizeType = SizeType.AutoSize;
|
||||||
|
}
|
||||||
|
private void addRegimenChoice(RegimenInfo reg)
|
||||||
|
{
|
||||||
|
// Get row we add to
|
||||||
|
int row = TLP_SuperTrain.RowCount;
|
||||||
|
TLP_SuperTrain.RowCount++;
|
||||||
|
|
||||||
|
var label = new Label
|
||||||
|
{
|
||||||
|
Anchor = AnchorStyles.Left,
|
||||||
|
Name = PrefixLabel + reg.Name,
|
||||||
|
Text = reg.Name,
|
||||||
|
Padding = Padding.Empty,
|
||||||
|
AutoSize = true,
|
||||||
|
};
|
||||||
|
TLP_SuperTrain.Controls.Add(label, 1, row);
|
||||||
|
|
||||||
|
var chk = new CheckBox
|
||||||
|
{
|
||||||
|
Anchor = AnchorStyles.Right,
|
||||||
|
Name = PrefixCHK + reg.Name,
|
||||||
|
AutoSize = true,
|
||||||
|
Padding = Padding.Empty,
|
||||||
|
};
|
||||||
|
chk.CheckedChanged += (sender, e) => { reg.CompletedRegimen = chk.Checked; };
|
||||||
|
chk.Checked = reg.CompletedRegimen;
|
||||||
|
TLP_SuperTrain.Controls.Add(chk, 0, row);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void save()
|
||||||
|
{
|
||||||
|
foreach (var reg in reglist)
|
||||||
|
ReflectUtil.SetValue(pkm, reg.Name, reg.CompletedRegimen);
|
||||||
|
foreach (var reg in distlist)
|
||||||
|
ReflectUtil.SetValue(pkm, reg.Name, reg.CompletedRegimen);
|
||||||
|
|
||||||
|
if (CB_Bag.Visible)
|
||||||
|
{
|
||||||
|
(pkm as PK6).TrainingBag = CB_Bag.SelectedIndex;
|
||||||
|
(pkm as PK6).TrainingBagHits = (int)NUD_BagHits.Value;
|
||||||
|
}
|
||||||
|
|
||||||
|
Main.pkm = pkm;
|
||||||
|
}
|
||||||
|
|
||||||
|
private class RegimenInfo
|
||||||
|
{
|
||||||
|
public readonly string Name;
|
||||||
|
public bool CompletedRegimen;
|
||||||
|
public RegimenInfo(string name, bool completedRegimen)
|
||||||
|
{
|
||||||
|
Name = name;
|
||||||
|
CompletedRegimen = completedRegimen;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void B_All_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
CHK_Secret.Checked = true;
|
||||||
|
foreach (var c in TLP_SuperTrain.Controls.OfType<CheckBox>())
|
||||||
|
c.Checked = true;
|
||||||
|
foreach (var c in TLP_DistSuperTrain.Controls.OfType<CheckBox>())
|
||||||
|
c.Checked = true;
|
||||||
|
}
|
||||||
|
private void B_None_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
CHK_Secret.Checked = false;
|
||||||
|
foreach (var c in TLP_SuperTrain.Controls.OfType<CheckBox>())
|
||||||
|
c.Checked = false;
|
||||||
|
foreach (var c in TLP_DistSuperTrain.Controls.OfType<CheckBox>())
|
||||||
|
c.Checked = false;
|
||||||
|
}
|
||||||
|
private void CHK_Secret_CheckedChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
foreach (var c in TLP_SuperTrain.Controls.OfType<CheckBox>().Where(chk => Convert.ToInt16(chk.Name[10]) > 4))
|
||||||
|
{
|
||||||
|
c.Enabled = CHK_Secret.Checked;
|
||||||
|
if (!CHK_Secret.Checked)
|
||||||
|
c.Checked = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
216
Subforms/PKM Editors/SuperTrainingEditor.resx
Normal file
216
Subforms/PKM Editors/SuperTrainingEditor.resx
Normal 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+5eXl/9ra2vyLi4tAhYWFP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PAAAADwAAAA8AAAAPAAAADwAAAA8AAAAPAAAADwAAAA8AA
|
||||||
|
AAPAAAADwAAAA8AAAAPAAAAD4AAAB/gAAB//////
|
||||||
|
</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
|
@ -1,21 +1,34 @@
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace PKHeX
|
namespace PKHeX
|
||||||
{
|
{
|
||||||
public static class ReflectUtil
|
public static class ReflectUtil
|
||||||
{
|
{
|
||||||
internal static bool GetValueEquals<T>(T obj, string propertyName, object value)
|
internal static bool GetValueEquals(object obj, string propertyName, object value)
|
||||||
{
|
{
|
||||||
PropertyInfo pi = typeof(T).GetProperty(propertyName);
|
PropertyInfo pi = obj.GetType().GetProperty(propertyName);
|
||||||
var v = pi.GetValue(obj, null);
|
var v = pi.GetValue(obj, null);
|
||||||
var c = Convert.ChangeType(value, pi.PropertyType);
|
var c = Convert.ChangeType(value, pi.PropertyType);
|
||||||
return v.Equals(c);
|
return v.Equals(c);
|
||||||
}
|
}
|
||||||
internal static void SetValue<T>(T obj, string propertyName, object value)
|
internal static void SetValue(object obj, string propertyName, object value)
|
||||||
{
|
{
|
||||||
PropertyInfo pi = typeof(T).GetProperty(propertyName);
|
PropertyInfo pi = obj.GetType().GetProperty(propertyName);
|
||||||
pi.SetValue(obj, Convert.ChangeType(value, pi.PropertyType), null);
|
pi.SetValue(obj, Convert.ChangeType(value, pi.PropertyType), null);
|
||||||
}
|
}
|
||||||
|
internal static object GetValue(object obj, string propertyName)
|
||||||
|
{
|
||||||
|
PropertyInfo pi = obj.GetType().GetProperty(propertyName);
|
||||||
|
return pi.GetValue(obj, null);
|
||||||
|
}
|
||||||
|
internal static IEnumerable<string> getPropertiesStartWithPrefix(Type type, string prefix)
|
||||||
|
{
|
||||||
|
return type.GetProperties()
|
||||||
|
.Where(p => p.Name.StartsWith(prefix))
|
||||||
|
.Select(p => p.Name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue