From ec529dae7e5f5905255e5d8384ea8ebb3abfd8a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Corentin=20MAC=C3=89?=
<43670071+corentinmace@users.noreply.github.com>
Date: Thu, 10 Jul 2025 13:06:47 +0200
Subject: [PATCH] Externalized Trainer Editor
---
DS_Map/DSPRE.csproj | 9 +
DS_Map/EditorPanels.cs | 4 +
DS_Map/Editors/TableEditor.cs | 6 +-
DS_Map/Editors/TrainerEditor.Designer.cs | 2514 ++++++++++++++++++++++
DS_Map/Editors/TrainerEditor.cs | 1202 +++++++++++
DS_Map/Editors/TrainerEditor.resx | 150 ++
DS_Map/Helpers.cs | 44 -
DS_Map/Main Window.Designer.cs | 2098 ++----------------
DS_Map/Main Window.cs | 1035 +--------
DS_Map/Main Window.resx | 225 +-
10 files changed, 4138 insertions(+), 3149 deletions(-)
create mode 100644 DS_Map/Editors/TrainerEditor.Designer.cs
create mode 100644 DS_Map/Editors/TrainerEditor.cs
create mode 100644 DS_Map/Editors/TrainerEditor.resx
diff --git a/DS_Map/DSPRE.csproj b/DS_Map/DSPRE.csproj
index 88b9a4d..82d0a95 100644
--- a/DS_Map/DSPRE.csproj
+++ b/DS_Map/DSPRE.csproj
@@ -222,6 +222,12 @@
TextEditor.cs
+
+ UserControl
+
+
+ TrainerEditor.cs
+
Form
@@ -507,6 +513,9 @@
TextEditor.cs
+
+ TrainerEditor.cs
+
EventFileImport.cs
diff --git a/DS_Map/EditorPanels.cs b/DS_Map/EditorPanels.cs
index 5a085e4..cff8d89 100644
--- a/DS_Map/EditorPanels.cs
+++ b/DS_Map/EditorPanels.cs
@@ -19,6 +19,8 @@ namespace DSPRE {
public static TableEditor tableEditor { get { return MainProgram.tableEditor; } }
+ public static TrainerEditor trainerEditor { get { return MainProgram.trainerEditor; } }
+
public static CameraEditor cameraEditor { get { return MainProgram.cameraEditor; } }
public static TabPage scriptEditorTabPage { get { return MainProgram.tabPageScriptEditor; } }
@@ -30,6 +32,8 @@ namespace DSPRE {
public static TabPage tabPageEncountersEditor { get { return MainProgram.tabPageEncountersEditor; } }
public static TabPage tabPageTableEditor { get { return MainProgram.tableEditorTabPage; } }
+ public static TabPage trainerEditortTabPage { get { return MainProgram.trainerEditorTabPage; } }
+
}
}
diff --git a/DS_Map/Editors/TableEditor.cs b/DS_Map/Editors/TableEditor.cs
index 0579d79..fcc46a0 100644
--- a/DS_Map/Editors/TableEditor.cs
+++ b/DS_Map/Editors/TableEditor.cs
@@ -331,7 +331,7 @@ namespace DSPRE.Editors
private void TBLEditortrainerClassPreviewPic_ValueChanged(object sender, EventArgs e)
{
- Helpers.UpdateTrainerClassPic(tbEditorTrClassPictureBox, _parent.trainerPal, _parent.trainerTile, _parent.trainerSprite, _parent.trainerClassPicBox.Height, _parent.trainerClassPicBox.Width, (int)((NumericUpDown)sender).Value);
+ EditorPanels.trainerEditor.UpdateTrainerClassPic(tbEditorTrClassPictureBox, (int)((NumericUpDown)sender).Value);
}
private void saveEffectComboBTN_Click(object sender, EventArgs e)
@@ -457,8 +457,8 @@ namespace DSPRE.Editors
private void pbEffectsTrainerCombobox_SelectedIndexChanged(object sender, EventArgs e)
{
- int maxFrames = Helpers.LoadTrainerClassPic((sender as ComboBox).SelectedIndex, _parent.trainerPal,_parent.trainerTile, _parent.trainerSprite);
- Helpers.UpdateTrainerClassPic(tbEditorTrClassPictureBox, _parent.trainerPal, _parent.trainerTile, _parent.trainerSprite, _parent.trainerClassPicBox.Height, _parent.trainerClassPicBox.Width);
+ int maxFrames = EditorPanels.trainerEditor.LoadTrainerClassPic((sender as ComboBox).SelectedIndex);
+ EditorPanels.trainerEditor.UpdateTrainerClassPic(tbEditorTrClassPictureBox);
tbEditorTrClassFramePreviewUpDown.Maximum = maxFrames;
tbEditortrainerClassFrameMaxLabel.Text = "/" + maxFrames;
diff --git a/DS_Map/Editors/TrainerEditor.Designer.cs b/DS_Map/Editors/TrainerEditor.Designer.cs
new file mode 100644
index 0000000..795c888
--- /dev/null
+++ b/DS_Map/Editors/TrainerEditor.Designer.cs
@@ -0,0 +1,2514 @@
+namespace DSPRE.Editors
+{
+ partial class TrainerEditor
+ {
+ ///
+ /// Variable nécessaire au concepteur.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Nettoyage des ressources utilisées.
+ ///
+ /// true si les ressources managées doivent être supprimées ; sinon, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Code généré par le Concepteur de composants
+
+ ///
+ /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas
+ /// le contenu de cette méthode avec l'éditeur de code.
+ ///
+ private void InitializeComponent()
+ {
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TrainerEditor));
+ this.partyMove3_2ComboBox = new DSPRE.InputComboBox();
+ this.partyMove1_1ComboBox = new DSPRE.InputComboBox();
+ this.partyMove1_2ComboBox = new DSPRE.InputComboBox();
+ this.partyMove1_3ComboBox = new DSPRE.InputComboBox();
+ this.partyMove1_4ComboBox = new DSPRE.InputComboBox();
+ this.partyForm2ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyAbility2ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyGender2ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyPokemonItemPictureBox2 = new System.Windows.Forms.PictureBox();
+ this.label49 = new System.Windows.Forms.Label();
+ this.label50 = new System.Windows.Forms.Label();
+ this.partyLevel2UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyBall2UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyMove2_1ComboBox = new DSPRE.InputComboBox();
+ this.partyMove2_2ComboBox = new DSPRE.InputComboBox();
+ this.partyMove2_3ComboBox = new DSPRE.InputComboBox();
+ this.partyMove2_4ComboBox = new DSPRE.InputComboBox();
+ this.label48 = new System.Windows.Forms.Label();
+ this.partyForm1ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyMove3_1ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemonItemPictureBox3 = new System.Windows.Forms.PictureBox();
+ this.partyItem3ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon3ComboBox = new DSPRE.InputComboBox();
+ this.DVExplainButton = new System.Windows.Forms.Button();
+ this.party1GroupBox = new System.Windows.Forms.GroupBox();
+ this.partyAbility1ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyGender1ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyPokemonItemPictureBox1 = new System.Windows.Forms.PictureBox();
+ this.label47 = new System.Windows.Forms.Label();
+ this.label46 = new System.Windows.Forms.Label();
+ this.label45 = new System.Windows.Forms.Label();
+ this.poke1MovesGroupBox = new System.Windows.Forms.GroupBox();
+ this.partyIV1UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyLevel1UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyBall1UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyItem1ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon1PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemon1ComboBox = new DSPRE.InputComboBox();
+ this.partyItem2ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon3PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyMove6_1ComboBox = new DSPRE.InputComboBox();
+ this.partyMove6_2ComboBox = new DSPRE.InputComboBox();
+ this.partyMove6_3ComboBox = new DSPRE.InputComboBox();
+ this.partyMove6_4ComboBox = new DSPRE.InputComboBox();
+ this.partyForm4ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyForm6ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyAbility6ComboBox = new System.Windows.Forms.ComboBox();
+ this.label60 = new System.Windows.Forms.Label();
+ this.label61 = new System.Windows.Forms.Label();
+ this.label62 = new System.Windows.Forms.Label();
+ this.poke6MovesGroupBox = new System.Windows.Forms.GroupBox();
+ this.partyIV6UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyLevel6UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyBall6UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyItem6ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon6PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemon6ComboBox = new DSPRE.InputComboBox();
+ this.partyAbility4ComboBox = new System.Windows.Forms.ComboBox();
+ this.party2GroupBox = new System.Windows.Forms.GroupBox();
+ this.poke2MovesGroupBox = new System.Windows.Forms.GroupBox();
+ this.partyIV2UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyPokemon2PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemon2ComboBox = new DSPRE.InputComboBox();
+ this.party4GroupBox = new System.Windows.Forms.GroupBox();
+ this.partyGender4ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyPokemonItemPictureBox4 = new System.Windows.Forms.PictureBox();
+ this.label54 = new System.Windows.Forms.Label();
+ this.label55 = new System.Windows.Forms.Label();
+ this.label56 = new System.Windows.Forms.Label();
+ this.poke4MovesGroupBox = new System.Windows.Forms.GroupBox();
+ this.partyMove4_1ComboBox = new DSPRE.InputComboBox();
+ this.partyMove4_2ComboBox = new DSPRE.InputComboBox();
+ this.partyMove4_3ComboBox = new DSPRE.InputComboBox();
+ this.partyMove4_4ComboBox = new DSPRE.InputComboBox();
+ this.partyIV4UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyLevel4UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyBall4UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyItem4ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon4PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemon4ComboBox = new DSPRE.InputComboBox();
+ this.partyMove3_3ComboBox = new DSPRE.InputComboBox();
+ this.TrainerAIGroupBox = new System.Windows.Forms.GroupBox();
+ this.trainerAI1CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI2CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI3CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI4CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI5CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI6CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI7CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI8CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI9CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI10CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerAI11CheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerItemsGroupBox = new System.Windows.Forms.GroupBox();
+ this.trainerItem1ComboBox = new DSPRE.InputComboBox();
+ this.trainerItem2ComboBox = new DSPRE.InputComboBox();
+ this.trainerItem3ComboBox = new DSPRE.InputComboBox();
+ this.trainerItem4ComboBox = new DSPRE.InputComboBox();
+ this.label63 = new System.Windows.Forms.Label();
+ this.eyeContactMusicAltLabel = new System.Windows.Forms.Label();
+ this.encounterSSEQAltUpDown = new System.Windows.Forms.NumericUpDown();
+ this.eyeContactMusicLabel = new System.Windows.Forms.Label();
+ this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
+ this.exportTrainerButton = new System.Windows.Forms.Button();
+ this.importTrainerButton = new System.Windows.Forms.Button();
+ this.groupBox28 = new System.Windows.Forms.GroupBox();
+ this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel();
+ this.importReplacePartyButton = new System.Windows.Forms.Button();
+ this.exportPartyButton = new System.Windows.Forms.Button();
+ this.label74 = new System.Windows.Forms.Label();
+ this.party6GroupBox = new System.Windows.Forms.GroupBox();
+ this.partyGender6ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyPokemonItemPictureBox6 = new System.Windows.Forms.PictureBox();
+ this.party5GroupBox = new System.Windows.Forms.GroupBox();
+ this.partyForm5ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyAbility5ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyGender5ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyPokemonItemPictureBox5 = new System.Windows.Forms.PictureBox();
+ this.label57 = new System.Windows.Forms.Label();
+ this.label58 = new System.Windows.Forms.Label();
+ this.label59 = new System.Windows.Forms.Label();
+ this.poke5MovesGroupBox = new System.Windows.Forms.GroupBox();
+ this.partyMove5_1ComboBox = new DSPRE.InputComboBox();
+ this.partyMove5_2ComboBox = new DSPRE.InputComboBox();
+ this.partyMove5_3ComboBox = new DSPRE.InputComboBox();
+ this.partyMove5_4ComboBox = new DSPRE.InputComboBox();
+ this.partyIV5UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyLevel5UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyBall5UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyItem5ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon5PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemon5ComboBox = new DSPRE.InputComboBox();
+ this.party3GroupBox = new System.Windows.Forms.GroupBox();
+ this.partyForm3ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyAbility3ComboBox = new System.Windows.Forms.ComboBox();
+ this.partyGender3ComboBox = new System.Windows.Forms.ComboBox();
+ this.label51 = new System.Windows.Forms.Label();
+ this.label52 = new System.Windows.Forms.Label();
+ this.label53 = new System.Windows.Forms.Label();
+ this.poke3MovesGroupBox = new System.Windows.Forms.GroupBox();
+ this.partyMove3_4ComboBox = new DSPRE.InputComboBox();
+ this.partyIV3UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyLevel3UpDown = new System.Windows.Forms.NumericUpDown();
+ this.partyBall3UpDown = new System.Windows.Forms.NumericUpDown();
+ this.groupBox27 = new System.Windows.Forms.GroupBox();
+ this.encounterSSEQMainUpDown = new System.Windows.Forms.NumericUpDown();
+ this.trainerClassFrameMaxLabel = new System.Windows.Forms.Label();
+ this.label40 = new System.Windows.Forms.Label();
+ this.trClassFramePreviewUpDown = new System.Windows.Forms.NumericUpDown();
+ this.saveTrainerClassButton = new System.Windows.Forms.Button();
+ this.trainerClassNameTextbox = new System.Windows.Forms.TextBox();
+ this.label17 = new System.Windows.Forms.Label();
+ this.trainerClassPicBox = new System.Windows.Forms.PictureBox();
+ this.deleteTrainerButton = new System.Windows.Forms.Button();
+ this.addTrainerButton = new System.Windows.Forms.Button();
+ this.label42 = new System.Windows.Forms.Label();
+ this.trainerSaveCurrentButton = new System.Windows.Forms.Button();
+ this.trainerComboBox = new DSPRE.InputComboBox();
+ this.trainerItemsCheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerNameTextBox = new System.Windows.Forms.TextBox();
+ this.partyCountUpDown = new System.Windows.Forms.NumericUpDown();
+ this.groupBox25 = new System.Windows.Forms.GroupBox();
+ this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel();
+ this.replacePropertiesButton = new System.Windows.Forms.Button();
+ this.exportPropertiesButton = new System.Windows.Forms.Button();
+ this.trainerMovesCheckBox = new System.Windows.Forms.CheckBox();
+ this.trainerDoubleCheckBox = new System.Windows.Forms.CheckBox();
+ this.label44 = new System.Windows.Forms.Label();
+ this.label43 = new System.Windows.Forms.Label();
+ this.trainerClassListBox = new System.Windows.Forms.ListBox();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel2UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall2UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox3)).BeginInit();
+ this.party1GroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox1)).BeginInit();
+ this.poke1MovesGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV1UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel1UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall1UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon1PictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon3PictureBox)).BeginInit();
+ this.poke6MovesGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV6UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel6UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall6UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon6PictureBox)).BeginInit();
+ this.party2GroupBox.SuspendLayout();
+ this.poke2MovesGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV2UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon2PictureBox)).BeginInit();
+ this.party4GroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox4)).BeginInit();
+ this.poke4MovesGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV4UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel4UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall4UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon4PictureBox)).BeginInit();
+ this.TrainerAIGroupBox.SuspendLayout();
+ this.trainerItemsGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.encounterSSEQAltUpDown)).BeginInit();
+ this.tableLayoutPanel4.SuspendLayout();
+ this.groupBox28.SuspendLayout();
+ this.tableLayoutPanel6.SuspendLayout();
+ this.party6GroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox6)).BeginInit();
+ this.party5GroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox5)).BeginInit();
+ this.poke5MovesGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV5UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel5UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall5UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon5PictureBox)).BeginInit();
+ this.party3GroupBox.SuspendLayout();
+ this.poke3MovesGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV3UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel3UpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall3UpDown)).BeginInit();
+ this.groupBox27.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.encounterSSEQMainUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.trClassFramePreviewUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.trainerClassPicBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyCountUpDown)).BeginInit();
+ this.groupBox25.SuspendLayout();
+ this.tableLayoutPanel5.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // partyMove3_2ComboBox
+ //
+ this.partyMove3_2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove3_2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove3_2ComboBox.Enabled = false;
+ this.partyMove3_2ComboBox.FormattingEnabled = true;
+ this.partyMove3_2ComboBox.Location = new System.Drawing.Point(116, 21);
+ this.partyMove3_2ComboBox.Name = "partyMove3_2ComboBox";
+ this.partyMove3_2ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove3_2ComboBox.TabIndex = 6;
+ this.partyMove3_2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove1_1ComboBox
+ //
+ this.partyMove1_1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove1_1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove1_1ComboBox.Enabled = false;
+ this.partyMove1_1ComboBox.FormattingEnabled = true;
+ this.partyMove1_1ComboBox.Location = new System.Drawing.Point(10, 21);
+ this.partyMove1_1ComboBox.Name = "partyMove1_1ComboBox";
+ this.partyMove1_1ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove1_1ComboBox.TabIndex = 3;
+ this.partyMove1_1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove1_2ComboBox
+ //
+ this.partyMove1_2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove1_2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove1_2ComboBox.Enabled = false;
+ this.partyMove1_2ComboBox.FormattingEnabled = true;
+ this.partyMove1_2ComboBox.Location = new System.Drawing.Point(116, 21);
+ this.partyMove1_2ComboBox.Name = "partyMove1_2ComboBox";
+ this.partyMove1_2ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove1_2ComboBox.TabIndex = 6;
+ this.partyMove1_2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove1_3ComboBox
+ //
+ this.partyMove1_3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove1_3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove1_3ComboBox.Enabled = false;
+ this.partyMove1_3ComboBox.FormattingEnabled = true;
+ this.partyMove1_3ComboBox.Location = new System.Drawing.Point(10, 48);
+ this.partyMove1_3ComboBox.Name = "partyMove1_3ComboBox";
+ this.partyMove1_3ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove1_3ComboBox.TabIndex = 5;
+ this.partyMove1_3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove1_4ComboBox
+ //
+ this.partyMove1_4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove1_4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove1_4ComboBox.Enabled = false;
+ this.partyMove1_4ComboBox.FormattingEnabled = true;
+ this.partyMove1_4ComboBox.Location = new System.Drawing.Point(116, 48);
+ this.partyMove1_4ComboBox.Name = "partyMove1_4ComboBox";
+ this.partyMove1_4ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove1_4ComboBox.TabIndex = 7;
+ this.partyMove1_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyForm2ComboBox
+ //
+ this.partyForm2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyForm2ComboBox.FormattingEnabled = true;
+ this.partyForm2ComboBox.Items.AddRange(new object[] {
+ "Defense form"});
+ this.partyForm2ComboBox.Location = new System.Drawing.Point(228, 151);
+ this.partyForm2ComboBox.Name = "partyForm2ComboBox";
+ this.partyForm2ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyForm2ComboBox.TabIndex = 20;
+ //
+ // partyAbility2ComboBox
+ //
+ this.partyAbility2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyAbility2ComboBox.FormattingEnabled = true;
+ this.partyAbility2ComboBox.Location = new System.Drawing.Point(15, 151);
+ this.partyAbility2ComboBox.Name = "partyAbility2ComboBox";
+ this.partyAbility2ComboBox.Size = new System.Drawing.Size(105, 21);
+ this.partyAbility2ComboBox.TabIndex = 18;
+ //
+ // partyGender2ComboBox
+ //
+ this.partyGender2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyGender2ComboBox.FormattingEnabled = true;
+ this.partyGender2ComboBox.Location = new System.Drawing.Point(126, 151);
+ this.partyGender2ComboBox.Name = "partyGender2ComboBox";
+ this.partyGender2ComboBox.Size = new System.Drawing.Size(95, 21);
+ this.partyGender2ComboBox.TabIndex = 17;
+ //
+ // partyPokemonItemPictureBox2
+ //
+ this.partyPokemonItemPictureBox2.Image = global::DSPRE.Properties.Resources.IconItem;
+ this.partyPokemonItemPictureBox2.Location = new System.Drawing.Point(198, 26);
+ this.partyPokemonItemPictureBox2.Name = "partyPokemonItemPictureBox2";
+ this.partyPokemonItemPictureBox2.Size = new System.Drawing.Size(24, 25);
+ this.partyPokemonItemPictureBox2.TabIndex = 15;
+ this.partyPokemonItemPictureBox2.TabStop = false;
+ this.partyPokemonItemPictureBox2.Visible = false;
+ //
+ // label49
+ //
+ this.label49.AutoSize = true;
+ this.label49.Location = new System.Drawing.Point(12, 94);
+ this.label49.Name = "label49";
+ this.label49.Size = new System.Drawing.Size(22, 13);
+ this.label49.TabIndex = 8;
+ this.label49.Text = "DV";
+ //
+ // label50
+ //
+ this.label50.AutoSize = true;
+ this.label50.Location = new System.Drawing.Point(12, 67);
+ this.label50.Name = "label50";
+ this.label50.Size = new System.Drawing.Size(22, 13);
+ this.label50.TabIndex = 7;
+ this.label50.Text = "Lv.";
+ //
+ // partyLevel2UpDown
+ //
+ this.partyLevel2UpDown.Location = new System.Drawing.Point(48, 63);
+ this.partyLevel2UpDown.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.partyLevel2UpDown.Name = "partyLevel2UpDown";
+ this.partyLevel2UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyLevel2UpDown.TabIndex = 4;
+ this.partyLevel2UpDown.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ //
+ // partyBall2UpDown
+ //
+ this.partyBall2UpDown.Location = new System.Drawing.Point(48, 121);
+ this.partyBall2UpDown.Maximum = new decimal(new int[] {
+ 65535,
+ 0,
+ 0,
+ 0});
+ this.partyBall2UpDown.Name = "partyBall2UpDown";
+ this.partyBall2UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyBall2UpDown.TabIndex = 3;
+ //
+ // partyMove2_1ComboBox
+ //
+ this.partyMove2_1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove2_1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove2_1ComboBox.Enabled = false;
+ this.partyMove2_1ComboBox.FormattingEnabled = true;
+ this.partyMove2_1ComboBox.Location = new System.Drawing.Point(10, 21);
+ this.partyMove2_1ComboBox.Name = "partyMove2_1ComboBox";
+ this.partyMove2_1ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove2_1ComboBox.TabIndex = 3;
+ this.partyMove2_1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove2_2ComboBox
+ //
+ this.partyMove2_2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove2_2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove2_2ComboBox.Enabled = false;
+ this.partyMove2_2ComboBox.FormattingEnabled = true;
+ this.partyMove2_2ComboBox.Location = new System.Drawing.Point(116, 21);
+ this.partyMove2_2ComboBox.Name = "partyMove2_2ComboBox";
+ this.partyMove2_2ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove2_2ComboBox.TabIndex = 6;
+ this.partyMove2_2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove2_3ComboBox
+ //
+ this.partyMove2_3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove2_3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove2_3ComboBox.Enabled = false;
+ this.partyMove2_3ComboBox.FormattingEnabled = true;
+ this.partyMove2_3ComboBox.Location = new System.Drawing.Point(10, 48);
+ this.partyMove2_3ComboBox.Name = "partyMove2_3ComboBox";
+ this.partyMove2_3ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove2_3ComboBox.TabIndex = 5;
+ this.partyMove2_3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove2_4ComboBox
+ //
+ this.partyMove2_4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove2_4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove2_4ComboBox.Enabled = false;
+ this.partyMove2_4ComboBox.FormattingEnabled = true;
+ this.partyMove2_4ComboBox.Location = new System.Drawing.Point(116, 48);
+ this.partyMove2_4ComboBox.Name = "partyMove2_4ComboBox";
+ this.partyMove2_4ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove2_4ComboBox.TabIndex = 7;
+ this.partyMove2_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // label48
+ //
+ this.label48.AutoSize = true;
+ this.label48.Location = new System.Drawing.Point(12, 118);
+ this.label48.Name = "label48";
+ this.label48.Size = new System.Drawing.Size(28, 26);
+ this.label48.TabIndex = 9;
+ this.label48.Text = "Ball\r\nSeal";
+ //
+ // partyForm1ComboBox
+ //
+ this.partyForm1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyForm1ComboBox.FormattingEnabled = true;
+ this.partyForm1ComboBox.Items.AddRange(new object[] {
+ "Defense form"});
+ this.partyForm1ComboBox.Location = new System.Drawing.Point(228, 151);
+ this.partyForm1ComboBox.Name = "partyForm1ComboBox";
+ this.partyForm1ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyForm1ComboBox.TabIndex = 14;
+ //
+ // partyMove3_1ComboBox
+ //
+ this.partyMove3_1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove3_1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove3_1ComboBox.Enabled = false;
+ this.partyMove3_1ComboBox.FormattingEnabled = true;
+ this.partyMove3_1ComboBox.Location = new System.Drawing.Point(10, 21);
+ this.partyMove3_1ComboBox.Name = "partyMove3_1ComboBox";
+ this.partyMove3_1ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove3_1ComboBox.TabIndex = 3;
+ this.partyMove3_1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyPokemonItemPictureBox3
+ //
+ this.partyPokemonItemPictureBox3.Image = global::DSPRE.Properties.Resources.IconItem;
+ this.partyPokemonItemPictureBox3.Location = new System.Drawing.Point(198, 26);
+ this.partyPokemonItemPictureBox3.Name = "partyPokemonItemPictureBox3";
+ this.partyPokemonItemPictureBox3.Size = new System.Drawing.Size(24, 25);
+ this.partyPokemonItemPictureBox3.TabIndex = 11;
+ this.partyPokemonItemPictureBox3.TabStop = false;
+ this.partyPokemonItemPictureBox3.Visible = false;
+ //
+ // partyItem3ComboBox
+ //
+ this.partyItem3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyItem3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyItem3ComboBox.Enabled = false;
+ this.partyItem3ComboBox.FormattingEnabled = true;
+ this.partyItem3ComboBox.Location = new System.Drawing.Point(228, 28);
+ this.partyItem3ComboBox.Name = "partyItem3ComboBox";
+ this.partyItem3ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyItem3ComboBox.TabIndex = 2;
+ this.partyItem3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyItem3ComboBox_SelectedIndexChanged);
+ //
+ // partyPokemon3ComboBox
+ //
+ this.partyPokemon3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyPokemon3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyPokemon3ComboBox.FormattingEnabled = true;
+ this.partyPokemon3ComboBox.Location = new System.Drawing.Point(58, 28);
+ this.partyPokemon3ComboBox.Name = "partyPokemon3ComboBox";
+ this.partyPokemon3ComboBox.Size = new System.Drawing.Size(126, 21);
+ this.partyPokemon3ComboBox.TabIndex = 0;
+ this.partyPokemon3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyPokemon3ComboBox_SelectedIndexChanged);
+ //
+ // DVExplainButton
+ //
+ this.DVExplainButton.Image = ((System.Drawing.Image)(resources.GetObject("DVExplainButton.Image")));
+ this.DVExplainButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.DVExplainButton.Location = new System.Drawing.Point(242, 11);
+ this.DVExplainButton.Name = "DVExplainButton";
+ this.DVExplainButton.Size = new System.Drawing.Size(118, 29);
+ this.DVExplainButton.TabIndex = 45;
+ this.DVExplainButton.Text = "Open DV Calculator";
+ this.DVExplainButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.DVExplainButton.UseVisualStyleBackColor = true;
+ this.DVExplainButton.Click += new System.EventHandler(this.DVExplainButton_Click);
+ //
+ // party1GroupBox
+ //
+ this.party1GroupBox.Controls.Add(this.partyForm1ComboBox);
+ this.party1GroupBox.Controls.Add(this.partyAbility1ComboBox);
+ this.party1GroupBox.Controls.Add(this.partyGender1ComboBox);
+ this.party1GroupBox.Controls.Add(this.partyPokemonItemPictureBox1);
+ this.party1GroupBox.Controls.Add(this.label47);
+ this.party1GroupBox.Controls.Add(this.label46);
+ this.party1GroupBox.Controls.Add(this.label45);
+ this.party1GroupBox.Controls.Add(this.poke1MovesGroupBox);
+ this.party1GroupBox.Controls.Add(this.partyIV1UpDown);
+ this.party1GroupBox.Controls.Add(this.partyLevel1UpDown);
+ this.party1GroupBox.Controls.Add(this.partyBall1UpDown);
+ this.party1GroupBox.Controls.Add(this.partyItem1ComboBox);
+ this.party1GroupBox.Controls.Add(this.partyPokemon1PictureBox);
+ this.party1GroupBox.Controls.Add(this.partyPokemon1ComboBox);
+ this.party1GroupBox.Enabled = false;
+ this.party1GroupBox.Location = new System.Drawing.Point(16, 37);
+ this.party1GroupBox.Name = "party1GroupBox";
+ this.party1GroupBox.Size = new System.Drawing.Size(343, 183);
+ this.party1GroupBox.TabIndex = 0;
+ this.party1GroupBox.TabStop = false;
+ this.party1GroupBox.Text = "Pokemon 1";
+ //
+ // partyAbility1ComboBox
+ //
+ this.partyAbility1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyAbility1ComboBox.FormattingEnabled = true;
+ this.partyAbility1ComboBox.Location = new System.Drawing.Point(15, 151);
+ this.partyAbility1ComboBox.Name = "partyAbility1ComboBox";
+ this.partyAbility1ComboBox.Size = new System.Drawing.Size(105, 21);
+ this.partyAbility1ComboBox.TabIndex = 13;
+ //
+ // partyGender1ComboBox
+ //
+ this.partyGender1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyGender1ComboBox.FormattingEnabled = true;
+ this.partyGender1ComboBox.Location = new System.Drawing.Point(126, 151);
+ this.partyGender1ComboBox.Name = "partyGender1ComboBox";
+ this.partyGender1ComboBox.Size = new System.Drawing.Size(95, 21);
+ this.partyGender1ComboBox.TabIndex = 12;
+ //
+ // partyPokemonItemPictureBox1
+ //
+ this.partyPokemonItemPictureBox1.Image = global::DSPRE.Properties.Resources.IconItem;
+ this.partyPokemonItemPictureBox1.Location = new System.Drawing.Point(198, 26);
+ this.partyPokemonItemPictureBox1.Name = "partyPokemonItemPictureBox1";
+ this.partyPokemonItemPictureBox1.Size = new System.Drawing.Size(24, 25);
+ this.partyPokemonItemPictureBox1.TabIndex = 10;
+ this.partyPokemonItemPictureBox1.TabStop = false;
+ this.partyPokemonItemPictureBox1.Visible = false;
+ //
+ // label47
+ //
+ this.label47.AutoSize = true;
+ this.label47.Location = new System.Drawing.Point(12, 118);
+ this.label47.Name = "label47";
+ this.label47.Size = new System.Drawing.Size(28, 26);
+ this.label47.TabIndex = 9;
+ this.label47.Text = "Ball\r\nSeal";
+ //
+ // label46
+ //
+ this.label46.AutoSize = true;
+ this.label46.Location = new System.Drawing.Point(12, 94);
+ this.label46.Name = "label46";
+ this.label46.Size = new System.Drawing.Size(22, 13);
+ this.label46.TabIndex = 8;
+ this.label46.Text = "DV";
+ //
+ // label45
+ //
+ this.label45.AutoSize = true;
+ this.label45.Location = new System.Drawing.Point(12, 67);
+ this.label45.Name = "label45";
+ this.label45.Size = new System.Drawing.Size(22, 13);
+ this.label45.TabIndex = 7;
+ this.label45.Text = "Lv.";
+ //
+ // poke1MovesGroupBox
+ //
+ this.poke1MovesGroupBox.Controls.Add(this.partyMove1_1ComboBox);
+ this.poke1MovesGroupBox.Controls.Add(this.partyMove1_2ComboBox);
+ this.poke1MovesGroupBox.Controls.Add(this.partyMove1_3ComboBox);
+ this.poke1MovesGroupBox.Controls.Add(this.partyMove1_4ComboBox);
+ this.poke1MovesGroupBox.Location = new System.Drawing.Point(110, 57);
+ this.poke1MovesGroupBox.Name = "poke1MovesGroupBox";
+ this.poke1MovesGroupBox.Size = new System.Drawing.Size(227, 85);
+ this.poke1MovesGroupBox.TabIndex = 6;
+ this.poke1MovesGroupBox.TabStop = false;
+ this.poke1MovesGroupBox.Text = "Moves";
+ //
+ // partyIV1UpDown
+ //
+ this.partyIV1UpDown.Location = new System.Drawing.Point(48, 92);
+ this.partyIV1UpDown.Maximum = new decimal(new int[] {
+ 255,
+ 0,
+ 0,
+ 0});
+ this.partyIV1UpDown.Name = "partyIV1UpDown";
+ this.partyIV1UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyIV1UpDown.TabIndex = 5;
+ //
+ // partyLevel1UpDown
+ //
+ this.partyLevel1UpDown.Location = new System.Drawing.Point(48, 63);
+ this.partyLevel1UpDown.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.partyLevel1UpDown.Name = "partyLevel1UpDown";
+ this.partyLevel1UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyLevel1UpDown.TabIndex = 4;
+ this.partyLevel1UpDown.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ //
+ // partyBall1UpDown
+ //
+ this.partyBall1UpDown.Location = new System.Drawing.Point(48, 121);
+ this.partyBall1UpDown.Maximum = new decimal(new int[] {
+ 65535,
+ 0,
+ 0,
+ 0});
+ this.partyBall1UpDown.Name = "partyBall1UpDown";
+ this.partyBall1UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyBall1UpDown.TabIndex = 3;
+ //
+ // partyItem1ComboBox
+ //
+ this.partyItem1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyItem1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyItem1ComboBox.Enabled = false;
+ this.partyItem1ComboBox.FormattingEnabled = true;
+ this.partyItem1ComboBox.Location = new System.Drawing.Point(228, 28);
+ this.partyItem1ComboBox.Name = "partyItem1ComboBox";
+ this.partyItem1ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyItem1ComboBox.TabIndex = 2;
+ this.partyItem1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyItem1ComboBox_SelectedIndexChanged);
+ //
+ // partyPokemon1PictureBox
+ //
+ this.partyPokemon1PictureBox.Location = new System.Drawing.Point(11, 23);
+ this.partyPokemon1PictureBox.Name = "partyPokemon1PictureBox";
+ this.partyPokemon1PictureBox.Size = new System.Drawing.Size(40, 30);
+ this.partyPokemon1PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.partyPokemon1PictureBox.TabIndex = 1;
+ this.partyPokemon1PictureBox.TabStop = false;
+ //
+ // partyPokemon1ComboBox
+ //
+ this.partyPokemon1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyPokemon1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyPokemon1ComboBox.FormattingEnabled = true;
+ this.partyPokemon1ComboBox.Location = new System.Drawing.Point(58, 28);
+ this.partyPokemon1ComboBox.Name = "partyPokemon1ComboBox";
+ this.partyPokemon1ComboBox.Size = new System.Drawing.Size(126, 21);
+ this.partyPokemon1ComboBox.TabIndex = 0;
+ this.partyPokemon1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyPokemon1ComboBox_SelectedIndexChanged);
+ //
+ // partyItem2ComboBox
+ //
+ this.partyItem2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyItem2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyItem2ComboBox.Enabled = false;
+ this.partyItem2ComboBox.FormattingEnabled = true;
+ this.partyItem2ComboBox.Location = new System.Drawing.Point(228, 28);
+ this.partyItem2ComboBox.Name = "partyItem2ComboBox";
+ this.partyItem2ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyItem2ComboBox.TabIndex = 2;
+ this.partyItem2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyItem2ComboBox_SelectedIndexChanged);
+ //
+ // partyPokemon3PictureBox
+ //
+ this.partyPokemon3PictureBox.Location = new System.Drawing.Point(11, 23);
+ this.partyPokemon3PictureBox.Name = "partyPokemon3PictureBox";
+ this.partyPokemon3PictureBox.Size = new System.Drawing.Size(40, 30);
+ this.partyPokemon3PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.partyPokemon3PictureBox.TabIndex = 1;
+ this.partyPokemon3PictureBox.TabStop = false;
+ //
+ // partyMove6_1ComboBox
+ //
+ this.partyMove6_1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove6_1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove6_1ComboBox.Enabled = false;
+ this.partyMove6_1ComboBox.FormattingEnabled = true;
+ this.partyMove6_1ComboBox.Location = new System.Drawing.Point(10, 21);
+ this.partyMove6_1ComboBox.Name = "partyMove6_1ComboBox";
+ this.partyMove6_1ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove6_1ComboBox.TabIndex = 3;
+ this.partyMove6_1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove6_2ComboBox
+ //
+ this.partyMove6_2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove6_2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove6_2ComboBox.Enabled = false;
+ this.partyMove6_2ComboBox.FormattingEnabled = true;
+ this.partyMove6_2ComboBox.Location = new System.Drawing.Point(116, 21);
+ this.partyMove6_2ComboBox.Name = "partyMove6_2ComboBox";
+ this.partyMove6_2ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove6_2ComboBox.TabIndex = 6;
+ this.partyMove6_2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove6_3ComboBox
+ //
+ this.partyMove6_3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove6_3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove6_3ComboBox.Enabled = false;
+ this.partyMove6_3ComboBox.FormattingEnabled = true;
+ this.partyMove6_3ComboBox.Location = new System.Drawing.Point(10, 48);
+ this.partyMove6_3ComboBox.Name = "partyMove6_3ComboBox";
+ this.partyMove6_3ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove6_3ComboBox.TabIndex = 5;
+ this.partyMove6_3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove6_4ComboBox
+ //
+ this.partyMove6_4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove6_4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove6_4ComboBox.Enabled = false;
+ this.partyMove6_4ComboBox.FormattingEnabled = true;
+ this.partyMove6_4ComboBox.Location = new System.Drawing.Point(116, 48);
+ this.partyMove6_4ComboBox.Name = "partyMove6_4ComboBox";
+ this.partyMove6_4ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove6_4ComboBox.TabIndex = 7;
+ this.partyMove6_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyForm4ComboBox
+ //
+ this.partyForm4ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyForm4ComboBox.FormattingEnabled = true;
+ this.partyForm4ComboBox.Items.AddRange(new object[] {
+ "Defense form"});
+ this.partyForm4ComboBox.Location = new System.Drawing.Point(228, 151);
+ this.partyForm4ComboBox.Name = "partyForm4ComboBox";
+ this.partyForm4ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyForm4ComboBox.TabIndex = 18;
+ //
+ // partyForm6ComboBox
+ //
+ this.partyForm6ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyForm6ComboBox.FormattingEnabled = true;
+ this.partyForm6ComboBox.Items.AddRange(new object[] {
+ "Defense form"});
+ this.partyForm6ComboBox.Location = new System.Drawing.Point(228, 151);
+ this.partyForm6ComboBox.Name = "partyForm6ComboBox";
+ this.partyForm6ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyForm6ComboBox.TabIndex = 20;
+ //
+ // partyAbility6ComboBox
+ //
+ this.partyAbility6ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyAbility6ComboBox.FormattingEnabled = true;
+ this.partyAbility6ComboBox.Location = new System.Drawing.Point(15, 151);
+ this.partyAbility6ComboBox.Name = "partyAbility6ComboBox";
+ this.partyAbility6ComboBox.Size = new System.Drawing.Size(105, 21);
+ this.partyAbility6ComboBox.TabIndex = 19;
+ //
+ // label60
+ //
+ this.label60.AutoSize = true;
+ this.label60.Location = new System.Drawing.Point(12, 118);
+ this.label60.Name = "label60";
+ this.label60.Size = new System.Drawing.Size(28, 26);
+ this.label60.TabIndex = 9;
+ this.label60.Text = "Ball\r\nSeal";
+ //
+ // label61
+ //
+ this.label61.AutoSize = true;
+ this.label61.Location = new System.Drawing.Point(12, 94);
+ this.label61.Name = "label61";
+ this.label61.Size = new System.Drawing.Size(22, 13);
+ this.label61.TabIndex = 8;
+ this.label61.Text = "DV";
+ //
+ // label62
+ //
+ this.label62.AutoSize = true;
+ this.label62.Location = new System.Drawing.Point(12, 67);
+ this.label62.Name = "label62";
+ this.label62.Size = new System.Drawing.Size(22, 13);
+ this.label62.TabIndex = 7;
+ this.label62.Text = "Lv.";
+ //
+ // poke6MovesGroupBox
+ //
+ this.poke6MovesGroupBox.Controls.Add(this.partyMove6_1ComboBox);
+ this.poke6MovesGroupBox.Controls.Add(this.partyMove6_2ComboBox);
+ this.poke6MovesGroupBox.Controls.Add(this.partyMove6_3ComboBox);
+ this.poke6MovesGroupBox.Controls.Add(this.partyMove6_4ComboBox);
+ this.poke6MovesGroupBox.Location = new System.Drawing.Point(110, 57);
+ this.poke6MovesGroupBox.Name = "poke6MovesGroupBox";
+ this.poke6MovesGroupBox.Size = new System.Drawing.Size(227, 85);
+ this.poke6MovesGroupBox.TabIndex = 6;
+ this.poke6MovesGroupBox.TabStop = false;
+ this.poke6MovesGroupBox.Text = "Moves";
+ //
+ // partyIV6UpDown
+ //
+ this.partyIV6UpDown.Location = new System.Drawing.Point(48, 92);
+ this.partyIV6UpDown.Maximum = new decimal(new int[] {
+ 255,
+ 0,
+ 0,
+ 0});
+ this.partyIV6UpDown.Name = "partyIV6UpDown";
+ this.partyIV6UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyIV6UpDown.TabIndex = 5;
+ //
+ // partyLevel6UpDown
+ //
+ this.partyLevel6UpDown.Location = new System.Drawing.Point(48, 63);
+ this.partyLevel6UpDown.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.partyLevel6UpDown.Name = "partyLevel6UpDown";
+ this.partyLevel6UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyLevel6UpDown.TabIndex = 4;
+ this.partyLevel6UpDown.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ //
+ // partyBall6UpDown
+ //
+ this.partyBall6UpDown.Location = new System.Drawing.Point(48, 121);
+ this.partyBall6UpDown.Maximum = new decimal(new int[] {
+ 65535,
+ 0,
+ 0,
+ 0});
+ this.partyBall6UpDown.Name = "partyBall6UpDown";
+ this.partyBall6UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyBall6UpDown.TabIndex = 3;
+ //
+ // partyItem6ComboBox
+ //
+ this.partyItem6ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyItem6ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyItem6ComboBox.Enabled = false;
+ this.partyItem6ComboBox.FormattingEnabled = true;
+ this.partyItem6ComboBox.Location = new System.Drawing.Point(228, 28);
+ this.partyItem6ComboBox.Name = "partyItem6ComboBox";
+ this.partyItem6ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyItem6ComboBox.TabIndex = 2;
+ this.partyItem6ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyItem6ComboBox_SelectedIndexChanged);
+ //
+ // partyPokemon6PictureBox
+ //
+ this.partyPokemon6PictureBox.Location = new System.Drawing.Point(11, 23);
+ this.partyPokemon6PictureBox.Name = "partyPokemon6PictureBox";
+ this.partyPokemon6PictureBox.Size = new System.Drawing.Size(40, 30);
+ this.partyPokemon6PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.partyPokemon6PictureBox.TabIndex = 1;
+ this.partyPokemon6PictureBox.TabStop = false;
+ //
+ // partyPokemon6ComboBox
+ //
+ this.partyPokemon6ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyPokemon6ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyPokemon6ComboBox.FormattingEnabled = true;
+ this.partyPokemon6ComboBox.Location = new System.Drawing.Point(58, 28);
+ this.partyPokemon6ComboBox.Name = "partyPokemon6ComboBox";
+ this.partyPokemon6ComboBox.Size = new System.Drawing.Size(126, 21);
+ this.partyPokemon6ComboBox.TabIndex = 0;
+ this.partyPokemon6ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyPokemon6ComboBox_SelectedIndexChanged);
+ //
+ // partyAbility4ComboBox
+ //
+ this.partyAbility4ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyAbility4ComboBox.FormattingEnabled = true;
+ this.partyAbility4ComboBox.Location = new System.Drawing.Point(15, 151);
+ this.partyAbility4ComboBox.Name = "partyAbility4ComboBox";
+ this.partyAbility4ComboBox.Size = new System.Drawing.Size(105, 21);
+ this.partyAbility4ComboBox.TabIndex = 17;
+ //
+ // party2GroupBox
+ //
+ this.party2GroupBox.Controls.Add(this.partyForm2ComboBox);
+ this.party2GroupBox.Controls.Add(this.partyAbility2ComboBox);
+ this.party2GroupBox.Controls.Add(this.partyGender2ComboBox);
+ this.party2GroupBox.Controls.Add(this.partyPokemonItemPictureBox2);
+ this.party2GroupBox.Controls.Add(this.label48);
+ this.party2GroupBox.Controls.Add(this.label49);
+ this.party2GroupBox.Controls.Add(this.label50);
+ this.party2GroupBox.Controls.Add(this.poke2MovesGroupBox);
+ this.party2GroupBox.Controls.Add(this.partyIV2UpDown);
+ this.party2GroupBox.Controls.Add(this.partyLevel2UpDown);
+ this.party2GroupBox.Controls.Add(this.partyBall2UpDown);
+ this.party2GroupBox.Controls.Add(this.partyItem2ComboBox);
+ this.party2GroupBox.Controls.Add(this.partyPokemon2PictureBox);
+ this.party2GroupBox.Controls.Add(this.partyPokemon2ComboBox);
+ this.party2GroupBox.Enabled = false;
+ this.party2GroupBox.Location = new System.Drawing.Point(371, 37);
+ this.party2GroupBox.Name = "party2GroupBox";
+ this.party2GroupBox.Size = new System.Drawing.Size(343, 183);
+ this.party2GroupBox.TabIndex = 10;
+ this.party2GroupBox.TabStop = false;
+ this.party2GroupBox.Text = "Pokemon 2";
+ //
+ // poke2MovesGroupBox
+ //
+ this.poke2MovesGroupBox.Controls.Add(this.partyMove2_1ComboBox);
+ this.poke2MovesGroupBox.Controls.Add(this.partyMove2_2ComboBox);
+ this.poke2MovesGroupBox.Controls.Add(this.partyMove2_3ComboBox);
+ this.poke2MovesGroupBox.Controls.Add(this.partyMove2_4ComboBox);
+ this.poke2MovesGroupBox.Location = new System.Drawing.Point(110, 57);
+ this.poke2MovesGroupBox.Name = "poke2MovesGroupBox";
+ this.poke2MovesGroupBox.Size = new System.Drawing.Size(227, 85);
+ this.poke2MovesGroupBox.TabIndex = 6;
+ this.poke2MovesGroupBox.TabStop = false;
+ this.poke2MovesGroupBox.Text = "Moves";
+ //
+ // partyIV2UpDown
+ //
+ this.partyIV2UpDown.Location = new System.Drawing.Point(48, 92);
+ this.partyIV2UpDown.Maximum = new decimal(new int[] {
+ 255,
+ 0,
+ 0,
+ 0});
+ this.partyIV2UpDown.Name = "partyIV2UpDown";
+ this.partyIV2UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyIV2UpDown.TabIndex = 5;
+ //
+ // partyPokemon2PictureBox
+ //
+ this.partyPokemon2PictureBox.Location = new System.Drawing.Point(11, 23);
+ this.partyPokemon2PictureBox.Name = "partyPokemon2PictureBox";
+ this.partyPokemon2PictureBox.Size = new System.Drawing.Size(40, 30);
+ this.partyPokemon2PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.partyPokemon2PictureBox.TabIndex = 1;
+ this.partyPokemon2PictureBox.TabStop = false;
+ //
+ // partyPokemon2ComboBox
+ //
+ this.partyPokemon2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyPokemon2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyPokemon2ComboBox.FormattingEnabled = true;
+ this.partyPokemon2ComboBox.Location = new System.Drawing.Point(58, 28);
+ this.partyPokemon2ComboBox.Name = "partyPokemon2ComboBox";
+ this.partyPokemon2ComboBox.Size = new System.Drawing.Size(126, 21);
+ this.partyPokemon2ComboBox.TabIndex = 0;
+ this.partyPokemon2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyPokemon2ComboBox_SelectedIndexChanged);
+ //
+ // party4GroupBox
+ //
+ this.party4GroupBox.Controls.Add(this.partyForm4ComboBox);
+ this.party4GroupBox.Controls.Add(this.partyAbility4ComboBox);
+ this.party4GroupBox.Controls.Add(this.partyGender4ComboBox);
+ this.party4GroupBox.Controls.Add(this.partyPokemonItemPictureBox4);
+ this.party4GroupBox.Controls.Add(this.label54);
+ this.party4GroupBox.Controls.Add(this.label55);
+ this.party4GroupBox.Controls.Add(this.label56);
+ this.party4GroupBox.Controls.Add(this.poke4MovesGroupBox);
+ this.party4GroupBox.Controls.Add(this.partyIV4UpDown);
+ this.party4GroupBox.Controls.Add(this.partyLevel4UpDown);
+ this.party4GroupBox.Controls.Add(this.partyBall4UpDown);
+ this.party4GroupBox.Controls.Add(this.partyItem4ComboBox);
+ this.party4GroupBox.Controls.Add(this.partyPokemon4PictureBox);
+ this.party4GroupBox.Controls.Add(this.partyPokemon4ComboBox);
+ this.party4GroupBox.Enabled = false;
+ this.party4GroupBox.Location = new System.Drawing.Point(371, 223);
+ this.party4GroupBox.Name = "party4GroupBox";
+ this.party4GroupBox.Size = new System.Drawing.Size(343, 183);
+ this.party4GroupBox.TabIndex = 11;
+ this.party4GroupBox.TabStop = false;
+ this.party4GroupBox.Text = "Pokemon 4";
+ //
+ // partyGender4ComboBox
+ //
+ this.partyGender4ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyGender4ComboBox.FormattingEnabled = true;
+ this.partyGender4ComboBox.Location = new System.Drawing.Point(126, 151);
+ this.partyGender4ComboBox.Name = "partyGender4ComboBox";
+ this.partyGender4ComboBox.Size = new System.Drawing.Size(95, 21);
+ this.partyGender4ComboBox.TabIndex = 16;
+ //
+ // partyPokemonItemPictureBox4
+ //
+ this.partyPokemonItemPictureBox4.Image = global::DSPRE.Properties.Resources.IconItem;
+ this.partyPokemonItemPictureBox4.Location = new System.Drawing.Point(198, 26);
+ this.partyPokemonItemPictureBox4.Name = "partyPokemonItemPictureBox4";
+ this.partyPokemonItemPictureBox4.Size = new System.Drawing.Size(24, 25);
+ this.partyPokemonItemPictureBox4.TabIndex = 14;
+ this.partyPokemonItemPictureBox4.TabStop = false;
+ this.partyPokemonItemPictureBox4.Visible = false;
+ //
+ // label54
+ //
+ this.label54.AutoSize = true;
+ this.label54.Location = new System.Drawing.Point(12, 118);
+ this.label54.Name = "label54";
+ this.label54.Size = new System.Drawing.Size(28, 26);
+ this.label54.TabIndex = 9;
+ this.label54.Text = "Ball\r\nSeal";
+ //
+ // label55
+ //
+ this.label55.AutoSize = true;
+ this.label55.Location = new System.Drawing.Point(12, 94);
+ this.label55.Name = "label55";
+ this.label55.Size = new System.Drawing.Size(22, 13);
+ this.label55.TabIndex = 8;
+ this.label55.Text = "DV";
+ //
+ // label56
+ //
+ this.label56.AutoSize = true;
+ this.label56.Location = new System.Drawing.Point(12, 67);
+ this.label56.Name = "label56";
+ this.label56.Size = new System.Drawing.Size(22, 13);
+ this.label56.TabIndex = 7;
+ this.label56.Text = "Lv.";
+ //
+ // poke4MovesGroupBox
+ //
+ this.poke4MovesGroupBox.Controls.Add(this.partyMove4_1ComboBox);
+ this.poke4MovesGroupBox.Controls.Add(this.partyMove4_2ComboBox);
+ this.poke4MovesGroupBox.Controls.Add(this.partyMove4_3ComboBox);
+ this.poke4MovesGroupBox.Controls.Add(this.partyMove4_4ComboBox);
+ this.poke4MovesGroupBox.Location = new System.Drawing.Point(110, 57);
+ this.poke4MovesGroupBox.Name = "poke4MovesGroupBox";
+ this.poke4MovesGroupBox.Size = new System.Drawing.Size(227, 85);
+ this.poke4MovesGroupBox.TabIndex = 6;
+ this.poke4MovesGroupBox.TabStop = false;
+ this.poke4MovesGroupBox.Text = "Moves";
+ //
+ // partyMove4_1ComboBox
+ //
+ this.partyMove4_1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove4_1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove4_1ComboBox.Enabled = false;
+ this.partyMove4_1ComboBox.FormattingEnabled = true;
+ this.partyMove4_1ComboBox.Location = new System.Drawing.Point(10, 21);
+ this.partyMove4_1ComboBox.Name = "partyMove4_1ComboBox";
+ this.partyMove4_1ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove4_1ComboBox.TabIndex = 3;
+ this.partyMove4_1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove4_2ComboBox
+ //
+ this.partyMove4_2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove4_2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove4_2ComboBox.Enabled = false;
+ this.partyMove4_2ComboBox.FormattingEnabled = true;
+ this.partyMove4_2ComboBox.Location = new System.Drawing.Point(116, 21);
+ this.partyMove4_2ComboBox.Name = "partyMove4_2ComboBox";
+ this.partyMove4_2ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove4_2ComboBox.TabIndex = 6;
+ this.partyMove4_2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove4_3ComboBox
+ //
+ this.partyMove4_3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove4_3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove4_3ComboBox.Enabled = false;
+ this.partyMove4_3ComboBox.FormattingEnabled = true;
+ this.partyMove4_3ComboBox.Location = new System.Drawing.Point(10, 48);
+ this.partyMove4_3ComboBox.Name = "partyMove4_3ComboBox";
+ this.partyMove4_3ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove4_3ComboBox.TabIndex = 5;
+ this.partyMove4_3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove4_4ComboBox
+ //
+ this.partyMove4_4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove4_4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove4_4ComboBox.Enabled = false;
+ this.partyMove4_4ComboBox.FormattingEnabled = true;
+ this.partyMove4_4ComboBox.Location = new System.Drawing.Point(116, 48);
+ this.partyMove4_4ComboBox.Name = "partyMove4_4ComboBox";
+ this.partyMove4_4ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove4_4ComboBox.TabIndex = 7;
+ this.partyMove4_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyIV4UpDown
+ //
+ this.partyIV4UpDown.Location = new System.Drawing.Point(48, 92);
+ this.partyIV4UpDown.Maximum = new decimal(new int[] {
+ 255,
+ 0,
+ 0,
+ 0});
+ this.partyIV4UpDown.Name = "partyIV4UpDown";
+ this.partyIV4UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyIV4UpDown.TabIndex = 5;
+ //
+ // partyLevel4UpDown
+ //
+ this.partyLevel4UpDown.Location = new System.Drawing.Point(48, 63);
+ this.partyLevel4UpDown.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.partyLevel4UpDown.Name = "partyLevel4UpDown";
+ this.partyLevel4UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyLevel4UpDown.TabIndex = 4;
+ this.partyLevel4UpDown.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ //
+ // partyBall4UpDown
+ //
+ this.partyBall4UpDown.Location = new System.Drawing.Point(48, 121);
+ this.partyBall4UpDown.Maximum = new decimal(new int[] {
+ 65535,
+ 0,
+ 0,
+ 0});
+ this.partyBall4UpDown.Name = "partyBall4UpDown";
+ this.partyBall4UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyBall4UpDown.TabIndex = 3;
+ //
+ // partyItem4ComboBox
+ //
+ this.partyItem4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyItem4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyItem4ComboBox.Enabled = false;
+ this.partyItem4ComboBox.FormattingEnabled = true;
+ this.partyItem4ComboBox.Location = new System.Drawing.Point(228, 28);
+ this.partyItem4ComboBox.Name = "partyItem4ComboBox";
+ this.partyItem4ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyItem4ComboBox.TabIndex = 2;
+ this.partyItem4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyItem4ComboBox_SelectedIndexChanged);
+ //
+ // partyPokemon4PictureBox
+ //
+ this.partyPokemon4PictureBox.Location = new System.Drawing.Point(11, 23);
+ this.partyPokemon4PictureBox.Name = "partyPokemon4PictureBox";
+ this.partyPokemon4PictureBox.Size = new System.Drawing.Size(40, 30);
+ this.partyPokemon4PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.partyPokemon4PictureBox.TabIndex = 1;
+ this.partyPokemon4PictureBox.TabStop = false;
+ //
+ // partyPokemon4ComboBox
+ //
+ this.partyPokemon4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyPokemon4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyPokemon4ComboBox.FormattingEnabled = true;
+ this.partyPokemon4ComboBox.Location = new System.Drawing.Point(58, 28);
+ this.partyPokemon4ComboBox.Name = "partyPokemon4ComboBox";
+ this.partyPokemon4ComboBox.Size = new System.Drawing.Size(126, 21);
+ this.partyPokemon4ComboBox.TabIndex = 0;
+ this.partyPokemon4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyPokemon4ComboBox_SelectedIndexChanged);
+ //
+ // partyMove3_3ComboBox
+ //
+ this.partyMove3_3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove3_3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove3_3ComboBox.Enabled = false;
+ this.partyMove3_3ComboBox.FormattingEnabled = true;
+ this.partyMove3_3ComboBox.Location = new System.Drawing.Point(10, 48);
+ this.partyMove3_3ComboBox.Name = "partyMove3_3ComboBox";
+ this.partyMove3_3ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove3_3ComboBox.TabIndex = 5;
+ this.partyMove3_3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // TrainerAIGroupBox
+ //
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI1CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI2CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI3CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI4CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI5CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI6CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI7CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI8CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI9CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI10CheckBox);
+ this.TrainerAIGroupBox.Controls.Add(this.trainerAI11CheckBox);
+ this.TrainerAIGroupBox.Location = new System.Drawing.Point(9, 282);
+ this.TrainerAIGroupBox.Name = "TrainerAIGroupBox";
+ this.TrainerAIGroupBox.Size = new System.Drawing.Size(272, 116);
+ this.TrainerAIGroupBox.TabIndex = 27;
+ this.TrainerAIGroupBox.TabStop = false;
+ this.TrainerAIGroupBox.Text = "AI";
+ //
+ // trainerAI1CheckBox
+ //
+ this.trainerAI1CheckBox.AutoSize = true;
+ this.trainerAI1CheckBox.Location = new System.Drawing.Point(10, 21);
+ this.trainerAI1CheckBox.Name = "trainerAI1CheckBox";
+ this.trainerAI1CheckBox.Size = new System.Drawing.Size(52, 17);
+ this.trainerAI1CheckBox.TabIndex = 0;
+ this.trainerAI1CheckBox.Text = "Basic";
+ this.trainerAI1CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI2CheckBox
+ //
+ this.trainerAI2CheckBox.AutoSize = true;
+ this.trainerAI2CheckBox.Location = new System.Drawing.Point(80, 21);
+ this.trainerAI2CheckBox.Name = "trainerAI2CheckBox";
+ this.trainerAI2CheckBox.Size = new System.Drawing.Size(102, 17);
+ this.trainerAI2CheckBox.TabIndex = 1;
+ this.trainerAI2CheckBox.Text = "Evaluate Attack";
+ this.trainerAI2CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI3CheckBox
+ //
+ this.trainerAI3CheckBox.AutoSize = true;
+ this.trainerAI3CheckBox.Location = new System.Drawing.Point(10, 44);
+ this.trainerAI3CheckBox.Name = "trainerAI3CheckBox";
+ this.trainerAI3CheckBox.Size = new System.Drawing.Size(56, 17);
+ this.trainerAI3CheckBox.TabIndex = 2;
+ this.trainerAI3CheckBox.Text = "Expert";
+ this.trainerAI3CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI4CheckBox
+ //
+ this.trainerAI4CheckBox.AutoSize = true;
+ this.trainerAI4CheckBox.Location = new System.Drawing.Point(10, 90);
+ this.trainerAI4CheckBox.Name = "trainerAI4CheckBox";
+ this.trainerAI4CheckBox.Size = new System.Drawing.Size(56, 17);
+ this.trainerAI4CheckBox.TabIndex = 3;
+ this.trainerAI4CheckBox.Text = "Status";
+ this.trainerAI4CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI5CheckBox
+ //
+ this.trainerAI5CheckBox.AutoSize = true;
+ this.trainerAI5CheckBox.Location = new System.Drawing.Point(10, 67);
+ this.trainerAI5CheckBox.Name = "trainerAI5CheckBox";
+ this.trainerAI5CheckBox.Size = new System.Drawing.Size(47, 17);
+ this.trainerAI5CheckBox.TabIndex = 4;
+ this.trainerAI5CheckBox.Text = "Risk";
+ this.trainerAI5CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI6CheckBox
+ //
+ this.trainerAI6CheckBox.AutoSize = true;
+ this.trainerAI6CheckBox.Location = new System.Drawing.Point(80, 44);
+ this.trainerAI6CheckBox.Name = "trainerAI6CheckBox";
+ this.trainerAI6CheckBox.Size = new System.Drawing.Size(100, 17);
+ this.trainerAI6CheckBox.TabIndex = 5;
+ this.trainerAI6CheckBox.Text = "Damage Priority";
+ this.trainerAI6CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI7CheckBox
+ //
+ this.trainerAI7CheckBox.AutoSize = true;
+ this.trainerAI7CheckBox.Location = new System.Drawing.Point(80, 67);
+ this.trainerAI7CheckBox.Name = "trainerAI7CheckBox";
+ this.trainerAI7CheckBox.Size = new System.Drawing.Size(80, 17);
+ this.trainerAI7CheckBox.TabIndex = 6;
+ this.trainerAI7CheckBox.Text = "Baton Pass";
+ this.trainerAI7CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI8CheckBox
+ //
+ this.trainerAI8CheckBox.AutoSize = true;
+ this.trainerAI8CheckBox.Location = new System.Drawing.Point(80, 90);
+ this.trainerAI8CheckBox.Name = "trainerAI8CheckBox";
+ this.trainerAI8CheckBox.Size = new System.Drawing.Size(87, 17);
+ this.trainerAI8CheckBox.TabIndex = 7;
+ this.trainerAI8CheckBox.Text = "Tag Strategy";
+ this.trainerAI8CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI9CheckBox
+ //
+ this.trainerAI9CheckBox.AutoSize = true;
+ this.trainerAI9CheckBox.Location = new System.Drawing.Point(191, 21);
+ this.trainerAI9CheckBox.Name = "trainerAI9CheckBox";
+ this.trainerAI9CheckBox.Size = new System.Drawing.Size(75, 17);
+ this.trainerAI9CheckBox.TabIndex = 8;
+ this.trainerAI9CheckBox.Text = "Check HP";
+ this.trainerAI9CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI10CheckBox
+ //
+ this.trainerAI10CheckBox.AutoSize = true;
+ this.trainerAI10CheckBox.Location = new System.Drawing.Point(191, 44);
+ this.trainerAI10CheckBox.Name = "trainerAI10CheckBox";
+ this.trainerAI10CheckBox.Size = new System.Drawing.Size(67, 17);
+ this.trainerAI10CheckBox.TabIndex = 9;
+ this.trainerAI10CheckBox.Text = "Weather";
+ this.trainerAI10CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerAI11CheckBox
+ //
+ this.trainerAI11CheckBox.AutoSize = true;
+ this.trainerAI11CheckBox.Location = new System.Drawing.Point(191, 67);
+ this.trainerAI11CheckBox.Name = "trainerAI11CheckBox";
+ this.trainerAI11CheckBox.Size = new System.Drawing.Size(44, 17);
+ this.trainerAI11CheckBox.TabIndex = 10;
+ this.trainerAI11CheckBox.Text = "???";
+ this.trainerAI11CheckBox.UseVisualStyleBackColor = true;
+ //
+ // trainerItemsGroupBox
+ //
+ this.trainerItemsGroupBox.Controls.Add(this.trainerItem1ComboBox);
+ this.trainerItemsGroupBox.Controls.Add(this.trainerItem2ComboBox);
+ this.trainerItemsGroupBox.Controls.Add(this.trainerItem3ComboBox);
+ this.trainerItemsGroupBox.Controls.Add(this.trainerItem4ComboBox);
+ this.trainerItemsGroupBox.Location = new System.Drawing.Point(211, 146);
+ this.trainerItemsGroupBox.Name = "trainerItemsGroupBox";
+ this.trainerItemsGroupBox.Size = new System.Drawing.Size(191, 130);
+ this.trainerItemsGroupBox.TabIndex = 26;
+ this.trainerItemsGroupBox.TabStop = false;
+ this.trainerItemsGroupBox.Text = "Trainer Items";
+ //
+ // trainerItem1ComboBox
+ //
+ this.trainerItem1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.trainerItem1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.trainerItem1ComboBox.FormattingEnabled = true;
+ this.trainerItem1ComboBox.Location = new System.Drawing.Point(9, 20);
+ this.trainerItem1ComboBox.Name = "trainerItem1ComboBox";
+ this.trainerItem1ComboBox.Size = new System.Drawing.Size(171, 21);
+ this.trainerItem1ComboBox.TabIndex = 0;
+ //
+ // trainerItem2ComboBox
+ //
+ this.trainerItem2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.trainerItem2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.trainerItem2ComboBox.FormattingEnabled = true;
+ this.trainerItem2ComboBox.Location = new System.Drawing.Point(9, 47);
+ this.trainerItem2ComboBox.Name = "trainerItem2ComboBox";
+ this.trainerItem2ComboBox.Size = new System.Drawing.Size(171, 21);
+ this.trainerItem2ComboBox.TabIndex = 1;
+ //
+ // trainerItem3ComboBox
+ //
+ this.trainerItem3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.trainerItem3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.trainerItem3ComboBox.FormattingEnabled = true;
+ this.trainerItem3ComboBox.Location = new System.Drawing.Point(9, 74);
+ this.trainerItem3ComboBox.Name = "trainerItem3ComboBox";
+ this.trainerItem3ComboBox.Size = new System.Drawing.Size(171, 21);
+ this.trainerItem3ComboBox.TabIndex = 2;
+ //
+ // trainerItem4ComboBox
+ //
+ this.trainerItem4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.trainerItem4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.trainerItem4ComboBox.FormattingEnabled = true;
+ this.trainerItem4ComboBox.Location = new System.Drawing.Point(9, 101);
+ this.trainerItem4ComboBox.Name = "trainerItem4ComboBox";
+ this.trainerItem4ComboBox.Size = new System.Drawing.Size(171, 21);
+ this.trainerItem4ComboBox.TabIndex = 3;
+ //
+ // label63
+ //
+ this.label63.AutoSize = true;
+ this.label63.Location = new System.Drawing.Point(339, 83);
+ this.label63.Name = "label63";
+ this.label63.Size = new System.Drawing.Size(57, 13);
+ this.label63.TabIndex = 34;
+ this.label63.Text = "Party Slots";
+ //
+ // eyeContactMusicAltLabel
+ //
+ this.eyeContactMusicAltLabel.AutoSize = true;
+ this.eyeContactMusicAltLabel.Location = new System.Drawing.Point(286, 69);
+ this.eyeContactMusicAltLabel.Name = "eyeContactMusicAltLabel";
+ this.eyeContactMusicAltLabel.Size = new System.Drawing.Size(117, 13);
+ this.eyeContactMusicAltLabel.TabIndex = 36;
+ this.eyeContactMusicAltLabel.Text = "Eye Contact Music [Alt]";
+ //
+ // encounterSSEQAltUpDown
+ //
+ this.encounterSSEQAltUpDown.Enabled = false;
+ this.encounterSSEQAltUpDown.Location = new System.Drawing.Point(290, 85);
+ this.encounterSSEQAltUpDown.Maximum = new decimal(new int[] {
+ 65535,
+ 0,
+ 0,
+ 0});
+ this.encounterSSEQAltUpDown.Name = "encounterSSEQAltUpDown";
+ this.encounterSSEQAltUpDown.Size = new System.Drawing.Size(81, 20);
+ this.encounterSSEQAltUpDown.TabIndex = 35;
+ //
+ // eyeContactMusicLabel
+ //
+ this.eyeContactMusicLabel.AutoSize = true;
+ this.eyeContactMusicLabel.Location = new System.Drawing.Point(143, 69);
+ this.eyeContactMusicLabel.Name = "eyeContactMusicLabel";
+ this.eyeContactMusicLabel.Size = new System.Drawing.Size(128, 13);
+ this.eyeContactMusicLabel.TabIndex = 34;
+ this.eyeContactMusicLabel.Text = "Eye Contact Music [Main]";
+ //
+ // tableLayoutPanel4
+ //
+ this.tableLayoutPanel4.ColumnCount = 1;
+ this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 47.0167F));
+ this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel4.Controls.Add(this.exportTrainerButton, 0, 0);
+ this.tableLayoutPanel4.Controls.Add(this.importTrainerButton, 0, 1);
+ this.tableLayoutPanel4.Location = new System.Drawing.Point(224, 20);
+ this.tableLayoutPanel4.Name = "tableLayoutPanel4";
+ this.tableLayoutPanel4.RowCount = 2;
+ this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel4.Size = new System.Drawing.Size(108, 62);
+ this.tableLayoutPanel4.TabIndex = 56;
+ //
+ // exportTrainerButton
+ //
+ this.exportTrainerButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.exportTrainerButton.Image = global::DSPRE.Properties.Resources.exportArrow;
+ this.exportTrainerButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.exportTrainerButton.Location = new System.Drawing.Point(3, 3);
+ this.exportTrainerButton.Name = "exportTrainerButton";
+ this.exportTrainerButton.Size = new System.Drawing.Size(102, 25);
+ this.exportTrainerButton.TabIndex = 42;
+ this.exportTrainerButton.Text = "Export Full";
+ this.exportTrainerButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.exportTrainerButton.UseVisualStyleBackColor = true;
+ this.exportTrainerButton.Click += new System.EventHandler(this.exportTrainerButton_Click);
+ //
+ // importTrainerButton
+ //
+ this.importTrainerButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.importTrainerButton.Image = global::DSPRE.Properties.Resources.importArrow;
+ this.importTrainerButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.importTrainerButton.Location = new System.Drawing.Point(3, 34);
+ this.importTrainerButton.Name = "importTrainerButton";
+ this.importTrainerButton.Size = new System.Drawing.Size(102, 25);
+ this.importTrainerButton.TabIndex = 43;
+ this.importTrainerButton.Text = "Replace Full";
+ this.importTrainerButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.importTrainerButton.UseVisualStyleBackColor = true;
+ this.importTrainerButton.Click += new System.EventHandler(this.importTrainerButton_Click);
+ //
+ // groupBox28
+ //
+ this.groupBox28.Controls.Add(this.tableLayoutPanel6);
+ this.groupBox28.Controls.Add(this.DVExplainButton);
+ this.groupBox28.Controls.Add(this.label74);
+ this.groupBox28.Controls.Add(this.party6GroupBox);
+ this.groupBox28.Controls.Add(this.party5GroupBox);
+ this.groupBox28.Controls.Add(this.party4GroupBox);
+ this.groupBox28.Controls.Add(this.party3GroupBox);
+ this.groupBox28.Controls.Add(this.party2GroupBox);
+ this.groupBox28.Controls.Add(this.party1GroupBox);
+ this.groupBox28.Location = new System.Drawing.Point(444, 8);
+ this.groupBox28.Name = "groupBox28";
+ this.groupBox28.Size = new System.Drawing.Size(731, 609);
+ this.groupBox28.TabIndex = 53;
+ this.groupBox28.TabStop = false;
+ this.groupBox28.Text = "Party";
+ //
+ // tableLayoutPanel6
+ //
+ this.tableLayoutPanel6.ColumnCount = 2;
+ this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.00001F));
+ this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel6.Controls.Add(this.importReplacePartyButton, 1, 0);
+ this.tableLayoutPanel6.Controls.Add(this.exportPartyButton, 0, 0);
+ this.tableLayoutPanel6.Location = new System.Drawing.Point(471, 10);
+ this.tableLayoutPanel6.Name = "tableLayoutPanel6";
+ this.tableLayoutPanel6.RowCount = 1;
+ this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel6.Size = new System.Drawing.Size(237, 29);
+ this.tableLayoutPanel6.TabIndex = 48;
+ //
+ // importReplacePartyButton
+ //
+ this.importReplacePartyButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.importReplacePartyButton.Image = global::DSPRE.Properties.Resources.importArrow;
+ this.importReplacePartyButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.importReplacePartyButton.Location = new System.Drawing.Point(121, 3);
+ this.importReplacePartyButton.Name = "importReplacePartyButton";
+ this.importReplacePartyButton.Size = new System.Drawing.Size(113, 23);
+ this.importReplacePartyButton.TabIndex = 41;
+ this.importReplacePartyButton.Text = "Replace Party";
+ this.importReplacePartyButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.importReplacePartyButton.UseVisualStyleBackColor = true;
+ this.importReplacePartyButton.Click += new System.EventHandler(this.importReplacePartyButton_Click);
+ //
+ // exportPartyButton
+ //
+ this.exportPartyButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.exportPartyButton.Image = global::DSPRE.Properties.Resources.exportArrow;
+ this.exportPartyButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.exportPartyButton.Location = new System.Drawing.Point(3, 3);
+ this.exportPartyButton.Name = "exportPartyButton";
+ this.exportPartyButton.Size = new System.Drawing.Size(112, 23);
+ this.exportPartyButton.TabIndex = 38;
+ this.exportPartyButton.Text = "Export Party";
+ this.exportPartyButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.exportPartyButton.UseVisualStyleBackColor = true;
+ this.exportPartyButton.Click += new System.EventHandler(this.exportPartyButton_Click);
+ //
+ // label74
+ //
+ this.label74.AutoSize = true;
+ this.label74.Location = new System.Drawing.Point(247, 16);
+ this.label74.Name = "label74";
+ this.label74.Size = new System.Drawing.Size(0, 13);
+ this.label74.TabIndex = 46;
+ //
+ // party6GroupBox
+ //
+ this.party6GroupBox.Controls.Add(this.partyForm6ComboBox);
+ this.party6GroupBox.Controls.Add(this.partyAbility6ComboBox);
+ this.party6GroupBox.Controls.Add(this.partyGender6ComboBox);
+ this.party6GroupBox.Controls.Add(this.partyPokemonItemPictureBox6);
+ this.party6GroupBox.Controls.Add(this.label60);
+ this.party6GroupBox.Controls.Add(this.label61);
+ this.party6GroupBox.Controls.Add(this.label62);
+ this.party6GroupBox.Controls.Add(this.poke6MovesGroupBox);
+ this.party6GroupBox.Controls.Add(this.partyIV6UpDown);
+ this.party6GroupBox.Controls.Add(this.partyLevel6UpDown);
+ this.party6GroupBox.Controls.Add(this.partyBall6UpDown);
+ this.party6GroupBox.Controls.Add(this.partyItem6ComboBox);
+ this.party6GroupBox.Controls.Add(this.partyPokemon6PictureBox);
+ this.party6GroupBox.Controls.Add(this.partyPokemon6ComboBox);
+ this.party6GroupBox.Enabled = false;
+ this.party6GroupBox.Location = new System.Drawing.Point(371, 408);
+ this.party6GroupBox.Name = "party6GroupBox";
+ this.party6GroupBox.Size = new System.Drawing.Size(343, 183);
+ this.party6GroupBox.TabIndex = 13;
+ this.party6GroupBox.TabStop = false;
+ this.party6GroupBox.Text = "Pokemon 6";
+ //
+ // partyGender6ComboBox
+ //
+ this.partyGender6ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyGender6ComboBox.FormattingEnabled = true;
+ this.partyGender6ComboBox.Location = new System.Drawing.Point(126, 151);
+ this.partyGender6ComboBox.Name = "partyGender6ComboBox";
+ this.partyGender6ComboBox.Size = new System.Drawing.Size(95, 21);
+ this.partyGender6ComboBox.TabIndex = 15;
+ //
+ // partyPokemonItemPictureBox6
+ //
+ this.partyPokemonItemPictureBox6.Image = global::DSPRE.Properties.Resources.IconItem;
+ this.partyPokemonItemPictureBox6.Location = new System.Drawing.Point(198, 26);
+ this.partyPokemonItemPictureBox6.Name = "partyPokemonItemPictureBox6";
+ this.partyPokemonItemPictureBox6.Size = new System.Drawing.Size(24, 25);
+ this.partyPokemonItemPictureBox6.TabIndex = 13;
+ this.partyPokemonItemPictureBox6.TabStop = false;
+ this.partyPokemonItemPictureBox6.Visible = false;
+ //
+ // party5GroupBox
+ //
+ this.party5GroupBox.Controls.Add(this.partyForm5ComboBox);
+ this.party5GroupBox.Controls.Add(this.partyAbility5ComboBox);
+ this.party5GroupBox.Controls.Add(this.partyGender5ComboBox);
+ this.party5GroupBox.Controls.Add(this.partyPokemonItemPictureBox5);
+ this.party5GroupBox.Controls.Add(this.label57);
+ this.party5GroupBox.Controls.Add(this.label58);
+ this.party5GroupBox.Controls.Add(this.label59);
+ this.party5GroupBox.Controls.Add(this.poke5MovesGroupBox);
+ this.party5GroupBox.Controls.Add(this.partyIV5UpDown);
+ this.party5GroupBox.Controls.Add(this.partyLevel5UpDown);
+ this.party5GroupBox.Controls.Add(this.partyBall5UpDown);
+ this.party5GroupBox.Controls.Add(this.partyItem5ComboBox);
+ this.party5GroupBox.Controls.Add(this.partyPokemon5PictureBox);
+ this.party5GroupBox.Controls.Add(this.partyPokemon5ComboBox);
+ this.party5GroupBox.Enabled = false;
+ this.party5GroupBox.Location = new System.Drawing.Point(16, 408);
+ this.party5GroupBox.Name = "party5GroupBox";
+ this.party5GroupBox.Size = new System.Drawing.Size(343, 183);
+ this.party5GroupBox.TabIndex = 12;
+ this.party5GroupBox.TabStop = false;
+ this.party5GroupBox.Text = "Pokemon 5";
+ //
+ // partyForm5ComboBox
+ //
+ this.partyForm5ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyForm5ComboBox.FormattingEnabled = true;
+ this.partyForm5ComboBox.Items.AddRange(new object[] {
+ "Defense form"});
+ this.partyForm5ComboBox.Location = new System.Drawing.Point(228, 151);
+ this.partyForm5ComboBox.Name = "partyForm5ComboBox";
+ this.partyForm5ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyForm5ComboBox.TabIndex = 19;
+ //
+ // partyAbility5ComboBox
+ //
+ this.partyAbility5ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyAbility5ComboBox.FormattingEnabled = true;
+ this.partyAbility5ComboBox.Location = new System.Drawing.Point(15, 151);
+ this.partyAbility5ComboBox.Name = "partyAbility5ComboBox";
+ this.partyAbility5ComboBox.Size = new System.Drawing.Size(105, 21);
+ this.partyAbility5ComboBox.TabIndex = 18;
+ //
+ // partyGender5ComboBox
+ //
+ this.partyGender5ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyGender5ComboBox.FormattingEnabled = true;
+ this.partyGender5ComboBox.Location = new System.Drawing.Point(126, 151);
+ this.partyGender5ComboBox.Name = "partyGender5ComboBox";
+ this.partyGender5ComboBox.Size = new System.Drawing.Size(95, 21);
+ this.partyGender5ComboBox.TabIndex = 14;
+ //
+ // partyPokemonItemPictureBox5
+ //
+ this.partyPokemonItemPictureBox5.Image = global::DSPRE.Properties.Resources.IconItem;
+ this.partyPokemonItemPictureBox5.Location = new System.Drawing.Point(198, 26);
+ this.partyPokemonItemPictureBox5.Name = "partyPokemonItemPictureBox5";
+ this.partyPokemonItemPictureBox5.Size = new System.Drawing.Size(24, 25);
+ this.partyPokemonItemPictureBox5.TabIndex = 12;
+ this.partyPokemonItemPictureBox5.TabStop = false;
+ this.partyPokemonItemPictureBox5.Visible = false;
+ //
+ // label57
+ //
+ this.label57.AutoSize = true;
+ this.label57.Location = new System.Drawing.Point(12, 118);
+ this.label57.Name = "label57";
+ this.label57.Size = new System.Drawing.Size(28, 26);
+ this.label57.TabIndex = 9;
+ this.label57.Text = "Ball\r\nSeal";
+ //
+ // label58
+ //
+ this.label58.AutoSize = true;
+ this.label58.Location = new System.Drawing.Point(12, 94);
+ this.label58.Name = "label58";
+ this.label58.Size = new System.Drawing.Size(22, 13);
+ this.label58.TabIndex = 8;
+ this.label58.Text = "DV";
+ //
+ // label59
+ //
+ this.label59.AutoSize = true;
+ this.label59.Location = new System.Drawing.Point(12, 67);
+ this.label59.Name = "label59";
+ this.label59.Size = new System.Drawing.Size(22, 13);
+ this.label59.TabIndex = 7;
+ this.label59.Text = "Lv.";
+ //
+ // poke5MovesGroupBox
+ //
+ this.poke5MovesGroupBox.Controls.Add(this.partyMove5_1ComboBox);
+ this.poke5MovesGroupBox.Controls.Add(this.partyMove5_2ComboBox);
+ this.poke5MovesGroupBox.Controls.Add(this.partyMove5_3ComboBox);
+ this.poke5MovesGroupBox.Controls.Add(this.partyMove5_4ComboBox);
+ this.poke5MovesGroupBox.Location = new System.Drawing.Point(110, 57);
+ this.poke5MovesGroupBox.Name = "poke5MovesGroupBox";
+ this.poke5MovesGroupBox.Size = new System.Drawing.Size(227, 85);
+ this.poke5MovesGroupBox.TabIndex = 6;
+ this.poke5MovesGroupBox.TabStop = false;
+ this.poke5MovesGroupBox.Text = "Moves";
+ //
+ // partyMove5_1ComboBox
+ //
+ this.partyMove5_1ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove5_1ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove5_1ComboBox.Enabled = false;
+ this.partyMove5_1ComboBox.FormattingEnabled = true;
+ this.partyMove5_1ComboBox.Location = new System.Drawing.Point(10, 21);
+ this.partyMove5_1ComboBox.Name = "partyMove5_1ComboBox";
+ this.partyMove5_1ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove5_1ComboBox.TabIndex = 3;
+ this.partyMove5_1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove5_2ComboBox
+ //
+ this.partyMove5_2ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove5_2ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove5_2ComboBox.Enabled = false;
+ this.partyMove5_2ComboBox.FormattingEnabled = true;
+ this.partyMove5_2ComboBox.Location = new System.Drawing.Point(116, 21);
+ this.partyMove5_2ComboBox.Name = "partyMove5_2ComboBox";
+ this.partyMove5_2ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove5_2ComboBox.TabIndex = 6;
+ this.partyMove5_2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove5_3ComboBox
+ //
+ this.partyMove5_3ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove5_3ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove5_3ComboBox.Enabled = false;
+ this.partyMove5_3ComboBox.FormattingEnabled = true;
+ this.partyMove5_3ComboBox.Location = new System.Drawing.Point(10, 48);
+ this.partyMove5_3ComboBox.Name = "partyMove5_3ComboBox";
+ this.partyMove5_3ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove5_3ComboBox.TabIndex = 5;
+ this.partyMove5_3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyMove5_4ComboBox
+ //
+ this.partyMove5_4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove5_4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove5_4ComboBox.Enabled = false;
+ this.partyMove5_4ComboBox.FormattingEnabled = true;
+ this.partyMove5_4ComboBox.Location = new System.Drawing.Point(116, 48);
+ this.partyMove5_4ComboBox.Name = "partyMove5_4ComboBox";
+ this.partyMove5_4ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove5_4ComboBox.TabIndex = 7;
+ this.partyMove5_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyIV5UpDown
+ //
+ this.partyIV5UpDown.Location = new System.Drawing.Point(48, 92);
+ this.partyIV5UpDown.Maximum = new decimal(new int[] {
+ 255,
+ 0,
+ 0,
+ 0});
+ this.partyIV5UpDown.Name = "partyIV5UpDown";
+ this.partyIV5UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyIV5UpDown.TabIndex = 5;
+ //
+ // partyLevel5UpDown
+ //
+ this.partyLevel5UpDown.Location = new System.Drawing.Point(48, 63);
+ this.partyLevel5UpDown.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.partyLevel5UpDown.Name = "partyLevel5UpDown";
+ this.partyLevel5UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyLevel5UpDown.TabIndex = 4;
+ this.partyLevel5UpDown.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ //
+ // partyBall5UpDown
+ //
+ this.partyBall5UpDown.Location = new System.Drawing.Point(48, 121);
+ this.partyBall5UpDown.Maximum = new decimal(new int[] {
+ 65535,
+ 0,
+ 0,
+ 0});
+ this.partyBall5UpDown.Name = "partyBall5UpDown";
+ this.partyBall5UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyBall5UpDown.TabIndex = 3;
+ //
+ // partyItem5ComboBox
+ //
+ this.partyItem5ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyItem5ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyItem5ComboBox.Enabled = false;
+ this.partyItem5ComboBox.FormattingEnabled = true;
+ this.partyItem5ComboBox.Location = new System.Drawing.Point(228, 28);
+ this.partyItem5ComboBox.Name = "partyItem5ComboBox";
+ this.partyItem5ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyItem5ComboBox.TabIndex = 2;
+ this.partyItem5ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyItem5ComboBox_SelectedIndexChanged);
+ //
+ // partyPokemon5PictureBox
+ //
+ this.partyPokemon5PictureBox.Location = new System.Drawing.Point(11, 23);
+ this.partyPokemon5PictureBox.Name = "partyPokemon5PictureBox";
+ this.partyPokemon5PictureBox.Size = new System.Drawing.Size(40, 30);
+ this.partyPokemon5PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.partyPokemon5PictureBox.TabIndex = 1;
+ this.partyPokemon5PictureBox.TabStop = false;
+ //
+ // partyPokemon5ComboBox
+ //
+ this.partyPokemon5ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyPokemon5ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyPokemon5ComboBox.FormattingEnabled = true;
+ this.partyPokemon5ComboBox.Location = new System.Drawing.Point(58, 28);
+ this.partyPokemon5ComboBox.Name = "partyPokemon5ComboBox";
+ this.partyPokemon5ComboBox.Size = new System.Drawing.Size(126, 21);
+ this.partyPokemon5ComboBox.TabIndex = 0;
+ this.partyPokemon5ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyPokemon5ComboBox_SelectedIndexChanged);
+ //
+ // party3GroupBox
+ //
+ this.party3GroupBox.Controls.Add(this.partyForm3ComboBox);
+ this.party3GroupBox.Controls.Add(this.partyAbility3ComboBox);
+ this.party3GroupBox.Controls.Add(this.partyGender3ComboBox);
+ this.party3GroupBox.Controls.Add(this.partyPokemonItemPictureBox3);
+ this.party3GroupBox.Controls.Add(this.label51);
+ this.party3GroupBox.Controls.Add(this.label52);
+ this.party3GroupBox.Controls.Add(this.label53);
+ this.party3GroupBox.Controls.Add(this.poke3MovesGroupBox);
+ this.party3GroupBox.Controls.Add(this.partyIV3UpDown);
+ this.party3GroupBox.Controls.Add(this.partyLevel3UpDown);
+ this.party3GroupBox.Controls.Add(this.partyBall3UpDown);
+ this.party3GroupBox.Controls.Add(this.partyItem3ComboBox);
+ this.party3GroupBox.Controls.Add(this.partyPokemon3PictureBox);
+ this.party3GroupBox.Controls.Add(this.partyPokemon3ComboBox);
+ this.party3GroupBox.Enabled = false;
+ this.party3GroupBox.Location = new System.Drawing.Point(16, 223);
+ this.party3GroupBox.Name = "party3GroupBox";
+ this.party3GroupBox.Size = new System.Drawing.Size(343, 183);
+ this.party3GroupBox.TabIndex = 10;
+ this.party3GroupBox.TabStop = false;
+ this.party3GroupBox.Text = "Pokemon 3";
+ //
+ // partyForm3ComboBox
+ //
+ this.partyForm3ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyForm3ComboBox.FormattingEnabled = true;
+ this.partyForm3ComboBox.Items.AddRange(new object[] {
+ "Defense form"});
+ this.partyForm3ComboBox.Location = new System.Drawing.Point(228, 151);
+ this.partyForm3ComboBox.Name = "partyForm3ComboBox";
+ this.partyForm3ComboBox.Size = new System.Drawing.Size(103, 21);
+ this.partyForm3ComboBox.TabIndex = 15;
+ //
+ // partyAbility3ComboBox
+ //
+ this.partyAbility3ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyAbility3ComboBox.FormattingEnabled = true;
+ this.partyAbility3ComboBox.Location = new System.Drawing.Point(15, 151);
+ this.partyAbility3ComboBox.Name = "partyAbility3ComboBox";
+ this.partyAbility3ComboBox.Size = new System.Drawing.Size(105, 21);
+ this.partyAbility3ComboBox.TabIndex = 14;
+ //
+ // partyGender3ComboBox
+ //
+ this.partyGender3ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+ this.partyGender3ComboBox.FormattingEnabled = true;
+ this.partyGender3ComboBox.Location = new System.Drawing.Point(126, 151);
+ this.partyGender3ComboBox.Name = "partyGender3ComboBox";
+ this.partyGender3ComboBox.Size = new System.Drawing.Size(95, 21);
+ this.partyGender3ComboBox.TabIndex = 13;
+ //
+ // label51
+ //
+ this.label51.AutoSize = true;
+ this.label51.Location = new System.Drawing.Point(12, 118);
+ this.label51.Name = "label51";
+ this.label51.Size = new System.Drawing.Size(28, 26);
+ this.label51.TabIndex = 9;
+ this.label51.Text = "Ball\r\nSeal";
+ //
+ // label52
+ //
+ this.label52.AutoSize = true;
+ this.label52.Location = new System.Drawing.Point(12, 94);
+ this.label52.Name = "label52";
+ this.label52.Size = new System.Drawing.Size(22, 13);
+ this.label52.TabIndex = 8;
+ this.label52.Text = "DV";
+ //
+ // label53
+ //
+ this.label53.AutoSize = true;
+ this.label53.Location = new System.Drawing.Point(12, 67);
+ this.label53.Name = "label53";
+ this.label53.Size = new System.Drawing.Size(22, 13);
+ this.label53.TabIndex = 7;
+ this.label53.Text = "Lv.";
+ //
+ // poke3MovesGroupBox
+ //
+ this.poke3MovesGroupBox.Controls.Add(this.partyMove3_1ComboBox);
+ this.poke3MovesGroupBox.Controls.Add(this.partyMove3_2ComboBox);
+ this.poke3MovesGroupBox.Controls.Add(this.partyMove3_3ComboBox);
+ this.poke3MovesGroupBox.Controls.Add(this.partyMove3_4ComboBox);
+ this.poke3MovesGroupBox.Location = new System.Drawing.Point(110, 57);
+ this.poke3MovesGroupBox.Name = "poke3MovesGroupBox";
+ this.poke3MovesGroupBox.Size = new System.Drawing.Size(227, 85);
+ this.poke3MovesGroupBox.TabIndex = 6;
+ this.poke3MovesGroupBox.TabStop = false;
+ this.poke3MovesGroupBox.Text = "Moves";
+ //
+ // partyMove3_4ComboBox
+ //
+ this.partyMove3_4ComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.partyMove3_4ComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.partyMove3_4ComboBox.Enabled = false;
+ this.partyMove3_4ComboBox.FormattingEnabled = true;
+ this.partyMove3_4ComboBox.Location = new System.Drawing.Point(116, 48);
+ this.partyMove3_4ComboBox.Name = "partyMove3_4ComboBox";
+ this.partyMove3_4ComboBox.Size = new System.Drawing.Size(100, 21);
+ this.partyMove3_4ComboBox.TabIndex = 7;
+ this.partyMove3_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // partyIV3UpDown
+ //
+ this.partyIV3UpDown.Location = new System.Drawing.Point(48, 92);
+ this.partyIV3UpDown.Maximum = new decimal(new int[] {
+ 255,
+ 0,
+ 0,
+ 0});
+ this.partyIV3UpDown.Name = "partyIV3UpDown";
+ this.partyIV3UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyIV3UpDown.TabIndex = 5;
+ //
+ // partyLevel3UpDown
+ //
+ this.partyLevel3UpDown.Location = new System.Drawing.Point(48, 63);
+ this.partyLevel3UpDown.Minimum = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ this.partyLevel3UpDown.Name = "partyLevel3UpDown";
+ this.partyLevel3UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyLevel3UpDown.TabIndex = 4;
+ this.partyLevel3UpDown.Value = new decimal(new int[] {
+ 1,
+ 0,
+ 0,
+ 0});
+ //
+ // partyBall3UpDown
+ //
+ this.partyBall3UpDown.Location = new System.Drawing.Point(48, 121);
+ this.partyBall3UpDown.Maximum = new decimal(new int[] {
+ 65535,
+ 0,
+ 0,
+ 0});
+ this.partyBall3UpDown.Name = "partyBall3UpDown";
+ this.partyBall3UpDown.Size = new System.Drawing.Size(49, 20);
+ this.partyBall3UpDown.TabIndex = 3;
+ //
+ // groupBox27
+ //
+ this.groupBox27.Controls.Add(this.eyeContactMusicAltLabel);
+ this.groupBox27.Controls.Add(this.encounterSSEQAltUpDown);
+ this.groupBox27.Controls.Add(this.eyeContactMusicLabel);
+ this.groupBox27.Controls.Add(this.encounterSSEQMainUpDown);
+ this.groupBox27.Controls.Add(this.trainerClassFrameMaxLabel);
+ this.groupBox27.Controls.Add(this.label40);
+ this.groupBox27.Controls.Add(this.trClassFramePreviewUpDown);
+ this.groupBox27.Controls.Add(this.saveTrainerClassButton);
+ this.groupBox27.Controls.Add(this.trainerClassNameTextbox);
+ this.groupBox27.Controls.Add(this.label17);
+ this.groupBox27.Controls.Add(this.trainerClassPicBox);
+ this.groupBox27.Location = new System.Drawing.Point(20, 494);
+ this.groupBox27.Name = "groupBox27";
+ this.groupBox27.Size = new System.Drawing.Size(414, 123);
+ this.groupBox27.TabIndex = 51;
+ this.groupBox27.TabStop = false;
+ this.groupBox27.Text = "Trainer Class Editor";
+ //
+ // encounterSSEQMainUpDown
+ //
+ this.encounterSSEQMainUpDown.Location = new System.Drawing.Point(146, 85);
+ this.encounterSSEQMainUpDown.Maximum = new decimal(new int[] {
+ 65535,
+ 0,
+ 0,
+ 0});
+ this.encounterSSEQMainUpDown.Name = "encounterSSEQMainUpDown";
+ this.encounterSSEQMainUpDown.Size = new System.Drawing.Size(81, 20);
+ this.encounterSSEQMainUpDown.TabIndex = 33;
+ //
+ // trainerClassFrameMaxLabel
+ //
+ this.trainerClassFrameMaxLabel.AutoSize = true;
+ this.trainerClassFrameMaxLabel.Location = new System.Drawing.Point(180, 33);
+ this.trainerClassFrameMaxLabel.Name = "trainerClassFrameMaxLabel";
+ this.trainerClassFrameMaxLabel.Size = new System.Drawing.Size(18, 13);
+ this.trainerClassFrameMaxLabel.TabIndex = 32;
+ this.trainerClassFrameMaxLabel.Text = "/0";
+ //
+ // label40
+ //
+ this.label40.AutoSize = true;
+ this.label40.Location = new System.Drawing.Point(143, 14);
+ this.label40.Name = "label40";
+ this.label40.Size = new System.Drawing.Size(45, 13);
+ this.label40.TabIndex = 31;
+ this.label40.Text = "Preview";
+ //
+ // trClassFramePreviewUpDown
+ //
+ this.trClassFramePreviewUpDown.Location = new System.Drawing.Point(146, 30);
+ this.trClassFramePreviewUpDown.Name = "trClassFramePreviewUpDown";
+ this.trClassFramePreviewUpDown.Size = new System.Drawing.Size(34, 20);
+ this.trClassFramePreviewUpDown.TabIndex = 30;
+ this.trClassFramePreviewUpDown.ValueChanged += new System.EventHandler(this.trClassFramePreviewUpDown_ValueChanged);
+ //
+ // saveTrainerClassButton
+ //
+ this.saveTrainerClassButton.Image = global::DSPRE.Properties.Resources.save_rom;
+ this.saveTrainerClassButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.saveTrainerClassButton.Location = new System.Drawing.Point(322, 15);
+ this.saveTrainerClassButton.Name = "saveTrainerClassButton";
+ this.saveTrainerClassButton.Size = new System.Drawing.Size(80, 45);
+ this.saveTrainerClassButton.TabIndex = 29;
+ this.saveTrainerClassButton.Text = "&Save\r\nClass";
+ this.saveTrainerClassButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.saveTrainerClassButton.UseVisualStyleBackColor = true;
+ this.saveTrainerClassButton.Click += new System.EventHandler(this.saveTrainerClassButton_Click);
+ //
+ // trainerClassNameTextbox
+ //
+ this.trainerClassNameTextbox.Location = new System.Drawing.Point(213, 29);
+ this.trainerClassNameTextbox.Name = "trainerClassNameTextbox";
+ this.trainerClassNameTextbox.Size = new System.Drawing.Size(99, 20);
+ this.trainerClassNameTextbox.TabIndex = 24;
+ //
+ // label17
+ //
+ this.label17.AutoSize = true;
+ this.label17.Location = new System.Drawing.Point(210, 13);
+ this.label17.Name = "label17";
+ this.label17.Size = new System.Drawing.Size(63, 13);
+ this.label17.TabIndex = 23;
+ this.label17.Text = "Class Name";
+ //
+ // trainerClassPicBox
+ //
+ this.trainerClassPicBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
+ this.trainerClassPicBox.Location = new System.Drawing.Point(9, 17);
+ this.trainerClassPicBox.Name = "trainerClassPicBox";
+ this.trainerClassPicBox.Size = new System.Drawing.Size(128, 96);
+ this.trainerClassPicBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
+ this.trainerClassPicBox.TabIndex = 0;
+ this.trainerClassPicBox.TabStop = false;
+ //
+ // deleteTrainerButton
+ //
+ this.deleteTrainerButton.Enabled = false;
+ this.deleteTrainerButton.Image = global::DSPRE.Properties.Resources.deleteIcon;
+ this.deleteTrainerButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.deleteTrainerButton.Location = new System.Drawing.Point(338, 55);
+ this.deleteTrainerButton.Name = "deleteTrainerButton";
+ this.deleteTrainerButton.Size = new System.Drawing.Size(100, 23);
+ this.deleteTrainerButton.TabIndex = 55;
+ this.deleteTrainerButton.Text = "Delete Trainer";
+ this.deleteTrainerButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.deleteTrainerButton.UseVisualStyleBackColor = true;
+ this.deleteTrainerButton.Visible = false;
+ //
+ // addTrainerButton
+ //
+ this.addTrainerButton.Enabled = false;
+ this.addTrainerButton.Image = global::DSPRE.Properties.Resources.addIcon;
+ this.addTrainerButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.addTrainerButton.Location = new System.Drawing.Point(338, 25);
+ this.addTrainerButton.Name = "addTrainerButton";
+ this.addTrainerButton.Size = new System.Drawing.Size(100, 23);
+ this.addTrainerButton.TabIndex = 54;
+ this.addTrainerButton.Text = "Add Trainer";
+ this.addTrainerButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.addTrainerButton.UseVisualStyleBackColor = true;
+ this.addTrainerButton.Visible = false;
+ this.addTrainerButton.Click += new System.EventHandler(this.addTrainerButton_Click);
+ //
+ // label42
+ //
+ this.label42.AutoSize = true;
+ this.label42.Location = new System.Drawing.Point(17, 12);
+ this.label42.Name = "label42";
+ this.label42.Size = new System.Drawing.Size(59, 13);
+ this.label42.TabIndex = 49;
+ this.label42.Text = "Trainer File";
+ //
+ // trainerSaveCurrentButton
+ //
+ this.trainerSaveCurrentButton.Image = global::DSPRE.Properties.Resources.saveButton;
+ this.trainerSaveCurrentButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.trainerSaveCurrentButton.Location = new System.Drawing.Point(20, 54);
+ this.trainerSaveCurrentButton.Name = "trainerSaveCurrentButton";
+ this.trainerSaveCurrentButton.Size = new System.Drawing.Size(199, 23);
+ this.trainerSaveCurrentButton.TabIndex = 52;
+ this.trainerSaveCurrentButton.Text = "&Save Full Trainer File";
+ this.trainerSaveCurrentButton.UseVisualStyleBackColor = true;
+ this.trainerSaveCurrentButton.Click += new System.EventHandler(this.trainerSaveCurrentButton_Click);
+ //
+ // trainerComboBox
+ //
+ this.trainerComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.trainerComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.trainerComboBox.FormattingEnabled = true;
+ this.trainerComboBox.Location = new System.Drawing.Point(20, 27);
+ this.trainerComboBox.Name = "trainerComboBox";
+ this.trainerComboBox.Size = new System.Drawing.Size(199, 21);
+ this.trainerComboBox.TabIndex = 48;
+ this.trainerComboBox.SelectedIndexChanged += new System.EventHandler(this.trainerComboBox_SelectedIndexChanged);
+ //
+ // trainerItemsCheckBox
+ //
+ this.trainerItemsCheckBox.AutoSize = true;
+ this.trainerItemsCheckBox.Location = new System.Drawing.Point(215, 115);
+ this.trainerItemsCheckBox.Name = "trainerItemsCheckBox";
+ this.trainerItemsCheckBox.Size = new System.Drawing.Size(117, 17);
+ this.trainerItemsCheckBox.TabIndex = 25;
+ this.trainerItemsCheckBox.Text = "Choose Party Items";
+ this.trainerItemsCheckBox.UseVisualStyleBackColor = true;
+ this.trainerItemsCheckBox.CheckedChanged += new System.EventHandler(this.trainerItemsCheckBox_CheckedChanged);
+ //
+ // trainerNameTextBox
+ //
+ this.trainerNameTextBox.Location = new System.Drawing.Point(215, 39);
+ this.trainerNameTextBox.Name = "trainerNameTextBox";
+ this.trainerNameTextBox.Size = new System.Drawing.Size(148, 20);
+ this.trainerNameTextBox.TabIndex = 22;
+ //
+ // partyCountUpDown
+ //
+ this.partyCountUpDown.Location = new System.Drawing.Point(346, 99);
+ this.partyCountUpDown.Maximum = new decimal(new int[] {
+ 6,
+ 0,
+ 0,
+ 0});
+ this.partyCountUpDown.Name = "partyCountUpDown";
+ this.partyCountUpDown.Size = new System.Drawing.Size(41, 20);
+ this.partyCountUpDown.TabIndex = 33;
+ this.partyCountUpDown.ValueChanged += new System.EventHandler(this.partyCountUpDown_ValueChanged);
+ //
+ // groupBox25
+ //
+ this.groupBox25.Controls.Add(this.tableLayoutPanel5);
+ this.groupBox25.Controls.Add(this.TrainerAIGroupBox);
+ this.groupBox25.Controls.Add(this.trainerItemsGroupBox);
+ this.groupBox25.Controls.Add(this.trainerItemsCheckBox);
+ this.groupBox25.Controls.Add(this.trainerMovesCheckBox);
+ this.groupBox25.Controls.Add(this.trainerDoubleCheckBox);
+ this.groupBox25.Controls.Add(this.trainerNameTextBox);
+ this.groupBox25.Controls.Add(this.partyCountUpDown);
+ this.groupBox25.Controls.Add(this.label44);
+ this.groupBox25.Controls.Add(this.label63);
+ this.groupBox25.Controls.Add(this.label43);
+ this.groupBox25.Controls.Add(this.trainerClassListBox);
+ this.groupBox25.Location = new System.Drawing.Point(20, 85);
+ this.groupBox25.Name = "groupBox25";
+ this.groupBox25.Size = new System.Drawing.Size(414, 405);
+ this.groupBox25.TabIndex = 50;
+ this.groupBox25.TabStop = false;
+ this.groupBox25.Text = "Trainer Properties [TRP]";
+ //
+ // tableLayoutPanel5
+ //
+ this.tableLayoutPanel5.ColumnCount = 1;
+ this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel5.Controls.Add(this.replacePropertiesButton, 0, 1);
+ this.tableLayoutPanel5.Controls.Add(this.exportPropertiesButton, 0, 0);
+ this.tableLayoutPanel5.Location = new System.Drawing.Point(288, 304);
+ this.tableLayoutPanel5.Name = "tableLayoutPanel5";
+ this.tableLayoutPanel5.RowCount = 2;
+ this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
+ this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel5.Size = new System.Drawing.Size(121, 62);
+ this.tableLayoutPanel5.TabIndex = 48;
+ //
+ // replacePropertiesButton
+ //
+ this.replacePropertiesButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.replacePropertiesButton.Image = ((System.Drawing.Image)(resources.GetObject("replacePropertiesButton.Image")));
+ this.replacePropertiesButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.replacePropertiesButton.Location = new System.Drawing.Point(3, 34);
+ this.replacePropertiesButton.Name = "replacePropertiesButton";
+ this.replacePropertiesButton.Size = new System.Drawing.Size(115, 25);
+ this.replacePropertiesButton.TabIndex = 42;
+ this.replacePropertiesButton.Text = "Replace TRP";
+ this.replacePropertiesButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.replacePropertiesButton.UseVisualStyleBackColor = true;
+ this.replacePropertiesButton.Click += new System.EventHandler(this.replacePropertiesButton_Click);
+ //
+ // exportPropertiesButton
+ //
+ this.exportPropertiesButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.exportPropertiesButton.Image = ((System.Drawing.Image)(resources.GetObject("exportPropertiesButton.Image")));
+ this.exportPropertiesButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.exportPropertiesButton.Location = new System.Drawing.Point(3, 3);
+ this.exportPropertiesButton.Name = "exportPropertiesButton";
+ this.exportPropertiesButton.Size = new System.Drawing.Size(115, 25);
+ this.exportPropertiesButton.TabIndex = 41;
+ this.exportPropertiesButton.Text = "Export TRP";
+ this.exportPropertiesButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.exportPropertiesButton.UseVisualStyleBackColor = true;
+ this.exportPropertiesButton.Click += new System.EventHandler(this.exportPropertiesButton_Click);
+ //
+ // trainerMovesCheckBox
+ //
+ this.trainerMovesCheckBox.AutoSize = true;
+ this.trainerMovesCheckBox.Location = new System.Drawing.Point(215, 94);
+ this.trainerMovesCheckBox.Name = "trainerMovesCheckBox";
+ this.trainerMovesCheckBox.Size = new System.Drawing.Size(97, 17);
+ this.trainerMovesCheckBox.TabIndex = 24;
+ this.trainerMovesCheckBox.Text = "Choose Moves";
+ this.trainerMovesCheckBox.UseVisualStyleBackColor = true;
+ this.trainerMovesCheckBox.CheckedChanged += new System.EventHandler(this.trainerMovesCheckBox_CheckedChanged);
+ //
+ // trainerDoubleCheckBox
+ //
+ this.trainerDoubleCheckBox.AutoSize = true;
+ this.trainerDoubleCheckBox.Location = new System.Drawing.Point(215, 72);
+ this.trainerDoubleCheckBox.Name = "trainerDoubleCheckBox";
+ this.trainerDoubleCheckBox.Size = new System.Drawing.Size(90, 17);
+ this.trainerDoubleCheckBox.TabIndex = 23;
+ this.trainerDoubleCheckBox.Text = "Double Battle";
+ this.trainerDoubleCheckBox.UseVisualStyleBackColor = true;
+ //
+ // label44
+ //
+ this.label44.AutoSize = true;
+ this.label44.Location = new System.Drawing.Point(212, 23);
+ this.label44.Name = "label44";
+ this.label44.Size = new System.Drawing.Size(71, 13);
+ this.label44.TabIndex = 21;
+ this.label44.Text = "Trainer Name";
+ //
+ // label43
+ //
+ this.label43.AutoSize = true;
+ this.label43.Location = new System.Drawing.Point(10, 23);
+ this.label43.Name = "label43";
+ this.label43.Size = new System.Drawing.Size(68, 13);
+ this.label43.TabIndex = 20;
+ this.label43.Text = "Trainer Class";
+ //
+ // trainerClassListBox
+ //
+ this.trainerClassListBox.FormattingEnabled = true;
+ this.trainerClassListBox.Location = new System.Drawing.Point(11, 39);
+ this.trainerClassListBox.Name = "trainerClassListBox";
+ this.trainerClassListBox.Size = new System.Drawing.Size(193, 238);
+ this.trainerClassListBox.TabIndex = 0;
+ this.trainerClassListBox.SelectedIndexChanged += new System.EventHandler(this.trainerClassListBox_SelectedIndexChanged);
+ //
+ // TrainerEditor
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Controls.Add(this.tableLayoutPanel4);
+ this.Controls.Add(this.groupBox28);
+ this.Controls.Add(this.groupBox27);
+ this.Controls.Add(this.deleteTrainerButton);
+ this.Controls.Add(this.addTrainerButton);
+ this.Controls.Add(this.label42);
+ this.Controls.Add(this.trainerSaveCurrentButton);
+ this.Controls.Add(this.trainerComboBox);
+ this.Controls.Add(this.groupBox25);
+ this.Name = "TrainerEditor";
+ this.Size = new System.Drawing.Size(1193, 646);
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel2UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall2UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox3)).EndInit();
+ this.party1GroupBox.ResumeLayout(false);
+ this.party1GroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox1)).EndInit();
+ this.poke1MovesGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV1UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel1UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall1UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon1PictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon3PictureBox)).EndInit();
+ this.poke6MovesGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV6UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel6UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall6UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon6PictureBox)).EndInit();
+ this.party2GroupBox.ResumeLayout(false);
+ this.party2GroupBox.PerformLayout();
+ this.poke2MovesGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV2UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon2PictureBox)).EndInit();
+ this.party4GroupBox.ResumeLayout(false);
+ this.party4GroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox4)).EndInit();
+ this.poke4MovesGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV4UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel4UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall4UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon4PictureBox)).EndInit();
+ this.TrainerAIGroupBox.ResumeLayout(false);
+ this.TrainerAIGroupBox.PerformLayout();
+ this.trainerItemsGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.encounterSSEQAltUpDown)).EndInit();
+ this.tableLayoutPanel4.ResumeLayout(false);
+ this.groupBox28.ResumeLayout(false);
+ this.groupBox28.PerformLayout();
+ this.tableLayoutPanel6.ResumeLayout(false);
+ this.party6GroupBox.ResumeLayout(false);
+ this.party6GroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox6)).EndInit();
+ this.party5GroupBox.ResumeLayout(false);
+ this.party5GroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox5)).EndInit();
+ this.poke5MovesGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV5UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel5UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall5UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon5PictureBox)).EndInit();
+ this.party3GroupBox.ResumeLayout(false);
+ this.party3GroupBox.PerformLayout();
+ this.poke3MovesGroupBox.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.partyIV3UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyLevel3UpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyBall3UpDown)).EndInit();
+ this.groupBox27.ResumeLayout(false);
+ this.groupBox27.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.encounterSSEQMainUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.trClassFramePreviewUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.trainerClassPicBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyCountUpDown)).EndInit();
+ this.groupBox25.ResumeLayout(false);
+ this.groupBox25.PerformLayout();
+ this.tableLayoutPanel5.ResumeLayout(false);
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private InputComboBox partyMove3_2ComboBox;
+ private InputComboBox partyMove1_1ComboBox;
+ private InputComboBox partyMove1_2ComboBox;
+ private InputComboBox partyMove1_3ComboBox;
+ private InputComboBox partyMove1_4ComboBox;
+ private System.Windows.Forms.ComboBox partyForm2ComboBox;
+ private System.Windows.Forms.ComboBox partyAbility2ComboBox;
+ private System.Windows.Forms.ComboBox partyGender2ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemonItemPictureBox2;
+ private System.Windows.Forms.Label label49;
+ private System.Windows.Forms.Label label50;
+ private System.Windows.Forms.NumericUpDown partyLevel2UpDown;
+ private System.Windows.Forms.NumericUpDown partyBall2UpDown;
+ private InputComboBox partyMove2_1ComboBox;
+ private InputComboBox partyMove2_2ComboBox;
+ private InputComboBox partyMove2_3ComboBox;
+ private InputComboBox partyMove2_4ComboBox;
+ private System.Windows.Forms.Label label48;
+ private System.Windows.Forms.ComboBox partyForm1ComboBox;
+ private InputComboBox partyMove3_1ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemonItemPictureBox3;
+ private InputComboBox partyItem3ComboBox;
+ private InputComboBox partyPokemon3ComboBox;
+ private System.Windows.Forms.Button DVExplainButton;
+ private System.Windows.Forms.GroupBox party1GroupBox;
+ private System.Windows.Forms.ComboBox partyAbility1ComboBox;
+ private System.Windows.Forms.ComboBox partyGender1ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemonItemPictureBox1;
+ private System.Windows.Forms.Label label47;
+ private System.Windows.Forms.Label label46;
+ private System.Windows.Forms.Label label45;
+ private System.Windows.Forms.GroupBox poke1MovesGroupBox;
+ private System.Windows.Forms.NumericUpDown partyIV1UpDown;
+ private System.Windows.Forms.NumericUpDown partyLevel1UpDown;
+ private System.Windows.Forms.NumericUpDown partyBall1UpDown;
+ private InputComboBox partyItem1ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemon1PictureBox;
+ private InputComboBox partyPokemon1ComboBox;
+ private InputComboBox partyItem2ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemon3PictureBox;
+ private InputComboBox partyMove6_1ComboBox;
+ private InputComboBox partyMove6_2ComboBox;
+ private InputComboBox partyMove6_3ComboBox;
+ private InputComboBox partyMove6_4ComboBox;
+ private System.Windows.Forms.ComboBox partyForm4ComboBox;
+ private System.Windows.Forms.ComboBox partyForm6ComboBox;
+ private System.Windows.Forms.ComboBox partyAbility6ComboBox;
+ private System.Windows.Forms.Label label60;
+ private System.Windows.Forms.Label label61;
+ private System.Windows.Forms.Label label62;
+ private System.Windows.Forms.GroupBox poke6MovesGroupBox;
+ private System.Windows.Forms.NumericUpDown partyIV6UpDown;
+ private System.Windows.Forms.NumericUpDown partyLevel6UpDown;
+ private System.Windows.Forms.NumericUpDown partyBall6UpDown;
+ private InputComboBox partyItem6ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemon6PictureBox;
+ private InputComboBox partyPokemon6ComboBox;
+ private System.Windows.Forms.ComboBox partyAbility4ComboBox;
+ private System.Windows.Forms.GroupBox party2GroupBox;
+ private System.Windows.Forms.GroupBox poke2MovesGroupBox;
+ private System.Windows.Forms.NumericUpDown partyIV2UpDown;
+ private System.Windows.Forms.PictureBox partyPokemon2PictureBox;
+ private InputComboBox partyPokemon2ComboBox;
+ private System.Windows.Forms.GroupBox party4GroupBox;
+ private System.Windows.Forms.ComboBox partyGender4ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemonItemPictureBox4;
+ private System.Windows.Forms.Label label54;
+ private System.Windows.Forms.Label label55;
+ private System.Windows.Forms.Label label56;
+ private System.Windows.Forms.GroupBox poke4MovesGroupBox;
+ private InputComboBox partyMove4_1ComboBox;
+ private InputComboBox partyMove4_2ComboBox;
+ private InputComboBox partyMove4_3ComboBox;
+ private InputComboBox partyMove4_4ComboBox;
+ private System.Windows.Forms.NumericUpDown partyIV4UpDown;
+ private System.Windows.Forms.NumericUpDown partyLevel4UpDown;
+ private System.Windows.Forms.NumericUpDown partyBall4UpDown;
+ private InputComboBox partyItem4ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemon4PictureBox;
+ private InputComboBox partyPokemon4ComboBox;
+ private InputComboBox partyMove3_3ComboBox;
+ private System.Windows.Forms.GroupBox TrainerAIGroupBox;
+ private System.Windows.Forms.CheckBox trainerAI1CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI2CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI3CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI4CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI5CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI6CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI7CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI8CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI9CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI10CheckBox;
+ private System.Windows.Forms.CheckBox trainerAI11CheckBox;
+ private System.Windows.Forms.GroupBox trainerItemsGroupBox;
+ private InputComboBox trainerItem1ComboBox;
+ private InputComboBox trainerItem2ComboBox;
+ private InputComboBox trainerItem3ComboBox;
+ private InputComboBox trainerItem4ComboBox;
+ private System.Windows.Forms.Label label63;
+ private System.Windows.Forms.Label eyeContactMusicAltLabel;
+ private System.Windows.Forms.NumericUpDown encounterSSEQAltUpDown;
+ private System.Windows.Forms.Label eyeContactMusicLabel;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
+ private System.Windows.Forms.Button exportTrainerButton;
+ private System.Windows.Forms.Button importTrainerButton;
+ private System.Windows.Forms.GroupBox groupBox28;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel6;
+ private System.Windows.Forms.Button importReplacePartyButton;
+ private System.Windows.Forms.Button exportPartyButton;
+ private System.Windows.Forms.Label label74;
+ private System.Windows.Forms.GroupBox party6GroupBox;
+ private System.Windows.Forms.ComboBox partyGender6ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemonItemPictureBox6;
+ private System.Windows.Forms.GroupBox party5GroupBox;
+ private System.Windows.Forms.ComboBox partyForm5ComboBox;
+ private System.Windows.Forms.ComboBox partyAbility5ComboBox;
+ private System.Windows.Forms.ComboBox partyGender5ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemonItemPictureBox5;
+ private System.Windows.Forms.Label label57;
+ private System.Windows.Forms.Label label58;
+ private System.Windows.Forms.Label label59;
+ private System.Windows.Forms.GroupBox poke5MovesGroupBox;
+ private InputComboBox partyMove5_1ComboBox;
+ private InputComboBox partyMove5_2ComboBox;
+ private InputComboBox partyMove5_3ComboBox;
+ private InputComboBox partyMove5_4ComboBox;
+ private System.Windows.Forms.NumericUpDown partyIV5UpDown;
+ private System.Windows.Forms.NumericUpDown partyLevel5UpDown;
+ private System.Windows.Forms.NumericUpDown partyBall5UpDown;
+ private InputComboBox partyItem5ComboBox;
+ private System.Windows.Forms.PictureBox partyPokemon5PictureBox;
+ private InputComboBox partyPokemon5ComboBox;
+ private System.Windows.Forms.GroupBox party3GroupBox;
+ private System.Windows.Forms.ComboBox partyForm3ComboBox;
+ private System.Windows.Forms.ComboBox partyAbility3ComboBox;
+ private System.Windows.Forms.ComboBox partyGender3ComboBox;
+ private System.Windows.Forms.Label label51;
+ private System.Windows.Forms.Label label52;
+ private System.Windows.Forms.Label label53;
+ private System.Windows.Forms.GroupBox poke3MovesGroupBox;
+ private InputComboBox partyMove3_4ComboBox;
+ private System.Windows.Forms.NumericUpDown partyIV3UpDown;
+ private System.Windows.Forms.NumericUpDown partyLevel3UpDown;
+ private System.Windows.Forms.NumericUpDown partyBall3UpDown;
+ private System.Windows.Forms.GroupBox groupBox27;
+ private System.Windows.Forms.NumericUpDown encounterSSEQMainUpDown;
+ private System.Windows.Forms.Label trainerClassFrameMaxLabel;
+ private System.Windows.Forms.Label label40;
+ private System.Windows.Forms.NumericUpDown trClassFramePreviewUpDown;
+ private System.Windows.Forms.Button saveTrainerClassButton;
+ private System.Windows.Forms.TextBox trainerClassNameTextbox;
+ private System.Windows.Forms.Label label17;
+ private System.Windows.Forms.Button deleteTrainerButton;
+ private System.Windows.Forms.Button addTrainerButton;
+ private System.Windows.Forms.Label label42;
+ private System.Windows.Forms.Button trainerSaveCurrentButton;
+ private InputComboBox trainerComboBox;
+ private System.Windows.Forms.CheckBox trainerItemsCheckBox;
+ private System.Windows.Forms.TextBox trainerNameTextBox;
+ private System.Windows.Forms.NumericUpDown partyCountUpDown;
+ private System.Windows.Forms.GroupBox groupBox25;
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel5;
+ private System.Windows.Forms.Button replacePropertiesButton;
+ private System.Windows.Forms.Button exportPropertiesButton;
+ private System.Windows.Forms.CheckBox trainerMovesCheckBox;
+ private System.Windows.Forms.CheckBox trainerDoubleCheckBox;
+ private System.Windows.Forms.Label label44;
+ private System.Windows.Forms.Label label43;
+ private System.Windows.Forms.ListBox trainerClassListBox;
+ public System.Windows.Forms.PictureBox trainerClassPicBox;
+ }
+}
diff --git a/DS_Map/Editors/TrainerEditor.cs b/DS_Map/Editors/TrainerEditor.cs
new file mode 100644
index 0000000..67a5c89
--- /dev/null
+++ b/DS_Map/Editors/TrainerEditor.cs
@@ -0,0 +1,1202 @@
+using DSPRE.ROMFiles;
+using Ekona.Images;
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Diagnostics;
+using System.Drawing;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+using static DSPRE.RomInfo;
+using static DSPRE.ROMFiles.SpeciesFile;
+using Images;
+
+namespace DSPRE.Editors
+{
+ public partial class TrainerEditor : UserControl
+ {
+ MainProgram _parent;
+ public bool trainerEditorIsReady { get; set; } = false;
+ public TrainerEditor()
+ {
+ InitializeComponent();
+ }
+
+ private List partyPokemonComboboxList = new List();
+ private List partyItemsComboboxList = new List();
+ private List partyMovesGroupboxList = new List();
+ private List partyLevelUpdownList = new List();
+ private List partyGenderComboBoxList = new List();
+ private List partyAbilityComboBoxList = new List();
+ private List partyFormComboBoxList = new List();
+ private List partyIVUpdownList = new List();
+ private List partyBallUpdownList = new List();
+ private List partyGroupboxList = new List();
+ private List partyPokemonPictureBoxList = new List();
+ private List partyPokemonItemIconList = new List();
+
+ private const int TRAINER_PARTY_POKEMON_GENDER_DEFAULT_INDEX = 0;
+ private const int TRAINER_PARTY_POKEMON_GENDER_MALE_INDEX = 1;
+ private const int TRAINER_PARTY_POKEMON_GENDER_FEMALE_INDEX = 2;
+ private const int TRAINER_PARTY_POKEMON_ABILITY_DEFAULT_INDEX = 0;
+ private const int TRAINER_PARTY_POKEMON_ABILITY_SLOT1_INDEX = 1;
+ private const int TRAINER_PARTY_POKEMON_ABILITY_SLOT2_INDEX = 2;
+
+
+ string[] abilityNames;
+ SpeciesFile[] pokemonSpecies;
+
+ private (int abi1, int abi2)[] pokemonSpeciesAbilities;
+
+ TrainerFile currentTrainerFile;
+ public PaletteBase trainerPal;
+ public ImageBase trainerTile;
+ public SpriteBase trainerSprite;
+
+ Dictionary trainerClassEncounterMusicDict;
+ private void SetupTrainerClassEncounterMusicTable()
+ {
+ RomInfo.SetEncounterMusicTableOffsetToRAMAddress();
+ trainerClassEncounterMusicDict = new Dictionary();
+
+ uint encounterMusicTableTableStartAddress = BitConverter.ToUInt32(ARM9.ReadBytes(RomInfo.encounterMusicTableOffsetToRAMAddress, 4), 0) - ARM9.address;
+ uint tableSizeOffset = 10;
+ if (gameFamily == GameFamilies.HGSS)
+ {
+ tableSizeOffset += 2;
+ encounterSSEQAltUpDown.Enabled = true;
+ }
+
+ byte tableEntriesCount = ARM9.ReadByte(RomInfo.encounterMusicTableOffsetToRAMAddress - tableSizeOffset);
+ using (ARM9.Reader ar = new ARM9.Reader(encounterMusicTableTableStartAddress))
+ {
+ for (int i = 0; i < tableEntriesCount; i++)
+ {
+ uint entryOffset = (uint)ar.BaseStream.Position;
+ byte tclass = (byte)ar.ReadUInt16();
+ ushort musicD = ar.ReadUInt16();
+ ushort? musicN = gameFamily == GameFamilies.HGSS ? ar.ReadUInt16() : (ushort?)null;
+ trainerClassEncounterMusicDict[tclass] = (entryOffset, musicD, musicN);
+ }
+ }
+ }
+
+ public void RefreshAbilities(int forPokemon)
+ {
+ DialogResult res = MessageBox.Show("You have modified a Pokemon's ability.\nDo you wish to refresh the Trainer Editor so your changes are available?", "Refresh Trainer Editor", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
+ if (res.Equals(DialogResult.Yes))
+ {
+ int currentIndex = trainerComboBox.SelectedIndex;
+ SetupTrainerEditor(_parent);
+ trainerComboBox.SelectedIndex = currentIndex;
+ }
+ }
+
+ public int LoadTrainerClassPic(int trClassID)
+ {
+ int paletteFileID = (trClassID * 5 + 1);
+ string paletteFilename = paletteFileID.ToString("D4");
+ trainerPal = new NCLR(gameDirs[DirNames.trainerGraphics].unpackedDir + "\\" + paletteFilename, paletteFileID, paletteFilename);
+
+ int tilesFileID = trClassID * 5;
+ string tilesFilename = tilesFileID.ToString("D4");
+ trainerTile = new NCGR(gameDirs[DirNames.trainerGraphics].unpackedDir + "\\" + tilesFilename, tilesFileID, tilesFilename);
+
+ if (gameFamily == GameFamilies.DP)
+ {
+ return 0;
+ }
+
+ int spriteFileID = (trClassID * 5 + 2);
+ string spriteFilename = spriteFileID.ToString("D4");
+ trainerSprite = new NCER(gameDirs[DirNames.trainerGraphics].unpackedDir + "\\" + spriteFilename, spriteFileID, spriteFilename);
+
+ return trainerSprite.Banks.Length - 1;
+ }
+ public void UpdateTrainerClassPic(PictureBox pb, int frameNumber = 0)
+ {
+ if (trainerSprite == null)
+ {
+ Console.WriteLine("Sprite is null!");
+ return;
+ }
+
+ int bank0OAMcount = trainerSprite.Banks[0].oams.Length;
+ int[] OAMenabled = new int[bank0OAMcount];
+ for (int i = 0; i < OAMenabled.Length; i++)
+ {
+ OAMenabled[i] = i;
+ }
+
+ frameNumber = Math.Min(trainerSprite.Banks.Length, frameNumber);
+ Image trSprite = trainerSprite.Get_Image(trainerTile, trainerPal, frameNumber, trainerClassPicBox.Width, trainerClassPicBox.Height, false, false, false, true, true, -1, OAMenabled);
+ pb.Image = trSprite;
+ pb.Update();
+ }
+
+
+ public void SetupTrainerEditor(MainProgram parent, bool force=false)
+ {
+ if (trainerEditorIsReady && !force) return;
+
+ trainerEditorIsReady = true;
+ _parent = parent;
+ Helpers.DisableHandlers();
+
+ //SetTrainerNameMaxLen();
+ SetupTrainerClassEncounterMusicTable();
+ /* Extract essential NARCs sub-archives*/
+ Helpers.statusLabelMessage("Setting up Trainer Editor...");
+ Update();
+
+ DSUtils.TryUnpackNarcs(new List {
+ DirNames.trainerProperties,
+ DirNames.trainerParty,
+ DirNames.trainerGraphics,
+ DirNames.textArchives,
+ DirNames.monIcons,
+ DirNames.personalPokeData,
+ DirNames.learnsets
+ });
+
+ int numPokemonSpecies = Directory.GetFiles(RomInfo.gameDirs[DirNames.personalPokeData].unpackedDir, "*").Count();
+ pokemonSpeciesAbilities = new (int abi1, int abi2)[numPokemonSpecies];
+ pokemonSpecies = new SpeciesFile[numPokemonSpecies];
+
+ RomInfo.SetMonIconsPalTableAddress();
+ RomInfo.SetAIBackportEnabled();
+
+ partyPokemonComboboxList.Clear();
+ partyPokemonComboboxList.Add(partyPokemon1ComboBox);
+ partyPokemonComboboxList.Add(partyPokemon2ComboBox);
+ partyPokemonComboboxList.Add(partyPokemon3ComboBox);
+ partyPokemonComboboxList.Add(partyPokemon4ComboBox);
+ partyPokemonComboboxList.Add(partyPokemon5ComboBox);
+ partyPokemonComboboxList.Add(partyPokemon6ComboBox);
+
+ partyItemsComboboxList.Clear();
+ partyItemsComboboxList.Add(partyItem1ComboBox);
+ partyItemsComboboxList.Add(partyItem2ComboBox);
+ partyItemsComboboxList.Add(partyItem3ComboBox);
+ partyItemsComboboxList.Add(partyItem4ComboBox);
+ partyItemsComboboxList.Add(partyItem5ComboBox);
+ partyItemsComboboxList.Add(partyItem6ComboBox);
+
+ partyLevelUpdownList.Clear();
+ partyLevelUpdownList.Add(partyLevel1UpDown);
+ partyLevelUpdownList.Add(partyLevel2UpDown);
+ partyLevelUpdownList.Add(partyLevel3UpDown);
+ partyLevelUpdownList.Add(partyLevel4UpDown);
+ partyLevelUpdownList.Add(partyLevel5UpDown);
+ partyLevelUpdownList.Add(partyLevel6UpDown);
+
+ partyGenderComboBoxList.Clear();
+ partyGenderComboBoxList.Add(partyGender1ComboBox);
+ partyGenderComboBoxList.Add(partyGender2ComboBox);
+ partyGenderComboBoxList.Add(partyGender3ComboBox);
+ partyGenderComboBoxList.Add(partyGender4ComboBox);
+ partyGenderComboBoxList.Add(partyGender5ComboBox);
+ partyGenderComboBoxList.Add(partyGender6ComboBox);
+
+ partyAbilityComboBoxList.Clear();
+ partyAbilityComboBoxList.Add(partyAbility1ComboBox);
+ partyAbilityComboBoxList.Add(partyAbility2ComboBox);
+ partyAbilityComboBoxList.Add(partyAbility3ComboBox);
+ partyAbilityComboBoxList.Add(partyAbility4ComboBox);
+ partyAbilityComboBoxList.Add(partyAbility5ComboBox);
+ partyAbilityComboBoxList.Add(partyAbility6ComboBox);
+
+ partyFormComboBoxList.Clear();
+ partyFormComboBoxList.Add(partyForm1ComboBox);
+ partyFormComboBoxList.Add(partyForm2ComboBox);
+ partyFormComboBoxList.Add(partyForm3ComboBox);
+ partyFormComboBoxList.Add(partyForm4ComboBox);
+ partyFormComboBoxList.Add(partyForm5ComboBox);
+ partyFormComboBoxList.Add(partyForm6ComboBox);
+
+ partyIVUpdownList.Clear();
+ partyIVUpdownList.Add(partyIV1UpDown);
+ partyIVUpdownList.Add(partyIV2UpDown);
+ partyIVUpdownList.Add(partyIV3UpDown);
+ partyIVUpdownList.Add(partyIV4UpDown);
+ partyIVUpdownList.Add(partyIV5UpDown);
+ partyIVUpdownList.Add(partyIV6UpDown);
+
+ partyBallUpdownList.Clear();
+ partyBallUpdownList.Add(partyBall1UpDown);
+ partyBallUpdownList.Add(partyBall2UpDown);
+ partyBallUpdownList.Add(partyBall3UpDown);
+ partyBallUpdownList.Add(partyBall4UpDown);
+ partyBallUpdownList.Add(partyBall5UpDown);
+ partyBallUpdownList.Add(partyBall6UpDown);
+
+ partyMovesGroupboxList.Clear();
+ partyMovesGroupboxList.Add(poke1MovesGroupBox);
+ partyMovesGroupboxList.Add(poke2MovesGroupBox);
+ partyMovesGroupboxList.Add(poke3MovesGroupBox);
+ partyMovesGroupboxList.Add(poke4MovesGroupBox);
+ partyMovesGroupboxList.Add(poke5MovesGroupBox);
+ partyMovesGroupboxList.Add(poke6MovesGroupBox);
+
+ partyGroupboxList.Clear();
+ partyGroupboxList.Add(party1GroupBox);
+ partyGroupboxList.Add(party2GroupBox);
+ partyGroupboxList.Add(party3GroupBox);
+ partyGroupboxList.Add(party4GroupBox);
+ partyGroupboxList.Add(party5GroupBox);
+ partyGroupboxList.Add(party6GroupBox);
+
+ partyPokemonPictureBoxList.Clear();
+ partyPokemonPictureBoxList.Add(partyPokemon1PictureBox);
+ partyPokemonPictureBoxList.Add(partyPokemon2PictureBox);
+ partyPokemonPictureBoxList.Add(partyPokemon3PictureBox);
+ partyPokemonPictureBoxList.Add(partyPokemon4PictureBox);
+ partyPokemonPictureBoxList.Add(partyPokemon5PictureBox);
+ partyPokemonPictureBoxList.Add(partyPokemon6PictureBox);
+
+ partyPokemonItemIconList.Clear();
+ partyPokemonItemIconList.Add(partyPokemonItemPictureBox1);
+ partyPokemonItemIconList.Add(partyPokemonItemPictureBox2);
+ partyPokemonItemIconList.Add(partyPokemonItemPictureBox3);
+ partyPokemonItemIconList.Add(partyPokemonItemPictureBox4);
+ partyPokemonItemIconList.Add(partyPokemonItemPictureBox5);
+ partyPokemonItemIconList.Add(partyPokemonItemPictureBox6);
+
+ int trainerCount = Directory.GetFiles(RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir).Length;
+ trainerComboBox.Items.Clear();
+ trainerComboBox.Items.AddRange(Helpers.GetTrainerNames());
+
+ string[] classNames = RomInfo.GetTrainerClassNames();
+ trainerClassListBox.Items.Clear();
+ if (classNames.Length > byte.MaxValue + 1)
+ {
+ MessageBox.Show("There can't be more than 256 trainer classes! [Found " + classNames.Length + "].\nAborting.",
+ "Too many trainer classes", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+ for (int i = 0; i < classNames.Length; i++)
+ {
+ trainerClassListBox.Items.Add("[" + i.ToString("D3") + "]" + " " + classNames[i]);
+ }
+
+ for (int i = 0; i < numPokemonSpecies; i++)
+ {
+ pokemonSpecies[i] = new SpeciesFile(new FileStream(RomInfo.gameDirs[DirNames.personalPokeData].unpackedDir + "\\" + i.ToString("D4"), FileMode.Open));
+ }
+
+ if (gameFamily == GameFamilies.HGSS || RomInfo.AIBackportEnabled)
+ {
+ foreach (ComboBox partyGenderComboBox in partyGenderComboBoxList)
+ {
+ partyGenderComboBox.Visible = true;
+ partyGenderComboBox.Items.Add("Default Gender");
+ partyGenderComboBox.Items.Add("Male");
+ partyGenderComboBox.Items.Add("Female");
+ }
+ }
+ else
+ {
+ foreach (ComboBox partyGenderComboBox in partyGenderComboBoxList)
+ {
+ partyGenderComboBox.Visible = false;
+ }
+ }
+
+ if (gameFamily == GameFamilies.DP)
+ {
+ foreach (ComboBox partyFormComboBox in partyFormComboBoxList)
+ {
+ partyFormComboBox.Visible = false;
+ }
+
+ foreach (NumericUpDown partyBallSealUpDown in partyBallUpdownList)
+ {
+ partyBallSealUpDown.Enabled = false;
+ }
+ }
+ else
+ {
+ foreach (ComboBox partyFormComboBox in partyFormComboBoxList)
+ {
+ partyFormComboBox.Visible = true;
+ }
+
+ foreach (NumericUpDown partyBallSealUpDown in partyBallUpdownList)
+ {
+ partyBallSealUpDown.Enabled = true;
+ }
+ }
+
+ string[] itemNames = RomInfo.GetItemNames();
+ string[] pokeNames = RomInfo.GetPokemonNames();
+ string[] moveNames = RomInfo.GetAttackNames();
+ abilityNames = RomInfo.GetAbilityNames();
+
+ pokemonSpeciesAbilities = getPokemonAbilities(numPokemonSpecies);
+
+ foreach (Control c in trainerItemsGroupBox.Controls)
+ {
+ if (c is ComboBox)
+ {
+ (c as ComboBox).DataSource = new BindingSource(itemNames, string.Empty);
+ }
+ }
+
+ foreach (ComboBox CB in partyPokemonComboboxList)
+ {
+ CB.DataSource = new BindingSource(pokeNames, string.Empty);
+ }
+
+ foreach (ComboBox CB in partyItemsComboboxList)
+ {
+ CB.DataSource = new BindingSource(itemNames, string.Empty);
+ }
+
+ foreach (GroupBox movesGroup in partyMovesGroupboxList)
+ {
+ foreach (Control c in movesGroup.Controls)
+ {
+ if (c is ComboBox)
+ {
+ (c as ComboBox).DataSource = new BindingSource(moveNames, string.Empty);
+ }
+ }
+ }
+
+ trainerComboBox.SelectedIndex = 0;
+
+ Helpers.EnableHandlers();
+ trainerComboBox_SelectedIndexChanged(null, null);
+ Helpers.statusLabelMessage();
+ }
+ private void trainerComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (Helpers.HandlersDisabled)
+ {
+ return;
+ }
+ Helpers.DisableHandlers();
+
+ int currentIndex = trainerComboBox.SelectedIndex;
+ string suffix = "\\" + currentIndex.ToString("D4");
+ string[] trNames = RomInfo.GetSimpleTrainerNames();
+
+ bool error = currentIndex >= trNames.Length;
+ currentTrainerFile = new TrainerFile(
+ new TrainerProperties(
+ (ushort)trainerComboBox.SelectedIndex,
+ new FileStream(RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir + suffix, FileMode.Open)
+ ),
+ new FileStream(RomInfo.gameDirs[DirNames.trainerParty].unpackedDir + suffix, FileMode.Open),
+ error ? TrainerFile.NAME_NOT_FOUND : trNames[currentIndex]
+ );
+ RefreshTrainerPartyGUI();
+ RefreshTrainerPropertiesGUI();
+
+ Helpers.EnableHandlers();
+
+ if (error)
+ {
+ MessageBox.Show("This Trainer File doesn't have a corresponding name.\n\n" +
+ "If you edited this ROM's Trainers with another tool before, don't worry.\n" +
+ "DSPRE will attempt to add the missing line to the Trainer Names Text Archive [" + RomInfo.trainerNamesMessageNumber + "] upon resaving.",
+ "Trainer name not found", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
+ }
+
+ public void RefreshTrainerPropertiesGUI()
+ {
+ trainerNameTextBox.Text = currentTrainerFile.name;
+
+ trainerClassListBox.SelectedIndex = currentTrainerFile.trp.trainerClass;
+ trainerDoubleCheckBox.Checked = currentTrainerFile.trp.doubleBattle;
+ trainerMovesCheckBox.Checked = currentTrainerFile.trp.chooseMoves;
+ trainerItemsCheckBox.Checked = currentTrainerFile.trp.chooseItems;
+ partyCountUpDown.Value = currentTrainerFile.trp.partyCount;
+
+ IList trainerItems = trainerItemsGroupBox.Controls;
+ for (int i = 0; i < trainerItems.Count; i++)
+ {
+ (trainerItems[i] as ComboBox).SelectedIndex = currentTrainerFile.trp.trainerItems[i];
+ }
+
+ IList trainerAI = TrainerAIGroupBox.Controls;
+ for (int i = 0; i < trainerAI.Count; i++)
+ {
+ (trainerAI[i] as CheckBox).Checked = currentTrainerFile.trp.AI[i];
+ }
+ }
+ public void RefreshTrainerPartyGUI()
+ {
+ for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++)
+ {
+ partyPokemonComboboxList[i].SelectedIndex = currentTrainerFile.party[i].pokeID ?? 0;
+ partyItemsComboboxList[i].SelectedIndex = currentTrainerFile.party[i].heldItem ?? 0;
+ partyLevelUpdownList[i].Value = Math.Max((ushort)1, currentTrainerFile.party[i].level);
+ partyIVUpdownList[i].Value = currentTrainerFile.party[i].difficulty;
+ partyBallUpdownList[i].Value = currentTrainerFile.party[i].ballSeals;
+
+ setTrainerPartyPokemonAbilities(i);
+ setTrainerPartyPokemonForm(i);
+ setTrainerPokemonGender(i);
+
+ if (currentTrainerFile.party[i].genderAndAbilityFlags.HasFlag(PartyPokemon.GenderAndAbilityFlags.ABILITY_SLOT1))
+ {
+ partyAbilityComboBoxList[i].SelectedIndex = TRAINER_PARTY_POKEMON_ABILITY_SLOT1_INDEX;
+ }
+ else if (currentTrainerFile.party[i].genderAndAbilityFlags.HasFlag(PartyPokemon.GenderAndAbilityFlags.ABILITY_SLOT2))
+ {
+ partyAbilityComboBoxList[i].SelectedIndex = TRAINER_PARTY_POKEMON_ABILITY_SLOT2_INDEX;
+ }
+ else
+ {
+ partyAbilityComboBoxList[i].SelectedIndex = TRAINER_PARTY_POKEMON_ABILITY_DEFAULT_INDEX;
+ }
+
+ partyFormComboBoxList[i].SelectedIndex = currentTrainerFile.party[i].formID;
+
+ if (currentTrainerFile.party[i].moves == null)
+ {
+ for (int j = 0; j < Party.MOVES_PER_POKE; j++)
+ {
+ (partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex = 0;
+ }
+ }
+ else
+ {
+ for (int j = 0; j < Party.MOVES_PER_POKE; j++)
+ {
+ (partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex = currentTrainerFile.party[i].moves[j];
+ }
+ }
+ }
+ }
+
+ private void ShowPartyPokemonPic(byte partyPos)
+ {
+ ComboBox cb = partyPokemonComboboxList[partyPos];
+ int species = cb.SelectedIndex > 0 ? cb.SelectedIndex : 0;
+
+ PictureBox pb = partyPokemonPictureBoxList[partyPos];
+
+ partyPokemonPictureBoxList[partyPos].Image = DSUtils.GetPokePic(species, pb.Width, pb.Height);
+ }
+
+ private void partyPokemon1ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ ShowPartyPokemonPic(0);
+
+ //event handler is called before currentTrainerFile is set, need to null check to avoid null object reference
+ if (currentTrainerFile != null)
+ {
+ setTrainerPartyPokemonAbilities(0);
+ setTrainerPartyPokemonForm(0);
+ setTrainerPokemonGender(0);
+ }
+ }
+ private void partyPokemon2ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ ShowPartyPokemonPic(1);
+ if (currentTrainerFile != null)
+ {
+ setTrainerPartyPokemonAbilities(1);
+ setTrainerPartyPokemonForm(1);
+ setTrainerPokemonGender(1);
+ }
+ }
+
+ private void partyPokemon3ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ ShowPartyPokemonPic(2);
+ if (currentTrainerFile != null)
+ {
+ setTrainerPartyPokemonAbilities(2);
+ setTrainerPartyPokemonForm(2);
+ setTrainerPokemonGender(2);
+ }
+ }
+
+ private void partyPokemon4ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ ShowPartyPokemonPic(3);
+ if (currentTrainerFile != null)
+ {
+ setTrainerPartyPokemonAbilities(3);
+ setTrainerPartyPokemonForm(3);
+ setTrainerPokemonGender(3);
+ }
+ }
+
+ private void partyPokemon5ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ ShowPartyPokemonPic(4);
+ if (currentTrainerFile != null)
+ {
+ setTrainerPartyPokemonAbilities(4);
+ setTrainerPartyPokemonForm(4);
+ setTrainerPokemonGender(4);
+ }
+ }
+
+ private void partyPokemon6ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ ShowPartyPokemonPic(5);
+ if (currentTrainerFile != null)
+ {
+ setTrainerPartyPokemonAbilities(5);
+ setTrainerPartyPokemonForm(5);
+ setTrainerPokemonGender(5);
+ }
+ }
+
+ private void showTrainerEditorItemPic(byte partyPos)
+ {
+ ComboBox cb = partyItemsComboboxList[partyPos];
+ partyPokemonItemIconList[partyPos].Visible = cb.SelectedIndex > 0;
+ }
+
+ private void partyItem1ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ showTrainerEditorItemPic(0);
+ }
+
+ private void partyItem2ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ showTrainerEditorItemPic(1);
+ }
+
+ private void partyItem3ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ showTrainerEditorItemPic(2);
+ }
+
+ private void partyItem4ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ showTrainerEditorItemPic(3);
+ }
+
+ private void partyItem5ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ showTrainerEditorItemPic(4);
+ }
+
+ private void partyItem6ComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ showTrainerEditorItemPic(5);
+ }
+
+ private void DVExplainButton_Click(object sender, EventArgs e)
+ {
+
+ DVCalc DVCalcForm = new DVCalc(currentTrainerFile);
+ DVCalcForm.ShowDialog();
+
+ currentTrainerFile = DVCalcForm.trainerFile;
+ Helpers.DisableHandlers();
+ RefreshTrainerPartyGUI();
+ Helpers.EnableHandlers();
+
+ }
+
+ private void partyCountUpDown_ValueChanged(object sender, EventArgs e)
+ {
+ for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++)
+ {
+ partyGroupboxList[i].Enabled = (partyCountUpDown.Value > i);
+ partyPokemonPictureBoxList[i].Visible = partyGroupboxList[i].Enabled;
+ }
+ for (int i = Math.Min(currentTrainerFile.trp.partyCount, (int)partyCountUpDown.Value); i < TrainerFile.POKE_IN_PARTY; i++)
+ {
+ currentTrainerFile.party[i] = new PartyPokemon(currentTrainerFile.trp.chooseItems, currentTrainerFile.trp.chooseMoves);
+ }
+ }
+
+ private void trainerMovesCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++)
+ {
+ for (int j = 0; j < Party.MOVES_PER_POKE; j++)
+ {
+ (partyMovesGroupboxList[i].Controls[j] as ComboBox).Enabled = trainerMovesCheckBox.Checked;
+ }
+ if (trainerMovesCheckBox.Checked && i < currentTrainerFile.trp.partyCount && Helpers.HandlersEnabled)
+ {
+ Helpers.BackUpDisableHandler();
+ Helpers.DisableHandlers();
+ LearnsetData learnset = new LearnsetData((int)currentTrainerFile.party[i].pokeID);
+ int level = currentTrainerFile.party[i].level;
+ currentTrainerFile.party[i].moves = learnset.GetLearnsetAtLevel(level);
+ Debug.Print("Changing the moves of Pokemon " + i.ToString() + " which is Pokemon " + currentTrainerFile.party[i].pokeID);
+ Debug.Print("The new moves will be: " + string.Join(", ", currentTrainerFile.party[i].moves));
+ for (int j = 0; j < Party.MOVES_PER_POKE; j++)
+ {
+ (partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex = currentTrainerFile.party[i].moves[j];
+ Debug.Print("Move for dropdwon " + j.ToString() + " is " + currentTrainerFile.party[i].moves[j].ToString());
+ }
+ Helpers.RestoreDisableHandler();
+ }
+ else
+ {
+ //currentTrainerFile.party[i].moves = null;
+ }
+ }
+ RefreshTrainerPartyGUI();
+ }
+ private void trainerItemsCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++)
+ {
+ partyItemsComboboxList[i].Enabled = trainerItemsCheckBox.Checked;
+ }
+ }
+ private void partyMoveComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (Helpers.HandlersEnabled)
+ {
+ for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++)
+ {
+ ushort[] moves = currentTrainerFile.party[i].moves;
+
+ if (moves != null)
+ {
+ for (int j = 0; j < Party.MOVES_PER_POKE; j++)
+ {
+ moves[j] = (ushort)(partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex;
+ }
+ }
+ }
+ }
+ }
+
+ private void trainerSaveCurrentButton_Click(object sender, EventArgs e)
+ {
+ currentTrainerFile.trp.partyCount = (byte)partyCountUpDown.Value;
+ currentTrainerFile.trp.chooseMoves = trainerMovesCheckBox.Checked;
+ currentTrainerFile.trp.chooseItems = trainerItemsCheckBox.Checked;
+ currentTrainerFile.trp.doubleBattle = trainerDoubleCheckBox.Checked;
+
+ IList trainerItems = trainerItemsGroupBox.Controls;
+ for (int i = 0; i < trainerItems.Count; i++)
+ {
+ currentTrainerFile.trp.trainerItems[i] = (ushort)(trainerItems[i] as ComboBox).SelectedIndex;
+ }
+
+ IList trainerAI = TrainerAIGroupBox.Controls;
+ for (int i = 0; i < trainerAI.Count; i++)
+ {
+ currentTrainerFile.trp.AI[i] = (trainerAI[i] as CheckBox).Checked;
+ }
+
+ for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++)
+ {
+ currentTrainerFile.party[i].moves = trainerMovesCheckBox.Checked ? new ushort[4] : null;
+ }
+
+
+ for (int i = 0; i < partyCountUpDown.Value; i++)
+ {
+ currentTrainerFile.party[i].pokeID = (ushort)partyPokemonComboboxList[i].SelectedIndex;
+ currentTrainerFile.party[i].formID = (ushort)partyFormComboBoxList[i].SelectedIndex;
+ currentTrainerFile.party[i].level = (ushort)partyLevelUpdownList[i].Value;
+
+ if (trainerMovesCheckBox.Checked)
+ {
+ IList movesList = partyMovesGroupboxList[i].Controls;
+ for (int j = 0; j < Party.MOVES_PER_POKE; j++)
+ {
+ currentTrainerFile.party[i].moves[j] = (ushort)(movesList[j] as ComboBox).SelectedIndex;
+ }
+ }
+
+ if (trainerItemsCheckBox.Checked)
+ {
+ currentTrainerFile.party[i].heldItem = (ushort)partyItemsComboboxList[i].SelectedIndex;
+ }
+
+ currentTrainerFile.party[i].difficulty = (byte)partyIVUpdownList[i].Value;
+
+ if (hasMoreThanOneGender((int)currentTrainerFile.party[i].pokeID, pokemonSpecies) && (gameFamily == GameFamilies.HGSS || RomInfo.AIBackportEnabled))
+ {
+ switch (partyGenderComboBoxList[i].SelectedIndex)
+ {
+ case TRAINER_PARTY_POKEMON_GENDER_DEFAULT_INDEX:
+ currentTrainerFile.party[i].genderAndAbilityFlags = PartyPokemon.GenderAndAbilityFlags.NO_FLAGS;
+ break;
+ case TRAINER_PARTY_POKEMON_GENDER_MALE_INDEX:
+ currentTrainerFile.party[i].genderAndAbilityFlags = PartyPokemon.GenderAndAbilityFlags.FORCE_MALE;
+ break;
+ case TRAINER_PARTY_POKEMON_GENDER_FEMALE_INDEX:
+ currentTrainerFile.party[i].genderAndAbilityFlags = PartyPokemon.GenderAndAbilityFlags.FORCE_FEMALE;
+ break;
+ }
+ }
+ else
+ currentTrainerFile.party[i].genderAndAbilityFlags = PartyPokemon.GenderAndAbilityFlags.NO_FLAGS;
+
+ if (partyAbilityComboBoxList[i].SelectedIndex == TRAINER_PARTY_POKEMON_ABILITY_SLOT1_INDEX)
+ {
+ currentTrainerFile.party[i].genderAndAbilityFlags |= PartyPokemon.GenderAndAbilityFlags.ABILITY_SLOT1;
+ }
+ else if (partyAbilityComboBoxList[i].SelectedIndex == TRAINER_PARTY_POKEMON_ABILITY_SLOT2_INDEX)
+ {
+ currentTrainerFile.party[i].genderAndAbilityFlags |= PartyPokemon.GenderAndAbilityFlags.ABILITY_SLOT2;
+ }
+
+ currentTrainerFile.party[i].ballSeals = (ushort)partyBallUpdownList[i].Value;
+ }
+
+ /*Write to File*/
+ string indexStr = "\\" + trainerComboBox.SelectedIndex.ToString("D4");
+ File.WriteAllBytes(RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir + indexStr, currentTrainerFile.trp.ToByteArray());
+ File.WriteAllBytes(RomInfo.gameDirs[DirNames.trainerParty].unpackedDir + indexStr, currentTrainerFile.party.ToByteArray());
+
+ UpdateCurrentTrainerName(newName: trainerNameTextBox.Text);
+ UpdateCurrentTrainerShownName();
+
+ if (trainerNameTextBox.Text.Length > RomInfo.trainerNameMaxLen)
+ { //Subtract 1 to account for special end character.
+ //Expose a smaller limit to the user
+ if (RomInfo.trainerNameLenOffset >= 0)
+ {
+ MessageBox.Show($"Trainer File saved successfully. However:\nYou attempted to save a Trainer whose name exceeds {RomInfo.trainerNameMaxLen} characters.\nThis may lead to issues in game." +
+ (PatchToolboxDialog.flag_TrainerNamesExpanded ? "\n\nIt's recommended that you use a shorter name." : "\n\nRefer to the Patch Toolbox to extend Trainer names."),
+ "Saved successfully, but...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
+ else
+ {
+ MessageBox.Show($"Trainer File saved successfully. However:\nThe Trainer name length could not be safely determined for this ROM.\n" +
+ $"You attempted to save a Trainer whose name exceeds {RomInfo.trainerNameMaxLen} characters.\nThis will most likely lead to issues in game.",
+ "Saved successfully, but...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
+ }
+ else
+ {
+ MessageBox.Show("Trainer saved successfully!", "Saved successfully", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+ }
+
+ private void UpdateCurrentTrainerShownName()
+ {
+ string trClass = GetTrainerClassNameFromListbox(trainerClassListBox.SelectedItem);
+
+ string editedTrainer = "[" + currentTrainerFile.trp.trainerID.ToString("D2") + "] " + trClass + " " + currentTrainerFile.name;
+
+ Helpers.DisableHandlers();
+ trainerComboBox.Items[trainerComboBox.SelectedIndex] = editedTrainer;
+ Helpers.EnableHandlers();
+
+ if (_parent.eventEditorIsReady)
+ {
+ _parent.owTrainerComboBox.Items[trainerComboBox.SelectedIndex] = editedTrainer;
+ }
+ }
+
+ private string GetTrainerClassNameFromListbox(object selectedItem)
+ {
+ string lbname = selectedItem.ToString();
+ return lbname.Substring(lbname.IndexOf(" ") + 1);
+ }
+
+ private void UpdateCurrentTrainerName(string newName)
+ {
+ currentTrainerFile.name = newName;
+ TextArchive trainerNames = new TextArchive(RomInfo.trainerNamesMessageNumber);
+ if (currentTrainerFile.trp.trainerID < trainerNames.messages.Count)
+ {
+ trainerNames.messages[currentTrainerFile.trp.trainerID] = newName;
+ }
+ else
+ {
+ trainerNames.messages.Add(newName);
+ }
+ trainerNames.SaveToFileDefaultDir(RomInfo.trainerNamesMessageNumber, showSuccessMessage: false);
+ }
+ private void UpdateCurrentTrainerClassName(string newName)
+ {
+ TextArchive trainerClassNames = new TextArchive(RomInfo.trainerClassMessageNumber);
+ trainerClassNames.messages[trainerClassListBox.SelectedIndex] = newName;
+ trainerClassNames.SaveToFileDefaultDir(RomInfo.trainerClassMessageNumber, showSuccessMessage: false);
+ }
+
+ private void trainerClassListBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ int selection = trainerClassListBox.SelectedIndex;
+ if (selection < 0)
+ {
+ return;
+ }
+
+ try
+ {
+ int maxFrames = LoadTrainerClassPic(selection);
+ UpdateTrainerClassPic(trainerClassPicBox);
+
+ trClassFramePreviewUpDown.Maximum = maxFrames;
+ trainerClassFrameMaxLabel.Text = "/" + maxFrames;
+ }
+ catch
+ {
+ trClassFramePreviewUpDown.Maximum = 0;
+ }
+
+ trainerClassNameTextbox.Text = GetTrainerClassNameFromListbox(trainerClassListBox.SelectedItem);
+
+ if (trainerClassEncounterMusicDict.TryGetValue((byte)selection, out (uint entryOffset, ushort musicD, ushort? musicN) output))
+ {
+ encounterSSEQMainUpDown.Enabled = eyeContactMusicLabel.Enabled = true;
+ encounterSSEQMainUpDown.Value = output.musicD;
+ }
+ else
+ {
+ encounterSSEQMainUpDown.Enabled = eyeContactMusicLabel.Enabled = false;
+ encounterSSEQMainUpDown.Value = 0;
+ }
+
+ eyeContactMusicAltLabel.Enabled = encounterSSEQAltUpDown.Enabled = (encounterSSEQMainUpDown.Enabled && gameFamily == GameFamilies.HGSS);
+ encounterSSEQAltUpDown.Value = output.musicN != null ? (ushort)output.musicN : 0;
+ currentTrainerFile.trp.trainerClass = (byte)selection;
+ }
+
+ private void addTrainerButton_Click(object sender, EventArgs e)
+ {
+ /* Add new trainer file to 2 folders */
+ string suffix = "\\" + trainerComboBox.Items.Count.ToString("D4");
+
+ string trainerPropertiesPath = gameDirs[DirNames.trainerProperties].unpackedDir + suffix;
+ string partyFilePath = gameDirs[DirNames.trainerParty].unpackedDir + suffix;
+
+ File.WriteAllBytes(trainerPropertiesPath, new TrainerProperties((ushort)trainerComboBox.Items.Count).ToByteArray());
+ File.WriteAllBytes(partyFilePath, new PartyPokemon().ToByteArray());
+
+ TextArchive trainerClasses = new TextArchive(RomInfo.trainerClassMessageNumber);
+ TextArchive trainerNames = new TextArchive(RomInfo.trainerNamesMessageNumber);
+
+ /* Update ComboBox and select new file */
+ trainerComboBox.Items.Add(trainerClasses.messages[0]);
+ trainerNames.messages.Add("");
+ trainerNames.SaveToFileDefaultDir(RomInfo.trainerNamesMessageNumber, showSuccessMessage: false);
+
+ trainerComboBox.SelectedIndex = trainerComboBox.Items.Count - 1;
+ UpdateCurrentTrainerShownName();
+ }
+
+ private void exportTrainerButton_Click(object sender, EventArgs e)
+ {
+ currentTrainerFile.SaveToFileExplorePath("G4 Trainer File " + trainerComboBox.SelectedItem);
+ }
+
+ private void importTrainerButton_Click(object sender, EventArgs e)
+ {
+ OpenFileDialog of = new OpenFileDialog
+ {
+ Filter = "Gen IV Trainer File (*.trf)|*.trf"
+ };
+ if (of.ShowDialog(this) != DialogResult.OK)
+ {
+ return;
+ }
+
+ /* Update trainer on disk */
+ using (DSUtils.EasyReader reader = new DSUtils.EasyReader(of.FileName))
+ {
+ string trName = reader.ReadString();
+
+ byte datSize = reader.ReadByte();
+ byte[] trDat = reader.ReadBytes(datSize);
+
+ byte partySize = reader.ReadByte();
+ byte[] pDat = reader.ReadBytes(partySize);
+
+ string pathData = RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir + "\\" + trainerComboBox.SelectedIndex.ToString("D4");
+ string pathParty = RomInfo.gameDirs[DirNames.trainerParty].unpackedDir + "\\" + trainerComboBox.SelectedIndex.ToString("D4");
+ File.WriteAllBytes(pathData, trDat);
+ File.WriteAllBytes(pathParty, pDat);
+
+ UpdateCurrentTrainerName(trName);
+ }
+
+ /* Refresh controls and re-read file */
+ trainerComboBox_SelectedIndexChanged(null, null);
+ UpdateCurrentTrainerShownName();
+
+ /* Display success message */
+ MessageBox.Show("Trainer File imported successfully!", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+
+ private void exportPropertiesButton_Click(object sender, EventArgs e)
+ {
+ currentTrainerFile.trp.SaveToFileExplorePath("G4 Trainer Properties " + trainerComboBox.SelectedItem);
+ }
+
+ private void replacePropertiesButton_Click(object sender, EventArgs e)
+ {
+ OpenFileDialog of = new OpenFileDialog
+ {
+ Filter = "Gen IV Trainer Properties (*.trp)|*.trp"
+ };
+ if (of.ShowDialog(this) != DialogResult.OK)
+ {
+ return;
+ }
+
+ /* Update trp object in memory */
+ currentTrainerFile.trp = new TrainerProperties((ushort)trainerComboBox.SelectedIndex, new FileStream(of.FileName, FileMode.Open));
+ RefreshTrainerPropertiesGUI();
+
+ /* Display success message */
+ MessageBox.Show("Trainer Properties imported successfully!\nRemember to save the current Trainer File.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+
+ private void exportPartyButton_Click(object sender, EventArgs e)
+ {
+ currentTrainerFile.party.exportCondensedData = true;
+ currentTrainerFile.party.SaveToFileExplorePath("G4 Party Data " + trainerComboBox.SelectedItem);
+ currentTrainerFile.party.exportCondensedData = false;
+ }
+
+ private void importReplacePartyButton_Click(object sender, EventArgs e)
+ {
+ OpenFileDialog of = new OpenFileDialog
+ {
+ Filter = "Gen IV Party File (*.pdat)|*.pdat"
+ };
+ if (of.ShowDialog(this) != DialogResult.OK)
+ {
+ return;
+ }
+
+ /* Update trp object in memory */
+ currentTrainerFile.party = new Party(readFirstByte: true, TrainerFile.POKE_IN_PARTY, new FileStream(of.FileName, FileMode.Open), currentTrainerFile.trp);
+ RefreshTrainerPropertiesGUI();
+ RefreshTrainerPartyGUI();
+
+ /* Display success message */
+ MessageBox.Show("Trainer Party imported successfully!\nRemember to save the current Trainer File.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+
+ private void saveTrainerClassButton_Click(object sender, EventArgs e)
+ {
+ Helpers.DisableHandlers();
+
+ int selectedTrClass = trainerClassListBox.SelectedIndex;
+
+ byte b_selectedTrClass = (byte)selectedTrClass;
+ ushort eyeMusicID = (ushort)encounterSSEQMainUpDown.Value;
+ ushort altEyeMusicID = (ushort)encounterSSEQAltUpDown.Value;
+
+ if (trainerClassEncounterMusicDict.TryGetValue(b_selectedTrClass, out var dictEntry))
+ {
+ ARM9.WriteBytes(BitConverter.GetBytes(eyeMusicID), dictEntry.entryOffset + 2);
+
+ if (gameFamily.Equals(GameFamilies.HGSS))
+ {
+ ARM9.WriteBytes(BitConverter.GetBytes(altEyeMusicID), dictEntry.entryOffset + 4);
+ }
+
+ trainerClassEncounterMusicDict[b_selectedTrClass] = (dictEntry.entryOffset, eyeMusicID, altEyeMusicID);
+ }
+
+ string newName = trainerClassNameTextbox.Text;
+ UpdateCurrentTrainerClassName(newName);
+ trainerClassListBox.Items[selectedTrClass] = "[" + selectedTrClass.ToString("D3") + "]" + " " + newName;
+
+ if (currentTrainerFile.trp.trainerClass == trainerClassListBox.SelectedIndex)
+ {
+ UpdateCurrentTrainerShownName();
+ }
+ Helpers.EnableHandlers();
+
+ if (gameFamily.Equals(GameFamilies.HGSS) && EditorPanels.tableEditor.battleTableEditorIsReady && EditorPanels.tableEditor.conditionnalMusicTableEditorIsReady)
+ {
+ EditorPanels.tableEditor.pbEffectsTrainerCombobox.Items[selectedTrClass] = trainerClassListBox.Items[selectedTrClass];
+ for (int i = 0; i < EditorPanels.tableEditor.vsTrainerEffectsList.Count; i++)
+ {
+ if (EditorPanels.tableEditor.vsTrainerEffectsList[i].trainerClass == selectedTrClass)
+ {
+ EditorPanels.tableEditor.pbEffectsVsTrainerListbox.Items[i] = EditorPanels.tableEditor.pbEffectsTrainerCombobox.Items[selectedTrClass] + " uses Combo #" + EditorPanels.tableEditor.vsTrainerEffectsList[i].comboID;
+ }
+ }
+ }
+ MessageBox.Show("Trainer Class settings saved.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+
+ private void trClassFramePreviewUpDown_ValueChanged(object sender, EventArgs e)
+ {
+ UpdateTrainerClassPic(trainerClassPicBox);
+ }
+
+ private (int abi1, int abi2)[] getPokemonAbilities(int numPokemonSpecies)
+ {
+ var pokemonSpeciesAbilities = new (int abi1, int abi2)[numPokemonSpecies];
+
+ for (int i = 0; i < numPokemonSpecies; i++)
+ {
+ pokemonSpeciesAbilities[i] = (pokemonSpecies[i].Ability1, pokemonSpecies[i].Ability2);
+ }
+
+ return pokemonSpeciesAbilities;
+ }
+
+ private (string ability1, string ability2) getPokemonAbilityNames(int pokemonID)
+ {
+ return (abilityNames[pokemonSpeciesAbilities[pokemonID].abi1],
+ abilityNames[pokemonSpeciesAbilities[pokemonID].abi2]);
+ }
+
+ private void setTrainerPartyPokemonAbilities(int partyPokemonPosition)
+ {
+ (string ability1, string ability2) = getPokemonAbilityNames(partyPokemonComboboxList[partyPokemonPosition].SelectedIndex);
+ string noFlags = "No Flag";
+
+ partyAbilityComboBoxList[partyPokemonPosition].Items.Clear();
+
+ // In DPPt just show ability 1 and do not allow editing
+ if (RomInfo.gameFamily != GameFamilies.HGSS && !RomInfo.AIBackportEnabled)
+ {
+ partyAbilityComboBoxList[partyPokemonPosition].Items.Add(ability1);
+ partyAbilityComboBoxList[partyPokemonPosition].Enabled = false;
+ return;
+ }
+
+ // In HGSS allow editing of ability flags
+ partyAbilityComboBoxList[partyPokemonPosition].Items.Add(noFlags);
+ partyAbilityComboBoxList[partyPokemonPosition].Items.Add(ability1);
+
+ string stringAbi2 = ability2;
+ if (ability2.Equals(ability1))
+ {
+ stringAbi2 += " (2nd Slot)";
+ }
+ else if (ability2.Equals(" -"))
+ {
+ stringAbi2 = ability1 += " (2nd Slot)";
+ }
+ partyAbilityComboBoxList[partyPokemonPosition].Items.Add(stringAbi2);
+
+
+ }
+
+ private void setTrainerPokemonGender(int partyPokemonPosition)
+ {
+ int currentPokemonGenderRatio = pokemonSpecies[partyPokemonComboboxList[partyPokemonPosition].SelectedIndex].GenderRatioMaleToFemale;
+ PartyPokemon.GenderAndAbilityFlags currentPokemonGenderAndAbilityFlags = currentTrainerFile.party[partyPokemonPosition].genderAndAbilityFlags;
+
+ if (gameFamily == GameFamilies.HGSS || RomInfo.AIBackportEnabled)
+ {
+ switch (currentPokemonGenderRatio)
+ {
+ case GENDER_RATIO_MALE:
+ partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_MALE_INDEX;
+ partyGenderComboBoxList[partyPokemonPosition].Enabled = false;
+ break;
+ case GENDER_RATIO_FEMALE:
+ partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_FEMALE_INDEX;
+ partyGenderComboBoxList[partyPokemonPosition].Enabled = false;
+ break;
+ case GENDER_RATIO_GENDERLESS:
+ partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_DEFAULT_INDEX;
+ partyGenderComboBoxList[partyPokemonPosition].Enabled = false;
+ break;
+ default:
+ partyGenderComboBoxList[partyPokemonPosition].Enabled = true;
+
+ if (currentPokemonGenderAndAbilityFlags.HasFlag(PartyPokemon.GenderAndAbilityFlags.FORCE_MALE))
+ partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_MALE_INDEX;
+ else if (currentPokemonGenderAndAbilityFlags.HasFlag(PartyPokemon.GenderAndAbilityFlags.FORCE_FEMALE))
+ partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_FEMALE_INDEX;
+ else
+ partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_DEFAULT_INDEX;
+ break;
+ }
+ }
+ }
+
+ private List getPokemonFormNames(int pokemonID)
+ {
+ List pokemonFormNames = new List();
+
+ switch (pokemonID)
+ {
+ case PICHU_ID_NUM:
+ if (RomInfo.gameFamily == GameFamilies.HGSS)
+ {
+ pokemonFormNames.Add("Non-Spiky-Eared");
+ pokemonFormNames.Add("Spiky-Eared");
+ }
+ else
+ {
+ pokemonFormNames.Add("No Alt Form");
+ }
+ break;
+ case UNOWN_ID_NUM:
+ for (char c = 'A'; c <= 'Z'; c++)
+ pokemonFormNames.Add(c + " Form");
+
+ pokemonFormNames.Add("! Form");
+ pokemonFormNames.Add("? Form");
+ break;
+ case CASTFORM_ID_NUM:
+ pokemonFormNames.Add("Normal Form");
+ pokemonFormNames.Add("Sunny Form");
+ pokemonFormNames.Add("Rainy Form");
+ pokemonFormNames.Add("Snowy Form");
+ break;
+ case DEOXYS_ID_NUM:
+ pokemonFormNames.Add("Normal Form");
+ pokemonFormNames.Add("Attack Form");
+ pokemonFormNames.Add("Defense Form");
+ pokemonFormNames.Add("Speed Form");
+ break;
+ case BURMY_ID_NUM:
+ case WORMADAM_ID_NUM:
+ pokemonFormNames.Add("Plant Cloak");
+ pokemonFormNames.Add("Sand Cloak");
+ pokemonFormNames.Add("Trash Cloak");
+ break;
+ case SHELLOS_ID_NUM:
+ case GASTRODON_ID_NUM:
+ pokemonFormNames.Add("West sea");
+ pokemonFormNames.Add("East sea");
+ break;
+ case ROTOM_ID_NUM:
+ pokemonFormNames.Add("Rotom");
+ pokemonFormNames.Add("Heat Rotom");
+ pokemonFormNames.Add("Wash Rotom");
+ pokemonFormNames.Add("Frost Rotom");
+ pokemonFormNames.Add("Fan Rotom");
+ pokemonFormNames.Add("Mow Rotom");
+ break;
+ case SHAYMIN_ID_NUM:
+ pokemonFormNames.Add("Land Form");
+ pokemonFormNames.Add("Sky Form");
+ break;
+ default:
+ pokemonFormNames.Add("No Alt Form");
+ break;
+ }
+ return pokemonFormNames;
+
+ }
+
+ private void setTrainerPartyPokemonForm(int partyPokemonPosition)
+ {
+ if (gameFamily != GameFamilies.DP)
+ {
+ partyFormComboBoxList[partyPokemonPosition].Items.Clear();
+ List currentPokemonFormName = getPokemonFormNames(partyPokemonComboboxList[partyPokemonPosition].SelectedIndex);
+ foreach (string formName in currentPokemonFormName)
+ partyFormComboBoxList[partyPokemonPosition].Items.Add(formName);
+
+ partyFormComboBoxList[partyPokemonPosition].Enabled = currentPokemonFormName.Count > 1;
+ partyFormComboBoxList[partyPokemonPosition].SelectedIndex = 0;
+ }
+
+ }
+
+ }
+}
diff --git a/DS_Map/Editors/TrainerEditor.resx b/DS_Map/Editors/TrainerEditor.resx
new file mode 100644
index 0000000..ee0acee
--- /dev/null
+++ b/DS_Map/Editors/TrainerEditor.resx
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ vAAADrwBlbxySQAAAX5JREFUOE/Fkr0rRWEcx7/PcZJblK5/4E7KYFAmma3KP2ATsSmDSZlMBqWYjQYD
+ ucS9z0tKLBaLgUFeEllMt87z1TnXy3N/nS5nkE99p9/3+ZyX5wfkQIcSjRqnxjw11oKs0mDWazVAAyXP
+ 5eJNNESLSzqwTTyt2kx0XJLnW/A6GqTDY44gP1Zt8xix9GR4E3XQ4lQceqPBPQ1us1g80aEhpNPSlUGN
+ YTok30Xs+boq033/KzrE3qhROrwEvXM6RK22tFzDRPBkT41+2fmEFiuB8IEH6JSdVDhFi0YWgzdW0Ss7
+ n9BiORC+8ABdsgPuImYVPVn20c0t2WjitarQ4uZLaOBk51ewjgoN1rM3Ci7F62hGdn8kMXF6Ea+hqPm5
+ 6ow11X4XJUktLtPiWcjSxT7yOuqT/R/xRi22vhWs19FYuE6FoMFhIDuhzlmRItDgLhBuyHlhWMc5Da6z
+ 1DAv5/8PHXbocPGRSTkvDB2ugltekPPC/IVwjg5LHxmRc8k7cy13VAsXPGAAAAAASUVORK5CYII=
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ vAAADrwBlbxySQAAAI1JREFUSEtjYBgFZALDkLT/MIwuR3MAsjRt000whjqgBV0NTQDMxzDLQdg8uQKO
+ bQu7cGJ0s0gC2CzGhssv/seKoQ4gPZQotZgiB1DDYoocAAK4QgDdAkKYbAdAQYtH47z/IIxuMLGYUgfA
+ AFaHwMTwYWo5AAbADkF2ANRwYjD1ALIPqW44CYA2vhtRAAAmDYpgT13R+wAAAABJRU5ErkJggg==
+
+
+
+
+ iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
+ vAAADrwBlbxySQAAAJdJREFUSEtjYBgFFIA4Nav/MIwuRxcAsvh6XBcYU90RyL7DhRe6psEdAMItxoFg
+ jG4WWQDZd4Tw/4IlKJgqDgE54HZcN4Zl+CxGxxQ5BJ8D0C0ihMlyBDYHoBtMCCOFQAsUEw+QHYBuMCE8
+ 0y4ejJEsJs1yEKg18YMbhA9T3WI0gGwQBkZ2ALUtJgoghwRdLUYD9PX1sAMAB89ugVJE7dUAAAAASUVO
+ RK5CYII=
+
+
+
\ No newline at end of file
diff --git a/DS_Map/Helpers.cs b/DS_Map/Helpers.cs
index ca29345..8b0b1b7 100644
--- a/DS_Map/Helpers.cs
+++ b/DS_Map/Helpers.cs
@@ -678,49 +678,5 @@ namespace DSPRE {
return fileName;
}
-
- public static int LoadTrainerClassPic(int trClassID, PaletteBase trainerPal, ImageBase trainerTile, SpriteBase trainerSprite)
- {
- int paletteFileID = (trClassID * 5 + 1);
- string paletteFilename = paletteFileID.ToString("D4");
- trainerPal = new NCLR(gameDirs[DirNames.trainerGraphics].unpackedDir + "\\" + paletteFilename, paletteFileID, paletteFilename);
-
- int tilesFileID = trClassID * 5;
- string tilesFilename = tilesFileID.ToString("D4");
- trainerTile = new NCGR(gameDirs[DirNames.trainerGraphics].unpackedDir + "\\" + tilesFilename, tilesFileID, tilesFilename);
-
- if (gameFamily == GameFamilies.DP)
- {
- return 0;
- }
-
- int spriteFileID = (trClassID * 5 + 2);
- string spriteFilename = spriteFileID.ToString("D4");
- trainerSprite = new NCER(gameDirs[DirNames.trainerGraphics].unpackedDir + "\\" + spriteFilename, spriteFileID, spriteFilename);
-
- return trainerSprite.Banks.Length - 1;
- }
- public static void UpdateTrainerClassPic(PictureBox pb, PaletteBase trainerPal, ImageBase trainerTile, SpriteBase trainerSprite, int boxH, int boxW, int frameNumber = 0)
- {
- if (trainerSprite == null)
- {
- Console.WriteLine("Sprite is null!");
- return;
- }
-
- int bank0OAMcount = trainerSprite.Banks[0].oams.Length;
- int[] OAMenabled = new int[bank0OAMcount];
- for (int i = 0; i < OAMenabled.Length; i++)
- {
- OAMenabled[i] = i;
- }
-
- frameNumber = Math.Min(trainerSprite.Banks.Length, frameNumber);
- Image trSprite = trainerSprite.Get_Image(trainerTile, trainerPal, frameNumber, boxW, boxH, false, false, false, true, true, -1, OAMenabled);
- pb.Image = trSprite;
- pb.Update();
- }
-
-
}
}
\ No newline at end of file
diff --git a/DS_Map/Main Window.Designer.cs b/DS_Map/Main Window.Designer.cs
index 4a83910..0224c5c 100644
--- a/DS_Map/Main Window.Designer.cs
+++ b/DS_Map/Main Window.Designer.cs
@@ -30,20 +30,20 @@
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainProgram));
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
this.mainTabControl = new System.Windows.Forms.TabControl();
this.headerEditorTabPage = new System.Windows.Forms.TabPage();
this.removeLastHeaderBTN = new System.Windows.Forms.Button();
@@ -523,135 +523,7 @@
this.cameraEditorTabPage = new System.Windows.Forms.TabPage();
this.cameraEditor = new DSPRE.Editors.CameraEditor();
this.trainerEditorTabPage = new System.Windows.Forms.TabPage();
- this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
- this.exportTrainerButton = new System.Windows.Forms.Button();
- this.importTrainerButton = new System.Windows.Forms.Button();
- this.groupBox28 = new System.Windows.Forms.GroupBox();
- this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel();
- this.importReplacePartyButton = new System.Windows.Forms.Button();
- this.exportPartyButton = new System.Windows.Forms.Button();
- this.DVExplainButton = new System.Windows.Forms.Button();
- this.label74 = new System.Windows.Forms.Label();
- this.party6GroupBox = new System.Windows.Forms.GroupBox();
- this.partyForm6ComboBox = new System.Windows.Forms.ComboBox();
- this.partyAbility6ComboBox = new System.Windows.Forms.ComboBox();
- this.partyGender6ComboBox = new System.Windows.Forms.ComboBox();
- this.partyPokemonItemPictureBox6 = new System.Windows.Forms.PictureBox();
- this.label60 = new System.Windows.Forms.Label();
- this.label61 = new System.Windows.Forms.Label();
- this.label62 = new System.Windows.Forms.Label();
- this.poke6MovesGroupBox = new System.Windows.Forms.GroupBox();
- this.partyIV6UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyLevel6UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyBall6UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyPokemon6PictureBox = new System.Windows.Forms.PictureBox();
- this.party5GroupBox = new System.Windows.Forms.GroupBox();
- this.partyForm5ComboBox = new System.Windows.Forms.ComboBox();
- this.partyAbility5ComboBox = new System.Windows.Forms.ComboBox();
- this.partyGender5ComboBox = new System.Windows.Forms.ComboBox();
- this.partyPokemonItemPictureBox5 = new System.Windows.Forms.PictureBox();
- this.label57 = new System.Windows.Forms.Label();
- this.label58 = new System.Windows.Forms.Label();
- this.label59 = new System.Windows.Forms.Label();
- this.poke5MovesGroupBox = new System.Windows.Forms.GroupBox();
- this.partyIV5UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyLevel5UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyBall5UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyPokemon5PictureBox = new System.Windows.Forms.PictureBox();
- this.party4GroupBox = new System.Windows.Forms.GroupBox();
- this.partyForm4ComboBox = new System.Windows.Forms.ComboBox();
- this.partyAbility4ComboBox = new System.Windows.Forms.ComboBox();
- this.partyGender4ComboBox = new System.Windows.Forms.ComboBox();
- this.partyPokemonItemPictureBox4 = new System.Windows.Forms.PictureBox();
- this.label54 = new System.Windows.Forms.Label();
- this.label55 = new System.Windows.Forms.Label();
- this.label56 = new System.Windows.Forms.Label();
- this.poke4MovesGroupBox = new System.Windows.Forms.GroupBox();
- this.partyIV4UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyLevel4UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyBall4UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyPokemon4PictureBox = new System.Windows.Forms.PictureBox();
- this.party3GroupBox = new System.Windows.Forms.GroupBox();
- this.partyForm3ComboBox = new System.Windows.Forms.ComboBox();
- this.partyAbility3ComboBox = new System.Windows.Forms.ComboBox();
- this.partyGender3ComboBox = new System.Windows.Forms.ComboBox();
- this.partyPokemonItemPictureBox3 = new System.Windows.Forms.PictureBox();
- this.label51 = new System.Windows.Forms.Label();
- this.label52 = new System.Windows.Forms.Label();
- this.label53 = new System.Windows.Forms.Label();
- this.poke3MovesGroupBox = new System.Windows.Forms.GroupBox();
- this.partyIV3UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyLevel3UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyBall3UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyPokemon3PictureBox = new System.Windows.Forms.PictureBox();
- this.party2GroupBox = new System.Windows.Forms.GroupBox();
- this.partyForm2ComboBox = new System.Windows.Forms.ComboBox();
- this.partyAbility2ComboBox = new System.Windows.Forms.ComboBox();
- this.partyGender2ComboBox = new System.Windows.Forms.ComboBox();
- this.partyPokemonItemPictureBox2 = new System.Windows.Forms.PictureBox();
- this.label48 = new System.Windows.Forms.Label();
- this.label49 = new System.Windows.Forms.Label();
- this.label50 = new System.Windows.Forms.Label();
- this.poke2MovesGroupBox = new System.Windows.Forms.GroupBox();
- this.partyIV2UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyLevel2UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyBall2UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyPokemon2PictureBox = new System.Windows.Forms.PictureBox();
- this.party1GroupBox = new System.Windows.Forms.GroupBox();
- this.partyForm1ComboBox = new System.Windows.Forms.ComboBox();
- this.partyAbility1ComboBox = new System.Windows.Forms.ComboBox();
- this.partyGender1ComboBox = new System.Windows.Forms.ComboBox();
- this.partyPokemonItemPictureBox1 = new System.Windows.Forms.PictureBox();
- this.label47 = new System.Windows.Forms.Label();
- this.label46 = new System.Windows.Forms.Label();
- this.label45 = new System.Windows.Forms.Label();
- this.poke1MovesGroupBox = new System.Windows.Forms.GroupBox();
- this.partyIV1UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyLevel1UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyBall1UpDown = new System.Windows.Forms.NumericUpDown();
- this.partyPokemon1PictureBox = new System.Windows.Forms.PictureBox();
- this.groupBox27 = new System.Windows.Forms.GroupBox();
- this.eyeContactMusicAltLabel = new System.Windows.Forms.Label();
- this.encounterSSEQAltUpDown = new System.Windows.Forms.NumericUpDown();
- this.eyeContactMusicLabel = new System.Windows.Forms.Label();
- this.encounterSSEQMainUpDown = new System.Windows.Forms.NumericUpDown();
- this.trainerClassFrameMaxLabel = new System.Windows.Forms.Label();
- this.label40 = new System.Windows.Forms.Label();
- this.trClassFramePreviewUpDown = new System.Windows.Forms.NumericUpDown();
- this.saveTrainerClassButton = new System.Windows.Forms.Button();
- this.trainerClassNameTextbox = new System.Windows.Forms.TextBox();
- this.label17 = new System.Windows.Forms.Label();
- this.trainerClassPicBox = new System.Windows.Forms.PictureBox();
- this.deleteTrainerButton = new System.Windows.Forms.Button();
- this.groupBox25 = new System.Windows.Forms.GroupBox();
- this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel();
- this.replacePropertiesButton = new System.Windows.Forms.Button();
- this.exportPropertiesButton = new System.Windows.Forms.Button();
- this.TrainerAIGroupBox = new System.Windows.Forms.GroupBox();
- this.trainerAI1CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI2CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI3CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI4CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI5CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI6CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI7CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI8CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI9CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI10CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerAI11CheckBox = new System.Windows.Forms.CheckBox();
- this.trainerItemsGroupBox = new System.Windows.Forms.GroupBox();
- this.trainerItemsCheckBox = new System.Windows.Forms.CheckBox();
- this.trainerMovesCheckBox = new System.Windows.Forms.CheckBox();
- this.trainerDoubleCheckBox = new System.Windows.Forms.CheckBox();
- this.trainerNameTextBox = new System.Windows.Forms.TextBox();
- this.partyCountUpDown = new System.Windows.Forms.NumericUpDown();
- this.label44 = new System.Windows.Forms.Label();
- this.label63 = new System.Windows.Forms.Label();
- this.label43 = new System.Windows.Forms.Label();
- this.trainerClassListBox = new System.Windows.Forms.ListBox();
- this.addTrainerButton = new System.Windows.Forms.Button();
- this.label42 = new System.Windows.Forms.Label();
- this.trainerSaveCurrentButton = new System.Windows.Forms.Button();
+ this.trainerEditor = new DSPRE.Editors.TrainerEditor();
this.tableEditorTabPage = new System.Windows.Forms.TabPage();
this.tableEditor = new DSPRE.Editors.TableEditor();
this.tabPageEncountersEditor = new System.Windows.Forms.TabPage();
@@ -735,6 +607,8 @@
this.weatherMapEditor = new System.Windows.Forms.ToolStripButton();
this.versionLabel = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+ this.popoutTrainerEditorButton = new System.Windows.Forms.Button();
+ this.trainerEditorPoppedOutLabel = new System.Windows.Forms.Label();
this.mainTabControl.SuspendLayout();
this.headerEditorTabPage.SuspendLayout();
this.worldmapCoordsGroupBox.SuspendLayout();
@@ -897,54 +771,6 @@
this.textEditorTabPage.SuspendLayout();
this.cameraEditorTabPage.SuspendLayout();
this.trainerEditorTabPage.SuspendLayout();
- this.tableLayoutPanel4.SuspendLayout();
- this.groupBox28.SuspendLayout();
- this.tableLayoutPanel6.SuspendLayout();
- this.party6GroupBox.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox6)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV6UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel6UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall6UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon6PictureBox)).BeginInit();
- this.party5GroupBox.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox5)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV5UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel5UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall5UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon5PictureBox)).BeginInit();
- this.party4GroupBox.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox4)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV4UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel4UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall4UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon4PictureBox)).BeginInit();
- this.party3GroupBox.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV3UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel3UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall3UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon3PictureBox)).BeginInit();
- this.party2GroupBox.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox2)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV2UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel2UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall2UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon2PictureBox)).BeginInit();
- this.party1GroupBox.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox1)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV1UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel1UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall1UpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon1PictureBox)).BeginInit();
- this.groupBox27.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.encounterSSEQAltUpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.encounterSSEQMainUpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.trClassFramePreviewUpDown)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.trainerClassPicBox)).BeginInit();
- this.groupBox25.SuspendLayout();
- this.tableLayoutPanel5.SuspendLayout();
- this.TrainerAIGroupBox.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyCountUpDown)).BeginInit();
this.tableEditorTabPage.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gameIcon)).BeginInit();
this.menuStrip1.SuspendLayout();
@@ -2713,40 +2539,40 @@
this.headersGridView.AllowUserToResizeColumns = false;
this.headersGridView.AllowUserToResizeRows = false;
this.headersGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
- dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
- dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.Info;
- dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.headersGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
+ dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
+ dataGridViewCellStyle15.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.Info;
+ dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.headersGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle15;
this.headersGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle2.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle2.Format = "D4";
- dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.headersGridView.DefaultCellStyle = dataGridViewCellStyle2;
+ dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle16.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle16.Format = "D4";
+ dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.headersGridView.DefaultCellStyle = dataGridViewCellStyle16;
this.headersGridView.Location = new System.Drawing.Point(0, 0);
this.headersGridView.MultiSelect = false;
this.headersGridView.Name = "headersGridView";
- dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
- dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.headersGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
+ dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle17.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
+ dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.headersGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle17;
this.headersGridView.RowHeadersWidth = 50;
this.headersGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle4.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.headersGridView.RowsDefaultCellStyle = dataGridViewCellStyle4;
+ dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle18.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.headersGridView.RowsDefaultCellStyle = dataGridViewCellStyle18;
this.headersGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.headersGridView.RowTemplate.Height = 18;
this.headersGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -2775,43 +2601,43 @@
this.heightsGridView.AllowUserToDeleteRows = false;
this.heightsGridView.AllowUserToResizeColumns = false;
this.heightsGridView.AllowUserToResizeRows = false;
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.heightsGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
+ dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.heightsGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle19;
this.heightsGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
- dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
- dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.heightsGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
+ dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle20.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
+ dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.heightsGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle20;
this.heightsGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle7.Font = new System.Drawing.Font("Tahoma", 8.25F);
- dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle7.Format = "D2";
- dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.heightsGridView.DefaultCellStyle = dataGridViewCellStyle7;
+ dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle21.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle21.Font = new System.Drawing.Font("Tahoma", 8.25F);
+ dataGridViewCellStyle21.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle21.Format = "D2";
+ dataGridViewCellStyle21.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle21.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.heightsGridView.DefaultCellStyle = dataGridViewCellStyle21;
this.heightsGridView.Location = new System.Drawing.Point(0, 0);
this.heightsGridView.MultiSelect = false;
this.heightsGridView.Name = "heightsGridView";
- dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
- dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.heightsGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle8;
+ dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle22.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
+ dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.heightsGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle22;
this.heightsGridView.RowHeadersWidth = 50;
this.heightsGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle9.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.heightsGridView.RowsDefaultCellStyle = dataGridViewCellStyle9;
+ dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle23.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.heightsGridView.RowsDefaultCellStyle = dataGridViewCellStyle23;
this.heightsGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.heightsGridView.RowTemplate.Height = 18;
this.heightsGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -2838,43 +2664,43 @@
this.mapFilesGridView.AllowUserToDeleteRows = false;
this.mapFilesGridView.AllowUserToResizeColumns = false;
this.mapFilesGridView.AllowUserToResizeRows = false;
- dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- this.mapFilesGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
+ dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ this.mapFilesGridView.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle24;
this.mapFilesGridView.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None;
- dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
- dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.mapFilesGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
+ dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle25.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
+ dataGridViewCellStyle25.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle25.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle25.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle25.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.mapFilesGridView.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle25;
this.mapFilesGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle12.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle12.Format = "D4";
- dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.mapFilesGridView.DefaultCellStyle = dataGridViewCellStyle12;
+ dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle26.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle26.Format = "D4";
+ dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.mapFilesGridView.DefaultCellStyle = dataGridViewCellStyle26;
this.mapFilesGridView.Location = new System.Drawing.Point(0, 0);
this.mapFilesGridView.MultiSelect = false;
this.mapFilesGridView.Name = "mapFilesGridView";
- dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle13.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
- dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.mapFilesGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle13;
+ dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle27.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F);
+ dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.mapFilesGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle27;
this.mapFilesGridView.RowHeadersWidth = 50;
this.mapFilesGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
- dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
- dataGridViewCellStyle14.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.mapFilesGridView.RowsDefaultCellStyle = dataGridViewCellStyle14;
+ dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+ dataGridViewCellStyle28.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.mapFilesGridView.RowsDefaultCellStyle = dataGridViewCellStyle28;
this.mapFilesGridView.RowTemplate.DefaultCellStyle.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
this.mapFilesGridView.RowTemplate.Height = 18;
this.mapFilesGridView.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False;
@@ -6996,14 +6822,9 @@
//
// trainerEditorTabPage
//
- this.trainerEditorTabPage.Controls.Add(this.tableLayoutPanel4);
- this.trainerEditorTabPage.Controls.Add(this.groupBox28);
- this.trainerEditorTabPage.Controls.Add(this.groupBox27);
- this.trainerEditorTabPage.Controls.Add(this.deleteTrainerButton);
- this.trainerEditorTabPage.Controls.Add(this.groupBox25);
- this.trainerEditorTabPage.Controls.Add(this.addTrainerButton);
- this.trainerEditorTabPage.Controls.Add(this.label42);
- this.trainerEditorTabPage.Controls.Add(this.trainerSaveCurrentButton);
+ this.trainerEditorTabPage.Controls.Add(this.trainerEditorPoppedOutLabel);
+ this.trainerEditorTabPage.Controls.Add(this.popoutTrainerEditorButton);
+ this.trainerEditorTabPage.Controls.Add(this.trainerEditor);
this.trainerEditorTabPage.ImageIndex = 8;
this.trainerEditorTabPage.Location = new System.Drawing.Point(4, 23);
this.trainerEditorTabPage.Name = "trainerEditorTabPage";
@@ -7012,1486 +6833,13 @@
this.trainerEditorTabPage.Text = "Trainer Editor";
this.trainerEditorTabPage.UseVisualStyleBackColor = true;
//
- // tableLayoutPanel4
+ // trainerEditor
//
- this.tableLayoutPanel4.ColumnCount = 1;
- this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 47.0167F));
- this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel4.Controls.Add(this.exportTrainerButton, 0, 0);
- this.tableLayoutPanel4.Controls.Add(this.importTrainerButton, 0, 1);
- this.tableLayoutPanel4.Location = new System.Drawing.Point(219, 15);
- this.tableLayoutPanel4.Name = "tableLayoutPanel4";
- this.tableLayoutPanel4.RowCount = 2;
- this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel4.Size = new System.Drawing.Size(108, 62);
- this.tableLayoutPanel4.TabIndex = 47;
- //
- // exportTrainerButton
- //
- this.exportTrainerButton.Dock = System.Windows.Forms.DockStyle.Fill;
- this.exportTrainerButton.Image = global::DSPRE.Properties.Resources.exportArrow;
- this.exportTrainerButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.exportTrainerButton.Location = new System.Drawing.Point(2, 2);
- this.exportTrainerButton.Margin = new System.Windows.Forms.Padding(2);
- this.exportTrainerButton.Name = "exportTrainerButton";
- this.exportTrainerButton.Size = new System.Drawing.Size(104, 27);
- this.exportTrainerButton.TabIndex = 42;
- this.exportTrainerButton.Text = "Export Full";
- this.exportTrainerButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.exportTrainerButton.UseVisualStyleBackColor = true;
- this.exportTrainerButton.Click += new System.EventHandler(this.exportTrainerButton_Click);
- //
- // importTrainerButton
- //
- this.importTrainerButton.Dock = System.Windows.Forms.DockStyle.Fill;
- this.importTrainerButton.Image = global::DSPRE.Properties.Resources.importArrow;
- this.importTrainerButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.importTrainerButton.Location = new System.Drawing.Point(3, 34);
- this.importTrainerButton.Name = "importTrainerButton";
- this.importTrainerButton.Size = new System.Drawing.Size(102, 25);
- this.importTrainerButton.TabIndex = 43;
- this.importTrainerButton.Text = "Replace Full";
- this.importTrainerButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.importTrainerButton.UseVisualStyleBackColor = true;
- this.importTrainerButton.Click += new System.EventHandler(this.importTrainerButton_Click);
- //
- // groupBox28
- //
- this.groupBox28.Controls.Add(this.tableLayoutPanel6);
- this.groupBox28.Controls.Add(this.DVExplainButton);
- this.groupBox28.Controls.Add(this.label74);
- this.groupBox28.Controls.Add(this.party6GroupBox);
- this.groupBox28.Controls.Add(this.party5GroupBox);
- this.groupBox28.Controls.Add(this.party4GroupBox);
- this.groupBox28.Controls.Add(this.party3GroupBox);
- this.groupBox28.Controls.Add(this.party2GroupBox);
- this.groupBox28.Controls.Add(this.party1GroupBox);
- this.groupBox28.Location = new System.Drawing.Point(439, 3);
- this.groupBox28.Name = "groupBox28";
- this.groupBox28.Size = new System.Drawing.Size(731, 609);
- this.groupBox28.TabIndex = 32;
- this.groupBox28.TabStop = false;
- this.groupBox28.Text = "Party";
- //
- // tableLayoutPanel6
- //
- this.tableLayoutPanel6.ColumnCount = 2;
- this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50.00001F));
- this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel6.Controls.Add(this.importReplacePartyButton, 1, 0);
- this.tableLayoutPanel6.Controls.Add(this.exportPartyButton, 0, 0);
- this.tableLayoutPanel6.Location = new System.Drawing.Point(471, 10);
- this.tableLayoutPanel6.Name = "tableLayoutPanel6";
- this.tableLayoutPanel6.RowCount = 1;
- this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.tableLayoutPanel6.Size = new System.Drawing.Size(237, 29);
- this.tableLayoutPanel6.TabIndex = 48;
- //
- // importReplacePartyButton
- //
- this.importReplacePartyButton.Dock = System.Windows.Forms.DockStyle.Fill;
- this.importReplacePartyButton.Image = ((System.Drawing.Image)(resources.GetObject("importReplacePartyButton.Image")));
- this.importReplacePartyButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.importReplacePartyButton.Location = new System.Drawing.Point(121, 3);
- this.importReplacePartyButton.Name = "importReplacePartyButton";
- this.importReplacePartyButton.Size = new System.Drawing.Size(113, 23);
- this.importReplacePartyButton.TabIndex = 41;
- this.importReplacePartyButton.Text = "Replace Party";
- this.importReplacePartyButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.importReplacePartyButton.UseVisualStyleBackColor = true;
- this.importReplacePartyButton.Click += new System.EventHandler(this.importReplacePartyButton_Click);
- //
- // exportPartyButton
- //
- this.exportPartyButton.Dock = System.Windows.Forms.DockStyle.Fill;
- this.exportPartyButton.Image = ((System.Drawing.Image)(resources.GetObject("exportPartyButton.Image")));
- this.exportPartyButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.exportPartyButton.Location = new System.Drawing.Point(3, 3);
- this.exportPartyButton.Name = "exportPartyButton";
- this.exportPartyButton.Size = new System.Drawing.Size(112, 23);
- this.exportPartyButton.TabIndex = 38;
- this.exportPartyButton.Text = "Export Party";
- this.exportPartyButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.exportPartyButton.UseVisualStyleBackColor = true;
- this.exportPartyButton.Click += new System.EventHandler(this.exportPartyButton_Click);
- //
- // DVExplainButton
- //
- this.DVExplainButton.Image = ((System.Drawing.Image)(resources.GetObject("DVExplainButton.Image")));
- this.DVExplainButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.DVExplainButton.Location = new System.Drawing.Point(220, 11);
- this.DVExplainButton.Name = "DVExplainButton";
- this.DVExplainButton.Size = new System.Drawing.Size(140, 29);
- this.DVExplainButton.TabIndex = 45;
- this.DVExplainButton.Text = "Open DV Calculator";
- this.DVExplainButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.DVExplainButton.UseVisualStyleBackColor = true;
- this.DVExplainButton.Click += new System.EventHandler(this.DVExplainButton_Click);
- //
- // label74
- //
- this.label74.AutoSize = true;
- this.label74.Location = new System.Drawing.Point(247, 16);
- this.label74.Name = "label74";
- this.label74.Size = new System.Drawing.Size(0, 13);
- this.label74.TabIndex = 46;
- //
- // party6GroupBox
- //
- this.party6GroupBox.Controls.Add(this.partyForm6ComboBox);
- this.party6GroupBox.Controls.Add(this.partyAbility6ComboBox);
- this.party6GroupBox.Controls.Add(this.partyGender6ComboBox);
- this.party6GroupBox.Controls.Add(this.partyPokemonItemPictureBox6);
- this.party6GroupBox.Controls.Add(this.label60);
- this.party6GroupBox.Controls.Add(this.label61);
- this.party6GroupBox.Controls.Add(this.label62);
- this.party6GroupBox.Controls.Add(this.poke6MovesGroupBox);
- this.party6GroupBox.Controls.Add(this.partyIV6UpDown);
- this.party6GroupBox.Controls.Add(this.partyLevel6UpDown);
- this.party6GroupBox.Controls.Add(this.partyBall6UpDown);
- this.party6GroupBox.Controls.Add(this.partyPokemon6PictureBox);
- this.party6GroupBox.Enabled = false;
- this.party6GroupBox.Location = new System.Drawing.Point(371, 408);
- this.party6GroupBox.Name = "party6GroupBox";
- this.party6GroupBox.Size = new System.Drawing.Size(343, 183);
- this.party6GroupBox.TabIndex = 13;
- this.party6GroupBox.TabStop = false;
- this.party6GroupBox.Text = "Pokemon 6";
- //
- // partyForm6ComboBox
- //
- this.partyForm6ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyForm6ComboBox.FormattingEnabled = true;
- this.partyForm6ComboBox.Items.AddRange(new object[] {
- "Defense form"});
- this.partyForm6ComboBox.Location = new System.Drawing.Point(228, 151);
- this.partyForm6ComboBox.Name = "partyForm6ComboBox";
- this.partyForm6ComboBox.Size = new System.Drawing.Size(103, 21);
- this.partyForm6ComboBox.TabIndex = 20;
- //
- // partyAbility6ComboBox
- //
- this.partyAbility6ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyAbility6ComboBox.FormattingEnabled = true;
- this.partyAbility6ComboBox.Location = new System.Drawing.Point(15, 151);
- this.partyAbility6ComboBox.Name = "partyAbility6ComboBox";
- this.partyAbility6ComboBox.Size = new System.Drawing.Size(105, 21);
- this.partyAbility6ComboBox.TabIndex = 19;
- //
- // partyGender6ComboBox
- //
- this.partyGender6ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyGender6ComboBox.FormattingEnabled = true;
- this.partyGender6ComboBox.Location = new System.Drawing.Point(126, 151);
- this.partyGender6ComboBox.Name = "partyGender6ComboBox";
- this.partyGender6ComboBox.Size = new System.Drawing.Size(95, 21);
- this.partyGender6ComboBox.TabIndex = 15;
- //
- // partyPokemonItemPictureBox6
- //
- this.partyPokemonItemPictureBox6.Image = global::DSPRE.Properties.Resources.IconItem;
- this.partyPokemonItemPictureBox6.Location = new System.Drawing.Point(198, 26);
- this.partyPokemonItemPictureBox6.Name = "partyPokemonItemPictureBox6";
- this.partyPokemonItemPictureBox6.Size = new System.Drawing.Size(24, 25);
- this.partyPokemonItemPictureBox6.TabIndex = 13;
- this.partyPokemonItemPictureBox6.TabStop = false;
- this.partyPokemonItemPictureBox6.Visible = false;
- //
- // label60
- //
- this.label60.AutoSize = true;
- this.label60.Location = new System.Drawing.Point(12, 118);
- this.label60.Name = "label60";
- this.label60.Size = new System.Drawing.Size(28, 26);
- this.label60.TabIndex = 9;
- this.label60.Text = "Ball\r\nSeal";
- //
- // label61
- //
- this.label61.AutoSize = true;
- this.label61.Location = new System.Drawing.Point(12, 94);
- this.label61.Name = "label61";
- this.label61.Size = new System.Drawing.Size(22, 13);
- this.label61.TabIndex = 8;
- this.label61.Text = "DV";
- //
- // label62
- //
- this.label62.AutoSize = true;
- this.label62.Location = new System.Drawing.Point(12, 67);
- this.label62.Name = "label62";
- this.label62.Size = new System.Drawing.Size(22, 13);
- this.label62.TabIndex = 7;
- this.label62.Text = "Lv.";
- //
- // poke6MovesGroupBox
- //
- this.poke6MovesGroupBox.Location = new System.Drawing.Point(110, 57);
- this.poke6MovesGroupBox.Name = "poke6MovesGroupBox";
- this.poke6MovesGroupBox.Size = new System.Drawing.Size(227, 85);
- this.poke6MovesGroupBox.TabIndex = 6;
- this.poke6MovesGroupBox.TabStop = false;
- this.poke6MovesGroupBox.Text = "Moves";
- //
- // partyIV6UpDown
- //
- this.partyIV6UpDown.Location = new System.Drawing.Point(48, 92);
- this.partyIV6UpDown.Maximum = new decimal(new int[] {
- 255,
- 0,
- 0,
- 0});
- this.partyIV6UpDown.Name = "partyIV6UpDown";
- this.partyIV6UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyIV6UpDown.TabIndex = 5;
- //
- // partyLevel6UpDown
- //
- this.partyLevel6UpDown.Location = new System.Drawing.Point(48, 63);
- this.partyLevel6UpDown.Minimum = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- this.partyLevel6UpDown.Name = "partyLevel6UpDown";
- this.partyLevel6UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyLevel6UpDown.TabIndex = 4;
- this.partyLevel6UpDown.Value = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- //
- // partyBall6UpDown
- //
- this.partyBall6UpDown.Location = new System.Drawing.Point(48, 121);
- this.partyBall6UpDown.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.partyBall6UpDown.Name = "partyBall6UpDown";
- this.partyBall6UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyBall6UpDown.TabIndex = 3;
- //
- // partyPokemon6PictureBox
- //
- this.partyPokemon6PictureBox.Location = new System.Drawing.Point(11, 23);
- this.partyPokemon6PictureBox.Name = "partyPokemon6PictureBox";
- this.partyPokemon6PictureBox.Size = new System.Drawing.Size(40, 30);
- this.partyPokemon6PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.partyPokemon6PictureBox.TabIndex = 1;
- this.partyPokemon6PictureBox.TabStop = false;
- //
- // party5GroupBox
- //
- this.party5GroupBox.Controls.Add(this.partyForm5ComboBox);
- this.party5GroupBox.Controls.Add(this.partyAbility5ComboBox);
- this.party5GroupBox.Controls.Add(this.partyGender5ComboBox);
- this.party5GroupBox.Controls.Add(this.partyPokemonItemPictureBox5);
- this.party5GroupBox.Controls.Add(this.label57);
- this.party5GroupBox.Controls.Add(this.label58);
- this.party5GroupBox.Controls.Add(this.label59);
- this.party5GroupBox.Controls.Add(this.poke5MovesGroupBox);
- this.party5GroupBox.Controls.Add(this.partyIV5UpDown);
- this.party5GroupBox.Controls.Add(this.partyLevel5UpDown);
- this.party5GroupBox.Controls.Add(this.partyBall5UpDown);
- this.party5GroupBox.Controls.Add(this.partyPokemon5PictureBox);
- this.party5GroupBox.Enabled = false;
- this.party5GroupBox.Location = new System.Drawing.Point(16, 408);
- this.party5GroupBox.Name = "party5GroupBox";
- this.party5GroupBox.Size = new System.Drawing.Size(343, 183);
- this.party5GroupBox.TabIndex = 12;
- this.party5GroupBox.TabStop = false;
- this.party5GroupBox.Text = "Pokemon 5";
- //
- // partyForm5ComboBox
- //
- this.partyForm5ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyForm5ComboBox.FormattingEnabled = true;
- this.partyForm5ComboBox.Items.AddRange(new object[] {
- "Defense form"});
- this.partyForm5ComboBox.Location = new System.Drawing.Point(228, 151);
- this.partyForm5ComboBox.Name = "partyForm5ComboBox";
- this.partyForm5ComboBox.Size = new System.Drawing.Size(103, 21);
- this.partyForm5ComboBox.TabIndex = 19;
- //
- // partyAbility5ComboBox
- //
- this.partyAbility5ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyAbility5ComboBox.FormattingEnabled = true;
- this.partyAbility5ComboBox.Location = new System.Drawing.Point(15, 151);
- this.partyAbility5ComboBox.Name = "partyAbility5ComboBox";
- this.partyAbility5ComboBox.Size = new System.Drawing.Size(105, 21);
- this.partyAbility5ComboBox.TabIndex = 18;
- //
- // partyGender5ComboBox
- //
- this.partyGender5ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyGender5ComboBox.FormattingEnabled = true;
- this.partyGender5ComboBox.Location = new System.Drawing.Point(126, 151);
- this.partyGender5ComboBox.Name = "partyGender5ComboBox";
- this.partyGender5ComboBox.Size = new System.Drawing.Size(95, 21);
- this.partyGender5ComboBox.TabIndex = 14;
- //
- // partyPokemonItemPictureBox5
- //
- this.partyPokemonItemPictureBox5.Image = global::DSPRE.Properties.Resources.IconItem;
- this.partyPokemonItemPictureBox5.Location = new System.Drawing.Point(198, 26);
- this.partyPokemonItemPictureBox5.Name = "partyPokemonItemPictureBox5";
- this.partyPokemonItemPictureBox5.Size = new System.Drawing.Size(24, 25);
- this.partyPokemonItemPictureBox5.TabIndex = 12;
- this.partyPokemonItemPictureBox5.TabStop = false;
- this.partyPokemonItemPictureBox5.Visible = false;
- //
- // label57
- //
- this.label57.AutoSize = true;
- this.label57.Location = new System.Drawing.Point(12, 118);
- this.label57.Name = "label57";
- this.label57.Size = new System.Drawing.Size(28, 26);
- this.label57.TabIndex = 9;
- this.label57.Text = "Ball\r\nSeal";
- //
- // label58
- //
- this.label58.AutoSize = true;
- this.label58.Location = new System.Drawing.Point(12, 94);
- this.label58.Name = "label58";
- this.label58.Size = new System.Drawing.Size(22, 13);
- this.label58.TabIndex = 8;
- this.label58.Text = "DV";
- //
- // label59
- //
- this.label59.AutoSize = true;
- this.label59.Location = new System.Drawing.Point(12, 67);
- this.label59.Name = "label59";
- this.label59.Size = new System.Drawing.Size(22, 13);
- this.label59.TabIndex = 7;
- this.label59.Text = "Lv.";
- //
- // poke5MovesGroupBox
- //
- this.poke5MovesGroupBox.Location = new System.Drawing.Point(110, 57);
- this.poke5MovesGroupBox.Name = "poke5MovesGroupBox";
- this.poke5MovesGroupBox.Size = new System.Drawing.Size(227, 85);
- this.poke5MovesGroupBox.TabIndex = 6;
- this.poke5MovesGroupBox.TabStop = false;
- this.poke5MovesGroupBox.Text = "Moves";
- //
- // partyIV5UpDown
- //
- this.partyIV5UpDown.Location = new System.Drawing.Point(48, 92);
- this.partyIV5UpDown.Maximum = new decimal(new int[] {
- 255,
- 0,
- 0,
- 0});
- this.partyIV5UpDown.Name = "partyIV5UpDown";
- this.partyIV5UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyIV5UpDown.TabIndex = 5;
- //
- // partyLevel5UpDown
- //
- this.partyLevel5UpDown.Location = new System.Drawing.Point(48, 63);
- this.partyLevel5UpDown.Minimum = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- this.partyLevel5UpDown.Name = "partyLevel5UpDown";
- this.partyLevel5UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyLevel5UpDown.TabIndex = 4;
- this.partyLevel5UpDown.Value = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- //
- // partyBall5UpDown
- //
- this.partyBall5UpDown.Location = new System.Drawing.Point(48, 121);
- this.partyBall5UpDown.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.partyBall5UpDown.Name = "partyBall5UpDown";
- this.partyBall5UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyBall5UpDown.TabIndex = 3;
- //
- // partyPokemon5PictureBox
- //
- this.partyPokemon5PictureBox.Location = new System.Drawing.Point(11, 23);
- this.partyPokemon5PictureBox.Name = "partyPokemon5PictureBox";
- this.partyPokemon5PictureBox.Size = new System.Drawing.Size(40, 30);
- this.partyPokemon5PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.partyPokemon5PictureBox.TabIndex = 1;
- this.partyPokemon5PictureBox.TabStop = false;
- //
- // party4GroupBox
- //
- this.party4GroupBox.Controls.Add(this.partyForm4ComboBox);
- this.party4GroupBox.Controls.Add(this.partyAbility4ComboBox);
- this.party4GroupBox.Controls.Add(this.partyGender4ComboBox);
- this.party4GroupBox.Controls.Add(this.partyPokemonItemPictureBox4);
- this.party4GroupBox.Controls.Add(this.label54);
- this.party4GroupBox.Controls.Add(this.label55);
- this.party4GroupBox.Controls.Add(this.label56);
- this.party4GroupBox.Controls.Add(this.poke4MovesGroupBox);
- this.party4GroupBox.Controls.Add(this.partyIV4UpDown);
- this.party4GroupBox.Controls.Add(this.partyLevel4UpDown);
- this.party4GroupBox.Controls.Add(this.partyBall4UpDown);
- this.party4GroupBox.Controls.Add(this.partyPokemon4PictureBox);
- this.party4GroupBox.Enabled = false;
- this.party4GroupBox.Location = new System.Drawing.Point(371, 223);
- this.party4GroupBox.Name = "party4GroupBox";
- this.party4GroupBox.Size = new System.Drawing.Size(343, 183);
- this.party4GroupBox.TabIndex = 11;
- this.party4GroupBox.TabStop = false;
- this.party4GroupBox.Text = "Pokemon 4";
- //
- // partyForm4ComboBox
- //
- this.partyForm4ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyForm4ComboBox.FormattingEnabled = true;
- this.partyForm4ComboBox.Items.AddRange(new object[] {
- "Defense form"});
- this.partyForm4ComboBox.Location = new System.Drawing.Point(228, 151);
- this.partyForm4ComboBox.Name = "partyForm4ComboBox";
- this.partyForm4ComboBox.Size = new System.Drawing.Size(103, 21);
- this.partyForm4ComboBox.TabIndex = 18;
- //
- // partyAbility4ComboBox
- //
- this.partyAbility4ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyAbility4ComboBox.FormattingEnabled = true;
- this.partyAbility4ComboBox.Location = new System.Drawing.Point(15, 151);
- this.partyAbility4ComboBox.Name = "partyAbility4ComboBox";
- this.partyAbility4ComboBox.Size = new System.Drawing.Size(105, 21);
- this.partyAbility4ComboBox.TabIndex = 17;
- //
- // partyGender4ComboBox
- //
- this.partyGender4ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyGender4ComboBox.FormattingEnabled = true;
- this.partyGender4ComboBox.Location = new System.Drawing.Point(126, 151);
- this.partyGender4ComboBox.Name = "partyGender4ComboBox";
- this.partyGender4ComboBox.Size = new System.Drawing.Size(95, 21);
- this.partyGender4ComboBox.TabIndex = 16;
- //
- // partyPokemonItemPictureBox4
- //
- this.partyPokemonItemPictureBox4.Image = global::DSPRE.Properties.Resources.IconItem;
- this.partyPokemonItemPictureBox4.Location = new System.Drawing.Point(198, 26);
- this.partyPokemonItemPictureBox4.Name = "partyPokemonItemPictureBox4";
- this.partyPokemonItemPictureBox4.Size = new System.Drawing.Size(24, 25);
- this.partyPokemonItemPictureBox4.TabIndex = 14;
- this.partyPokemonItemPictureBox4.TabStop = false;
- this.partyPokemonItemPictureBox4.Visible = false;
- //
- // label54
- //
- this.label54.AutoSize = true;
- this.label54.Location = new System.Drawing.Point(12, 118);
- this.label54.Name = "label54";
- this.label54.Size = new System.Drawing.Size(28, 26);
- this.label54.TabIndex = 9;
- this.label54.Text = "Ball\r\nSeal";
- //
- // label55
- //
- this.label55.AutoSize = true;
- this.label55.Location = new System.Drawing.Point(12, 94);
- this.label55.Name = "label55";
- this.label55.Size = new System.Drawing.Size(22, 13);
- this.label55.TabIndex = 8;
- this.label55.Text = "DV";
- //
- // label56
- //
- this.label56.AutoSize = true;
- this.label56.Location = new System.Drawing.Point(12, 67);
- this.label56.Name = "label56";
- this.label56.Size = new System.Drawing.Size(22, 13);
- this.label56.TabIndex = 7;
- this.label56.Text = "Lv.";
- //
- // poke4MovesGroupBox
- //
- this.poke4MovesGroupBox.Location = new System.Drawing.Point(110, 57);
- this.poke4MovesGroupBox.Name = "poke4MovesGroupBox";
- this.poke4MovesGroupBox.Size = new System.Drawing.Size(227, 85);
- this.poke4MovesGroupBox.TabIndex = 6;
- this.poke4MovesGroupBox.TabStop = false;
- this.poke4MovesGroupBox.Text = "Moves";
- //
- // partyIV4UpDown
- //
- this.partyIV4UpDown.Location = new System.Drawing.Point(48, 92);
- this.partyIV4UpDown.Maximum = new decimal(new int[] {
- 255,
- 0,
- 0,
- 0});
- this.partyIV4UpDown.Name = "partyIV4UpDown";
- this.partyIV4UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyIV4UpDown.TabIndex = 5;
- //
- // partyLevel4UpDown
- //
- this.partyLevel4UpDown.Location = new System.Drawing.Point(48, 63);
- this.partyLevel4UpDown.Minimum = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- this.partyLevel4UpDown.Name = "partyLevel4UpDown";
- this.partyLevel4UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyLevel4UpDown.TabIndex = 4;
- this.partyLevel4UpDown.Value = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- //
- // partyBall4UpDown
- //
- this.partyBall4UpDown.Location = new System.Drawing.Point(48, 121);
- this.partyBall4UpDown.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.partyBall4UpDown.Name = "partyBall4UpDown";
- this.partyBall4UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyBall4UpDown.TabIndex = 3;
- //
- // partyPokemon4PictureBox
- //
- this.partyPokemon4PictureBox.Location = new System.Drawing.Point(11, 23);
- this.partyPokemon4PictureBox.Name = "partyPokemon4PictureBox";
- this.partyPokemon4PictureBox.Size = new System.Drawing.Size(40, 30);
- this.partyPokemon4PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.partyPokemon4PictureBox.TabIndex = 1;
- this.partyPokemon4PictureBox.TabStop = false;
- //
- // party3GroupBox
- //
- this.party3GroupBox.Controls.Add(this.partyForm3ComboBox);
- this.party3GroupBox.Controls.Add(this.partyAbility3ComboBox);
- this.party3GroupBox.Controls.Add(this.partyGender3ComboBox);
- this.party3GroupBox.Controls.Add(this.partyPokemonItemPictureBox3);
- this.party3GroupBox.Controls.Add(this.label51);
- this.party3GroupBox.Controls.Add(this.label52);
- this.party3GroupBox.Controls.Add(this.label53);
- this.party3GroupBox.Controls.Add(this.poke3MovesGroupBox);
- this.party3GroupBox.Controls.Add(this.partyIV3UpDown);
- this.party3GroupBox.Controls.Add(this.partyLevel3UpDown);
- this.party3GroupBox.Controls.Add(this.partyBall3UpDown);
- this.party3GroupBox.Controls.Add(this.partyPokemon3PictureBox);
- this.party3GroupBox.Enabled = false;
- this.party3GroupBox.Location = new System.Drawing.Point(16, 223);
- this.party3GroupBox.Name = "party3GroupBox";
- this.party3GroupBox.Size = new System.Drawing.Size(343, 183);
- this.party3GroupBox.TabIndex = 10;
- this.party3GroupBox.TabStop = false;
- this.party3GroupBox.Text = "Pokemon 3";
- //
- // partyForm3ComboBox
- //
- this.partyForm3ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyForm3ComboBox.FormattingEnabled = true;
- this.partyForm3ComboBox.Items.AddRange(new object[] {
- "Defense form"});
- this.partyForm3ComboBox.Location = new System.Drawing.Point(228, 151);
- this.partyForm3ComboBox.Name = "partyForm3ComboBox";
- this.partyForm3ComboBox.Size = new System.Drawing.Size(103, 21);
- this.partyForm3ComboBox.TabIndex = 15;
- //
- // partyAbility3ComboBox
- //
- this.partyAbility3ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyAbility3ComboBox.FormattingEnabled = true;
- this.partyAbility3ComboBox.Location = new System.Drawing.Point(15, 151);
- this.partyAbility3ComboBox.Name = "partyAbility3ComboBox";
- this.partyAbility3ComboBox.Size = new System.Drawing.Size(105, 21);
- this.partyAbility3ComboBox.TabIndex = 14;
- //
- // partyGender3ComboBox
- //
- this.partyGender3ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyGender3ComboBox.FormattingEnabled = true;
- this.partyGender3ComboBox.Location = new System.Drawing.Point(126, 151);
- this.partyGender3ComboBox.Name = "partyGender3ComboBox";
- this.partyGender3ComboBox.Size = new System.Drawing.Size(95, 21);
- this.partyGender3ComboBox.TabIndex = 13;
- //
- // partyPokemonItemPictureBox3
- //
- this.partyPokemonItemPictureBox3.Image = global::DSPRE.Properties.Resources.IconItem;
- this.partyPokemonItemPictureBox3.Location = new System.Drawing.Point(198, 26);
- this.partyPokemonItemPictureBox3.Name = "partyPokemonItemPictureBox3";
- this.partyPokemonItemPictureBox3.Size = new System.Drawing.Size(24, 25);
- this.partyPokemonItemPictureBox3.TabIndex = 11;
- this.partyPokemonItemPictureBox3.TabStop = false;
- this.partyPokemonItemPictureBox3.Visible = false;
- //
- // label51
- //
- this.label51.AutoSize = true;
- this.label51.Location = new System.Drawing.Point(12, 118);
- this.label51.Name = "label51";
- this.label51.Size = new System.Drawing.Size(28, 26);
- this.label51.TabIndex = 9;
- this.label51.Text = "Ball\r\nSeal";
- //
- // label52
- //
- this.label52.AutoSize = true;
- this.label52.Location = new System.Drawing.Point(12, 94);
- this.label52.Name = "label52";
- this.label52.Size = new System.Drawing.Size(22, 13);
- this.label52.TabIndex = 8;
- this.label52.Text = "DV";
- //
- // label53
- //
- this.label53.AutoSize = true;
- this.label53.Location = new System.Drawing.Point(12, 67);
- this.label53.Name = "label53";
- this.label53.Size = new System.Drawing.Size(22, 13);
- this.label53.TabIndex = 7;
- this.label53.Text = "Lv.";
- //
- // poke3MovesGroupBox
- //
- this.poke3MovesGroupBox.Location = new System.Drawing.Point(110, 57);
- this.poke3MovesGroupBox.Name = "poke3MovesGroupBox";
- this.poke3MovesGroupBox.Size = new System.Drawing.Size(227, 85);
- this.poke3MovesGroupBox.TabIndex = 6;
- this.poke3MovesGroupBox.TabStop = false;
- this.poke3MovesGroupBox.Text = "Moves";
- //
- // partyIV3UpDown
- //
- this.partyIV3UpDown.Location = new System.Drawing.Point(48, 92);
- this.partyIV3UpDown.Maximum = new decimal(new int[] {
- 255,
- 0,
- 0,
- 0});
- this.partyIV3UpDown.Name = "partyIV3UpDown";
- this.partyIV3UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyIV3UpDown.TabIndex = 5;
- //
- // partyLevel3UpDown
- //
- this.partyLevel3UpDown.Location = new System.Drawing.Point(48, 63);
- this.partyLevel3UpDown.Minimum = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- this.partyLevel3UpDown.Name = "partyLevel3UpDown";
- this.partyLevel3UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyLevel3UpDown.TabIndex = 4;
- this.partyLevel3UpDown.Value = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- //
- // partyBall3UpDown
- //
- this.partyBall3UpDown.Location = new System.Drawing.Point(48, 121);
- this.partyBall3UpDown.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.partyBall3UpDown.Name = "partyBall3UpDown";
- this.partyBall3UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyBall3UpDown.TabIndex = 3;
- //
- // partyPokemon3PictureBox
- //
- this.partyPokemon3PictureBox.Location = new System.Drawing.Point(11, 23);
- this.partyPokemon3PictureBox.Name = "partyPokemon3PictureBox";
- this.partyPokemon3PictureBox.Size = new System.Drawing.Size(40, 30);
- this.partyPokemon3PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.partyPokemon3PictureBox.TabIndex = 1;
- this.partyPokemon3PictureBox.TabStop = false;
- //
- // party2GroupBox
- //
- this.party2GroupBox.Controls.Add(this.partyForm2ComboBox);
- this.party2GroupBox.Controls.Add(this.partyAbility2ComboBox);
- this.party2GroupBox.Controls.Add(this.partyGender2ComboBox);
- this.party2GroupBox.Controls.Add(this.partyPokemonItemPictureBox2);
- this.party2GroupBox.Controls.Add(this.label48);
- this.party2GroupBox.Controls.Add(this.label49);
- this.party2GroupBox.Controls.Add(this.label50);
- this.party2GroupBox.Controls.Add(this.poke2MovesGroupBox);
- this.party2GroupBox.Controls.Add(this.partyIV2UpDown);
- this.party2GroupBox.Controls.Add(this.partyLevel2UpDown);
- this.party2GroupBox.Controls.Add(this.partyBall2UpDown);
- this.party2GroupBox.Controls.Add(this.partyPokemon2PictureBox);
- this.party2GroupBox.Enabled = false;
- this.party2GroupBox.Location = new System.Drawing.Point(371, 37);
- this.party2GroupBox.Name = "party2GroupBox";
- this.party2GroupBox.Size = new System.Drawing.Size(343, 183);
- this.party2GroupBox.TabIndex = 10;
- this.party2GroupBox.TabStop = false;
- this.party2GroupBox.Text = "Pokemon 2";
- //
- // partyForm2ComboBox
- //
- this.partyForm2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyForm2ComboBox.FormattingEnabled = true;
- this.partyForm2ComboBox.Items.AddRange(new object[] {
- "Defense form"});
- this.partyForm2ComboBox.Location = new System.Drawing.Point(228, 151);
- this.partyForm2ComboBox.Name = "partyForm2ComboBox";
- this.partyForm2ComboBox.Size = new System.Drawing.Size(103, 21);
- this.partyForm2ComboBox.TabIndex = 20;
- //
- // partyAbility2ComboBox
- //
- this.partyAbility2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyAbility2ComboBox.FormattingEnabled = true;
- this.partyAbility2ComboBox.Location = new System.Drawing.Point(15, 151);
- this.partyAbility2ComboBox.Name = "partyAbility2ComboBox";
- this.partyAbility2ComboBox.Size = new System.Drawing.Size(105, 21);
- this.partyAbility2ComboBox.TabIndex = 18;
- //
- // partyGender2ComboBox
- //
- this.partyGender2ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyGender2ComboBox.FormattingEnabled = true;
- this.partyGender2ComboBox.Location = new System.Drawing.Point(126, 151);
- this.partyGender2ComboBox.Name = "partyGender2ComboBox";
- this.partyGender2ComboBox.Size = new System.Drawing.Size(95, 21);
- this.partyGender2ComboBox.TabIndex = 17;
- //
- // partyPokemonItemPictureBox2
- //
- this.partyPokemonItemPictureBox2.Image = global::DSPRE.Properties.Resources.IconItem;
- this.partyPokemonItemPictureBox2.Location = new System.Drawing.Point(198, 26);
- this.partyPokemonItemPictureBox2.Name = "partyPokemonItemPictureBox2";
- this.partyPokemonItemPictureBox2.Size = new System.Drawing.Size(24, 25);
- this.partyPokemonItemPictureBox2.TabIndex = 15;
- this.partyPokemonItemPictureBox2.TabStop = false;
- this.partyPokemonItemPictureBox2.Visible = false;
- //
- // label48
- //
- this.label48.AutoSize = true;
- this.label48.Location = new System.Drawing.Point(12, 118);
- this.label48.Name = "label48";
- this.label48.Size = new System.Drawing.Size(28, 26);
- this.label48.TabIndex = 9;
- this.label48.Text = "Ball\r\nSeal";
- //
- // label49
- //
- this.label49.AutoSize = true;
- this.label49.Location = new System.Drawing.Point(12, 94);
- this.label49.Name = "label49";
- this.label49.Size = new System.Drawing.Size(22, 13);
- this.label49.TabIndex = 8;
- this.label49.Text = "DV";
- //
- // label50
- //
- this.label50.AutoSize = true;
- this.label50.Location = new System.Drawing.Point(12, 67);
- this.label50.Name = "label50";
- this.label50.Size = new System.Drawing.Size(22, 13);
- this.label50.TabIndex = 7;
- this.label50.Text = "Lv.";
- //
- // poke2MovesGroupBox
- //
- this.poke2MovesGroupBox.Location = new System.Drawing.Point(110, 57);
- this.poke2MovesGroupBox.Name = "poke2MovesGroupBox";
- this.poke2MovesGroupBox.Size = new System.Drawing.Size(227, 85);
- this.poke2MovesGroupBox.TabIndex = 6;
- this.poke2MovesGroupBox.TabStop = false;
- this.poke2MovesGroupBox.Text = "Moves";
- //
- // partyIV2UpDown
- //
- this.partyIV2UpDown.Location = new System.Drawing.Point(48, 92);
- this.partyIV2UpDown.Maximum = new decimal(new int[] {
- 255,
- 0,
- 0,
- 0});
- this.partyIV2UpDown.Name = "partyIV2UpDown";
- this.partyIV2UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyIV2UpDown.TabIndex = 5;
- //
- // partyLevel2UpDown
- //
- this.partyLevel2UpDown.Location = new System.Drawing.Point(48, 63);
- this.partyLevel2UpDown.Minimum = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- this.partyLevel2UpDown.Name = "partyLevel2UpDown";
- this.partyLevel2UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyLevel2UpDown.TabIndex = 4;
- this.partyLevel2UpDown.Value = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- //
- // partyBall2UpDown
- //
- this.partyBall2UpDown.Location = new System.Drawing.Point(48, 121);
- this.partyBall2UpDown.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.partyBall2UpDown.Name = "partyBall2UpDown";
- this.partyBall2UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyBall2UpDown.TabIndex = 3;
- //
- // partyPokemon2PictureBox
- //
- this.partyPokemon2PictureBox.Location = new System.Drawing.Point(11, 23);
- this.partyPokemon2PictureBox.Name = "partyPokemon2PictureBox";
- this.partyPokemon2PictureBox.Size = new System.Drawing.Size(40, 30);
- this.partyPokemon2PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.partyPokemon2PictureBox.TabIndex = 1;
- this.partyPokemon2PictureBox.TabStop = false;
- //
- // party1GroupBox
- //
- this.party1GroupBox.Controls.Add(this.partyForm1ComboBox);
- this.party1GroupBox.Controls.Add(this.partyAbility1ComboBox);
- this.party1GroupBox.Controls.Add(this.partyGender1ComboBox);
- this.party1GroupBox.Controls.Add(this.partyPokemonItemPictureBox1);
- this.party1GroupBox.Controls.Add(this.label47);
- this.party1GroupBox.Controls.Add(this.label46);
- this.party1GroupBox.Controls.Add(this.label45);
- this.party1GroupBox.Controls.Add(this.poke1MovesGroupBox);
- this.party1GroupBox.Controls.Add(this.partyIV1UpDown);
- this.party1GroupBox.Controls.Add(this.partyLevel1UpDown);
- this.party1GroupBox.Controls.Add(this.partyBall1UpDown);
- this.party1GroupBox.Controls.Add(this.partyPokemon1PictureBox);
- this.party1GroupBox.Enabled = false;
- this.party1GroupBox.Location = new System.Drawing.Point(16, 37);
- this.party1GroupBox.Name = "party1GroupBox";
- this.party1GroupBox.Size = new System.Drawing.Size(343, 183);
- this.party1GroupBox.TabIndex = 0;
- this.party1GroupBox.TabStop = false;
- this.party1GroupBox.Text = "Pokemon 1";
- //
- // partyForm1ComboBox
- //
- this.partyForm1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyForm1ComboBox.FormattingEnabled = true;
- this.partyForm1ComboBox.Items.AddRange(new object[] {
- "Defense form"});
- this.partyForm1ComboBox.Location = new System.Drawing.Point(228, 151);
- this.partyForm1ComboBox.Name = "partyForm1ComboBox";
- this.partyForm1ComboBox.Size = new System.Drawing.Size(103, 21);
- this.partyForm1ComboBox.TabIndex = 14;
- //
- // partyAbility1ComboBox
- //
- this.partyAbility1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyAbility1ComboBox.FormattingEnabled = true;
- this.partyAbility1ComboBox.Location = new System.Drawing.Point(15, 151);
- this.partyAbility1ComboBox.Name = "partyAbility1ComboBox";
- this.partyAbility1ComboBox.Size = new System.Drawing.Size(105, 21);
- this.partyAbility1ComboBox.TabIndex = 13;
- //
- // partyGender1ComboBox
- //
- this.partyGender1ComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.partyGender1ComboBox.FormattingEnabled = true;
- this.partyGender1ComboBox.Location = new System.Drawing.Point(126, 151);
- this.partyGender1ComboBox.Name = "partyGender1ComboBox";
- this.partyGender1ComboBox.Size = new System.Drawing.Size(95, 21);
- this.partyGender1ComboBox.TabIndex = 12;
- //
- // partyPokemonItemPictureBox1
- //
- this.partyPokemonItemPictureBox1.Image = global::DSPRE.Properties.Resources.IconItem;
- this.partyPokemonItemPictureBox1.Location = new System.Drawing.Point(198, 26);
- this.partyPokemonItemPictureBox1.Name = "partyPokemonItemPictureBox1";
- this.partyPokemonItemPictureBox1.Size = new System.Drawing.Size(24, 25);
- this.partyPokemonItemPictureBox1.TabIndex = 10;
- this.partyPokemonItemPictureBox1.TabStop = false;
- this.partyPokemonItemPictureBox1.Visible = false;
- //
- // label47
- //
- this.label47.AutoSize = true;
- this.label47.Location = new System.Drawing.Point(12, 118);
- this.label47.Name = "label47";
- this.label47.Size = new System.Drawing.Size(28, 26);
- this.label47.TabIndex = 9;
- this.label47.Text = "Ball\r\nSeal";
- //
- // label46
- //
- this.label46.AutoSize = true;
- this.label46.Location = new System.Drawing.Point(12, 94);
- this.label46.Name = "label46";
- this.label46.Size = new System.Drawing.Size(22, 13);
- this.label46.TabIndex = 8;
- this.label46.Text = "DV";
- //
- // label45
- //
- this.label45.AutoSize = true;
- this.label45.Location = new System.Drawing.Point(12, 67);
- this.label45.Name = "label45";
- this.label45.Size = new System.Drawing.Size(22, 13);
- this.label45.TabIndex = 7;
- this.label45.Text = "Lv.";
- //
- // poke1MovesGroupBox
- //
- this.poke1MovesGroupBox.Location = new System.Drawing.Point(110, 57);
- this.poke1MovesGroupBox.Name = "poke1MovesGroupBox";
- this.poke1MovesGroupBox.Size = new System.Drawing.Size(227, 85);
- this.poke1MovesGroupBox.TabIndex = 6;
- this.poke1MovesGroupBox.TabStop = false;
- this.poke1MovesGroupBox.Text = "Moves";
- //
- // partyIV1UpDown
- //
- this.partyIV1UpDown.Location = new System.Drawing.Point(48, 92);
- this.partyIV1UpDown.Maximum = new decimal(new int[] {
- 255,
- 0,
- 0,
- 0});
- this.partyIV1UpDown.Name = "partyIV1UpDown";
- this.partyIV1UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyIV1UpDown.TabIndex = 5;
- //
- // partyLevel1UpDown
- //
- this.partyLevel1UpDown.Location = new System.Drawing.Point(48, 63);
- this.partyLevel1UpDown.Minimum = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- this.partyLevel1UpDown.Name = "partyLevel1UpDown";
- this.partyLevel1UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyLevel1UpDown.TabIndex = 4;
- this.partyLevel1UpDown.Value = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- //
- // partyBall1UpDown
- //
- this.partyBall1UpDown.Location = new System.Drawing.Point(48, 121);
- this.partyBall1UpDown.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.partyBall1UpDown.Name = "partyBall1UpDown";
- this.partyBall1UpDown.Size = new System.Drawing.Size(49, 20);
- this.partyBall1UpDown.TabIndex = 3;
- //
- // partyPokemon1PictureBox
- //
- this.partyPokemon1PictureBox.Location = new System.Drawing.Point(11, 23);
- this.partyPokemon1PictureBox.Name = "partyPokemon1PictureBox";
- this.partyPokemon1PictureBox.Size = new System.Drawing.Size(40, 30);
- this.partyPokemon1PictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.partyPokemon1PictureBox.TabIndex = 1;
- this.partyPokemon1PictureBox.TabStop = false;
- //
- // groupBox27
- //
- this.groupBox27.Controls.Add(this.eyeContactMusicAltLabel);
- this.groupBox27.Controls.Add(this.encounterSSEQAltUpDown);
- this.groupBox27.Controls.Add(this.eyeContactMusicLabel);
- this.groupBox27.Controls.Add(this.encounterSSEQMainUpDown);
- this.groupBox27.Controls.Add(this.trainerClassFrameMaxLabel);
- this.groupBox27.Controls.Add(this.label40);
- this.groupBox27.Controls.Add(this.trClassFramePreviewUpDown);
- this.groupBox27.Controls.Add(this.saveTrainerClassButton);
- this.groupBox27.Controls.Add(this.trainerClassNameTextbox);
- this.groupBox27.Controls.Add(this.label17);
- this.groupBox27.Controls.Add(this.trainerClassPicBox);
- this.groupBox27.Location = new System.Drawing.Point(15, 489);
- this.groupBox27.Name = "groupBox27";
- this.groupBox27.Size = new System.Drawing.Size(414, 123);
- this.groupBox27.TabIndex = 30;
- this.groupBox27.TabStop = false;
- this.groupBox27.Text = "Trainer Class Editor";
- //
- // eyeContactMusicAltLabel
- //
- this.eyeContactMusicAltLabel.AutoSize = true;
- this.eyeContactMusicAltLabel.Location = new System.Drawing.Point(286, 69);
- this.eyeContactMusicAltLabel.Name = "eyeContactMusicAltLabel";
- this.eyeContactMusicAltLabel.Size = new System.Drawing.Size(117, 13);
- this.eyeContactMusicAltLabel.TabIndex = 36;
- this.eyeContactMusicAltLabel.Text = "Eye Contact Music [Alt]";
- //
- // encounterSSEQAltUpDown
- //
- this.encounterSSEQAltUpDown.Enabled = false;
- this.encounterSSEQAltUpDown.Location = new System.Drawing.Point(290, 85);
- this.encounterSSEQAltUpDown.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.encounterSSEQAltUpDown.Name = "encounterSSEQAltUpDown";
- this.encounterSSEQAltUpDown.Size = new System.Drawing.Size(81, 20);
- this.encounterSSEQAltUpDown.TabIndex = 35;
- //
- // eyeContactMusicLabel
- //
- this.eyeContactMusicLabel.AutoSize = true;
- this.eyeContactMusicLabel.Location = new System.Drawing.Point(143, 69);
- this.eyeContactMusicLabel.Name = "eyeContactMusicLabel";
- this.eyeContactMusicLabel.Size = new System.Drawing.Size(128, 13);
- this.eyeContactMusicLabel.TabIndex = 34;
- this.eyeContactMusicLabel.Text = "Eye Contact Music [Main]";
- //
- // encounterSSEQMainUpDown
- //
- this.encounterSSEQMainUpDown.Location = new System.Drawing.Point(146, 85);
- this.encounterSSEQMainUpDown.Maximum = new decimal(new int[] {
- 65535,
- 0,
- 0,
- 0});
- this.encounterSSEQMainUpDown.Name = "encounterSSEQMainUpDown";
- this.encounterSSEQMainUpDown.Size = new System.Drawing.Size(81, 20);
- this.encounterSSEQMainUpDown.TabIndex = 33;
- //
- // trainerClassFrameMaxLabel
- //
- this.trainerClassFrameMaxLabel.AutoSize = true;
- this.trainerClassFrameMaxLabel.Location = new System.Drawing.Point(180, 33);
- this.trainerClassFrameMaxLabel.Name = "trainerClassFrameMaxLabel";
- this.trainerClassFrameMaxLabel.Size = new System.Drawing.Size(18, 13);
- this.trainerClassFrameMaxLabel.TabIndex = 32;
- this.trainerClassFrameMaxLabel.Text = "/0";
- //
- // label40
- //
- this.label40.AutoSize = true;
- this.label40.Location = new System.Drawing.Point(143, 14);
- this.label40.Name = "label40";
- this.label40.Size = new System.Drawing.Size(45, 13);
- this.label40.TabIndex = 31;
- this.label40.Text = "Preview";
- //
- // trClassFramePreviewUpDown
- //
- this.trClassFramePreviewUpDown.Location = new System.Drawing.Point(146, 30);
- this.trClassFramePreviewUpDown.Name = "trClassFramePreviewUpDown";
- this.trClassFramePreviewUpDown.Size = new System.Drawing.Size(34, 20);
- this.trClassFramePreviewUpDown.TabIndex = 30;
- this.trClassFramePreviewUpDown.ValueChanged += new System.EventHandler(this.trClassFramePreviewUpDown_ValueChanged);
- //
- // saveTrainerClassButton
- //
- this.saveTrainerClassButton.Image = global::DSPRE.Properties.Resources.save_rom;
- this.saveTrainerClassButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.saveTrainerClassButton.Location = new System.Drawing.Point(322, 15);
- this.saveTrainerClassButton.Name = "saveTrainerClassButton";
- this.saveTrainerClassButton.Size = new System.Drawing.Size(80, 45);
- this.saveTrainerClassButton.TabIndex = 29;
- this.saveTrainerClassButton.Text = "&Save\r\nClass";
- this.saveTrainerClassButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.saveTrainerClassButton.UseVisualStyleBackColor = true;
- this.saveTrainerClassButton.Click += new System.EventHandler(this.saveTrainerClassButton_Click);
- //
- // trainerClassNameTextbox
- //
- this.trainerClassNameTextbox.Location = new System.Drawing.Point(213, 29);
- this.trainerClassNameTextbox.Name = "trainerClassNameTextbox";
- this.trainerClassNameTextbox.Size = new System.Drawing.Size(99, 20);
- this.trainerClassNameTextbox.TabIndex = 24;
- //
- // label17
- //
- this.label17.AutoSize = true;
- this.label17.Location = new System.Drawing.Point(210, 13);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(63, 13);
- this.label17.TabIndex = 23;
- this.label17.Text = "Class Name";
- //
- // trainerClassPicBox
- //
- this.trainerClassPicBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.trainerClassPicBox.Location = new System.Drawing.Point(9, 17);
- this.trainerClassPicBox.Name = "trainerClassPicBox";
- this.trainerClassPicBox.Size = new System.Drawing.Size(128, 96);
- this.trainerClassPicBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
- this.trainerClassPicBox.TabIndex = 0;
- this.trainerClassPicBox.TabStop = false;
- //
- // deleteTrainerButton
- //
- this.deleteTrainerButton.Enabled = false;
- this.deleteTrainerButton.Image = global::DSPRE.Properties.Resources.deleteIcon;
- this.deleteTrainerButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.deleteTrainerButton.Location = new System.Drawing.Point(333, 50);
- this.deleteTrainerButton.Name = "deleteTrainerButton";
- this.deleteTrainerButton.Size = new System.Drawing.Size(100, 23);
- this.deleteTrainerButton.TabIndex = 44;
- this.deleteTrainerButton.Text = "Delete Trainer";
- this.deleteTrainerButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.deleteTrainerButton.UseVisualStyleBackColor = true;
- this.deleteTrainerButton.Visible = false;
- //
- // groupBox25
- //
- this.groupBox25.Controls.Add(this.tableLayoutPanel5);
- this.groupBox25.Controls.Add(this.TrainerAIGroupBox);
- this.groupBox25.Controls.Add(this.trainerItemsGroupBox);
- this.groupBox25.Controls.Add(this.trainerItemsCheckBox);
- this.groupBox25.Controls.Add(this.trainerMovesCheckBox);
- this.groupBox25.Controls.Add(this.trainerDoubleCheckBox);
- this.groupBox25.Controls.Add(this.trainerNameTextBox);
- this.groupBox25.Controls.Add(this.partyCountUpDown);
- this.groupBox25.Controls.Add(this.label44);
- this.groupBox25.Controls.Add(this.label63);
- this.groupBox25.Controls.Add(this.label43);
- this.groupBox25.Controls.Add(this.trainerClassListBox);
- this.groupBox25.Location = new System.Drawing.Point(15, 80);
- this.groupBox25.Name = "groupBox25";
- this.groupBox25.Size = new System.Drawing.Size(414, 405);
- this.groupBox25.TabIndex = 29;
- this.groupBox25.TabStop = false;
- this.groupBox25.Text = "Trainer Properties [TRP]";
- //
- // tableLayoutPanel5
- //
- this.tableLayoutPanel5.ColumnCount = 1;
- this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel5.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel5.Controls.Add(this.replacePropertiesButton, 0, 1);
- this.tableLayoutPanel5.Controls.Add(this.exportPropertiesButton, 0, 0);
- this.tableLayoutPanel5.Location = new System.Drawing.Point(288, 304);
- this.tableLayoutPanel5.Name = "tableLayoutPanel5";
- this.tableLayoutPanel5.RowCount = 2;
- this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel5.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel5.Size = new System.Drawing.Size(121, 62);
- this.tableLayoutPanel5.TabIndex = 48;
- //
- // replacePropertiesButton
- //
- this.replacePropertiesButton.Dock = System.Windows.Forms.DockStyle.Fill;
- this.replacePropertiesButton.Image = ((System.Drawing.Image)(resources.GetObject("replacePropertiesButton.Image")));
- this.replacePropertiesButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.replacePropertiesButton.Location = new System.Drawing.Point(3, 34);
- this.replacePropertiesButton.Name = "replacePropertiesButton";
- this.replacePropertiesButton.Size = new System.Drawing.Size(115, 25);
- this.replacePropertiesButton.TabIndex = 42;
- this.replacePropertiesButton.Text = "Replace TRP";
- this.replacePropertiesButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.replacePropertiesButton.UseVisualStyleBackColor = true;
- this.replacePropertiesButton.Click += new System.EventHandler(this.replacePropertiesButton_Click);
- //
- // exportPropertiesButton
- //
- this.exportPropertiesButton.Dock = System.Windows.Forms.DockStyle.Fill;
- this.exportPropertiesButton.Image = ((System.Drawing.Image)(resources.GetObject("exportPropertiesButton.Image")));
- this.exportPropertiesButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.exportPropertiesButton.Location = new System.Drawing.Point(3, 3);
- this.exportPropertiesButton.Name = "exportPropertiesButton";
- this.exportPropertiesButton.Size = new System.Drawing.Size(115, 25);
- this.exportPropertiesButton.TabIndex = 41;
- this.exportPropertiesButton.Text = "Export TRP";
- this.exportPropertiesButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.exportPropertiesButton.UseVisualStyleBackColor = true;
- this.exportPropertiesButton.Click += new System.EventHandler(this.exportPropertiesButton_Click);
- //
- // TrainerAIGroupBox
- //
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI1CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI2CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI3CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI4CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI5CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI6CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI7CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI8CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI9CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI10CheckBox);
- this.TrainerAIGroupBox.Controls.Add(this.trainerAI11CheckBox);
- this.TrainerAIGroupBox.Location = new System.Drawing.Point(9, 282);
- this.TrainerAIGroupBox.Name = "TrainerAIGroupBox";
- this.TrainerAIGroupBox.Size = new System.Drawing.Size(272, 116);
- this.TrainerAIGroupBox.TabIndex = 27;
- this.TrainerAIGroupBox.TabStop = false;
- this.TrainerAIGroupBox.Text = "AI";
- //
- // trainerAI1CheckBox
- //
- this.trainerAI1CheckBox.AutoSize = true;
- this.trainerAI1CheckBox.Location = new System.Drawing.Point(10, 21);
- this.trainerAI1CheckBox.Name = "trainerAI1CheckBox";
- this.trainerAI1CheckBox.Size = new System.Drawing.Size(52, 17);
- this.trainerAI1CheckBox.TabIndex = 0;
- this.trainerAI1CheckBox.Text = "Basic";
- this.trainerAI1CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI2CheckBox
- //
- this.trainerAI2CheckBox.AutoSize = true;
- this.trainerAI2CheckBox.Location = new System.Drawing.Point(80, 21);
- this.trainerAI2CheckBox.Name = "trainerAI2CheckBox";
- this.trainerAI2CheckBox.Size = new System.Drawing.Size(102, 17);
- this.trainerAI2CheckBox.TabIndex = 1;
- this.trainerAI2CheckBox.Text = "Evaluate Attack";
- this.trainerAI2CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI3CheckBox
- //
- this.trainerAI3CheckBox.AutoSize = true;
- this.trainerAI3CheckBox.Location = new System.Drawing.Point(10, 44);
- this.trainerAI3CheckBox.Name = "trainerAI3CheckBox";
- this.trainerAI3CheckBox.Size = new System.Drawing.Size(56, 17);
- this.trainerAI3CheckBox.TabIndex = 2;
- this.trainerAI3CheckBox.Text = "Expert";
- this.trainerAI3CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI4CheckBox
- //
- this.trainerAI4CheckBox.AutoSize = true;
- this.trainerAI4CheckBox.Location = new System.Drawing.Point(10, 90);
- this.trainerAI4CheckBox.Name = "trainerAI4CheckBox";
- this.trainerAI4CheckBox.Size = new System.Drawing.Size(56, 17);
- this.trainerAI4CheckBox.TabIndex = 3;
- this.trainerAI4CheckBox.Text = "Status";
- this.trainerAI4CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI5CheckBox
- //
- this.trainerAI5CheckBox.AutoSize = true;
- this.trainerAI5CheckBox.Location = new System.Drawing.Point(10, 67);
- this.trainerAI5CheckBox.Name = "trainerAI5CheckBox";
- this.trainerAI5CheckBox.Size = new System.Drawing.Size(47, 17);
- this.trainerAI5CheckBox.TabIndex = 4;
- this.trainerAI5CheckBox.Text = "Risk";
- this.trainerAI5CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI6CheckBox
- //
- this.trainerAI6CheckBox.AutoSize = true;
- this.trainerAI6CheckBox.Location = new System.Drawing.Point(80, 44);
- this.trainerAI6CheckBox.Name = "trainerAI6CheckBox";
- this.trainerAI6CheckBox.Size = new System.Drawing.Size(100, 17);
- this.trainerAI6CheckBox.TabIndex = 5;
- this.trainerAI6CheckBox.Text = "Damage Priority";
- this.trainerAI6CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI7CheckBox
- //
- this.trainerAI7CheckBox.AutoSize = true;
- this.trainerAI7CheckBox.Location = new System.Drawing.Point(80, 67);
- this.trainerAI7CheckBox.Name = "trainerAI7CheckBox";
- this.trainerAI7CheckBox.Size = new System.Drawing.Size(80, 17);
- this.trainerAI7CheckBox.TabIndex = 6;
- this.trainerAI7CheckBox.Text = "Baton Pass";
- this.trainerAI7CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI8CheckBox
- //
- this.trainerAI8CheckBox.AutoSize = true;
- this.trainerAI8CheckBox.Location = new System.Drawing.Point(80, 90);
- this.trainerAI8CheckBox.Name = "trainerAI8CheckBox";
- this.trainerAI8CheckBox.Size = new System.Drawing.Size(87, 17);
- this.trainerAI8CheckBox.TabIndex = 7;
- this.trainerAI8CheckBox.Text = "Tag Strategy";
- this.trainerAI8CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI9CheckBox
- //
- this.trainerAI9CheckBox.AutoSize = true;
- this.trainerAI9CheckBox.Location = new System.Drawing.Point(191, 21);
- this.trainerAI9CheckBox.Name = "trainerAI9CheckBox";
- this.trainerAI9CheckBox.Size = new System.Drawing.Size(75, 17);
- this.trainerAI9CheckBox.TabIndex = 8;
- this.trainerAI9CheckBox.Text = "Check HP";
- this.trainerAI9CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI10CheckBox
- //
- this.trainerAI10CheckBox.AutoSize = true;
- this.trainerAI10CheckBox.Location = new System.Drawing.Point(191, 44);
- this.trainerAI10CheckBox.Name = "trainerAI10CheckBox";
- this.trainerAI10CheckBox.Size = new System.Drawing.Size(67, 17);
- this.trainerAI10CheckBox.TabIndex = 9;
- this.trainerAI10CheckBox.Text = "Weather";
- this.trainerAI10CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerAI11CheckBox
- //
- this.trainerAI11CheckBox.AutoSize = true;
- this.trainerAI11CheckBox.Location = new System.Drawing.Point(191, 67);
- this.trainerAI11CheckBox.Name = "trainerAI11CheckBox";
- this.trainerAI11CheckBox.Size = new System.Drawing.Size(44, 17);
- this.trainerAI11CheckBox.TabIndex = 10;
- this.trainerAI11CheckBox.Text = "???";
- this.trainerAI11CheckBox.UseVisualStyleBackColor = true;
- //
- // trainerItemsGroupBox
- //
- this.trainerItemsGroupBox.Location = new System.Drawing.Point(211, 146);
- this.trainerItemsGroupBox.Name = "trainerItemsGroupBox";
- this.trainerItemsGroupBox.Size = new System.Drawing.Size(191, 130);
- this.trainerItemsGroupBox.TabIndex = 26;
- this.trainerItemsGroupBox.TabStop = false;
- this.trainerItemsGroupBox.Text = "Trainer Items";
- //
- // trainerItemsCheckBox
- //
- this.trainerItemsCheckBox.AutoSize = true;
- this.trainerItemsCheckBox.Location = new System.Drawing.Point(215, 115);
- this.trainerItemsCheckBox.Name = "trainerItemsCheckBox";
- this.trainerItemsCheckBox.Size = new System.Drawing.Size(117, 17);
- this.trainerItemsCheckBox.TabIndex = 25;
- this.trainerItemsCheckBox.Text = "Choose Party Items";
- this.trainerItemsCheckBox.UseVisualStyleBackColor = true;
- this.trainerItemsCheckBox.CheckedChanged += new System.EventHandler(this.trainerItemsCheckBox_CheckedChanged);
- //
- // trainerMovesCheckBox
- //
- this.trainerMovesCheckBox.AutoSize = true;
- this.trainerMovesCheckBox.Location = new System.Drawing.Point(215, 94);
- this.trainerMovesCheckBox.Name = "trainerMovesCheckBox";
- this.trainerMovesCheckBox.Size = new System.Drawing.Size(97, 17);
- this.trainerMovesCheckBox.TabIndex = 24;
- this.trainerMovesCheckBox.Text = "Choose Moves";
- this.trainerMovesCheckBox.UseVisualStyleBackColor = true;
- this.trainerMovesCheckBox.CheckedChanged += new System.EventHandler(this.trainerMovesCheckBox_CheckedChanged);
- //
- // trainerDoubleCheckBox
- //
- this.trainerDoubleCheckBox.AutoSize = true;
- this.trainerDoubleCheckBox.Location = new System.Drawing.Point(215, 72);
- this.trainerDoubleCheckBox.Name = "trainerDoubleCheckBox";
- this.trainerDoubleCheckBox.Size = new System.Drawing.Size(90, 17);
- this.trainerDoubleCheckBox.TabIndex = 23;
- this.trainerDoubleCheckBox.Text = "Double Battle";
- this.trainerDoubleCheckBox.UseVisualStyleBackColor = true;
- //
- // trainerNameTextBox
- //
- this.trainerNameTextBox.Location = new System.Drawing.Point(215, 39);
- this.trainerNameTextBox.Name = "trainerNameTextBox";
- this.trainerNameTextBox.Size = new System.Drawing.Size(148, 20);
- this.trainerNameTextBox.TabIndex = 22;
- //
- // partyCountUpDown
- //
- this.partyCountUpDown.Location = new System.Drawing.Point(346, 99);
- this.partyCountUpDown.Maximum = new decimal(new int[] {
- 6,
- 0,
- 0,
- 0});
- this.partyCountUpDown.Name = "partyCountUpDown";
- this.partyCountUpDown.Size = new System.Drawing.Size(41, 20);
- this.partyCountUpDown.TabIndex = 33;
- this.partyCountUpDown.ValueChanged += new System.EventHandler(this.partyCountUpDown_ValueChanged);
- //
- // label44
- //
- this.label44.AutoSize = true;
- this.label44.Location = new System.Drawing.Point(212, 23);
- this.label44.Name = "label44";
- this.label44.Size = new System.Drawing.Size(71, 13);
- this.label44.TabIndex = 21;
- this.label44.Text = "Trainer Name";
- //
- // label63
- //
- this.label63.AutoSize = true;
- this.label63.Location = new System.Drawing.Point(339, 83);
- this.label63.Name = "label63";
- this.label63.Size = new System.Drawing.Size(57, 13);
- this.label63.TabIndex = 34;
- this.label63.Text = "Party Slots";
- //
- // label43
- //
- this.label43.AutoSize = true;
- this.label43.Location = new System.Drawing.Point(10, 23);
- this.label43.Name = "label43";
- this.label43.Size = new System.Drawing.Size(68, 13);
- this.label43.TabIndex = 20;
- this.label43.Text = "Trainer Class";
- //
- // trainerClassListBox
- //
- this.trainerClassListBox.FormattingEnabled = true;
- this.trainerClassListBox.Location = new System.Drawing.Point(11, 39);
- this.trainerClassListBox.Name = "trainerClassListBox";
- this.trainerClassListBox.Size = new System.Drawing.Size(193, 238);
- this.trainerClassListBox.TabIndex = 0;
- this.trainerClassListBox.SelectedIndexChanged += new System.EventHandler(this.trainerClassListBox_SelectedIndexChanged);
- //
- // addTrainerButton
- //
- this.addTrainerButton.Enabled = false;
- this.addTrainerButton.Image = global::DSPRE.Properties.Resources.addIcon;
- this.addTrainerButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.addTrainerButton.Location = new System.Drawing.Point(333, 20);
- this.addTrainerButton.Name = "addTrainerButton";
- this.addTrainerButton.Size = new System.Drawing.Size(100, 23);
- this.addTrainerButton.TabIndex = 35;
- this.addTrainerButton.Text = "Add Trainer";
- this.addTrainerButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- this.addTrainerButton.UseVisualStyleBackColor = true;
- this.addTrainerButton.Visible = false;
- this.addTrainerButton.Click += new System.EventHandler(this.addTrainerButton_Click);
- //
- // label42
- //
- this.label42.AutoSize = true;
- this.label42.Location = new System.Drawing.Point(12, 7);
- this.label42.Name = "label42";
- this.label42.Size = new System.Drawing.Size(59, 13);
- this.label42.TabIndex = 28;
- this.label42.Text = "Trainer File";
- //
- // trainerSaveCurrentButton
- //
- this.trainerSaveCurrentButton.Image = global::DSPRE.Properties.Resources.saveButton;
- this.trainerSaveCurrentButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.trainerSaveCurrentButton.Location = new System.Drawing.Point(15, 49);
- this.trainerSaveCurrentButton.Name = "trainerSaveCurrentButton";
- this.trainerSaveCurrentButton.Size = new System.Drawing.Size(199, 23);
- this.trainerSaveCurrentButton.TabIndex = 31;
- this.trainerSaveCurrentButton.Text = "&Save Full Trainer File";
- this.trainerSaveCurrentButton.UseVisualStyleBackColor = true;
- this.trainerSaveCurrentButton.Click += new System.EventHandler(this.trainerSaveCurrentButton_Click);
+ this.trainerEditor.Location = new System.Drawing.Point(-4, 5);
+ this.trainerEditor.Name = "trainerEditor";
+ this.trainerEditor.Size = new System.Drawing.Size(1193, 646);
+ this.trainerEditor.TabIndex = 0;
+ this.trainerEditor.trainerEditorIsReady = false;
//
// tableEditorTabPage
//
@@ -9323,6 +7671,30 @@
this.versionLabel.Text = "ROM:";
this.versionLabel.Visible = false;
//
+ // popoutTrainerEditorButton
+ //
+ this.popoutTrainerEditorButton.Image = global::DSPRE.Properties.Resources.popout;
+ this.popoutTrainerEditorButton.Location = new System.Drawing.Point(1147, 637);
+ this.popoutTrainerEditorButton.Name = "popoutTrainerEditorButton";
+ this.popoutTrainerEditorButton.Size = new System.Drawing.Size(35, 35);
+ this.popoutTrainerEditorButton.TabIndex = 2;
+ this.popoutTrainerEditorButton.UseVisualStyleBackColor = true;
+ this.popoutTrainerEditorButton.Click += new System.EventHandler(this.popoutTrainerEditorButton_Click);
+ //
+ // trainerEditorPoppedOutLabel
+ //
+ this.trainerEditorPoppedOutLabel.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.trainerEditorPoppedOutLabel.AutoSize = true;
+ this.trainerEditorPoppedOutLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.trainerEditorPoppedOutLabel.Location = new System.Drawing.Point(423, 281);
+ this.trainerEditorPoppedOutLabel.Name = "trainerEditorPoppedOutLabel";
+ this.trainerEditorPoppedOutLabel.Size = new System.Drawing.Size(296, 24);
+ this.trainerEditorPoppedOutLabel.TabIndex = 17;
+ this.trainerEditorPoppedOutLabel.Text = "This editor is currently popped-out";
+ this.trainerEditorPoppedOutLabel.Visible = false;
+ //
// MainProgram
//
this.AllowDrop = true;
@@ -9555,64 +7927,6 @@
this.cameraEditorTabPage.ResumeLayout(false);
this.trainerEditorTabPage.ResumeLayout(false);
this.trainerEditorTabPage.PerformLayout();
- this.tableLayoutPanel4.ResumeLayout(false);
- this.groupBox28.ResumeLayout(false);
- this.groupBox28.PerformLayout();
- this.tableLayoutPanel6.ResumeLayout(false);
- this.party6GroupBox.ResumeLayout(false);
- this.party6GroupBox.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox6)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV6UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel6UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall6UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon6PictureBox)).EndInit();
- this.party5GroupBox.ResumeLayout(false);
- this.party5GroupBox.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox5)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV5UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel5UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall5UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon5PictureBox)).EndInit();
- this.party4GroupBox.ResumeLayout(false);
- this.party4GroupBox.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox4)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV4UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel4UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall4UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon4PictureBox)).EndInit();
- this.party3GroupBox.ResumeLayout(false);
- this.party3GroupBox.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV3UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel3UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall3UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon3PictureBox)).EndInit();
- this.party2GroupBox.ResumeLayout(false);
- this.party2GroupBox.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox2)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV2UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel2UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall2UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon2PictureBox)).EndInit();
- this.party1GroupBox.ResumeLayout(false);
- this.party1GroupBox.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox1)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyIV1UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyLevel1UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyBall1UpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.partyPokemon1PictureBox)).EndInit();
- this.groupBox27.ResumeLayout(false);
- this.groupBox27.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.encounterSSEQAltUpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.encounterSSEQMainUpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.trClassFramePreviewUpDown)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.trainerClassPicBox)).EndInit();
- this.groupBox25.ResumeLayout(false);
- this.groupBox25.PerformLayout();
- this.tableLayoutPanel5.ResumeLayout(false);
- this.TrainerAIGroupBox.ResumeLayout(false);
- this.TrainerAIGroupBox.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.partyCountUpDown)).EndInit();
this.tableEditorTabPage.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gameIcon)).EndInit();
this.menuStrip1.ResumeLayout(false);
@@ -9941,7 +8255,6 @@
private System.Windows.Forms.CheckBox owPartnerTrainerCheckBox;
private System.Windows.Forms.ComboBox owItemComboBox;
private System.Windows.Forms.Label owItemLabel;
- private System.Windows.Forms.ComboBox owTrainerComboBox;
private System.Windows.Forms.Label owSightRangeLabel;
private System.Windows.Forms.NumericUpDown owSightRangeUpDown;
private System.Windows.Forms.Label owTrainerLabel;
@@ -10086,165 +8399,61 @@
private System.Windows.Forms.Button removeLastHeaderBTN;
private System.Windows.Forms.Button addHeaderBTN;
private System.Windows.Forms.NumericUpDown cameraUpDown;
- private System.Windows.Forms.TabPage trainerEditorTabPage;
- private System.Windows.Forms.Button addTrainerButton;
- private System.Windows.Forms.Label label63;
- private System.Windows.Forms.NumericUpDown partyCountUpDown;
- private System.Windows.Forms.GroupBox groupBox28;
- private System.Windows.Forms.GroupBox party6GroupBox;
- private System.Windows.Forms.Label label60;
- private System.Windows.Forms.Label label61;
- private System.Windows.Forms.Label label62;
- private System.Windows.Forms.GroupBox poke6MovesGroupBox;
private DSPRE.InputComboBox partyMove6_1ComboBox;
private DSPRE.InputComboBox partyMove6_2ComboBox;
private DSPRE.InputComboBox partyMove6_3ComboBox;
private DSPRE.InputComboBox partyMove6_4ComboBox;
- private System.Windows.Forms.NumericUpDown partyIV6UpDown;
- private System.Windows.Forms.NumericUpDown partyLevel6UpDown;
- private System.Windows.Forms.NumericUpDown partyBall6UpDown;
private DSPRE.InputComboBox partyItem6ComboBox;
- private System.Windows.Forms.PictureBox partyPokemon6PictureBox;
private DSPRE.InputComboBox partyPokemon6ComboBox;
- private System.Windows.Forms.GroupBox party5GroupBox;
- private System.Windows.Forms.Label label57;
- private System.Windows.Forms.Label label58;
- private System.Windows.Forms.Label label59;
- private System.Windows.Forms.GroupBox poke5MovesGroupBox;
private DSPRE.InputComboBox partyMove5_1ComboBox;
private DSPRE.InputComboBox partyMove5_2ComboBox;
private DSPRE.InputComboBox partyMove5_3ComboBox;
private DSPRE.InputComboBox partyMove5_4ComboBox;
- private System.Windows.Forms.NumericUpDown partyIV5UpDown;
- private System.Windows.Forms.NumericUpDown partyLevel5UpDown;
- private System.Windows.Forms.NumericUpDown partyBall5UpDown;
private DSPRE.InputComboBox partyItem5ComboBox;
- private System.Windows.Forms.PictureBox partyPokemon5PictureBox;
private DSPRE.InputComboBox partyPokemon5ComboBox;
- private System.Windows.Forms.GroupBox party4GroupBox;
- private System.Windows.Forms.Label label54;
- private System.Windows.Forms.Label label55;
- private System.Windows.Forms.Label label56;
- private System.Windows.Forms.GroupBox poke4MovesGroupBox;
private DSPRE.InputComboBox partyMove4_1ComboBox;
private DSPRE.InputComboBox partyMove4_2ComboBox;
private DSPRE.InputComboBox partyMove4_3ComboBox;
private DSPRE.InputComboBox partyMove4_4ComboBox;
- private System.Windows.Forms.NumericUpDown partyIV4UpDown;
- private System.Windows.Forms.NumericUpDown partyLevel4UpDown;
- private System.Windows.Forms.NumericUpDown partyBall4UpDown;
private DSPRE.InputComboBox partyItem4ComboBox;
- private System.Windows.Forms.PictureBox partyPokemon4PictureBox;
private DSPRE.InputComboBox partyPokemon4ComboBox;
- private System.Windows.Forms.GroupBox party3GroupBox;
- private System.Windows.Forms.Label label51;
- private System.Windows.Forms.Label label52;
- private System.Windows.Forms.Label label53;
- private System.Windows.Forms.GroupBox poke3MovesGroupBox;
private DSPRE.InputComboBox partyMove3_1ComboBox;
private DSPRE.InputComboBox partyMove3_2ComboBox;
private DSPRE.InputComboBox partyMove3_3ComboBox;
private DSPRE.InputComboBox partyMove3_4ComboBox;
- private System.Windows.Forms.NumericUpDown partyIV3UpDown;
- private System.Windows.Forms.NumericUpDown partyLevel3UpDown;
- private System.Windows.Forms.NumericUpDown partyBall3UpDown;
private DSPRE.InputComboBox partyItem3ComboBox;
- private System.Windows.Forms.PictureBox partyPokemon3PictureBox;
private DSPRE.InputComboBox partyPokemon3ComboBox;
- private System.Windows.Forms.GroupBox party2GroupBox;
- private System.Windows.Forms.Label label48;
- private System.Windows.Forms.Label label49;
- private System.Windows.Forms.Label label50;
- private System.Windows.Forms.GroupBox poke2MovesGroupBox;
private DSPRE.InputComboBox partyMove2_1ComboBox;
private DSPRE.InputComboBox partyMove2_2ComboBox;
private DSPRE.InputComboBox partyMove2_3ComboBox;
private DSPRE.InputComboBox partyMove2_4ComboBox;
- private System.Windows.Forms.NumericUpDown partyIV2UpDown;
- private System.Windows.Forms.NumericUpDown partyLevel2UpDown;
- private System.Windows.Forms.NumericUpDown partyBall2UpDown;
private DSPRE.InputComboBox partyItem2ComboBox;
- private System.Windows.Forms.PictureBox partyPokemon2PictureBox;
private DSPRE.InputComboBox partyPokemon2ComboBox;
- private System.Windows.Forms.GroupBox party1GroupBox;
- private System.Windows.Forms.Label label47;
- private System.Windows.Forms.Label label46;
- private System.Windows.Forms.Label label45;
- private System.Windows.Forms.GroupBox poke1MovesGroupBox;
private DSPRE.InputComboBox partyMove1_1ComboBox;
private DSPRE.InputComboBox partyMove1_2ComboBox;
private DSPRE.InputComboBox partyMove1_3ComboBox;
private DSPRE.InputComboBox partyMove1_4ComboBox;
- private System.Windows.Forms.NumericUpDown partyIV1UpDown;
- private System.Windows.Forms.NumericUpDown partyLevel1UpDown;
- private System.Windows.Forms.NumericUpDown partyBall1UpDown;
private DSPRE.InputComboBox partyItem1ComboBox;
- private System.Windows.Forms.PictureBox partyPokemon1PictureBox;
private DSPRE.InputComboBox partyPokemon1ComboBox;
- private System.Windows.Forms.Button trainerSaveCurrentButton;
- private System.Windows.Forms.GroupBox groupBox27;
- private System.Windows.Forms.GroupBox groupBox25;
- private System.Windows.Forms.GroupBox TrainerAIGroupBox;
- private System.Windows.Forms.CheckBox trainerAI11CheckBox;
- private System.Windows.Forms.CheckBox trainerAI10CheckBox;
- private System.Windows.Forms.CheckBox trainerAI9CheckBox;
- private System.Windows.Forms.CheckBox trainerAI8CheckBox;
- private System.Windows.Forms.CheckBox trainerAI7CheckBox;
- private System.Windows.Forms.CheckBox trainerAI6CheckBox;
- private System.Windows.Forms.CheckBox trainerAI5CheckBox;
- private System.Windows.Forms.CheckBox trainerAI4CheckBox;
- private System.Windows.Forms.CheckBox trainerAI3CheckBox;
- private System.Windows.Forms.CheckBox trainerAI2CheckBox;
- private System.Windows.Forms.CheckBox trainerAI1CheckBox;
- private System.Windows.Forms.GroupBox trainerItemsGroupBox;
private DSPRE.InputComboBox trainerItem4ComboBox;
private DSPRE.InputComboBox trainerItem3ComboBox;
private DSPRE.InputComboBox trainerItem2ComboBox;
private DSPRE.InputComboBox trainerItem1ComboBox;
- private System.Windows.Forms.CheckBox trainerItemsCheckBox;
- private System.Windows.Forms.CheckBox trainerMovesCheckBox;
- private System.Windows.Forms.CheckBox trainerDoubleCheckBox;
- private System.Windows.Forms.TextBox trainerNameTextBox;
- private System.Windows.Forms.Label label44;
- private System.Windows.Forms.Label label43;
- private System.Windows.Forms.ListBox trainerClassListBox;
- private System.Windows.Forms.Label label42;
private DSPRE.InputComboBox trainerComboBox;
private System.Windows.Forms.ComboBox followModeComboBox;
private System.Windows.Forms.RadioButton johtoRadioButton;
private System.Windows.Forms.RadioButton kantoRadioButton;
private System.Windows.Forms.Label followModeLabel;
- private System.Windows.Forms.Button importTrainerButton;
- private System.Windows.Forms.Button exportTrainerButton;
- private System.Windows.Forms.TextBox trainerClassNameTextbox;
- private System.Windows.Forms.Label label17;
- private System.Windows.Forms.Button saveTrainerClassButton;
- private System.Windows.Forms.Label label40;
- private System.Windows.Forms.NumericUpDown trClassFramePreviewUpDown;
- private System.Windows.Forms.Label trainerClassFrameMaxLabel;
private System.Windows.Forms.ToolStripButton readDataFromFolderButton;
private System.Windows.Forms.Button mapScreenshotButton;
- private System.Windows.Forms.NumericUpDown encounterSSEQAltUpDown;
- private System.Windows.Forms.Label eyeContactMusicLabel;
- private System.Windows.Forms.NumericUpDown encounterSSEQMainUpDown;
- private System.Windows.Forms.Label eyeContactMusicAltLabel;
private System.Windows.Forms.ToolStripMenuItem openFolderToolStripMenuItem;
private System.Windows.Forms.Button itemsSelectorHelpBtn;
- private System.Windows.Forms.Button deleteTrainerButton;
private System.Windows.Forms.ToolStripMenuItem NarcUtilityToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem unpackToFolderToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem buildFomFolderToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem listBasedBatchRenameToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem listBasedToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem contentBasedToolStripMenuItem;
- private System.Windows.Forms.Label label74;
- private System.Windows.Forms.Button DVExplainButton;
- private System.Windows.Forms.PictureBox partyPokemonItemPictureBox6;
- private System.Windows.Forms.PictureBox partyPokemonItemPictureBox5;
- private System.Windows.Forms.PictureBox partyPokemonItemPictureBox4;
- private System.Windows.Forms.PictureBox partyPokemonItemPictureBox3;
- private System.Windows.Forms.PictureBox partyPokemonItemPictureBox2;
- private System.Windows.Forms.PictureBox partyPokemonItemPictureBox1;
private System.Windows.Forms.ToolStripSeparator separator_afterFolderUnpackers;
private System.Windows.Forms.ToolStripButton listBasedBatchRenameToolStripButton;
private System.Windows.Forms.ToolStripButton contentBasedBatchRenameToolStripButton;
@@ -10282,7 +8491,6 @@
private System.Windows.Forms.NumericUpDown zRotBuildUpDown;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel37;
private System.Windows.Forms.GroupBox groupBox35;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel38;
@@ -10294,30 +8502,6 @@
private System.Windows.Forms.Button glbExportButton;
private System.Windows.Forms.Button sortOWsByIDAscButton;
private System.Windows.Forms.Button sortOWsByIDDescButton;
- private System.Windows.Forms.ComboBox partyGender6ComboBox;
- private System.Windows.Forms.ComboBox partyGender5ComboBox;
- private System.Windows.Forms.ComboBox partyGender4ComboBox;
- private System.Windows.Forms.ComboBox partyGender3ComboBox;
- private System.Windows.Forms.ComboBox partyGender2ComboBox;
- private System.Windows.Forms.ComboBox partyAbility1ComboBox;
- private System.Windows.Forms.ComboBox partyAbility6ComboBox;
- private System.Windows.Forms.ComboBox partyAbility5ComboBox;
- private System.Windows.Forms.ComboBox partyAbility4ComboBox;
- private System.Windows.Forms.ComboBox partyAbility3ComboBox;
- private System.Windows.Forms.ComboBox partyAbility2ComboBox;
- private System.Windows.Forms.ComboBox partyGender1ComboBox;
- private System.Windows.Forms.ComboBox partyForm1ComboBox;
- private System.Windows.Forms.ComboBox partyForm6ComboBox;
- private System.Windows.Forms.ComboBox partyForm5ComboBox;
- private System.Windows.Forms.ComboBox partyForm4ComboBox;
- private System.Windows.Forms.ComboBox partyForm3ComboBox;
- private System.Windows.Forms.ComboBox partyForm2ComboBox;
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel5;
- private System.Windows.Forms.Button exportPropertiesButton;
- private System.Windows.Forms.Button replacePropertiesButton;
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel6;
- private System.Windows.Forms.Button importReplacePartyButton;
- private System.Windows.Forms.Button exportPartyButton;
private System.Windows.Forms.ToolStripMenuItem otherEditorsToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem personalDataEditorToolStripMenuItem;
private System.Windows.Forms.Button setSpawnPointButton;
@@ -10359,9 +8543,13 @@
public System.Windows.Forms.TabPage cameraEditorTabPage;
public System.Windows.Forms.ComboBox locationNameComboBox;
public System.Windows.Forms.ListBox headerListBox;
- public System.Windows.Forms.PictureBox trainerClassPicBox;
public Editors.TableEditor tableEditor;
public System.Windows.Forms.TabPage tableEditorTabPage;
+ public System.Windows.Forms.ComboBox owTrainerComboBox;
+ public Editors.TrainerEditor trainerEditor;
+ public System.Windows.Forms.TabPage trainerEditorTabPage;
+ private System.Windows.Forms.Button popoutTrainerEditorButton;
+ private System.Windows.Forms.Label trainerEditorPoppedOutLabel;
}
}
diff --git a/DS_Map/Main Window.cs b/DS_Map/Main Window.cs
index a356682..283d93e 100644
--- a/DS_Map/Main Window.cs
+++ b/DS_Map/Main Window.cs
@@ -33,7 +33,6 @@ using ScintillaNET.Utils;
using System.Globalization;
using static DSPRE.ROMFiles.Event;
using NSMBe4.NSBMD;
-using static DSPRE.ROMFiles.SpeciesFile;
using System.Reflection;
using System.ComponentModel;
using DSPRE.Editors;
@@ -200,31 +199,6 @@ namespace DSPRE {
}
return names.ToArray();
}
- private string[] GetTrainerNames() {
- List trainerList = new List();
-
- /* Store all trainer names and classes */
- TextArchive trainerClasses = new TextArchive(RomInfo.trainerClassMessageNumber);
- TextArchive trainerNames = new TextArchive(RomInfo.trainerNamesMessageNumber);
- string trainerPropertiesUnpackedDir = RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir;
-
- int trainerCount = Directory.GetFiles(trainerPropertiesUnpackedDir).Length;
-
- for (int i = 0; i < trainerCount; i++) {
- int classMessageID = DSUtils.ReadFromFile(trainerPropertiesUnpackedDir + "\\" + i.ToString("D4"), startOffset: 1, 1)[0];
- string currentTrainerName;
-
- if (i < trainerNames.messages.Count) {
- currentTrainerName = trainerNames.messages[i];
- } else {
- currentTrainerName = TrainerFile.NAME_NOT_FOUND;
- }
-
- trainerList.Add("[" + i.ToString("D2") + "] " + trainerClasses.messages[classMessageID] + " " + currentTrainerName);
-
- }
- return trainerList.ToArray();
- }
private void PaintGameIcon(object sender, PaintEventArgs e) {
if (iconON) {
@@ -1067,7 +1041,7 @@ namespace DSPRE {
SetupEventEditor();
SetupScriptEditor();
textEditor.SetupTextEditor(this);
- SetupTrainerEditor();
+ //SetupTrainerEditor();
Helpers.statusLabelMessage();
Update();
@@ -1132,15 +1106,12 @@ namespace DSPRE {
}
} else if (mainTabControl.SelectedTab == EditorPanels.textEditorTabPage) {
textEditor.SetupTextEditor(this);
- } else if (mainTabControl.SelectedTab == trainerEditorTabPage) {
- if (!trainerEditorIsReady) {
- SetupTrainerEditor();
- trainerEditorIsReady = true;
- }
- } else if (mainTabControl.SelectedTab == tableEditorTabPage) {
+ } else if (mainTabControl.SelectedTab == EditorPanels.trainerEditortTabPage) {
+ trainerEditor.SetupTrainerEditor(this);
+ } else if (mainTabControl.SelectedTab == EditorPanels.tabPageTableEditor) {
resetHeaderSearch();
- //SetupConditionalMusicTable();
- //SetupBattleEffectsTables();
+ tableEditor.SetupConditionalMusicTable(this);
+ tableEditor.SetupBattleEffectsTables(this);
} else if (mainTabControl.SelectedTab == EditorPanels.scriptEditorTabPage) {
scriptEditor.SetupScriptEditor(this);
} else if (mainTabControl.SelectedTab == EditorPanels.levelScriptEditorTabPage) {
@@ -7468,986 +7439,6 @@ namespace DSPRE {
}
#endregion
- #region Trainer Editor
- private List partyPokemonComboboxList = new List();
- private List partyItemsComboboxList = new List();
- private List partyMovesGroupboxList = new List();
- private List partyLevelUpdownList = new List();
- private List partyGenderComboBoxList = new List();
- private List partyAbilityComboBoxList = new List();
- private List partyFormComboBoxList = new List();
- private List partyIVUpdownList = new List();
- private List partyBallUpdownList = new List();
- private List partyGroupboxList = new List();
- private List partyPokemonPictureBoxList = new List();
- private List partyPokemonItemIconList = new List();
-
- private const int TRAINER_PARTY_POKEMON_GENDER_DEFAULT_INDEX = 0;
- private const int TRAINER_PARTY_POKEMON_GENDER_MALE_INDEX = 1;
- private const int TRAINER_PARTY_POKEMON_GENDER_FEMALE_INDEX = 2;
- private const int TRAINER_PARTY_POKEMON_ABILITY_DEFAULT_INDEX = 0;
- private const int TRAINER_PARTY_POKEMON_ABILITY_SLOT1_INDEX = 1;
- private const int TRAINER_PARTY_POKEMON_ABILITY_SLOT2_INDEX = 2;
-
-
- string[] abilityNames;
- SpeciesFile[] pokemonSpecies;
-
- private (int abi1, int abi2)[] pokemonSpeciesAbilities;
-
- TrainerFile currentTrainerFile;
- public PaletteBase trainerPal;
- public ImageBase trainerTile;
- public SpriteBase trainerSprite;
-
- Dictionary trainerClassEncounterMusicDict;
- private void SetupTrainerClassEncounterMusicTable() {
- RomInfo.SetEncounterMusicTableOffsetToRAMAddress();
- trainerClassEncounterMusicDict = new Dictionary();
-
- uint encounterMusicTableTableStartAddress = BitConverter.ToUInt32(ARM9.ReadBytes(RomInfo.encounterMusicTableOffsetToRAMAddress, 4), 0) - ARM9.address;
- uint tableSizeOffset = 10;
- if (gameFamily == GameFamilies.HGSS) {
- tableSizeOffset += 2;
- encounterSSEQAltUpDown.Enabled = true;
- }
-
- byte tableEntriesCount = ARM9.ReadByte(RomInfo.encounterMusicTableOffsetToRAMAddress - tableSizeOffset);
- using (ARM9.Reader ar = new ARM9.Reader(encounterMusicTableTableStartAddress)) {
- for (int i = 0; i < tableEntriesCount; i++) {
- uint entryOffset = (uint)ar.BaseStream.Position;
- byte tclass = (byte)ar.ReadUInt16();
- ushort musicD = ar.ReadUInt16();
- ushort? musicN = gameFamily == GameFamilies.HGSS ? ar.ReadUInt16() : (ushort?)null;
- trainerClassEncounterMusicDict[tclass] = (entryOffset, musicD, musicN);
- }
- }
- }
-
- public void RefreshAbilities(int forPokemon) {
- DialogResult res = MessageBox.Show("You have modified a Pokemon's ability.\nDo you wish to refresh the Trainer Editor so your changes are available?", "Refresh Trainer Editor", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
- if (res.Equals(DialogResult.Yes)) {
- int currentIndex = trainerComboBox.SelectedIndex;
- SetupTrainerEditor();
- trainerComboBox.SelectedIndex = currentIndex;
- }
- }
-
- private void SetupTrainerEditor() {
- Helpers.DisableHandlers();
-
- //SetTrainerNameMaxLen();
- SetupTrainerClassEncounterMusicTable();
- /* Extract essential NARCs sub-archives*/
- Helpers.statusLabelMessage("Setting up Trainer Editor...");
- Update();
-
- DSUtils.TryUnpackNarcs(new List {
- DirNames.trainerProperties,
- DirNames.trainerParty,
- DirNames.trainerGraphics,
- DirNames.textArchives,
- DirNames.monIcons,
- DirNames.personalPokeData,
- DirNames.learnsets
- });
-
- int numPokemonSpecies = Directory.GetFiles(RomInfo.gameDirs[DirNames.personalPokeData].unpackedDir, "*").Count();
- pokemonSpeciesAbilities = new (int abi1, int abi2)[numPokemonSpecies];
- pokemonSpecies = new SpeciesFile[numPokemonSpecies];
-
- RomInfo.SetMonIconsPalTableAddress();
- RomInfo.SetAIBackportEnabled();
-
- partyPokemonComboboxList.Clear();
- partyPokemonComboboxList.Add(partyPokemon1ComboBox);
- partyPokemonComboboxList.Add(partyPokemon2ComboBox);
- partyPokemonComboboxList.Add(partyPokemon3ComboBox);
- partyPokemonComboboxList.Add(partyPokemon4ComboBox);
- partyPokemonComboboxList.Add(partyPokemon5ComboBox);
- partyPokemonComboboxList.Add(partyPokemon6ComboBox);
-
- partyItemsComboboxList.Clear();
- partyItemsComboboxList.Add(partyItem1ComboBox);
- partyItemsComboboxList.Add(partyItem2ComboBox);
- partyItemsComboboxList.Add(partyItem3ComboBox);
- partyItemsComboboxList.Add(partyItem4ComboBox);
- partyItemsComboboxList.Add(partyItem5ComboBox);
- partyItemsComboboxList.Add(partyItem6ComboBox);
-
- partyLevelUpdownList.Clear();
- partyLevelUpdownList.Add(partyLevel1UpDown);
- partyLevelUpdownList.Add(partyLevel2UpDown);
- partyLevelUpdownList.Add(partyLevel3UpDown);
- partyLevelUpdownList.Add(partyLevel4UpDown);
- partyLevelUpdownList.Add(partyLevel5UpDown);
- partyLevelUpdownList.Add(partyLevel6UpDown);
-
- partyGenderComboBoxList.Clear();
- partyGenderComboBoxList.Add(partyGender1ComboBox);
- partyGenderComboBoxList.Add(partyGender2ComboBox);
- partyGenderComboBoxList.Add(partyGender3ComboBox);
- partyGenderComboBoxList.Add(partyGender4ComboBox);
- partyGenderComboBoxList.Add(partyGender5ComboBox);
- partyGenderComboBoxList.Add(partyGender6ComboBox);
-
- partyAbilityComboBoxList.Clear();
- partyAbilityComboBoxList.Add(partyAbility1ComboBox);
- partyAbilityComboBoxList.Add(partyAbility2ComboBox);
- partyAbilityComboBoxList.Add(partyAbility3ComboBox);
- partyAbilityComboBoxList.Add(partyAbility4ComboBox);
- partyAbilityComboBoxList.Add(partyAbility5ComboBox);
- partyAbilityComboBoxList.Add(partyAbility6ComboBox);
-
- partyFormComboBoxList.Clear();
- partyFormComboBoxList.Add(partyForm1ComboBox);
- partyFormComboBoxList.Add(partyForm2ComboBox);
- partyFormComboBoxList.Add(partyForm3ComboBox);
- partyFormComboBoxList.Add(partyForm4ComboBox);
- partyFormComboBoxList.Add(partyForm5ComboBox);
- partyFormComboBoxList.Add(partyForm6ComboBox);
-
- partyIVUpdownList.Clear();
- partyIVUpdownList.Add(partyIV1UpDown);
- partyIVUpdownList.Add(partyIV2UpDown);
- partyIVUpdownList.Add(partyIV3UpDown);
- partyIVUpdownList.Add(partyIV4UpDown);
- partyIVUpdownList.Add(partyIV5UpDown);
- partyIVUpdownList.Add(partyIV6UpDown);
-
- partyBallUpdownList.Clear();
- partyBallUpdownList.Add(partyBall1UpDown);
- partyBallUpdownList.Add(partyBall2UpDown);
- partyBallUpdownList.Add(partyBall3UpDown);
- partyBallUpdownList.Add(partyBall4UpDown);
- partyBallUpdownList.Add(partyBall5UpDown);
- partyBallUpdownList.Add(partyBall6UpDown);
-
- partyMovesGroupboxList.Clear();
- partyMovesGroupboxList.Add(poke1MovesGroupBox);
- partyMovesGroupboxList.Add(poke2MovesGroupBox);
- partyMovesGroupboxList.Add(poke3MovesGroupBox);
- partyMovesGroupboxList.Add(poke4MovesGroupBox);
- partyMovesGroupboxList.Add(poke5MovesGroupBox);
- partyMovesGroupboxList.Add(poke6MovesGroupBox);
-
- partyGroupboxList.Clear();
- partyGroupboxList.Add(party1GroupBox);
- partyGroupboxList.Add(party2GroupBox);
- partyGroupboxList.Add(party3GroupBox);
- partyGroupboxList.Add(party4GroupBox);
- partyGroupboxList.Add(party5GroupBox);
- partyGroupboxList.Add(party6GroupBox);
-
- partyPokemonPictureBoxList.Clear();
- partyPokemonPictureBoxList.Add(partyPokemon1PictureBox);
- partyPokemonPictureBoxList.Add(partyPokemon2PictureBox);
- partyPokemonPictureBoxList.Add(partyPokemon3PictureBox);
- partyPokemonPictureBoxList.Add(partyPokemon4PictureBox);
- partyPokemonPictureBoxList.Add(partyPokemon5PictureBox);
- partyPokemonPictureBoxList.Add(partyPokemon6PictureBox);
-
- partyPokemonItemIconList.Clear();
- partyPokemonItemIconList.Add(partyPokemonItemPictureBox1);
- partyPokemonItemIconList.Add(partyPokemonItemPictureBox2);
- partyPokemonItemIconList.Add(partyPokemonItemPictureBox3);
- partyPokemonItemIconList.Add(partyPokemonItemPictureBox4);
- partyPokemonItemIconList.Add(partyPokemonItemPictureBox5);
- partyPokemonItemIconList.Add(partyPokemonItemPictureBox6);
-
- int trainerCount = Directory.GetFiles(RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir).Length;
- trainerComboBox.Items.Clear();
- trainerComboBox.Items.AddRange(GetTrainerNames());
-
- string[] classNames = RomInfo.GetTrainerClassNames();
- trainerClassListBox.Items.Clear();
- if (classNames.Length > byte.MaxValue + 1) {
- MessageBox.Show("There can't be more than 256 trainer classes! [Found " + classNames.Length + "].\nAborting.",
- "Too many trainer classes", MessageBoxButtons.OK, MessageBoxIcon.Error);
- return;
- }
- for (int i = 0; i < classNames.Length; i++) {
- trainerClassListBox.Items.Add("[" + i.ToString("D3") + "]" + " " + classNames[i]);
- }
-
- for (int i = 0; i < numPokemonSpecies; i++) {
- pokemonSpecies[i] = new SpeciesFile(new FileStream(RomInfo.gameDirs[DirNames.personalPokeData].unpackedDir + "\\" + i.ToString("D4"), FileMode.Open));
- }
-
- if (gameFamily == GameFamilies.HGSS || RomInfo.AIBackportEnabled) {
- foreach (ComboBox partyGenderComboBox in partyGenderComboBoxList) {
- partyGenderComboBox.Visible = true;
- partyGenderComboBox.Items.Add("Default Gender");
- partyGenderComboBox.Items.Add("Male");
- partyGenderComboBox.Items.Add("Female");
- }
- } else {
- foreach (ComboBox partyGenderComboBox in partyGenderComboBoxList) {
- partyGenderComboBox.Visible = false;
- }
- }
-
- if (gameFamily == GameFamilies.DP) {
- foreach (ComboBox partyFormComboBox in partyFormComboBoxList) {
- partyFormComboBox.Visible = false;
- }
-
- foreach (NumericUpDown partyBallSealUpDown in partyBallUpdownList) {
- partyBallSealUpDown.Enabled = false;
- }
- } else {
- foreach (ComboBox partyFormComboBox in partyFormComboBoxList) {
- partyFormComboBox.Visible = true;
- }
-
- foreach (NumericUpDown partyBallSealUpDown in partyBallUpdownList) {
- partyBallSealUpDown.Enabled = true;
- }
- }
-
- string[] itemNames = RomInfo.GetItemNames();
- string[] pokeNames = RomInfo.GetPokemonNames();
- string[] moveNames = RomInfo.GetAttackNames();
- abilityNames = RomInfo.GetAbilityNames();
-
- pokemonSpeciesAbilities = getPokemonAbilities(numPokemonSpecies);
-
- foreach (Control c in trainerItemsGroupBox.Controls) {
- if (c is ComboBox) {
- (c as ComboBox).DataSource = new BindingSource(itemNames, string.Empty);
- }
- }
-
- foreach (ComboBox CB in partyPokemonComboboxList) {
- CB.DataSource = new BindingSource(pokeNames, string.Empty);
- }
-
- foreach (ComboBox CB in partyItemsComboboxList) {
- CB.DataSource = new BindingSource(itemNames, string.Empty);
- }
-
- foreach (GroupBox movesGroup in partyMovesGroupboxList) {
- foreach (Control c in movesGroup.Controls) {
- if (c is ComboBox) {
- (c as ComboBox).DataSource = new BindingSource(moveNames, string.Empty);
- }
- }
- }
-
- trainerComboBox.SelectedIndex = 0;
-
- Helpers.EnableHandlers();
- trainerComboBox_SelectedIndexChanged(null, null);
- Helpers.statusLabelMessage();
- }
- private void trainerComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- if (Helpers.HandlersDisabled) {
- return;
- }
- Helpers.DisableHandlers();
-
- int currentIndex = trainerComboBox.SelectedIndex;
- string suffix = "\\" + currentIndex.ToString("D4");
- string[] trNames = RomInfo.GetSimpleTrainerNames();
-
- bool error = currentIndex >= trNames.Length;
- currentTrainerFile = new TrainerFile(
- new TrainerProperties(
- (ushort)trainerComboBox.SelectedIndex,
- new FileStream(RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir + suffix, FileMode.Open)
- ),
- new FileStream(RomInfo.gameDirs[DirNames.trainerParty].unpackedDir + suffix, FileMode.Open),
- error ? TrainerFile.NAME_NOT_FOUND : trNames[currentIndex]
- );
- RefreshTrainerPartyGUI();
- RefreshTrainerPropertiesGUI();
-
- Helpers.EnableHandlers();
-
- if (error) {
- MessageBox.Show("This Trainer File doesn't have a corresponding name.\n\n" +
- "If you edited this ROM's Trainers with another tool before, don't worry.\n" +
- "DSPRE will attempt to add the missing line to the Trainer Names Text Archive [" + RomInfo.trainerNamesMessageNumber + "] upon resaving.",
- "Trainer name not found", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- }
- }
-
- public void RefreshTrainerPropertiesGUI() {
- trainerNameTextBox.Text = currentTrainerFile.name;
-
- trainerClassListBox.SelectedIndex = currentTrainerFile.trp.trainerClass;
- trainerDoubleCheckBox.Checked = currentTrainerFile.trp.doubleBattle;
- trainerMovesCheckBox.Checked = currentTrainerFile.trp.chooseMoves;
- trainerItemsCheckBox.Checked = currentTrainerFile.trp.chooseItems;
- partyCountUpDown.Value = currentTrainerFile.trp.partyCount;
-
- IList trainerItems = trainerItemsGroupBox.Controls;
- for (int i = 0; i < trainerItems.Count; i++) {
- (trainerItems[i] as ComboBox).SelectedIndex = currentTrainerFile.trp.trainerItems[i];
- }
-
- IList trainerAI = TrainerAIGroupBox.Controls;
- for (int i = 0; i < trainerAI.Count; i++) {
- (trainerAI[i] as CheckBox).Checked = currentTrainerFile.trp.AI[i];
- }
- }
- public void RefreshTrainerPartyGUI() {
- for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++) {
- partyPokemonComboboxList[i].SelectedIndex = currentTrainerFile.party[i].pokeID ?? 0;
- partyItemsComboboxList[i].SelectedIndex = currentTrainerFile.party[i].heldItem ?? 0;
- partyLevelUpdownList[i].Value = Math.Max((ushort)1, currentTrainerFile.party[i].level);
- partyIVUpdownList[i].Value = currentTrainerFile.party[i].difficulty;
- partyBallUpdownList[i].Value = currentTrainerFile.party[i].ballSeals;
-
- setTrainerPartyPokemonAbilities(i);
- setTrainerPartyPokemonForm(i);
- setTrainerPokemonGender(i);
-
- if (currentTrainerFile.party[i].genderAndAbilityFlags.HasFlag(PartyPokemon.GenderAndAbilityFlags.ABILITY_SLOT1))
- {
- partyAbilityComboBoxList[i].SelectedIndex = TRAINER_PARTY_POKEMON_ABILITY_SLOT1_INDEX;
- }
- else if (currentTrainerFile.party[i].genderAndAbilityFlags.HasFlag(PartyPokemon.GenderAndAbilityFlags.ABILITY_SLOT2))
- {
- partyAbilityComboBoxList[i].SelectedIndex = TRAINER_PARTY_POKEMON_ABILITY_SLOT2_INDEX;
- }
- else
- {
- partyAbilityComboBoxList[i].SelectedIndex = TRAINER_PARTY_POKEMON_ABILITY_DEFAULT_INDEX;
- }
-
- partyFormComboBoxList[i].SelectedIndex = currentTrainerFile.party[i].formID;
-
- if (currentTrainerFile.party[i].moves == null) {
- for (int j = 0; j < Party.MOVES_PER_POKE; j++) {
- (partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex = 0;
- }
- } else {
- for (int j = 0; j < Party.MOVES_PER_POKE; j++) {
- (partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex = currentTrainerFile.party[i].moves[j];
- }
- }
- }
- }
-
- private void ShowPartyPokemonPic(byte partyPos) {
- ComboBox cb = partyPokemonComboboxList[partyPos];
- int species = cb.SelectedIndex > 0 ? cb.SelectedIndex : 0;
-
- PictureBox pb = partyPokemonPictureBoxList[partyPos];
-
- partyPokemonPictureBoxList[partyPos].Image = DSUtils.GetPokePic(species, pb.Width, pb.Height);
- }
-
- private void partyPokemon1ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- ShowPartyPokemonPic(0);
-
- //event handler is called before currentTrainerFile is set, need to null check to avoid null object reference
- if (currentTrainerFile != null) {
- setTrainerPartyPokemonAbilities(0);
- setTrainerPartyPokemonForm(0);
- setTrainerPokemonGender(0);
- }
- }
- private void partyPokemon2ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- ShowPartyPokemonPic(1);
- if (currentTrainerFile != null) {
- setTrainerPartyPokemonAbilities(1);
- setTrainerPartyPokemonForm(1);
- setTrainerPokemonGender(1);
- }
- }
-
- private void partyPokemon3ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- ShowPartyPokemonPic(2);
- if (currentTrainerFile != null) {
- setTrainerPartyPokemonAbilities(2);
- setTrainerPartyPokemonForm(2);
- setTrainerPokemonGender(2);
- }
- }
-
- private void partyPokemon4ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- ShowPartyPokemonPic(3);
- if (currentTrainerFile != null) {
- setTrainerPartyPokemonAbilities(3);
- setTrainerPartyPokemonForm(3);
- setTrainerPokemonGender(3);
- }
- }
-
- private void partyPokemon5ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- ShowPartyPokemonPic(4);
- if (currentTrainerFile != null) {
- setTrainerPartyPokemonAbilities(4);
- setTrainerPartyPokemonForm(4);
- setTrainerPokemonGender(4);
- }
- }
-
- private void partyPokemon6ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- ShowPartyPokemonPic(5);
- if (currentTrainerFile != null) {
- setTrainerPartyPokemonAbilities(5);
- setTrainerPartyPokemonForm(5);
- setTrainerPokemonGender(5);
- }
- }
-
- private void showTrainerEditorItemPic(byte partyPos) {
- ComboBox cb = partyItemsComboboxList[partyPos];
- partyPokemonItemIconList[partyPos].Visible = cb.SelectedIndex > 0;
- }
-
- private void partyItem1ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- showTrainerEditorItemPic(0);
- }
-
- private void partyItem2ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- showTrainerEditorItemPic(1);
- }
-
- private void partyItem3ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- showTrainerEditorItemPic(2);
- }
-
- private void partyItem4ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- showTrainerEditorItemPic(3);
- }
-
- private void partyItem5ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- showTrainerEditorItemPic(4);
- }
-
- private void partyItem6ComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- showTrainerEditorItemPic(5);
- }
-
- private void DVExplainButton_Click(object sender, EventArgs e) {
-
- DVCalc DVCalcForm = new DVCalc(currentTrainerFile);
- DVCalcForm.ShowDialog();
-
- currentTrainerFile = DVCalcForm.trainerFile;
- Helpers.DisableHandlers();
- RefreshTrainerPartyGUI();
- Helpers.EnableHandlers();
-
- }
-
- private void partyCountUpDown_ValueChanged(object sender, EventArgs e) {
- for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++) {
- partyGroupboxList[i].Enabled = (partyCountUpDown.Value > i);
- partyPokemonPictureBoxList[i].Visible = partyGroupboxList[i].Enabled;
- }
- for (int i = Math.Min(currentTrainerFile.trp.partyCount, (int)partyCountUpDown.Value); i < TrainerFile.POKE_IN_PARTY; i++) {
- currentTrainerFile.party[i] = new PartyPokemon(currentTrainerFile.trp.chooseItems, currentTrainerFile.trp.chooseMoves);
- }
- }
-
- private void trainerMovesCheckBox_CheckedChanged(object sender, EventArgs e) {
- for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++) {
- for (int j = 0; j < Party.MOVES_PER_POKE; j++) {
- (partyMovesGroupboxList[i].Controls[j] as ComboBox).Enabled = trainerMovesCheckBox.Checked;
- }
- if (trainerMovesCheckBox.Checked && i < currentTrainerFile.trp.partyCount && Helpers.HandlersEnabled) {
- Helpers.BackUpDisableHandler();
- Helpers.DisableHandlers();
- LearnsetData learnset = new LearnsetData((int)currentTrainerFile.party[i].pokeID);
- int level = currentTrainerFile.party[i].level;
- currentTrainerFile.party[i].moves = learnset.GetLearnsetAtLevel(level);
- Debug.Print("Changing the moves of Pokemon " + i.ToString() + " which is Pokemon " + currentTrainerFile.party[i].pokeID);
- Debug.Print("The new moves will be: " + string.Join(", ", currentTrainerFile.party[i].moves));
- for (int j = 0; j < Party.MOVES_PER_POKE; j++) {
- (partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex = currentTrainerFile.party[i].moves[j];
- Debug.Print("Move for dropdwon " + j.ToString() + " is " + currentTrainerFile.party[i].moves[j].ToString());
- }
- Helpers.RestoreDisableHandler();
- } else {
- //currentTrainerFile.party[i].moves = null;
- }
- }
- RefreshTrainerPartyGUI();
- }
- private void trainerItemsCheckBox_CheckedChanged(object sender, EventArgs e) {
- for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++) {
- partyItemsComboboxList[i].Enabled = trainerItemsCheckBox.Checked;
- }
- }
- private void partyMoveComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- if (Helpers.HandlersEnabled) {
- for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++) {
- ushort[] moves = currentTrainerFile.party[i].moves;
-
- if (moves != null) {
- for (int j = 0; j < Party.MOVES_PER_POKE; j++) {
- moves[j] = (ushort)(partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex;
- }
- }
- }
- }
- }
-
- private void trainerSaveCurrentButton_Click(object sender, EventArgs e) {
- currentTrainerFile.trp.partyCount = (byte)partyCountUpDown.Value;
- currentTrainerFile.trp.chooseMoves = trainerMovesCheckBox.Checked;
- currentTrainerFile.trp.chooseItems = trainerItemsCheckBox.Checked;
- currentTrainerFile.trp.doubleBattle = trainerDoubleCheckBox.Checked;
-
- IList trainerItems = trainerItemsGroupBox.Controls;
- for (int i = 0; i < trainerItems.Count; i++) {
- currentTrainerFile.trp.trainerItems[i] = (ushort)(trainerItems[i] as ComboBox).SelectedIndex;
- }
-
- IList trainerAI = TrainerAIGroupBox.Controls;
- for (int i = 0; i < trainerAI.Count; i++) {
- currentTrainerFile.trp.AI[i] = (trainerAI[i] as CheckBox).Checked;
- }
-
- for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++) {
- currentTrainerFile.party[i].moves = trainerMovesCheckBox.Checked ? new ushort[4] : null;
- }
-
-
- for (int i = 0; i < partyCountUpDown.Value; i++) {
- currentTrainerFile.party[i].pokeID = (ushort)partyPokemonComboboxList[i].SelectedIndex;
- currentTrainerFile.party[i].formID = (ushort)partyFormComboBoxList[i].SelectedIndex;
- currentTrainerFile.party[i].level = (ushort)partyLevelUpdownList[i].Value;
-
- if (trainerMovesCheckBox.Checked) {
- IList movesList = partyMovesGroupboxList[i].Controls;
- for (int j = 0; j < Party.MOVES_PER_POKE; j++) {
- currentTrainerFile.party[i].moves[j] = (ushort)(movesList[j] as ComboBox).SelectedIndex;
- }
- }
-
- if (trainerItemsCheckBox.Checked) {
- currentTrainerFile.party[i].heldItem = (ushort)partyItemsComboboxList[i].SelectedIndex;
- }
-
- currentTrainerFile.party[i].difficulty = (byte)partyIVUpdownList[i].Value;
-
- if (hasMoreThanOneGender((int)currentTrainerFile.party[i].pokeID, pokemonSpecies) && (gameFamily == GameFamilies.HGSS || RomInfo.AIBackportEnabled)) {
- switch (partyGenderComboBoxList[i].SelectedIndex) {
- case TRAINER_PARTY_POKEMON_GENDER_DEFAULT_INDEX:
- currentTrainerFile.party[i].genderAndAbilityFlags = PartyPokemon.GenderAndAbilityFlags.NO_FLAGS;
- break;
- case TRAINER_PARTY_POKEMON_GENDER_MALE_INDEX:
- currentTrainerFile.party[i].genderAndAbilityFlags = PartyPokemon.GenderAndAbilityFlags.FORCE_MALE;
- break;
- case TRAINER_PARTY_POKEMON_GENDER_FEMALE_INDEX:
- currentTrainerFile.party[i].genderAndAbilityFlags = PartyPokemon.GenderAndAbilityFlags.FORCE_FEMALE;
- break;
- }
- } else
- currentTrainerFile.party[i].genderAndAbilityFlags = PartyPokemon.GenderAndAbilityFlags.NO_FLAGS;
-
- if (partyAbilityComboBoxList[i].SelectedIndex == TRAINER_PARTY_POKEMON_ABILITY_SLOT1_INDEX)
- {
- currentTrainerFile.party[i].genderAndAbilityFlags |= PartyPokemon.GenderAndAbilityFlags.ABILITY_SLOT1;
- }
- else if (partyAbilityComboBoxList[i].SelectedIndex == TRAINER_PARTY_POKEMON_ABILITY_SLOT2_INDEX)
- {
- currentTrainerFile.party[i].genderAndAbilityFlags |= PartyPokemon.GenderAndAbilityFlags.ABILITY_SLOT2;
- }
-
- currentTrainerFile.party[i].ballSeals = (ushort)partyBallUpdownList[i].Value;
- }
-
- /*Write to File*/
- string indexStr = "\\" + trainerComboBox.SelectedIndex.ToString("D4");
- File.WriteAllBytes(RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir + indexStr, currentTrainerFile.trp.ToByteArray());
- File.WriteAllBytes(RomInfo.gameDirs[DirNames.trainerParty].unpackedDir + indexStr, currentTrainerFile.party.ToByteArray());
-
- UpdateCurrentTrainerName(newName: trainerNameTextBox.Text);
- UpdateCurrentTrainerShownName();
-
- if (trainerNameTextBox.Text.Length > RomInfo.trainerNameMaxLen) { //Subtract 1 to account for special end character.
- //Expose a smaller limit to the user
- if (RomInfo.trainerNameLenOffset >= 0) {
- MessageBox.Show($"Trainer File saved successfully. However:\nYou attempted to save a Trainer whose name exceeds {RomInfo.trainerNameMaxLen} characters.\nThis may lead to issues in game." +
- (PatchToolboxDialog.flag_TrainerNamesExpanded ? "\n\nIt's recommended that you use a shorter name." : "\n\nRefer to the Patch Toolbox to extend Trainer names."),
- "Saved successfully, but...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- } else {
- MessageBox.Show($"Trainer File saved successfully. However:\nThe Trainer name length could not be safely determined for this ROM.\n" +
- $"You attempted to save a Trainer whose name exceeds {RomInfo.trainerNameMaxLen} characters.\nThis will most likely lead to issues in game.",
- "Saved successfully, but...", MessageBoxButtons.OK, MessageBoxIcon.Warning);
- }
- } else {
- MessageBox.Show("Trainer saved successfully!", "Saved successfully", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- }
-
- private void UpdateCurrentTrainerShownName() {
- string trClass = GetTrainerClassNameFromListbox(trainerClassListBox.SelectedItem);
-
- string editedTrainer = "[" + currentTrainerFile.trp.trainerID.ToString("D2") + "] " + trClass + " " + currentTrainerFile.name;
-
- Helpers.DisableHandlers();
- trainerComboBox.Items[trainerComboBox.SelectedIndex] = editedTrainer;
- Helpers.EnableHandlers();
-
- if (eventEditorIsReady) {
- owTrainerComboBox.Items[trainerComboBox.SelectedIndex] = editedTrainer;
- }
- }
-
- private string GetTrainerClassNameFromListbox(object selectedItem) {
- string lbname = selectedItem.ToString();
- return lbname.Substring(lbname.IndexOf(" ") + 1);
- }
-
- private void UpdateCurrentTrainerName(string newName) {
- currentTrainerFile.name = newName;
- TextArchive trainerNames = new TextArchive(RomInfo.trainerNamesMessageNumber);
- if (currentTrainerFile.trp.trainerID < trainerNames.messages.Count) {
- trainerNames.messages[currentTrainerFile.trp.trainerID] = newName;
- } else {
- trainerNames.messages.Add(newName);
- }
- trainerNames.SaveToFileDefaultDir(RomInfo.trainerNamesMessageNumber, showSuccessMessage: false);
- }
- private void UpdateCurrentTrainerClassName(string newName) {
- TextArchive trainerClassNames = new TextArchive(RomInfo.trainerClassMessageNumber);
- trainerClassNames.messages[trainerClassListBox.SelectedIndex] = newName;
- trainerClassNames.SaveToFileDefaultDir(RomInfo.trainerClassMessageNumber, showSuccessMessage: false);
- }
-
- private void trainerClassListBox_SelectedIndexChanged(object sender, EventArgs e) {
- int selection = trainerClassListBox.SelectedIndex;
- if (selection < 0) {
- return;
- }
-
- try {
- int maxFrames = Helpers.LoadTrainerClassPic(selection, trainerPal, trainerTile, trainerSprite);
- Helpers.UpdateTrainerClassPic(trainerClassPicBox, trainerPal, trainerTile, trainerSprite, trainerClassPicBox.Height, trainerClassPicBox.Width);
-
- trClassFramePreviewUpDown.Maximum = maxFrames;
- trainerClassFrameMaxLabel.Text = "/" + maxFrames;
- } catch {
- trClassFramePreviewUpDown.Maximum = 0;
- }
-
- trainerClassNameTextbox.Text = GetTrainerClassNameFromListbox(trainerClassListBox.SelectedItem);
-
- if (trainerClassEncounterMusicDict.TryGetValue((byte)selection, out (uint entryOffset, ushort musicD, ushort? musicN) output)) {
- encounterSSEQMainUpDown.Enabled = eyeContactMusicLabel.Enabled = true;
- encounterSSEQMainUpDown.Value = output.musicD;
- } else {
- encounterSSEQMainUpDown.Enabled = eyeContactMusicLabel.Enabled = false;
- encounterSSEQMainUpDown.Value = 0;
- }
-
- eyeContactMusicAltLabel.Enabled = encounterSSEQAltUpDown.Enabled = (encounterSSEQMainUpDown.Enabled && gameFamily == GameFamilies.HGSS);
- encounterSSEQAltUpDown.Value = output.musicN != null ? (ushort)output.musicN : 0;
- currentTrainerFile.trp.trainerClass = (byte)selection;
- }
-
- private void addTrainerButton_Click(object sender, EventArgs e) {
- /* Add new trainer file to 2 folders */
- string suffix = "\\" + trainerComboBox.Items.Count.ToString("D4");
-
- string trainerPropertiesPath = gameDirs[DirNames.trainerProperties].unpackedDir + suffix;
- string partyFilePath = gameDirs[DirNames.trainerParty].unpackedDir + suffix;
-
- File.WriteAllBytes(trainerPropertiesPath, new TrainerProperties((ushort)trainerComboBox.Items.Count).ToByteArray());
- File.WriteAllBytes(partyFilePath, new PartyPokemon().ToByteArray());
-
- TextArchive trainerClasses = new TextArchive(RomInfo.trainerClassMessageNumber);
- TextArchive trainerNames = new TextArchive(RomInfo.trainerNamesMessageNumber);
-
- /* Update ComboBox and select new file */
- trainerComboBox.Items.Add(trainerClasses.messages[0]);
- trainerNames.messages.Add("");
- trainerNames.SaveToFileDefaultDir(RomInfo.trainerNamesMessageNumber, showSuccessMessage: false);
-
- trainerComboBox.SelectedIndex = trainerComboBox.Items.Count - 1;
- UpdateCurrentTrainerShownName();
- }
-
- private void exportTrainerButton_Click(object sender, EventArgs e) {
- currentTrainerFile.SaveToFileExplorePath("G4 Trainer File " + trainerComboBox.SelectedItem);
- }
-
- private void importTrainerButton_Click(object sender, EventArgs e) {
- OpenFileDialog of = new OpenFileDialog {
- Filter = "Gen IV Trainer File (*.trf)|*.trf"
- };
- if (of.ShowDialog(this) != DialogResult.OK) {
- return;
- }
-
- /* Update trainer on disk */
- using (DSUtils.EasyReader reader = new DSUtils.EasyReader(of.FileName)) {
- string trName = reader.ReadString();
-
- byte datSize = reader.ReadByte();
- byte[] trDat = reader.ReadBytes(datSize);
-
- byte partySize = reader.ReadByte();
- byte[] pDat = reader.ReadBytes(partySize);
-
- string pathData = RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir + "\\" + trainerComboBox.SelectedIndex.ToString("D4");
- string pathParty = RomInfo.gameDirs[DirNames.trainerParty].unpackedDir + "\\" + trainerComboBox.SelectedIndex.ToString("D4");
- File.WriteAllBytes(pathData, trDat);
- File.WriteAllBytes(pathParty, pDat);
-
- UpdateCurrentTrainerName(trName);
- }
-
- /* Refresh controls and re-read file */
- trainerComboBox_SelectedIndexChanged(null, null);
- UpdateCurrentTrainerShownName();
-
- /* Display success message */
- MessageBox.Show("Trainer File imported successfully!", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
-
- private void exportPropertiesButton_Click(object sender, EventArgs e) {
- currentTrainerFile.trp.SaveToFileExplorePath("G4 Trainer Properties " + trainerComboBox.SelectedItem);
- }
-
- private void replacePropertiesButton_Click(object sender, EventArgs e) {
- OpenFileDialog of = new OpenFileDialog {
- Filter = "Gen IV Trainer Properties (*.trp)|*.trp"
- };
- if (of.ShowDialog(this) != DialogResult.OK) {
- return;
- }
-
- /* Update trp object in memory */
- currentTrainerFile.trp = new TrainerProperties((ushort)trainerComboBox.SelectedIndex, new FileStream(of.FileName, FileMode.Open));
- RefreshTrainerPropertiesGUI();
-
- /* Display success message */
- MessageBox.Show("Trainer Properties imported successfully!\nRemember to save the current Trainer File.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
-
- private void exportPartyButton_Click(object sender, EventArgs e) {
- currentTrainerFile.party.exportCondensedData = true;
- currentTrainerFile.party.SaveToFileExplorePath("G4 Party Data " + trainerComboBox.SelectedItem);
- currentTrainerFile.party.exportCondensedData = false;
- }
-
- private void importReplacePartyButton_Click(object sender, EventArgs e) {
- OpenFileDialog of = new OpenFileDialog {
- Filter = "Gen IV Party File (*.pdat)|*.pdat"
- };
- if (of.ShowDialog(this) != DialogResult.OK) {
- return;
- }
-
- /* Update trp object in memory */
- currentTrainerFile.party = new Party(readFirstByte: true, TrainerFile.POKE_IN_PARTY, new FileStream(of.FileName, FileMode.Open), currentTrainerFile.trp);
- RefreshTrainerPropertiesGUI();
- RefreshTrainerPartyGUI();
-
- /* Display success message */
- MessageBox.Show("Trainer Party imported successfully!\nRemember to save the current Trainer File.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
-
- private void saveTrainerClassButton_Click(object sender, EventArgs e) {
- Helpers.DisableHandlers();
-
- int selectedTrClass = trainerClassListBox.SelectedIndex;
-
- byte b_selectedTrClass = (byte)selectedTrClass;
- ushort eyeMusicID = (ushort)encounterSSEQMainUpDown.Value;
- ushort altEyeMusicID = (ushort)encounterSSEQAltUpDown.Value;
-
- if (trainerClassEncounterMusicDict.TryGetValue(b_selectedTrClass, out var dictEntry)) {
- ARM9.WriteBytes(BitConverter.GetBytes(eyeMusicID), dictEntry.entryOffset + 2);
-
- if (gameFamily.Equals(GameFamilies.HGSS)) {
- ARM9.WriteBytes(BitConverter.GetBytes(altEyeMusicID), dictEntry.entryOffset + 4);
- }
-
- trainerClassEncounterMusicDict[b_selectedTrClass] = (dictEntry.entryOffset, eyeMusicID, altEyeMusicID);
- }
-
- string newName = trainerClassNameTextbox.Text;
- UpdateCurrentTrainerClassName(newName);
- trainerClassListBox.Items[selectedTrClass] = "[" + selectedTrClass.ToString("D3") + "]" + " " + newName;
-
- if (currentTrainerFile.trp.trainerClass == trainerClassListBox.SelectedIndex) {
- UpdateCurrentTrainerShownName();
- }
- Helpers.EnableHandlers();
-
- if (gameFamily.Equals(GameFamilies.HGSS) && EditorPanels.tableEditor.battleTableEditorIsReady && EditorPanels.tableEditor.conditionnalMusicTableEditorIsReady) {
- EditorPanels.tableEditor.pbEffectsTrainerCombobox.Items[selectedTrClass] = trainerClassListBox.Items[selectedTrClass];
- for (int i = 0; i < EditorPanels.tableEditor.vsTrainerEffectsList.Count; i++)
- {
- if (EditorPanels.tableEditor.vsTrainerEffectsList[i].trainerClass == selectedTrClass)
- {
- EditorPanels.tableEditor.pbEffectsVsTrainerListbox.Items[i] = EditorPanels.tableEditor.pbEffectsTrainerCombobox.Items[selectedTrClass] + " uses Combo #" + EditorPanels.tableEditor.vsTrainerEffectsList[i].comboID;
- }
- }
- }
- MessageBox.Show("Trainer Class settings saved.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
-
- private void trClassFramePreviewUpDown_ValueChanged(object sender, EventArgs e) {
- Helpers.UpdateTrainerClassPic(trainerClassPicBox, trainerPal, trainerTile, trainerSprite, trainerClassPicBox.Height, trainerClassPicBox.Width, (int)((NumericUpDown)sender).Value);
- }
-
- private (int abi1, int abi2)[] getPokemonAbilities(int numPokemonSpecies) {
- var pokemonSpeciesAbilities = new (int abi1, int abi2)[numPokemonSpecies];
-
- for (int i = 0; i < numPokemonSpecies; i++) {
- pokemonSpeciesAbilities[i] = (pokemonSpecies[i].Ability1, pokemonSpecies[i].Ability2);
- }
-
- return pokemonSpeciesAbilities;
- }
-
- private (string ability1, string ability2) getPokemonAbilityNames(int pokemonID) {
- return (abilityNames[pokemonSpeciesAbilities[pokemonID].abi1],
- abilityNames[pokemonSpeciesAbilities[pokemonID].abi2]);
- }
-
- private void setTrainerPartyPokemonAbilities(int partyPokemonPosition) {
- (string ability1, string ability2) = getPokemonAbilityNames(partyPokemonComboboxList[partyPokemonPosition].SelectedIndex);
- string noFlags = "No Flag";
-
- partyAbilityComboBoxList[partyPokemonPosition].Items.Clear();
-
- // In DPPt just show ability 1 and do not allow editing
- if (RomInfo.gameFamily != GameFamilies.HGSS && !RomInfo.AIBackportEnabled)
- {
- partyAbilityComboBoxList[partyPokemonPosition].Items.Add(ability1);
- partyAbilityComboBoxList[partyPokemonPosition].Enabled = false;
- return;
- }
-
- // In HGSS allow editing of ability flags
- partyAbilityComboBoxList[partyPokemonPosition].Items.Add(noFlags);
- partyAbilityComboBoxList[partyPokemonPosition].Items.Add(ability1);
-
- string stringAbi2 = ability2;
- if (ability2.Equals(ability1))
- {
- stringAbi2 += " (2nd Slot)";
- }
- else if (ability2.Equals(" -"))
- {
- stringAbi2 = ability1 += " (2nd Slot)";
- }
- partyAbilityComboBoxList[partyPokemonPosition].Items.Add(stringAbi2);
-
-
- }
-
- private void setTrainerPokemonGender(int partyPokemonPosition) {
- int currentPokemonGenderRatio = pokemonSpecies[partyPokemonComboboxList[partyPokemonPosition].SelectedIndex].GenderRatioMaleToFemale;
- PartyPokemon.GenderAndAbilityFlags currentPokemonGenderAndAbilityFlags = currentTrainerFile.party[partyPokemonPosition].genderAndAbilityFlags;
-
- if (gameFamily == GameFamilies.HGSS || RomInfo.AIBackportEnabled) {
- switch (currentPokemonGenderRatio) {
- case GENDER_RATIO_MALE:
- partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_MALE_INDEX;
- partyGenderComboBoxList[partyPokemonPosition].Enabled = false;
- break;
- case GENDER_RATIO_FEMALE:
- partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_FEMALE_INDEX;
- partyGenderComboBoxList[partyPokemonPosition].Enabled = false;
- break;
- case GENDER_RATIO_GENDERLESS:
- partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_DEFAULT_INDEX;
- partyGenderComboBoxList[partyPokemonPosition].Enabled = false;
- break;
- default:
- partyGenderComboBoxList[partyPokemonPosition].Enabled = true;
-
- if (currentPokemonGenderAndAbilityFlags.HasFlag(PartyPokemon.GenderAndAbilityFlags.FORCE_MALE))
- partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_MALE_INDEX;
- else if (currentPokemonGenderAndAbilityFlags.HasFlag(PartyPokemon.GenderAndAbilityFlags.FORCE_FEMALE))
- partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_FEMALE_INDEX;
- else
- partyGenderComboBoxList[partyPokemonPosition].SelectedIndex = TRAINER_PARTY_POKEMON_GENDER_DEFAULT_INDEX;
- break;
- }
- }
- }
-
- private List getPokemonFormNames(int pokemonID) {
- List pokemonFormNames = new List();
-
- switch (pokemonID) {
- case PICHU_ID_NUM:
- if (RomInfo.gameFamily == GameFamilies.HGSS) {
- pokemonFormNames.Add("Non-Spiky-Eared");
- pokemonFormNames.Add("Spiky-Eared");
- } else {
- pokemonFormNames.Add("No Alt Form");
- }
- break;
- case UNOWN_ID_NUM:
- for (char c = 'A'; c <= 'Z'; c++)
- pokemonFormNames.Add(c + " Form");
-
- pokemonFormNames.Add("! Form");
- pokemonFormNames.Add("? Form");
- break;
- case CASTFORM_ID_NUM:
- pokemonFormNames.Add("Normal Form");
- pokemonFormNames.Add("Sunny Form");
- pokemonFormNames.Add("Rainy Form");
- pokemonFormNames.Add("Snowy Form");
- break;
- case DEOXYS_ID_NUM:
- pokemonFormNames.Add("Normal Form");
- pokemonFormNames.Add("Attack Form");
- pokemonFormNames.Add("Defense Form");
- pokemonFormNames.Add("Speed Form");
- break;
- case BURMY_ID_NUM:
- case WORMADAM_ID_NUM:
- pokemonFormNames.Add("Plant Cloak");
- pokemonFormNames.Add("Sand Cloak");
- pokemonFormNames.Add("Trash Cloak");
- break;
- case SHELLOS_ID_NUM:
- case GASTRODON_ID_NUM:
- pokemonFormNames.Add("West sea");
- pokemonFormNames.Add("East sea");
- break;
- case ROTOM_ID_NUM:
- pokemonFormNames.Add("Rotom");
- pokemonFormNames.Add("Heat Rotom");
- pokemonFormNames.Add("Wash Rotom");
- pokemonFormNames.Add("Frost Rotom");
- pokemonFormNames.Add("Fan Rotom");
- pokemonFormNames.Add("Mow Rotom");
- break;
- case SHAYMIN_ID_NUM:
- pokemonFormNames.Add("Land Form");
- pokemonFormNames.Add("Sky Form");
- break;
- default:
- pokemonFormNames.Add("No Alt Form");
- break;
- }
- return pokemonFormNames;
-
- }
-
- private void setTrainerPartyPokemonForm(int partyPokemonPosition) {
- if (gameFamily != GameFamilies.DP) {
- partyFormComboBoxList[partyPokemonPosition].Items.Clear();
- List currentPokemonFormName = getPokemonFormNames(partyPokemonComboboxList[partyPokemonPosition].SelectedIndex);
- foreach (string formName in currentPokemonFormName)
- partyFormComboBoxList[partyPokemonPosition].Items.Add(formName);
-
- partyFormComboBoxList[partyPokemonPosition].Enabled = currentPokemonFormName.Count > 1;
- partyFormComboBoxList[partyPokemonPosition].SelectedIndex = 0;
- }
-
- }
-
- #endregion
-
#region Tooltrip Menu
private void unpackToFolderToolStripMenuItem_Click(object sender, EventArgs e) {
OpenFileDialog of = new OpenFileDialog {
@@ -9094,6 +8085,20 @@ namespace DSPRE {
popoutScriptEditorButton.Enabled = true; // Enable popout button
});
}
+
+ private void popoutTrainerEditorButton_Click(object sender, EventArgs e)
+ {
+ trainerEditorPoppedOutLabel.Visible = true; // Show Editor popped-out label
+ popoutTrainerEditorButton.Enabled = false; // Disable popout button
+
+ Helpers.PopOutEditor(trainerEditor, "Trainer Editor", mainTabImageList.Images[8], ctrl =>
+ {
+ trainerEditorPoppedOutLabel.Visible = false; // Hide Editor popped-out label
+ popoutTrainerEditorButton.Enabled = true; // Enable popout button
+ });
+ }
#endregion
+
+
}
}
diff --git a/DS_Map/Main Window.resx b/DS_Map/Main Window.resx
index d35d5ff..28acaf5 100644
--- a/DS_Map/Main Window.resx
+++ b/DS_Map/Main Window.resx
@@ -117,6 +117,96 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+ 239, 17
+
+
+
+ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
+ LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
+ ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACM
+ EgAAAk1TRnQBSQFMAgEBCgEAAagBHQGoAR0BEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
+ AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
+ AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
+ AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
+ AWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHMAgABMwH/AgABZgMAAWYBMwIAAmYCAAFm
+ AZkCAAFmAcwCAAFmAf8CAAGZAwABmQEzAgABmQFmAgACmQIAAZkBzAIAAZkB/wIAAcwDAAHMATMCAAHM
+ AWYCAAHMAZkCAALMAgABzAH/AgAB/wFmAgAB/wGZAgAB/wHMAQABMwH/AgAB/wEAATMBAAEzAQABZgEA
+ ATMBAAGZAQABMwEAAcwBAAEzAQAB/wEAAf8BMwIAAzMBAAIzAWYBAAIzAZkBAAIzAcwBAAIzAf8BAAEz
+ AWYCAAEzAWYBMwEAATMCZgEAATMBZgGZAQABMwFmAcwBAAEzAWYB/wEAATMBmQIAATMBmQEzAQABMwGZ
+ AWYBAAEzApkBAAEzAZkBzAEAATMBmQH/AQABMwHMAgABMwHMATMBAAEzAcwBZgEAATMBzAGZAQABMwLM
+ AQABMwHMAf8BAAEzAf8BMwEAATMB/wFmAQABMwH/AZkBAAEzAf8BzAEAATMC/wEAAWYDAAFmAQABMwEA
+ AWYBAAFmAQABZgEAAZkBAAFmAQABzAEAAWYBAAH/AQABZgEzAgABZgIzAQABZgEzAWYBAAFmATMBmQEA
+ AWYBMwHMAQABZgEzAf8BAAJmAgACZgEzAQADZgEAAmYBmQEAAmYBzAEAAWYBmQIAAWYBmQEzAQABZgGZ
+ AWYBAAFmApkBAAFmAZkBzAEAAWYBmQH/AQABZgHMAgABZgHMATMBAAFmAcwBmQEAAWYCzAEAAWYBzAH/
+ AQABZgH/AgABZgH/ATMBAAFmAf8BmQEAAWYB/wHMAQABzAEAAf8BAAH/AQABzAEAApkCAAGZATMBmQEA
+ AZkBAAGZAQABmQEAAcwBAAGZAwABmQIzAQABmQEAAWYBAAGZATMBzAEAAZkBAAH/AQABmQFmAgABmQFm
+ ATMBAAGZATMBZgEAAZkBZgGZAQABmQFmAcwBAAGZATMB/wEAApkBMwEAApkBZgEAA5kBAAKZAcwBAAKZ
+ Af8BAAGZAcwCAAGZAcwBMwEAAWYBzAFmAQABmQHMAZkBAAGZAswBAAGZAcwB/wEAAZkB/wIAAZkB/wEz
+ AQABmQHMAWYBAAGZAf8BmQEAAZkB/wHMAQABmQL/AQABzAMAAZkBAAEzAQABzAEAAWYBAAHMAQABmQEA
+ AcwBAAHMAQABmQEzAgABzAIzAQABzAEzAWYBAAHMATMBmQEAAcwBMwHMAQABzAEzAf8BAAHMAWYCAAHM
+ AWYBMwEAAZkCZgEAAcwBZgGZAQABzAFmAcwBAAGZAWYB/wEAAcwBmQIAAcwBmQEzAQABzAGZAWYBAAHM
+ ApkBAAHMAZkBzAEAAcwBmQH/AQACzAIAAswBMwEAAswBZgEAAswBmQEAA8wBAALMAf8BAAHMAf8CAAHM
+ Af8BMwEAAZkB/wFmAQABzAH/AZkBAAHMAf8BzAEAAcwC/wEAAcwBAAEzAQAB/wEAAWYBAAH/AQABmQEA
+ AcwBMwIAAf8CMwEAAf8BMwFmAQAB/wEzAZkBAAH/ATMBzAEAAf8BMwH/AQAB/wFmAgAB/wFmATMBAAHM
+ AmYBAAH/AWYBmQEAAf8BZgHMAQABzAFmAf8BAAH/AZkCAAH/AZkBMwEAAf8BmQFmAQAB/wKZAQAB/wGZ
+ AcwBAAH/AZkB/wEAAf8BzAIAAf8BzAEzAQAB/wHMAWYBAAH/AcwBmQEAAf8CzAEAAf8BzAH/AQAC/wEz
+ AQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC/wFm
+ AQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gBAAHw
+ AfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD/xMABLwEAAS8KwAGvAIA
+ BOkBvAMABOkBvCoAASYBHgQAArwBAATpBAAE6QG8KgABJgEeAgABJgEeAQABvAEAAukBvAIABLwBAALp
+ AbwtAAG8ASYBHgMAAukBvAEABAsCvALpAbwsAAEmAR4CAAG8AgAC6QG8AgsBvAEAAgsBvALpAbwmAAO8
+ AgABJgEeAgABvAMAAukBvAILArwCCwEAAukBvCUAAc0BCgEAAbwBAAEmAR4BAAHsAwABvAEAAukBvAUL
+ AgAC6QG8JQABzQEKAQACvAEmAR4BAAESArwBAAG8AQAC6QG8AgsCvAMAAukBvCQAAc0BCgMAAbwBAAEm
+ AR4GAALpAbwBAAILA7wBAALpAbwkAAHNAQoBEgHsAQABEgG8CAAC6QG8AgADCwIAAukBvCQAAc0BCgES
+ AgABEgG8CAAC6QO8BAABvALpAbwjAAHNAQoBAAG8AwABvAgABOkBvAMABOkBvAEAAbwhAAHNAQoBAAG8
+ AwAB7AG8BwAE6QQABOkBGwExAZkhAAFlGwADMT0AARsBMQEbKQAB7AESAe8FAAH0EQAKEhgAAvMC6wHv
+ AewB6wHzBQAB6gH0BQAC8gH0BgADEgZKAxIUAAHzAfEBvALsAQcBvAEHAewB6wEHBAABDgESAe0EAAHw
+ ASIBKQHrAfMFAAESAkoGbgJKARIDAAEPBwABDwUAAQ8BAAG8AfcB7QGSAe8BvAEHAfAB9AHyAesB6gQA
+ AQ4BbQHtAwABBwEjAisBKgHrAfMDAAESAUoBbgFKBm4BSgFuAUoBEgEAAQ8J7wEPAwAB7wIAAW0C9wHw
+ AbwB8wLyAvQB7QHrAQcDAAEHARUB6gPtASkBKwElAR8BJQEqAesB9AIAARIBSgFuAUoGkwFKAW4BSgES
+ AgAB7wEBAR8G7wMAAu8CAAG8Ae8B8QH0AfYB8gLwAfQB9gHvAewBbQMAAfQBEAHrAUoBMAEDASUBFwH5
+ AiABJQEqAeoCAAESAUoBkwFuBkkBbgGTAUoBEgIAAe8CAQEfBe8BAAIPAu8CAAHyAe8C9gH3AW0B6wHy
+ AfQB9gHzAesB7AEHAgAB9AEQAXMBRQEkASAB+QEXAfkBIAEfASABMQEiAfQBAAESAZMBbgFJBmwBSQFu
+ AZMBEgIAAe8BAQEfBu8DAALvAwAB7wHzAbwBkgHwAfcB9gH3Ae0BBwHrAewB7wMAAfIBEQFFAR8CIAH5
+ ARcB+QEgAR8BMQEiAfQBAAESAZMBSQJsBHECbAFJAZMBEgEAAQ8J7wEPAwAB7wMAAQcB8AFEASUBGgKS
+ AfIC8wH0ARIB6wHyAgAB8gFDAewBRQEfASAB+QEXASYBMQE3ATABFAIAAUkBbgFsAXEBlwRxAZcBcQFs
+ AW4BEgIAAQ8HAAEPBQABDwIAAfQBbQEsASUB6wH0AvEC7wHyAusBvAIAAfMBbQHrAUUBHwIgAfkBMQFR
+ Am0B8wIAAUkCbAGXAnEClwJxAZcCbAFJAgABFQEPARUDAAEVAQ8BFQgAARwBLAErAeoBBwG8Au8B9AK8
+ AfMCbQMAAfABEwFFAR8BJAIrAVEBvAUAAUkBbAJxBpcCcQFsAUkBAAEVAfcBBwH3ARUBAAEVAfcBBwH3
+ ARUGAAHvAisBSwHvAQcBvAHxBAcB9AGLAeoDAAHwAREBSwEkASMBAwFKAfAHAAFsAXEDlwJ4A5cBcQFs
+ AgABDwEHAQABBwEPAQABDwEHAQABBwEPBQAB7wErASwBRQK8AQcB7wEHAbwB8AEZAtsBbAEHAwAB8AEj
+ AisBDgHwAfEIAAFJAXEClwF4BZcBcQFJAgABFQH3AQcB9wEVAQABFQH3AQcB9wEVBQABEgEsAUUB8gHz
+ Ae8B8gHxAbsC2gGzAosB8wQAAfABIwE3ATEBDgsAAUkBcQKXAXgDlwFxAUkEAAEVAQ8BFQMAARUBDwEV
+ BwABEgG8AgABBwGzAdQBswJsAe8IAAHvAg4B8wwAAWwBcQSXAXEBbBkAAQcCEgG8HQAEcRcAAfQL8wH0
+ EwAN8xMAAQcL7wEHAgAPEAEAAQcNswEHBwAEQwcAAe8BAAG7BrMBuwIAAe8CAAEQBjgBEAbTARABAAGz
+ DQABswUAAkME8AJDBQAB7wEAAbMGAAGzAgAB7wIAARACOAMAATgBEALTAgAC0wEQAQABsw0AAbMEAAFD
+ CPABQwQAAe8BAAGtAQABlwJWAZcBAAGzAgAB7wIAARADOAEAAjgBEAHTAQAC0wEAAdMBEAEAAbMBAAFW
+ CVABVgEAAbMDAAFDA/ABkgJDAZID8AFDAwAB7wEAAa0BAARWAQABswH0AQAB7wIAARACOAIAAjgBEAHT
+ AQAC0wEAAdMBEAEAAbMBAAtWAQABswMAAUMB8AGSARIBQwHwAZIBQwESAZIB8AFDAwAB7wEAAa0BAARW
+ AQABswH0AQAB7wIAARADOAEAAjgBEALTAgAC0wEQAQABswEAC1YBAAGzAgABQwHwARICYwFDAQAB8AFD
+ AmMBEgHwAUMCAAHvAQABrQEABHgBAAGzAfQBAAHvAgABEAY4ARAG0wEQAQABswEAC1YBAAGzAgABQwES
+ BEcCQwRHARIBQwIAAe8BAAGtBgABswHzAQAB7wIADxABAAGzAQALVgEAAbMCAAFDDEcBQwIAAe8BAAG7
+ Aq0EswG7AfMBAAHvAgABEAZHARAGAAEQAQABswEAC1YBAAGzAgABQwxHAUMCAAHvAQAB8wP0AfMB9AQA
+ Ae8CAAEQAkcCAAJHARAGAAEQAQABswEAC1YBAAGzAwABQwJHApQGRwFDAwAB7wEAAXQCMgEsAXQBAAG8
+ AvcBAAHvAgABEAFHAQACRwEAAUcBEAYAARABAAGzAQABVgl4AVYBAAGzAwABQwFHBJQFRwFDAwAB7wEA
+ ASwDwwFTAQAB9wIAAfMB8AIAARABRwEAAkcBAAFHARAGAAEQAQABswEAC3gBAAGzBAABQwSUBEcBQwQA
+ Ae8BAAF0AywBdAEAAfcBAAHzAfADAAEQAkcCAAJHARAGAAEQAQABswEAC3gBAAGzBQACQwGUA0cCQwUA
+ Ae8IAAHzAfAEAAEQBkcBEAYAARABAAGzDQABswcABEMHAAEHCO8BBwUADxABAAEJDbMBCREAAUIBTQE+
+ BwABPgMAASgDAAFAAwABMAMAAQEBAAEBBQABgAEBFgAD/wEAAv8CwwQAAf8BgQKDBAAB/wEAAYcBgwQA
+ Af8BMAGMASMEAAH/AeEBiAEDBAAB/wHBAYEBAwQAAfEBgwGAASMEAAHhAQ4BgAFjBAAB4AEAAYAB4wQA
+ AcABgQGIASMEAAHAAX8BjAFjBAABxAF/AYMBwwQAAYQBfwGDAYIEAAGEAT8BhwGABAABjAF/Af8B+AQA
+ A/8B+AQAAf8BjwG/Af8B4AEHAv8B+AEHAo8BwAEDAv8BwAEHAY8BBwHAAQMBgAE8AYABBwGOAQMBgAEB
+ AQABGAGAAQMBgAEBAYABAQIAAYABAwGAAQEBgAEBAgABgAEBAYABAAGAAQECAAHAAQEBwAEAAYABAQEA
+ ARgBwAEAAcABAQGAAQEBgAE8AcABAAHAAQEBgAEBAY4BPwHAAQAB4AEPAYABAQEEAR8BgAEAAeABHwHA
+ AQMBJAGfAgAB4AE/AcABAwEEAR8BAAEBAeAB/wHgAQcBjgE/AZgBDwHwAf8B8AEPAv8B+AF/Av8B/AE/
+ Av8BgAEDAv8BgAEDAv8BgAEDAQABAQEAAQEB/AE/AaABGwEAAQEBfwH9AfABDwGvAdsBAAExAX8B/QHg
+ AQcBqAFbAQABSQFAAQUBwAEDAagBSwEAAUkBQAEFAcABAwGoAUsBAAExAUABBQGBAQEBqAFLAQABAQFA
+ AQUBgAEBAa8BywEAAQEBQAEFAYABAQGgAQsBAAH9AUABBQGAAQEBoAF7ARgBxQFAAQUBwAEDAaABiwEk
+ Ae0BQAEFAcABAwGgAbMBJAHNAUABBQHgAQcBoAGnARgB7QFAAQUB8AEPAb8BzwEAAf0BfwH9AfwBPwGA
+ AR8BAAEBAQABAQL/Cw==
+
+
@@ -745,138 +835,6 @@
vAAADrwBlbxySQAAAFxJREFUOE9j+P//PwM2zDBF7h/DFLn/DNNk/4PY6PJwdegCKAYsUPgPxqMG4DcA
HtoYWBaiGWwAJCawYhSFpGJQFFPBACzOAmMivYAeKCQHIrrAqAFoBiASFk4DAOQLbokdS+snAAAAAElF
TkSuQmCC
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- vAAADrwBlbxySQAAAI1JREFUSEtjYBgFZALDkLT/MIwuR3MAsjRt000whjqgBV0NTQDMxzDLQdg8uQKO
- bQu7cGJ0s0gC2CzGhssv/seKoQ4gPZQotZgiB1DDYoocAAK4QgDdAkKYbAdAQYtH47z/IIxuMLGYUgfA
- AFaHwMTwYWo5AAbADkF2ANRwYjD1ALIPqW44CYA2vhtRAAAmDYpgT13R+wAAAABJRU5ErkJggg==
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- vAAADrwBlbxySQAAAJdJREFUSEtjYBgFFIA4Nav/MIwuRxcAsvh6XBcYU90RyL7DhRe6psEdAMItxoFg
- jG4WWQDZd4Tw/4IlKJgqDgE54HZcN4Zl+CxGxxQ5BJ8D0C0ihMlyBDYHoBtMCCOFQAsUEw+QHYBuMCE8
- 0y4ejJEsJs1yEKg18YMbhA9T3WI0gGwQBkZ2ALUtJgoghwRdLUYD9PX1sAMAB89ugVJE7dUAAAAASUVO
- RK5CYII=
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABGdBTUEAALGPC/xhBQAAAI1JREFUOE/t
- lN0NwCAIhN2pO3Wn7uRONKZB4QC1mr71El4u3Bf/MKUvRPmkqLB3SpQPimsBzOF8JVUSjJmuopCEPn3+
- ao0fAYs00O8zvjGEfqDbZ3xjVL/c3gYQp6T5y0Bb/MjdIOSrgRMiqxsc+EO1lbepwHN+JT3f+pxxN9PC
- T2MLxpLQbRjLu7RPdAMHbKuW+sqG/QAAAABJRU5ErkJggg==
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- vAAADrwBlbxySQAAAI1JREFUSEtjYBgFZALDkLT/MIwuR3MAsjRt000whjqgBV0NTQDMxzDLQdg8uQKO
- bQu7cGJ0s0gC2CzGhssv/seKoQ4gPZQotZgiB1DDYoocAAK4QgDdAkKYbAdAQYtH47z/IIxuMLGYUgfA
- AFaHwMTwYWo5AAbADkF2ANRwYjD1ALIPqW44CYA2vhtRAAAmDYpgT13R+wAAAABJRU5ErkJggg==
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- vAAADrwBlbxySQAAAJdJREFUSEtjYBgFFIA4Nav/MIwuRxcAsvh6XBcYU90RyL7DhRe6psEdAMItxoFg
- jG4WWQDZd4Tw/4IlKJgqDgE54HZcN4Zl+CxGxxQ5BJ8D0C0ihMlyBDYHoBtMCCOFQAsUEw+QHYBuMCE8
- 0y4ejJEsJs1yEKg18YMbhA9T3WI0gGwQBkZ2ALUtJgoghwRdLUYD9PX1sAMAB89ugVJE7dUAAAAASUVO
- RK5CYII=
-
-
-
- 239, 17
-
-
-
- AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
- LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
- ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACM
- EgAAAk1TRnQBSQFMAgEBCgEAAYgBHQGIAR0BEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo
- AwABQAMAATADAAEBAQABCAYAAQwYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA
- AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5
- AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA
- AWYDAAGZAwABzAIAATMDAAIzAgABMwFmAgABMwGZAgABMwHMAgABMwH/AgABZgMAAWYBMwIAAmYCAAFm
- AZkCAAFmAcwCAAFmAf8CAAGZAwABmQEzAgABmQFmAgACmQIAAZkBzAIAAZkB/wIAAcwDAAHMATMCAAHM
- AWYCAAHMAZkCAALMAgABzAH/AgAB/wFmAgAB/wGZAgAB/wHMAQABMwH/AgAB/wEAATMBAAEzAQABZgEA
- ATMBAAGZAQABMwEAAcwBAAEzAQAB/wEAAf8BMwIAAzMBAAIzAWYBAAIzAZkBAAIzAcwBAAIzAf8BAAEz
- AWYCAAEzAWYBMwEAATMCZgEAATMBZgGZAQABMwFmAcwBAAEzAWYB/wEAATMBmQIAATMBmQEzAQABMwGZ
- AWYBAAEzApkBAAEzAZkBzAEAATMBmQH/AQABMwHMAgABMwHMATMBAAEzAcwBZgEAATMBzAGZAQABMwLM
- AQABMwHMAf8BAAEzAf8BMwEAATMB/wFmAQABMwH/AZkBAAEzAf8BzAEAATMC/wEAAWYDAAFmAQABMwEA
- AWYBAAFmAQABZgEAAZkBAAFmAQABzAEAAWYBAAH/AQABZgEzAgABZgIzAQABZgEzAWYBAAFmATMBmQEA
- AWYBMwHMAQABZgEzAf8BAAJmAgACZgEzAQADZgEAAmYBmQEAAmYBzAEAAWYBmQIAAWYBmQEzAQABZgGZ
- AWYBAAFmApkBAAFmAZkBzAEAAWYBmQH/AQABZgHMAgABZgHMATMBAAFmAcwBmQEAAWYCzAEAAWYBzAH/
- AQABZgH/AgABZgH/ATMBAAFmAf8BmQEAAWYB/wHMAQABzAEAAf8BAAH/AQABzAEAApkCAAGZATMBmQEA
- AZkBAAGZAQABmQEAAcwBAAGZAwABmQIzAQABmQEAAWYBAAGZATMBzAEAAZkBAAH/AQABmQFmAgABmQFm
- ATMBAAGZATMBZgEAAZkBZgGZAQABmQFmAcwBAAGZATMB/wEAApkBMwEAApkBZgEAA5kBAAKZAcwBAAKZ
- Af8BAAGZAcwCAAGZAcwBMwEAAWYBzAFmAQABmQHMAZkBAAGZAswBAAGZAcwB/wEAAZkB/wIAAZkB/wEz
- AQABmQHMAWYBAAGZAf8BmQEAAZkB/wHMAQABmQL/AQABzAMAAZkBAAEzAQABzAEAAWYBAAHMAQABmQEA
- AcwBAAHMAQABmQEzAgABzAIzAQABzAEzAWYBAAHMATMBmQEAAcwBMwHMAQABzAEzAf8BAAHMAWYCAAHM
- AWYBMwEAAZkCZgEAAcwBZgGZAQABzAFmAcwBAAGZAWYB/wEAAcwBmQIAAcwBmQEzAQABzAGZAWYBAAHM
- ApkBAAHMAZkBzAEAAcwBmQH/AQACzAIAAswBMwEAAswBZgEAAswBmQEAA8wBAALMAf8BAAHMAf8CAAHM
- Af8BMwEAAZkB/wFmAQABzAH/AZkBAAHMAf8BzAEAAcwC/wEAAcwBAAEzAQAB/wEAAWYBAAH/AQABmQEA
- AcwBMwIAAf8CMwEAAf8BMwFmAQAB/wEzAZkBAAH/ATMBzAEAAf8BMwH/AQAB/wFmAgAB/wFmATMBAAHM
- AmYBAAH/AWYBmQEAAf8BZgHMAQABzAFmAf8BAAH/AZkCAAH/AZkBMwEAAf8BmQFmAQAB/wKZAQAB/wGZ
- AcwBAAH/AZkB/wEAAf8BzAIAAf8BzAEzAQAB/wHMAWYBAAH/AcwBmQEAAf8CzAEAAf8BzAH/AQAC/wEz
- AQABzAH/AWYBAAL/AZkBAAL/AcwBAAJmAf8BAAFmAf8BZgEAAWYC/wEAAf8CZgEAAf8BZgH/AQAC/wFm
- AQABIQEAAaUBAANfAQADdwEAA4YBAAOWAQADywEAA7IBAAPXAQAD3QEAA+MBAAPqAQAD8QEAA/gBAAHw
- AfsB/wEAAaQCoAEAA4ADAAH/AgAB/wMAAv8BAAH/AwAB/wEAAf8BAAL/AgAD/xMABLwEAAS8KwAGvAIA
- BOkBvAMABOkBvCoAASYBHgQAArwBAATpBAAE6QG8KgABJgEeAgABJgEeAQABvAEAAukBvAIABLwBAALp
- AbwtAAG8ASYBHgMAAukBvAEABAsCvALpAbwsAAEmAR4CAAG8AgAC6QG8AgsBvAEAAgsBvALpAbwmAAO8
- AgABJgEeAgABvAMAAukBvAILArwCCwEAAukBvCUAAc0BCgEAAbwBAAEmAR4BAAHsAwABvAEAAukBvAUL
- AgAC6QG8JQABzQEKAQACvAEmAR4BAAESArwBAAG8AQAC6QG8AgsCvAMAAukBvCQAAc0BCgMAAbwBAAEm
- AR4GAALpAbwBAAILA7wBAALpAbwkAAHNAQoBEgHsAQABEgG8CAAC6QG8AgADCwIAAukBvCQAAc0BCgES
- AgABEgG8CAAC6QO8BAABvALpAbwjAAHNAQoBAAG8AwABvAgABOkBvAMABOkBvAEAAbwhAAHNAQoBAAG8
- AwAB7AG8BwAE6QQABOkBGwExAZkhAAFlGwADMT0AARsBMQEbKQAB7AESAe8FAAH0EQAKEhgAAvMC6wHv
- AewB6wHzBQAB6gH0BQAC8gH0BgADEgZKAxIUAAHzAfEBvALsAQcBvAEHAewB6wEHBAABDgESAe0EAAHw
- ASIBKQHrAfMFAAESAkoGbgJKARIDAAEPBwABDwUAAQ8BAAG8AfcB7QGSAe8BvAEHAfAB9AHyAesB6gQA
- AQ4BbQHtAwABBwEjAisBKgHrAfMDAAESAUoBbgFKBm4BSgFuAUoBEgEAAQ8J7wEPAwAB7wIAAW0C9wHw
- AbwB8wLyAvQB7QHrAQcDAAEHARUB6gPtASkBKwElAR8BJQEqAesB9AIAARIBSgFuAUoGkwFKAW4BSgES
- AgAB7wEBAR8G7wMAAu8CAAG8Ae8B8QH0AfYB8gLwAfQB9gHvAewBbQMAAfQBEAHrAUoBMAEDASUBFwH5
- AiABJQEqAeoCAAESAUoBkwFuBkkBbgGTAUoBEgIAAe8CAQEfBe8BAAIPAu8CAAHyAe8C9gH3AW0B6wHy
- AfQB9gHzAesB7AEHAgAB9AEQAXMBRQEkASAB+QEXAfkBIAEfASABMQEiAfQBAAESAZMBbgFJBmwBSQFu
- AZMBEgIAAe8BAQEfBu8DAALvAwAB7wHzAbwBkgHwAfcB9gH3Ae0BBwHrAewB7wMAAfIBEQFFAR8CIAH5
- ARcB+QEgAR8BMQEiAfQBAAESAZMBSQJsBHECbAFJAZMBEgEAAQ8J7wEPAwAB7wMAAQcB8AFEASUBGgKS
- AfIC8wH0ARIB6wHyAgAB8gFDAewBRQEfASAB+QEXASYBMQE3ATABFAIAAUkBbgFsAXEBlwRxAZcBcQFs
- AW4BEgIAAQ8HAAEPBQABDwIAAfQBbQEsASUB6wH0AvEC7wHyAusBvAIAAfMBbQHrAUUBHwIgAfkBMQFR
- Am0B8wIAAUkCbAGXAnEClwJxAZcCbAFJAgABFQEPARUDAAEVAQ8BFQgAARwBLAErAeoBBwG8Au8B9AK8
- AfMCbQMAAfABEwFFAR8BJAIrAVEBvAUAAUkBbAJxBpcCcQFsAUkBAAEVAfcBBwH3ARUBAAEVAfcBBwH3
- ARUGAAHvAisBSwHvAQcBvAHxBAcB9AGLAeoDAAHwAREBSwEkASMBAwFKAfAHAAFsAXEDlwJ4A5cBcQFs
- AgABDwEHAQABBwEPAQABDwEHAQABBwEPBQAB7wErASwBRQK8AQcB7wEHAbwB8AEZAtsBbAEHAwAB8AEj
- AisBDgHwAfEIAAFJAXEClwF4BZcBcQFJAgABFQH3AQcB9wEVAQABFQH3AQcB9wEVBQABEgEsAUUB8gHz
- Ae8B8gHxAbsC2gGzAosB8wQAAfABIwE3ATEBDgsAAUkBcQKXAXgDlwFxAUkEAAEVAQ8BFQMAARUBDwEV
- BwABEgG8AgABBwGzAdQBswJsAe8IAAHvAg4B8wwAAWwBcQSXAXEBbBkAAQcCEgG8HQAEcRcAAfQL8wH0
- EwAN8xMAAQcL7wEHAgAPEAEAAQcNswEHBwAEQwcAAe8BAAG7BrMBuwIAAe8CAAEQBjgBEAbTARABAAGz
- DQABswUAAkME8AJDBQAB7wEAAbMGAAGzAgAB7wIAARACOAMAATgBEALTAgAC0wEQAQABsw0AAbMEAAFD
- CPABQwQAAe8BAAGtAQABlwJWAZcBAAGzAgAB7wIAARADOAEAAjgBEAHTAQAC0wEAAdMBEAEAAbMBAAFW
- CVABVgEAAbMDAAFDA/ABkgJDAZID8AFDAwAB7wEAAa0BAARWAQABswH0AQAB7wIAARACOAIAAjgBEAHT
- AQAC0wEAAdMBEAEAAbMBAAtWAQABswMAAUMB8AGSARIBQwHwAZIBQwESAZIB8AFDAwAB7wEAAa0BAARW
- AQABswH0AQAB7wIAARADOAEAAjgBEALTAgAC0wEQAQABswEAC1YBAAGzAgABQwHwARICYwFDAQAB8AFD
- AmMBEgHwAUMCAAHvAQABrQEABHgBAAGzAfQBAAHvAgABEAY4ARAG0wEQAQABswEAC1YBAAGzAgABQwES
- BEcCQwRHARIBQwIAAe8BAAGtBgABswHzAQAB7wIADxABAAGzAQALVgEAAbMCAAFDDEcBQwIAAe8BAAG7
- Aq0EswG7AfMBAAHvAgABEAZHARAGAAEQAQABswEAC1YBAAGzAgABQwxHAUMCAAHvAQAB8wP0AfMB9AQA
- Ae8CAAEQAkcCAAJHARAGAAEQAQABswEAC1YBAAGzAwABQwJHApQGRwFDAwAB7wEAAXQCMgEsAXQBAAG8
- AvcBAAHvAgABEAFHAQACRwEAAUcBEAYAARABAAGzAQABVgl4AVYBAAGzAwABQwFHBJQFRwFDAwAB7wEA
- ASwDwwFTAQAB9wIAAfMB8AIAARABRwEAAkcBAAFHARAGAAEQAQABswEAC3gBAAGzBAABQwSUBEcBQwQA
- Ae8BAAF0AywBdAEAAfcBAAHzAfADAAEQAkcCAAJHARAGAAEQAQABswEAC3gBAAGzBQACQwGUA0cCQwUA
- Ae8IAAHzAfAEAAEQBkcBEAYAARABAAGzDQABswcABEMHAAEHCO8BBwUADxABAAEJDbMBCREAAUIBTQE+
- BwABPgMAASgDAAFAAwABMAMAAQEBAAEBBQABgAEBFgAD/wEAAv8CwwQAAf8BgQKDBAAB/wEAAYcBgwQA
- Af8BMAGMASMEAAH/AeEBiAEDBAAB/wHBAYEBAwQAAfEBgwGAASMEAAHhAQ4BgAFjBAAB4AEAAYAB4wQA
- AcABgQGIASMEAAHAAX8BjAFjBAABxAF/AYMBwwQAAYQBfwGDAYIEAAGEAT8BhwGABAABjAF/Af8B+AQA
- A/8B+AQAAf8BjwG/Af8B4AEHAv8B+AEHAo8BwAEDAv8BwAEHAY8BBwHAAQMBgAE8AYABBwGOAQMBgAEB
- AQABGAGAAQMBgAEBAYABAQIAAYABAwGAAQEBgAEBAgABgAEBAYABAAGAAQECAAHAAQEBwAEAAYABAQEA
- ARgBwAEAAcABAQGAAQEBgAE8AcABAAHAAQEBgAEBAY4BPwHAAQAB4AEPAYABAQEEAR8BgAEAAeABHwHA
- AQMBJAGfAgAB4AE/AcABAwEEAR8BAAEBAeAB/wHgAQcBjgE/AZgBDwHwAf8B8AEPAv8B+AF/Av8B/AE/
- Av8BgAEDAv8BgAEDAv8BgAEDAQABAQEAAQEB/AE/AaABGwEAAQEBfwH9AfABDwGvAdsBAAExAX8B/QHg
- AQcBqAFbAQABSQFAAQUBwAEDAagBSwEAAUkBQAEFAcABAwGoAUsBAAExAUABBQGBAQEBqAFLAQABAQFA
- AQUBgAEBAa8BywEAAQEBQAEFAYABAQGgAQsBAAH9AUABBQGAAQEBoAF7ARgBxQFAAQUBwAEDAaABiwEk
- Ae0BQAEFAcABAwGgAbMBJAHNAUABBQHgAQcBoAGnARgB7QFAAQUB8AEPAb8BzwEAAf0BfwH9AfwBPwGA
- AR8BAAEBAQABAQL/Cw==
@@ -888,6 +846,9 @@
386, 19
+
+ 533, 20
+
57