diff --git a/DS_Map/App.config b/DS_Map/App.config
index 35ec936..6330c58 100644
--- a/DS_Map/App.config
+++ b/DS_Map/App.config
@@ -51,6 +51,9 @@
False
+
+ False
+
diff --git a/DS_Map/DSPRE.csproj b/DS_Map/DSPRE.csproj
index 2ea81a4..3adebb5 100644
--- a/DS_Map/DSPRE.csproj
+++ b/DS_Map/DSPRE.csproj
@@ -166,6 +166,7 @@
HeadbuttEncounterEditorTab.cs
+
Form
@@ -199,7 +200,12 @@
NsbtxEditor.cs
-
+
+ Form
+
+
+ PokemonSpriteEditor.cs
+
UserControl
@@ -242,12 +248,20 @@
TextEditor.cs
+
+ Form
+
+
+ TradeEditor.cs
+
UserControl
TrainerEditor.cs
+
+
Form
@@ -358,6 +372,7 @@
+
@@ -400,7 +415,7 @@
SpawnEditor.cs
-
+
Form
@@ -524,6 +539,9 @@
NsbtxEditor.cs
+
+ PokemonSpriteEditor.cs
+
SafariZoneEditor.cs
@@ -542,6 +560,9 @@
TextEditor.cs
+
+ TradeEditor.cs
+
TrainerEditor.cs
@@ -879,6 +900,12 @@
0.0.1298
+
+ 9.0.7
+
+
+ 0.31.0
+
diff --git a/DS_Map/DocTool.cs b/DS_Map/DocTool.cs
index 3706ef2..1b785af 100644
--- a/DS_Map/DocTool.cs
+++ b/DS_Map/DocTool.cs
@@ -415,7 +415,6 @@ namespace DSPRE
PartyPokemon.GenderAndAbilityFlags[] monFlags, ref string[] abilityNames,
ref string[] monGenders, ref string[] abilities, ref string[] natures)
{
- bool wasFlagSet = false;
bool trainerMale = false;
trainerMale = DVCalculator.TrainerClassGender.GetTrainerClassGender(trainerClassID);
@@ -426,55 +425,34 @@ namespace DSPRE
{
byte baseGenderRatio = new PokemonPersonalData((int)partyPokemon[j].pokeID).genderVec;
- byte genderOverride = 0;
- byte abilityOverride = 0;
+ byte genderOverride = (byte)((byte) monFlags[j] & 0x0F); // Get the lower 4 bits
+ byte abilityOverride = (byte)((byte)monFlags[j] >> 4); // Get the upper 4 bits
+
+ uint PID = DVCalculator.generatePID((uint)trainerID, (uint)trainerClassID, (uint)partyPokemon[j].pokeID, (byte)partyPokemon[j].level, baseGenderRatio, genderOverride, abilityOverride, partyPokemon[j].difficulty);
+ natures[j] = DVCalculator.Natures[DVCalculator.getNatureFromPID(PID)].Split(':')[0];
- int genderFlag = (int)monFlags[j] & 0x0F; // Get the lower 4 bits
- switch (genderFlag)
+ switch (genderOverride)
{
case 0: // Random
monGenders[j] = "random";
- abilities[j] = abilityNames[new PokemonPersonalData((int)partyPokemon[j].pokeID).firstAbility];
- genderOverride = 0;
break;
case 1: // Male
monGenders[j] = "M";
- abilities[j] = abilityNames[new PokemonPersonalData((int)partyPokemon[j].pokeID).secondAbility];
- genderOverride = 1;
break;
case 2: // Female
monGenders[j] = "F";
- abilities[j] = abilityNames[new PokemonPersonalData((int)partyPokemon[j].pokeID).secondAbility];
- genderOverride = 2;
break;
}
- int abilityFlag = ((int)monFlags[j] & 0xF0) >> 4; // Get the upper 4 bits
- switch (abilityFlag)
+
+ switch (PID % 2) // Lowest bit of PID determines the ability
{
- case 0: // Unset
- // If a gender or ability flag was previously set, we need to use the second ability
- if (wasFlagSet)
- {
- abilities[j] = abilityNames[new PokemonPersonalData((int)partyPokemon[j].pokeID).secondAbility];
- abilityOverride = 0;
- }
- else
- {
- abilities[j] = abilityNames[new PokemonPersonalData((int)partyPokemon[j].pokeID).firstAbility];
- abilityOverride = 0;
- }
- break;
- case 1: // Ability 1
+ case 0:
abilities[j] = abilityNames[new PokemonPersonalData((int)partyPokemon[j].pokeID).firstAbility];
- abilityOverride = 1;
break;
- case 2: // Ability 2
+ case 1:
abilities[j] = abilityNames[new PokemonPersonalData((int)partyPokemon[j].pokeID).secondAbility];
- abilityOverride = 2;
break;
}
- uint PID = DVCalculator.generatePID((uint)trainerID, (uint)trainerClassID, (uint)partyPokemon[j].pokeID, (byte)partyPokemon[j].level, baseGenderRatio, genderOverride, abilityOverride, partyPokemon[j].difficulty);
- natures[j] = DVCalculator.Natures[DVCalculator.getNatureFromPID(PID)].Split(':')[0];
}
}
}
diff --git a/DS_Map/Editors/EncountersEditor.cs b/DS_Map/Editors/EncountersEditor.cs
index f9bafb4..c3d6a45 100644
--- a/DS_Map/Editors/EncountersEditor.cs
+++ b/DS_Map/Editors/EncountersEditor.cs
@@ -1,16 +1,19 @@
-using System.Windows.Forms;
+using MKDS_Course_Editor.Export3DTools;
+using System.Windows.Forms;
namespace DSPRE.Editors
{
public partial class EncountersEditor : UserControl
{
+ public bool encounterEditorIsReady { get; set; } = false;
public EncountersEditor()
{
InitializeComponent();
}
public void SetupEncountersEditor() {
- tabPageHeadbuttEditor_Enter(null, null);
+ encounterEditorIsReady = true;
+ tabPageHeadbuttEditor_Enter(null, null);
}
private void tabPageHeadbuttEditor_Enter(object sender, System.EventArgs e)
diff --git a/DS_Map/Editors/EvolutionsEditor.cs b/DS_Map/Editors/EvolutionsEditor.cs
index 04d2f0e..1e6c53c 100644
--- a/DS_Map/Editors/EvolutionsEditor.cs
+++ b/DS_Map/Editors/EvolutionsEditor.cs
@@ -16,7 +16,7 @@ namespace DSPRE {
private int currentLoadedId = 0;
private EvolutionFile currentLoadedFile = null;
- private static bool dirty = false;
+ public bool dirty = false;
private static readonly string formName = "Evolutions Editor";
private (ComboBox m, Label l, NumericUpDown p, ComboBox t)[] evoRows;
@@ -181,6 +181,7 @@ namespace DSPRE {
dirty = false;
this.Text = formName;
}
+ _parent.UpdateTabPageNames();
}
private void evoMethodComboBox1_SelectedIndexChanged(object sender, EventArgs e) {
diff --git a/DS_Map/Editors/ItemEditor.Designer.cs b/DS_Map/Editors/ItemEditor.Designer.cs
index 603111b..94bd493 100644
--- a/DS_Map/Editors/ItemEditor.Designer.cs
+++ b/DS_Map/Editors/ItemEditor.Designer.cs
@@ -32,7 +32,6 @@
this.itemNumberNumericUpDown = new System.Windows.Forms.NumericUpDown();
this.holdEffectComboBox = new System.Windows.Forms.ComboBox();
this.fieldPocketComboBox = new System.Windows.Forms.ComboBox();
- this.battlePocketComboBox = new System.Windows.Forms.ComboBox();
this.itemNameInputComboBox = new System.Windows.Forms.ComboBox();
this.priceNumericUpDown = new System.Windows.Forms.NumericUpDown();
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
@@ -44,6 +43,7 @@
this.holdEffectLabel = new System.Windows.Forms.Label();
this.pocketFlowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();
this.pocketGroupBox = new System.Windows.Forms.GroupBox();
+ this.pokeBallsBattlePocketCheck = new System.Windows.Forms.CheckBox();
this.fieldPocketLabel = new System.Windows.Forms.Label();
this.battlePocketLabel = new System.Windows.Forms.Label();
this.moveRelatedFlowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();
@@ -130,15 +130,19 @@
this.friendshipMidCheckBox = new System.Windows.Forms.CheckBox();
this.friendshipLowValueNumeric = new System.Windows.Forms.NumericUpDown();
this.friendshipLowCheckBox = new System.Windows.Forms.CheckBox();
- this.itemEditorSelectedPictureBox = new System.Windows.Forms.PictureBox();
- this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.itemEditorSelectedPictureFlowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel();
this.itemEditorSelectedPictureGroupBox = new System.Windows.Forms.GroupBox();
- this.imageLabel = new System.Windows.Forms.Label();
- this.paletteLabel = new System.Windows.Forms.Label();
- this.imageComboBox = new System.Windows.Forms.ComboBox();
- this.paletteComboBox = new System.Windows.Forms.ComboBox();
this.saveIconButton = new System.Windows.Forms.Button();
+ this.paletteComboBox = new System.Windows.Forms.ComboBox();
+ this.imageComboBox = new System.Windows.Forms.ComboBox();
+ this.paletteLabel = new System.Windows.Forms.Label();
+ this.imageLabel = new System.Windows.Forms.Label();
+ this.itemEditorSelectedPictureBox = new System.Windows.Forms.PictureBox();
+ this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+ this.battleItemsBattlePocketCheck = new System.Windows.Forms.CheckBox();
+ this.ppRestoreBattlePocketCheck = new System.Windows.Forms.CheckBox();
+ this.hpRestoreBattlePocketCheck = new System.Windows.Forms.CheckBox();
+ this.statusHealersBattlePocketCheck = new System.Windows.Forms.CheckBox();
((System.ComponentModel.ISupportInitialize)(this.itemNumberNumericUpDown)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.priceNumericUpDown)).BeginInit();
this.tableLayoutPanel1.SuspendLayout();
@@ -184,9 +188,9 @@
((System.ComponentModel.ISupportInitialize)(this.friendshipHighValueNumeric)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.friendshipMidValueNumeric)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.friendshipLowValueNumeric)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.itemEditorSelectedPictureBox)).BeginInit();
this.itemEditorSelectedPictureFlowLayoutPanel.SuspendLayout();
this.itemEditorSelectedPictureGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.itemEditorSelectedPictureBox)).BeginInit();
this.SuspendLayout();
//
// itemNumberNumericUpDown
@@ -212,22 +216,12 @@
//
this.fieldPocketComboBox.Anchor = System.Windows.Forms.AnchorStyles.None;
this.fieldPocketComboBox.FormattingEnabled = true;
- this.fieldPocketComboBox.Location = new System.Drawing.Point(107, 35);
+ this.fieldPocketComboBox.Location = new System.Drawing.Point(94, 22);
this.fieldPocketComboBox.Name = "fieldPocketComboBox";
this.fieldPocketComboBox.Size = new System.Drawing.Size(121, 21);
this.fieldPocketComboBox.TabIndex = 2;
this.fieldPocketComboBox.SelectedIndexChanged += new System.EventHandler(this.fieldPocketComboBox_SelectedIndexChanged);
//
- // battlePocketComboBox
- //
- this.battlePocketComboBox.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.battlePocketComboBox.FormattingEnabled = true;
- this.battlePocketComboBox.Location = new System.Drawing.Point(107, 78);
- this.battlePocketComboBox.Name = "battlePocketComboBox";
- this.battlePocketComboBox.Size = new System.Drawing.Size(121, 21);
- this.battlePocketComboBox.TabIndex = 3;
- this.battlePocketComboBox.SelectedIndexChanged += new System.EventHandler(this.battlePocketComboBox_SelectedIndexChanged);
- //
// itemNameInputComboBox
//
this.itemNameInputComboBox.Anchor = System.Windows.Forms.AnchorStyles.None;
@@ -349,7 +343,11 @@
//
// pocketGroupBox
//
- this.pocketGroupBox.Controls.Add(this.battlePocketComboBox);
+ this.pocketGroupBox.Controls.Add(this.statusHealersBattlePocketCheck);
+ this.pocketGroupBox.Controls.Add(this.hpRestoreBattlePocketCheck);
+ this.pocketGroupBox.Controls.Add(this.ppRestoreBattlePocketCheck);
+ this.pocketGroupBox.Controls.Add(this.battleItemsBattlePocketCheck);
+ this.pocketGroupBox.Controls.Add(this.pokeBallsBattlePocketCheck);
this.pocketGroupBox.Controls.Add(this.fieldPocketLabel);
this.pocketGroupBox.Controls.Add(this.fieldPocketComboBox);
this.pocketGroupBox.Controls.Add(this.battlePocketLabel);
@@ -360,11 +358,22 @@
this.pocketGroupBox.TabStop = false;
this.pocketGroupBox.Text = "Pocket Data";
//
+ // pokeBallsBattlePocketCheck
+ //
+ this.pokeBallsBattlePocketCheck.AutoSize = true;
+ this.pokeBallsBattlePocketCheck.Location = new System.Drawing.Point(9, 82);
+ this.pokeBallsBattlePocketCheck.Name = "pokeBallsBattlePocketCheck";
+ this.pokeBallsBattlePocketCheck.Size = new System.Drawing.Size(73, 17);
+ this.pokeBallsBattlePocketCheck.TabIndex = 9;
+ this.pokeBallsBattlePocketCheck.Text = "PokeBalls";
+ this.pokeBallsBattlePocketCheck.UseVisualStyleBackColor = true;
+ this.pokeBallsBattlePocketCheck.CheckedChanged += new System.EventHandler(this.BattlePocketCheckBox_CheckedChanged);
+ //
// fieldPocketLabel
//
this.fieldPocketLabel.Anchor = System.Windows.Forms.AnchorStyles.None;
this.fieldPocketLabel.AutoSize = true;
- this.fieldPocketLabel.Location = new System.Drawing.Point(21, 38);
+ this.fieldPocketLabel.Location = new System.Drawing.Point(6, 25);
this.fieldPocketLabel.Name = "fieldPocketLabel";
this.fieldPocketLabel.Size = new System.Drawing.Size(66, 13);
this.fieldPocketLabel.TabIndex = 7;
@@ -375,11 +384,11 @@
//
this.battlePocketLabel.Anchor = System.Windows.Forms.AnchorStyles.None;
this.battlePocketLabel.AutoSize = true;
- this.battlePocketLabel.Location = new System.Drawing.Point(16, 81);
+ this.battlePocketLabel.Location = new System.Drawing.Point(6, 63);
this.battlePocketLabel.Name = "battlePocketLabel";
- this.battlePocketLabel.Size = new System.Drawing.Size(71, 13);
+ this.battlePocketLabel.Size = new System.Drawing.Size(76, 13);
this.battlePocketLabel.TabIndex = 8;
- this.battlePocketLabel.Text = "Battle Pocket";
+ this.battlePocketLabel.Text = "Battle Pockets";
this.battlePocketLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// moveRelatedFlowLayoutPanel
@@ -1233,16 +1242,6 @@
this.friendshipLowCheckBox.Text = "Low Friendship";
this.friendshipLowCheckBox.UseVisualStyleBackColor = true;
//
- // itemEditorSelectedPictureBox
- //
- this.itemEditorSelectedPictureBox.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.itemEditorSelectedPictureBox.Image = global::DSPRE.Properties.Resources.IconItem;
- this.itemEditorSelectedPictureBox.Location = new System.Drawing.Point(180, 54);
- this.itemEditorSelectedPictureBox.Name = "itemEditorSelectedPictureBox";
- this.itemEditorSelectedPictureBox.Size = new System.Drawing.Size(47, 47);
- this.itemEditorSelectedPictureBox.TabIndex = 18;
- this.itemEditorSelectedPictureBox.TabStop = false;
- //
// itemEditorSelectedPictureFlowLayoutPanel
//
this.itemEditorSelectedPictureFlowLayoutPanel.Controls.Add(this.itemEditorSelectedPictureGroupBox);
@@ -1266,33 +1265,15 @@
this.itemEditorSelectedPictureGroupBox.TabStop = false;
this.itemEditorSelectedPictureGroupBox.Text = "Icon";
//
- // imageLabel
+ // saveIconButton
//
- this.imageLabel.AutoSize = true;
- this.imageLabel.Location = new System.Drawing.Point(11, 21);
- this.imageLabel.Name = "imageLabel";
- this.imageLabel.Size = new System.Drawing.Size(36, 13);
- this.imageLabel.TabIndex = 20;
- this.imageLabel.Text = "Image";
- //
- // paletteLabel
- //
- this.paletteLabel.AutoSize = true;
- this.paletteLabel.Location = new System.Drawing.Point(11, 63);
- this.paletteLabel.Name = "paletteLabel";
- this.paletteLabel.Size = new System.Drawing.Size(40, 13);
- this.paletteLabel.TabIndex = 22;
- this.paletteLabel.Text = "Palette";
- //
- // imageComboBox
- //
- this.imageComboBox.Anchor = System.Windows.Forms.AnchorStyles.None;
- this.imageComboBox.FormattingEnabled = true;
- this.imageComboBox.Location = new System.Drawing.Point(77, 18);
- this.imageComboBox.Name = "imageComboBox";
- this.imageComboBox.Size = new System.Drawing.Size(58, 21);
- this.imageComboBox.TabIndex = 23;
- this.imageComboBox.SelectedIndexChanged += new System.EventHandler(this.imageComboBox_SelectedIndexChanged);
+ this.saveIconButton.Location = new System.Drawing.Point(14, 102);
+ this.saveIconButton.Name = "saveIconButton";
+ this.saveIconButton.Size = new System.Drawing.Size(121, 23);
+ this.saveIconButton.TabIndex = 25;
+ this.saveIconButton.Text = "Save Icon Changes";
+ this.saveIconButton.UseVisualStyleBackColor = true;
+ this.saveIconButton.Click += new System.EventHandler(this.saveIconButton_Click);
//
// paletteComboBox
//
@@ -1304,15 +1285,83 @@
this.paletteComboBox.TabIndex = 24;
this.paletteComboBox.SelectedIndexChanged += new System.EventHandler(this.paletteComboBox_SelectedIndexChanged);
//
- // saveIconButton
+ // imageComboBox
//
- this.saveIconButton.Location = new System.Drawing.Point(14, 102);
- this.saveIconButton.Name = "saveIconButton";
- this.saveIconButton.Size = new System.Drawing.Size(121, 23);
- this.saveIconButton.TabIndex = 25;
- this.saveIconButton.Text = "Save Icon Changes";
- this.saveIconButton.UseVisualStyleBackColor = true;
- this.saveIconButton.Click += new System.EventHandler(this.saveIconButton_Click);
+ this.imageComboBox.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.imageComboBox.FormattingEnabled = true;
+ this.imageComboBox.Location = new System.Drawing.Point(77, 18);
+ this.imageComboBox.Name = "imageComboBox";
+ this.imageComboBox.Size = new System.Drawing.Size(58, 21);
+ this.imageComboBox.TabIndex = 23;
+ this.imageComboBox.SelectedIndexChanged += new System.EventHandler(this.imageComboBox_SelectedIndexChanged);
+ //
+ // paletteLabel
+ //
+ this.paletteLabel.AutoSize = true;
+ this.paletteLabel.Location = new System.Drawing.Point(11, 63);
+ this.paletteLabel.Name = "paletteLabel";
+ this.paletteLabel.Size = new System.Drawing.Size(40, 13);
+ this.paletteLabel.TabIndex = 22;
+ this.paletteLabel.Text = "Palette";
+ //
+ // imageLabel
+ //
+ this.imageLabel.AutoSize = true;
+ this.imageLabel.Location = new System.Drawing.Point(11, 21);
+ this.imageLabel.Name = "imageLabel";
+ this.imageLabel.Size = new System.Drawing.Size(36, 13);
+ this.imageLabel.TabIndex = 20;
+ this.imageLabel.Text = "Image";
+ //
+ // itemEditorSelectedPictureBox
+ //
+ this.itemEditorSelectedPictureBox.Anchor = System.Windows.Forms.AnchorStyles.None;
+ this.itemEditorSelectedPictureBox.Image = global::DSPRE.Properties.Resources.IconItem;
+ this.itemEditorSelectedPictureBox.Location = new System.Drawing.Point(180, 54);
+ this.itemEditorSelectedPictureBox.Name = "itemEditorSelectedPictureBox";
+ this.itemEditorSelectedPictureBox.Size = new System.Drawing.Size(47, 47);
+ this.itemEditorSelectedPictureBox.TabIndex = 18;
+ this.itemEditorSelectedPictureBox.TabStop = false;
+ //
+ // battleItemsBattlePocketCheck
+ //
+ this.battleItemsBattlePocketCheck.AutoSize = true;
+ this.battleItemsBattlePocketCheck.Location = new System.Drawing.Point(9, 105);
+ this.battleItemsBattlePocketCheck.Name = "battleItemsBattlePocketCheck";
+ this.battleItemsBattlePocketCheck.Size = new System.Drawing.Size(81, 17);
+ this.battleItemsBattlePocketCheck.TabIndex = 10;
+ this.battleItemsBattlePocketCheck.Text = "Battle Items";
+ this.battleItemsBattlePocketCheck.UseVisualStyleBackColor = true;
+ //
+ // ppRestoreBattlePocketCheck
+ //
+ this.ppRestoreBattlePocketCheck.AutoSize = true;
+ this.ppRestoreBattlePocketCheck.Location = new System.Drawing.Point(88, 105);
+ this.ppRestoreBattlePocketCheck.Name = "ppRestoreBattlePocketCheck";
+ this.ppRestoreBattlePocketCheck.Size = new System.Drawing.Size(80, 17);
+ this.ppRestoreBattlePocketCheck.TabIndex = 11;
+ this.ppRestoreBattlePocketCheck.Text = "PP Restore";
+ this.ppRestoreBattlePocketCheck.UseVisualStyleBackColor = true;
+ //
+ // hpRestoreBattlePocketCheck
+ //
+ this.hpRestoreBattlePocketCheck.AutoSize = true;
+ this.hpRestoreBattlePocketCheck.Location = new System.Drawing.Point(88, 81);
+ this.hpRestoreBattlePocketCheck.Name = "hpRestoreBattlePocketCheck";
+ this.hpRestoreBattlePocketCheck.Size = new System.Drawing.Size(81, 17);
+ this.hpRestoreBattlePocketCheck.TabIndex = 12;
+ this.hpRestoreBattlePocketCheck.Text = "HP Restore";
+ this.hpRestoreBattlePocketCheck.UseVisualStyleBackColor = true;
+ //
+ // statusHealersBattlePocketCheck
+ //
+ this.statusHealersBattlePocketCheck.AutoSize = true;
+ this.statusHealersBattlePocketCheck.Location = new System.Drawing.Point(167, 81);
+ this.statusHealersBattlePocketCheck.Name = "statusHealersBattlePocketCheck";
+ this.statusHealersBattlePocketCheck.Size = new System.Drawing.Size(95, 17);
+ this.statusHealersBattlePocketCheck.TabIndex = 13;
+ this.statusHealersBattlePocketCheck.Text = "Status Healers";
+ this.statusHealersBattlePocketCheck.UseVisualStyleBackColor = true;
//
// ItemEditor
//
@@ -1379,10 +1428,10 @@
((System.ComponentModel.ISupportInitialize)(this.friendshipHighValueNumeric)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.friendshipMidValueNumeric)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.friendshipLowValueNumeric)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.itemEditorSelectedPictureBox)).EndInit();
this.itemEditorSelectedPictureFlowLayoutPanel.ResumeLayout(false);
this.itemEditorSelectedPictureGroupBox.ResumeLayout(false);
this.itemEditorSelectedPictureGroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.itemEditorSelectedPictureBox)).EndInit();
this.ResumeLayout(false);
}
@@ -1392,7 +1441,6 @@
private System.Windows.Forms.NumericUpDown itemNumberNumericUpDown;
private System.Windows.Forms.ComboBox holdEffectComboBox;
private System.Windows.Forms.ComboBox fieldPocketComboBox;
- private System.Windows.Forms.ComboBox battlePocketComboBox;
private System.Windows.Forms.ComboBox itemNameInputComboBox;
private System.Windows.Forms.NumericUpDown priceNumericUpDown;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
@@ -1499,5 +1547,10 @@
private System.Windows.Forms.ComboBox paletteComboBox;
private System.Windows.Forms.ComboBox imageComboBox;
private System.Windows.Forms.Button saveIconButton;
+ private System.Windows.Forms.CheckBox pokeBallsBattlePocketCheck;
+ private System.Windows.Forms.CheckBox statusHealersBattlePocketCheck;
+ private System.Windows.Forms.CheckBox hpRestoreBattlePocketCheck;
+ private System.Windows.Forms.CheckBox ppRestoreBattlePocketCheck;
+ private System.Windows.Forms.CheckBox battleItemsBattlePocketCheck;
}
}
\ No newline at end of file
diff --git a/DS_Map/Editors/ItemEditor.cs b/DS_Map/Editors/ItemEditor.cs
index 9efe58f..67da8e0 100644
--- a/DS_Map/Editors/ItemEditor.cs
+++ b/DS_Map/Editors/ItemEditor.cs
@@ -91,7 +91,6 @@ namespace DSPRE.Editors
itemNameInputComboBox.Items.AddRange(this.itemFileNames);
holdEffectComboBox.Items.AddRange(Enum.GetNames(typeof(HoldEffect)));
fieldPocketComboBox.Items.AddRange(Enum.GetNames(typeof(FieldPocket)));
- battlePocketComboBox.Items.AddRange(Enum.GetNames(typeof(BattlePocket)));
naturalGiftTypeComboBox.Items.AddRange(Enum.GetNames(typeof(NaturalGiftType)));
fieldFunctionComboBox.Items.AddRange(Enum.GetNames(typeof(FieldUseFunc)));
battleFunctionComboBox.Items.AddRange(Enum.GetNames(typeof(BattleUseFunc)));
@@ -124,6 +123,17 @@ namespace DSPRE.Editors
paletteComboBox.EndUpdate();
}
+ public void UpdateBattlePocketCheckBoxes()
+ {
+ BattlePocket battlePocket = currentLoadedFile.battlePocket;
+
+ pokeBallsBattlePocketCheck.Checked = (battlePocket & BattlePocket.PokeBalls) != 0;
+ battleItemsBattlePocketCheck.Checked = (battlePocket & BattlePocket.BattleItems) != 0;
+ hpRestoreBattlePocketCheck.Checked = (battlePocket & BattlePocket.HpRestore) != 0;
+ statusHealersBattlePocketCheck.Checked = (battlePocket & BattlePocket.StatusHealers) != 0;
+ ppRestoreBattlePocketCheck.Checked = (battlePocket & BattlePocket.PpRestore) != 0;
+ }
+
private void BindItemParamsEvents()
{
@@ -287,9 +297,7 @@ namespace DSPRE.Editors
// Pockets
fieldPocketComboBox.SelectedIndex = (int)currentLoadedFile.fieldPocket;
// Set the selected value for non sequential enums
- BattlePocket battlePocket = (BattlePocket)currentLoadedFile.battlePocket;
- string battlePocketEnum = Enum.GetName(typeof(BattlePocket), battlePocket);
- battlePocketComboBox.SelectedItem = battlePocketEnum;
+ UpdateBattlePocketCheckBoxes();
// Move Related
// Set the selected value for non sequential enums
@@ -555,17 +563,6 @@ namespace DSPRE.Editors
setDirty(true);
}
- private void battlePocketComboBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (Helpers.HandlersDisabled)
- {
- return;
- }
-
- currentLoadedFile.battlePocket = (BattlePocket)Enum.Parse(typeof(BattlePocket), (string)battlePocketComboBox.SelectedItem);
- setDirty(true);
-
- }
private void priceNumericUpDown_ValueChanged(object sender, EventArgs e)
{
@@ -822,5 +819,29 @@ namespace DSPRE.Editors
}
setDirty(false);
}
+
+ private void BattlePocketCheckBox_CheckedChanged(object sender, EventArgs e)
+ {
+ if (Helpers.HandlersDisabled)
+ {
+ return;
+ }
+
+ // Build battlePocket from checkbox states
+ BattlePocket battlePocket = BattlePocket.None;
+ if (pokeBallsBattlePocketCheck.Checked)
+ battlePocket |= BattlePocket.PokeBalls;
+ if (battleItemsBattlePocketCheck.Checked)
+ battlePocket |= BattlePocket.BattleItems;
+ if (hpRestoreBattlePocketCheck.Checked)
+ battlePocket |= BattlePocket.HpRestore;
+ if (statusHealersBattlePocketCheck.Checked)
+ battlePocket |= BattlePocket.StatusHealers;
+ if (ppRestoreBattlePocketCheck.Checked)
+ battlePocket |= BattlePocket.PpRestore;
+
+ currentLoadedFile.battlePocket = battlePocket;
+ setDirty(true);
+ }
}
}
diff --git a/DS_Map/Editors/LearnsetEditor.Designer.cs b/DS_Map/Editors/LearnsetEditor.Designer.cs
index dba35cd..4926ed1 100644
--- a/DS_Map/Editors/LearnsetEditor.Designer.cs
+++ b/DS_Map/Editors/LearnsetEditor.Designer.cs
@@ -32,24 +32,26 @@
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.movesListBox = new System.Windows.Forms.ListBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
- this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
+ this.editLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
+ this.entryCountLabel = new System.Windows.Forms.Label();
this.descriptorLabel = new System.Windows.Forms.Label();
this.addMoveButton = new System.Windows.Forms.Button();
this.deleteMoveButton = new System.Windows.Forms.Button();
this.editMoveButton = new System.Windows.Forms.Button();
this.levelNumericUpDown = new System.Windows.Forms.NumericUpDown();
- this.label1 = new System.Windows.Forms.Label();
- this.moveInputComboBox = new DSPRE.InputComboBox();
+ this.levelLabel = new System.Windows.Forms.Label();
this.statusLabel = new System.Windows.Forms.Label();
+ this.moveUpButton = new System.Windows.Forms.Button();
+ this.moveDownButton = new System.Windows.Forms.Button();
+ this.moveInputComboBox = new DSPRE.InputComboBox();
this.pokemonNameInputComboBox = new DSPRE.InputComboBox();
- this.entryCountLabel = new System.Windows.Forms.Label();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pokemonPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.monNumberNumericUpDown)).BeginInit();
this.tableLayoutPanel2.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
- this.tableLayoutPanel3.SuspendLayout();
+ this.editLayoutPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.levelNumericUpDown)).BeginInit();
this.SuspendLayout();
//
@@ -66,23 +68,21 @@
this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 1);
this.tableLayoutPanel1.Controls.Add(this.pokemonNameInputComboBox, 1, 0);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanel1.Location = new System.Drawing.Point(7, 6);
- this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.tableLayoutPanel1.Location = new System.Drawing.Point(5, 5);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.58022F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 88.41978F));
- this.tableLayoutPanel1.Size = new System.Drawing.Size(654, 553);
+ this.tableLayoutPanel1.Size = new System.Drawing.Size(491, 449);
this.tableLayoutPanel1.TabIndex = 0;
//
// saveDataButton
//
this.saveDataButton.Dock = System.Windows.Forms.DockStyle.Fill;
this.saveDataButton.Image = ((System.Drawing.Image)(resources.GetObject("saveDataButton.Image")));
- this.saveDataButton.Location = new System.Drawing.Point(588, 4);
- this.saveDataButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.saveDataButton.Location = new System.Drawing.Point(441, 3);
this.saveDataButton.Name = "saveDataButton";
- this.saveDataButton.Size = new System.Drawing.Size(62, 56);
+ this.saveDataButton.Size = new System.Drawing.Size(47, 45);
this.saveDataButton.TabIndex = 30;
this.saveDataButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.saveDataButton.UseVisualStyleBackColor = true;
@@ -91,10 +91,9 @@
// pokemonPictureBox
//
this.pokemonPictureBox.Dock = System.Windows.Forms.DockStyle.Fill;
- this.pokemonPictureBox.Location = new System.Drawing.Point(4, 4);
- this.pokemonPictureBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.pokemonPictureBox.Location = new System.Drawing.Point(3, 3);
this.pokemonPictureBox.Name = "pokemonPictureBox";
- this.pokemonPictureBox.Size = new System.Drawing.Size(59, 56);
+ this.pokemonPictureBox.Size = new System.Drawing.Size(44, 45);
this.pokemonPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pokemonPictureBox.TabIndex = 12;
this.pokemonPictureBox.TabStop = false;
@@ -102,10 +101,9 @@
// monNumberNumericUpDown
//
this.monNumberNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
- this.monNumberNumericUpDown.Location = new System.Drawing.Point(465, 21);
- this.monNumberNumericUpDown.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.monNumberNumericUpDown.Location = new System.Drawing.Point(349, 15);
this.monNumberNumericUpDown.Name = "monNumberNumericUpDown";
- this.monNumberNumericUpDown.Size = new System.Drawing.Size(115, 22);
+ this.monNumberNumericUpDown.Size = new System.Drawing.Size(86, 20);
this.monNumberNumericUpDown.TabIndex = 16;
this.monNumberNumericUpDown.ValueChanged += new System.EventHandler(this.monNumberNumericUpDown_ValueChanged);
//
@@ -115,29 +113,26 @@
this.tableLayoutPanel1.SetColumnSpan(this.tableLayoutPanel2, 4);
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.303955F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.303955F));
- this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 27F));
+ this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel2.Controls.Add(this.groupBox2, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.groupBox3, 1, 0);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanel2.Location = new System.Drawing.Point(4, 68);
- this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 54);
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
- this.tableLayoutPanel2.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.tableLayoutPanel2.Padding = new System.Windows.Forms.Padding(5);
this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
- this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 470F));
- this.tableLayoutPanel2.Size = new System.Drawing.Size(646, 481);
+ this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 382F));
+ this.tableLayoutPanel2.Size = new System.Drawing.Size(485, 392);
this.tableLayoutPanel2.TabIndex = 17;
//
// groupBox2
//
this.groupBox2.Controls.Add(this.movesListBox);
this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox2.Location = new System.Drawing.Point(11, 10);
- this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.groupBox2.Location = new System.Drawing.Point(8, 8);
this.groupBox2.Name = "groupBox2";
- this.groupBox2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.groupBox2.Size = new System.Drawing.Size(308, 461);
+ this.groupBox2.Size = new System.Drawing.Size(231, 376);
this.groupBox2.TabIndex = 34;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "View";
@@ -146,79 +141,93 @@
//
this.movesListBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.movesListBox.FormattingEnabled = true;
- this.movesListBox.ItemHeight = 16;
- this.movesListBox.Location = new System.Drawing.Point(4, 19);
- this.movesListBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.movesListBox.Location = new System.Drawing.Point(3, 16);
+ this.movesListBox.Margin = new System.Windows.Forms.Padding(2);
this.movesListBox.Name = "movesListBox";
- this.movesListBox.Size = new System.Drawing.Size(300, 438);
+ this.movesListBox.Size = new System.Drawing.Size(225, 357);
this.movesListBox.TabIndex = 0;
this.movesListBox.SelectedIndexChanged += new System.EventHandler(this.movesListBox_SelectedIndexChanged);
//
// groupBox3
//
- this.groupBox3.Controls.Add(this.tableLayoutPanel3);
+ this.groupBox3.Controls.Add(this.editLayoutPanel);
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.groupBox3.Location = new System.Drawing.Point(327, 10);
- this.groupBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.groupBox3.Location = new System.Drawing.Point(245, 8);
this.groupBox3.Name = "groupBox3";
- this.groupBox3.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
- this.groupBox3.Size = new System.Drawing.Size(308, 461);
+ this.groupBox3.Size = new System.Drawing.Size(232, 376);
this.groupBox3.TabIndex = 35;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Edit";
//
- // tableLayoutPanel3
+ // editLayoutPanel
//
- this.tableLayoutPanel3.ColumnCount = 3;
- this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
- this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
- this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
- this.tableLayoutPanel3.Controls.Add(this.entryCountLabel, 0, 5);
- this.tableLayoutPanel3.Controls.Add(this.descriptorLabel, 0, 1);
- this.tableLayoutPanel3.Controls.Add(this.addMoveButton, 0, 4);
- this.tableLayoutPanel3.Controls.Add(this.deleteMoveButton, 2, 4);
- this.tableLayoutPanel3.Controls.Add(this.editMoveButton, 1, 4);
- this.tableLayoutPanel3.Controls.Add(this.levelNumericUpDown, 1, 2);
- this.tableLayoutPanel3.Controls.Add(this.label1, 0, 2);
- this.tableLayoutPanel3.Controls.Add(this.moveInputComboBox, 0, 0);
- this.tableLayoutPanel3.Controls.Add(this.statusLabel, 0, 3);
- this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.tableLayoutPanel3.Location = new System.Drawing.Point(4, 19);
- this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.tableLayoutPanel3.Name = "tableLayoutPanel3";
- this.tableLayoutPanel3.Padding = new System.Windows.Forms.Padding(3, 2, 3, 2);
- this.tableLayoutPanel3.RowCount = 6;
- this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 34.50088F));
- this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 65.49912F));
- this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 144F));
- this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 44F));
- this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F));
- this.tableLayoutPanel3.Size = new System.Drawing.Size(226, 357);
- this.tableLayoutPanel3.TabIndex = 0;
+ this.editLayoutPanel.ColumnCount = 3;
+ this.editLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33112F));
+ this.editLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
+ this.editLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33444F));
+ this.editLayoutPanel.Controls.Add(this.moveDownButton, 1, 4);
+ this.editLayoutPanel.Controls.Add(this.moveUpButton, 0, 4);
+ this.editLayoutPanel.Controls.Add(this.addMoveButton, 0, 5);
+ this.editLayoutPanel.Controls.Add(this.deleteMoveButton, 2, 5);
+ this.editLayoutPanel.Controls.Add(this.editMoveButton, 1, 5);
+ this.editLayoutPanel.Controls.Add(this.levelNumericUpDown, 1, 2);
+ this.editLayoutPanel.Controls.Add(this.moveInputComboBox, 0, 0);
+ this.editLayoutPanel.Controls.Add(this.descriptorLabel, 0, 1);
+ this.editLayoutPanel.Controls.Add(this.entryCountLabel, 0, 6);
+ this.editLayoutPanel.Controls.Add(this.levelLabel, 0, 2);
+ this.editLayoutPanel.Controls.Add(this.statusLabel, 0, 3);
+ this.editLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.editLayoutPanel.Location = new System.Drawing.Point(3, 16);
+ this.editLayoutPanel.Margin = new System.Windows.Forms.Padding(2);
+ this.editLayoutPanel.Name = "editLayoutPanel";
+ this.editLayoutPanel.Padding = new System.Windows.Forms.Padding(2);
+ this.editLayoutPanel.RowCount = 7;
+ this.editLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
+ this.editLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
+ this.editLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
+ this.editLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F));
+ this.editLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F));
+ this.editLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F));
+ this.editLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.editLayoutPanel.Size = new System.Drawing.Size(226, 357);
+ this.editLayoutPanel.TabIndex = 0;
+ //
+ // entryCountLabel
+ //
+ this.entryCountLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.entryCountLabel.AutoSize = true;
+ this.editLayoutPanel.SetColumnSpan(this.entryCountLabel, 3);
+ this.entryCountLabel.Location = new System.Drawing.Point(4, 334);
+ this.entryCountLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.entryCountLabel.Name = "entryCountLabel";
+ this.entryCountLabel.Padding = new System.Windows.Forms.Padding(1, 4, 1, 4);
+ this.entryCountLabel.Size = new System.Drawing.Size(70, 21);
+ this.entryCountLabel.TabIndex = 9;
+ this.entryCountLabel.Text = "Entry Count: ";
+ this.entryCountLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// descriptorLabel
//
+ this.descriptorLabel.Anchor = System.Windows.Forms.AnchorStyles.Left;
this.descriptorLabel.AutoSize = true;
- this.tableLayoutPanel3.SetColumnSpan(this.descriptorLabel, 3);
- this.descriptorLabel.Location = new System.Drawing.Point(7, 52);
- this.descriptorLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.editLayoutPanel.SetColumnSpan(this.descriptorLabel, 3);
+ this.descriptorLabel.Location = new System.Drawing.Point(5, 45);
this.descriptorLabel.Name = "descriptorLabel";
- this.descriptorLabel.Padding = new System.Windows.Forms.Padding(1, 6, 1, 6);
- this.descriptorLabel.Size = new System.Drawing.Size(71, 28);
+ this.descriptorLabel.Padding = new System.Windows.Forms.Padding(1, 5, 1, 5);
+ this.descriptorLabel.Size = new System.Drawing.Size(57, 23);
this.descriptorLabel.TabIndex = 8;
this.descriptorLabel.Text = "Descriptor";
//
// addMoveButton
//
- this.addMoveButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.addMoveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.addMoveButton.Enabled = false;
this.addMoveButton.Image = global::DSPRE.Properties.Resources.addIcon;
this.addMoveButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.addMoveButton.Location = new System.Drawing.Point(4, 286);
+ this.addMoveButton.Location = new System.Drawing.Point(4, 201);
this.addMoveButton.Margin = new System.Windows.Forms.Padding(2);
this.addMoveButton.Name = "addMoveButton";
- this.addMoveButton.Size = new System.Drawing.Size(70, 40);
+ this.addMoveButton.Size = new System.Drawing.Size(69, 32);
this.addMoveButton.TabIndex = 1;
this.addMoveButton.Text = "Add";
this.addMoveButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -227,14 +236,14 @@
//
// deleteMoveButton
//
- this.deleteMoveButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.deleteMoveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.deleteMoveButton.Enabled = false;
this.deleteMoveButton.Image = global::DSPRE.Properties.Resources.deleteIcon;
this.deleteMoveButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.deleteMoveButton.Location = new System.Drawing.Point(152, 286);
+ this.deleteMoveButton.Location = new System.Drawing.Point(151, 201);
this.deleteMoveButton.Margin = new System.Windows.Forms.Padding(2);
this.deleteMoveButton.Name = "deleteMoveButton";
- this.deleteMoveButton.Size = new System.Drawing.Size(70, 40);
+ this.deleteMoveButton.Size = new System.Drawing.Size(71, 32);
this.deleteMoveButton.TabIndex = 2;
this.deleteMoveButton.Text = "Delete";
this.deleteMoveButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -243,14 +252,14 @@
//
// editMoveButton
//
- this.editMoveButton.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.editMoveButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.editMoveButton.Enabled = false;
this.editMoveButton.Image = global::DSPRE.Properties.Resources.RenameIcon;
this.editMoveButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
- this.editMoveButton.Location = new System.Drawing.Point(78, 286);
+ this.editMoveButton.Location = new System.Drawing.Point(77, 201);
this.editMoveButton.Margin = new System.Windows.Forms.Padding(2);
this.editMoveButton.Name = "editMoveButton";
- this.editMoveButton.Size = new System.Drawing.Size(70, 40);
+ this.editMoveButton.Size = new System.Drawing.Size(70, 32);
this.editMoveButton.TabIndex = 3;
this.editMoveButton.Text = "Edit";
this.editMoveButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
@@ -259,89 +268,108 @@
//
// levelNumericUpDown
//
- this.tableLayoutPanel3.SetColumnSpan(this.levelNumericUpDown, 2);
- this.levelNumericUpDown.Dock = System.Windows.Forms.DockStyle.Fill;
- this.levelNumericUpDown.Location = new System.Drawing.Point(103, 148);
- this.levelNumericUpDown.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.levelNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.editLayoutPanel.SetColumnSpan(this.levelNumericUpDown, 2);
+ this.levelNumericUpDown.Location = new System.Drawing.Point(77, 82);
+ this.levelNumericUpDown.Margin = new System.Windows.Forms.Padding(2);
this.levelNumericUpDown.Name = "levelNumericUpDown";
- this.levelNumericUpDown.Size = new System.Drawing.Size(191, 22);
+ this.levelNumericUpDown.Size = new System.Drawing.Size(145, 20);
this.levelNumericUpDown.TabIndex = 4;
this.levelNumericUpDown.ValueChanged += new System.EventHandler(this.levelNumericUpDown_ValueChanged);
//
- // label1
+ // levelLabel
//
- this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(6, 150);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(91, 16);
- this.label1.TabIndex = 5;
- this.label1.Text = "Level:";
+ this.levelLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.levelLabel.AutoSize = true;
+ this.levelLabel.Location = new System.Drawing.Point(4, 85);
+ this.levelLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.levelLabel.Name = "levelLabel";
+ this.levelLabel.Size = new System.Drawing.Size(69, 13);
+ this.levelLabel.TabIndex = 5;
+ this.levelLabel.Text = "Level:";
+ //
+ // statusLabel
+ //
+ this.statusLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+ this.statusLabel.AutoSize = true;
+ this.editLayoutPanel.SetColumnSpan(this.statusLabel, 3);
+ this.statusLabel.Location = new System.Drawing.Point(4, 119);
+ this.statusLabel.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+ this.statusLabel.Name = "statusLabel";
+ this.statusLabel.Padding = new System.Windows.Forms.Padding(1, 5, 1, 5);
+ this.statusLabel.Size = new System.Drawing.Size(39, 23);
+ this.statusLabel.TabIndex = 7;
+ this.statusLabel.Text = "Status";
+ //
+ // moveUpButton
+ //
+ this.moveUpButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.moveUpButton.Enabled = false;
+ this.moveUpButton.Image = global::DSPRE.Properties.Resources.arrowup;
+ this.moveUpButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.moveUpButton.Location = new System.Drawing.Point(4, 151);
+ this.moveUpButton.Margin = new System.Windows.Forms.Padding(2);
+ this.moveUpButton.Name = "moveUpButton";
+ this.moveUpButton.Size = new System.Drawing.Size(69, 32);
+ this.moveUpButton.TabIndex = 10;
+ this.moveUpButton.Text = "Move";
+ this.moveUpButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.moveUpButton.UseVisualStyleBackColor = true;
+ this.moveUpButton.Click += new System.EventHandler(this.moveUpButton_Click);
+ //
+ // moveDownButton
+ //
+ this.moveDownButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.moveDownButton.Enabled = false;
+ this.moveDownButton.Image = global::DSPRE.Properties.Resources.arrowdown;
+ this.moveDownButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.moveDownButton.Location = new System.Drawing.Point(77, 151);
+ this.moveDownButton.Margin = new System.Windows.Forms.Padding(2);
+ this.moveDownButton.Name = "moveDownButton";
+ this.moveDownButton.Size = new System.Drawing.Size(70, 32);
+ this.moveDownButton.TabIndex = 11;
+ this.moveDownButton.Text = "Move";
+ this.moveDownButton.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
+ this.moveDownButton.UseVisualStyleBackColor = true;
+ this.moveDownButton.Click += new System.EventHandler(this.moveDownButton_Click);
//
// moveInputComboBox
//
this.moveInputComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.moveInputComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.moveInputComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
- this.tableLayoutPanel3.SetColumnSpan(this.moveInputComboBox, 3);
+ this.editLayoutPanel.SetColumnSpan(this.moveInputComboBox, 3);
this.moveInputComboBox.FormattingEnabled = true;
- this.moveInputComboBox.Location = new System.Drawing.Point(6, 15);
- this.moveInputComboBox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+ this.moveInputComboBox.Location = new System.Drawing.Point(4, 11);
+ this.moveInputComboBox.Margin = new System.Windows.Forms.Padding(2);
this.moveInputComboBox.Name = "moveInputComboBox";
- this.moveInputComboBox.Size = new System.Drawing.Size(288, 24);
+ this.moveInputComboBox.Size = new System.Drawing.Size(218, 21);
this.moveInputComboBox.TabIndex = 6;
this.moveInputComboBox.SelectedIndexChanged += new System.EventHandler(this.moveInputComboBox_SelectedIndexChanged);
//
- // statusLabel
- //
- this.statusLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.statusLabel.AutoSize = true;
- this.tableLayoutPanel3.SetColumnSpan(this.statusLabel, 3);
- this.statusLabel.Location = new System.Drawing.Point(5, 261);
- this.statusLabel.Name = "statusLabel";
- this.statusLabel.Padding = new System.Windows.Forms.Padding(1, 6, 1, 6);
- this.statusLabel.Size = new System.Drawing.Size(46, 28);
- this.statusLabel.TabIndex = 7;
- this.statusLabel.Text = "Status";
- //
// pokemonNameInputComboBox
//
this.pokemonNameInputComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
this.pokemonNameInputComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.pokemonNameInputComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.pokemonNameInputComboBox.FormattingEnabled = true;
- this.pokemonNameInputComboBox.Location = new System.Drawing.Point(71, 20);
- this.pokemonNameInputComboBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+ this.pokemonNameInputComboBox.Location = new System.Drawing.Point(53, 15);
this.pokemonNameInputComboBox.Name = "pokemonNameInputComboBox";
- this.pokemonNameInputComboBox.Size = new System.Drawing.Size(386, 24);
+ this.pokemonNameInputComboBox.Size = new System.Drawing.Size(290, 21);
this.pokemonNameInputComboBox.TabIndex = 31;
this.pokemonNameInputComboBox.SelectedIndexChanged += new System.EventHandler(this.pokemonNameInputComboBox_SelectedIndexChanged);
//
- // entryCountLabel
- //
- this.entryCountLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
- this.entryCountLabel.AutoSize = true;
- this.tableLayoutPanel3.SetColumnSpan(this.entryCountLabel, 3);
- this.entryCountLabel.Location = new System.Drawing.Point(5, 332);
- this.entryCountLabel.Name = "entryCountLabel";
- this.entryCountLabel.Padding = new System.Windows.Forms.Padding(1, 5, 1, 5);
- this.entryCountLabel.Size = new System.Drawing.Size(70, 23);
- this.entryCountLabel.TabIndex = 9;
- this.entryCountLabel.Text = "Entry Count: ";
- this.entryCountLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
// LearnsetEditor
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(668, 565);
+ this.ClientSize = new System.Drawing.Size(501, 459);
this.Controls.Add(this.tableLayoutPanel1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
- this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "LearnsetEditor";
- this.Padding = new System.Windows.Forms.Padding(7, 6, 7, 6);
+ this.Padding = new System.Windows.Forms.Padding(5);
this.Text = "Learnset Editor";
this.tableLayoutPanel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pokemonPictureBox)).EndInit();
@@ -349,8 +377,8 @@
this.tableLayoutPanel2.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
- this.tableLayoutPanel3.ResumeLayout(false);
- this.tableLayoutPanel3.PerformLayout();
+ this.editLayoutPanel.ResumeLayout(false);
+ this.editLayoutPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.levelNumericUpDown)).EndInit();
this.ResumeLayout(false);
@@ -365,17 +393,19 @@
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.ListBox movesListBox;
- private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
+ private System.Windows.Forms.TableLayoutPanel editLayoutPanel;
private System.Windows.Forms.Button addMoveButton;
private System.Windows.Forms.Button deleteMoveButton;
private System.Windows.Forms.Button editMoveButton;
private System.Windows.Forms.NumericUpDown levelNumericUpDown;
- private System.Windows.Forms.Label label1;
+ private System.Windows.Forms.Label levelLabel;
private InputComboBox moveInputComboBox;
private System.Windows.Forms.Label descriptorLabel;
private System.Windows.Forms.Label statusLabel;
public InputComboBox pokemonNameInputComboBox;
public System.Windows.Forms.NumericUpDown monNumberNumericUpDown;
private System.Windows.Forms.Label entryCountLabel;
+ private System.Windows.Forms.Button moveUpButton;
+ private System.Windows.Forms.Button moveDownButton;
}
}
\ No newline at end of file
diff --git a/DS_Map/Editors/LearnsetEditor.cs b/DS_Map/Editors/LearnsetEditor.cs
index dd81378..a54ebd2 100644
--- a/DS_Map/Editors/LearnsetEditor.cs
+++ b/DS_Map/Editors/LearnsetEditor.cs
@@ -10,10 +10,18 @@ using MessageBox = System.Windows.Forms.MessageBox;
namespace DSPRE {
public partial class LearnsetEditor : Form {
+ private PokemonEditor _parent;
private readonly string[] fileNames;
private readonly string[] pokenames;
private readonly string[] moveNames;
- private PokemonEditor _parent;
+
+ private bool editMode = false;
+ public bool dirty = false;
+ private int currentLoadedId = 0;
+ private LearnsetData currentLoadedFile = null;
+
+ private readonly string formName = "Learnset Editor";
+
private readonly string[] editButtonNames = new string[] {
"Edit",
"Confirm"
@@ -23,55 +31,190 @@ namespace DSPRE {
"Delete",
"Discard"
};
-
- private bool editMode = false;
- private int currentLoadedId = 0;
- private LearnsetData currentLoadedFile = null;
-
- private bool dirty = false;
- private readonly string formName = "Learnset Editor";
+
public LearnsetEditor(string[] moveNames, Control parent, PokemonEditor pokeEditor) {
- this.moveNames = moveNames;
- this._parent = pokeEditor;
+
InitializeComponent();
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
+ this.FormBorderStyle = FormBorderStyle.None;
this.Size = parent.Size;
this.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
+
Helpers.DisableHandlers();
- BindingList listMoveNames = new BindingList(moveNames);
- moveInputComboBox.DataSource = listMoveNames;
-
- /* ---------------- */
- int count = RomInfo.GetLearnsetFilesCount();
+ this._parent = pokeEditor;
+ this.moveNames = moveNames;
this.pokenames = RomInfo.GetPokemonNames();
- List fileNames = new List(count);
- fileNames.AddRange(pokenames);
+ this.fileNames = GetFileNames();
- for (int i = 0; i < PokeDatabase.PersonalData.personalExtraFiles.Length; i++) {
- PokeDatabase.PersonalData.PersonalExtraFiles altFormEntry = PokeDatabase.PersonalData.personalExtraFiles[i];
- fileNames.Add(fileNames[altFormEntry.monId] + " - " + altFormEntry.description);
- }
+ InitDataRanges();
- int extraEntries = fileNames.Count;
- for (int i = 0; i < count - extraEntries; i++) {
- fileNames.Add($"Extra entry {fileNames.Count}");
- }
-
- this.fileNames = fileNames.ToArray();
- monNumberNumericUpDown.Maximum = fileNames.Count - 1;
- pokemonNameInputComboBox.Items.AddRange(this.fileNames);
/* ---------------- */
descriptorLabel.Text = "";
statusLabel.Text = "";
- Helpers.EnableHandlers();
+ ChangeLoadedFile(1);
+
+ Helpers.EnableHandlers();
+ }
+
+ private void InitDataRanges()
+ {
+ moveInputComboBox.DataSource = moveNames;
+ pokemonNameInputComboBox.DataSource = fileNames;
+ monNumberNumericUpDown.Minimum = 0;
+ monNumberNumericUpDown.Maximum = RomInfo.GetLearnsetFilesCount() - 1;
pokemonNameInputComboBox.SelectedIndex = 1;
+ monNumberNumericUpDown.Value = 1;
+ levelNumericUpDown.Value = 1;
+
}
- private void setDirty(bool status) {
+
+ private string[] GetFileNames()
+ {
+
+ int learnsetCount = RomInfo.GetLearnsetFilesCount();
+
+ List fileNames = new List(RomInfo.GetLearnsetFilesCount());
+ fileNames.AddRange(pokenames);
+ for (int i = 0; i < PokeDatabase.PersonalData.personalExtraFiles.Length; i++) {
+ PokeDatabase.PersonalData.PersonalExtraFiles altFormEntry = PokeDatabase.PersonalData.personalExtraFiles[i];
+ fileNames.Add(fileNames[altFormEntry.monId] + " - " + altFormEntry.description);
+ }
+
+ for (int i = 0; i < learnsetCount - fileNames.Count; i++)
+ {
+ fileNames.Add($"Extra entry {fileNames.Count}");
+ }
+
+ return fileNames.ToArray();
+ }
+
+ public void ChangeLoadedFile(int learnsetID)
+ {
+ currentLoadedFile = new LearnsetData(learnsetID);
+ currentLoadedId = learnsetID;
+
+ monNumberNumericUpDown.Value = currentLoadedId;
+ pokemonNameInputComboBox.SelectedIndex = currentLoadedId;
+
+ UpdateMovesListFromFile();
+ UpdateEntryCountLabel();
+ UpdateButtonsOnMoveSelection();
+ UpdatePokePic();
+ UpdateAddEditStatus();
+ SetDirty(false);
+ }
+
+ private void UpdateMovesListFromFile()
+ {
+ movesListBox.BeginUpdate();
+ movesListBox.Items.Clear();
+ foreach (var elem in currentLoadedFile.list)
+ {
+ movesListBox.Items.Add(ElemToString(elem));
+ }
+ movesListBox.EndUpdate();
+ }
+
+ private void UpdateEntryCountLabel()
+ {
+ StringBuilder labelText = new StringBuilder("Entry Count: ");
+ labelText.Append(movesListBox.Items.Count);
+
+ if (movesListBox.Items.Count > LearnsetData.VanillaLimit)
+ {
+ labelText.Append("!");
+ entryCountLabel.ForeColor = Color.FromArgb(210, 120, 0);
+ entryCountLabel.Font = new Font(entryCountLabel.Font, FontStyle.Bold);
+ }
+ else
+ {
+ entryCountLabel.ForeColor = Color.Black;
+ entryCountLabel.Font = new Font(entryCountLabel.Font, FontStyle.Regular);
+ }
+
+ entryCountLabel.Text = labelText.ToString();
+ }
+
+ private void UpdatePokePic()
+ {
+ int excess = currentLoadedId - pokenames.Length;
+ int toLoad = currentLoadedId; // Default to the current ID
+ try
+ {
+ if (excess >= 0)
+ {
+ toLoad = PokeDatabase.PersonalData.personalExtraFiles[excess].iconId;
+ }
+ }
+ catch (IndexOutOfRangeException)
+ {
+ toLoad = 0;
+ }
+ finally
+ {
+ pokemonPictureBox.Image = DSUtils.GetPokePic(toLoad, pokemonPictureBox.Width, pokemonPictureBox.Height);
+ }
+ }
+
+ private void UpdateAddEditStatus()
+ {
+ (byte level, ushort move) newEntry = ((byte)levelNumericUpDown.Value, (ushort)moveInputComboBox.SelectedIndex);
+
+ if (currentLoadedFile == null)
+ {
+ return;
+ }
+
+ bool duplicate = currentLoadedFile.list.Contains(newEntry);
+
+ if (duplicate)
+ {
+ if (editMode)
+ {
+ editMoveButton.Enabled = false;
+ }
+ else
+ {
+ addMoveButton.Enabled = false;
+ }
+ statusLabel.Text = "Entry already exists!";
+ }
+ else
+ {
+ bool addable = IsValidEntry();
+ if (addable)
+ {
+ statusLabel.Text = "";
+ }
+ else
+ {
+ statusLabel.Text = "Invalid Move ID or Level!";
+ }
+
+ if (editMode)
+ {
+ editMoveButton.Enabled = addable;
+ }
+ else
+ {
+ addMoveButton.Enabled = addable;
+ }
+ }
+ }
+
+ public void SaveLearnsetData() {
+ if (currentLoadedFile == null) {
+ return;
+ }
+ currentLoadedFile.SaveToFileDefaultDir(currentLoadedId, false);
+ SetDirty(false);
+ }
+
+ private void SetDirty(bool status) {
if (status) {
dirty = true;
this.Text = formName + "*";
@@ -79,90 +222,172 @@ namespace DSPRE {
dirty = false;
this.Text = formName;
}
+ _parent.UpdateTabPageNames();
}
- public bool CheckDiscardChanges() {
+ public bool CheckDiscardChanges()
+ {
if (!dirty) {
return true;
}
- DialogResult res = MessageBox.Show(this, "Learnsets Editor\nThere are unsaved changes to the current Learnset data.\nDiscard and proceed?", "Learnset Editor - Unsaved changes", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
- if (res.Equals(DialogResult.Yes)) {
- return true;
+ DialogResult res = MessageBox.Show(this,
+ "You have unsaved changes. Do you want to save them before switching Pokémon?",
+ "Learnset Editor - Unsaved changes", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
+
+ if (res == DialogResult.Yes)
+ {
+ SaveLearnsetData();
}
+ else if (res == DialogResult.Cancel)
+ {
+ monNumberNumericUpDown.Value = currentLoadedId;
+ pokemonNameInputComboBox.SelectedIndex = currentLoadedId;
+ return false; // Cancel the change
+ }
- monNumberNumericUpDown.Value = currentLoadedId;
- pokemonNameInputComboBox.SelectedIndex = currentLoadedId;
-
-
- return false;
+ return true;
}
private string ElemToString((ushort level, ushort move) elem) {
return $"Lv. {elem.level}: {moveNames[elem.move]}";
}
- public void ChangeLoadedFile(int toLoad) {
- currentLoadedId = toLoad;
- currentLoadedFile = new LearnsetData(currentLoadedId);
- PopulateAllFromCurrentFile();
- UpdateButtonsOnMoveSelection();
-
- int excess = toLoad - pokenames.Length;
- try {
- if (excess >= 0) {
- toLoad = PokeDatabase.PersonalData.personalExtraFiles[excess].iconId;
- }
- } catch (IndexOutOfRangeException) {
- toLoad = 0;
- } finally {
- pokemonPictureBox.Image = DSUtils.GetPokePic(toLoad, pokemonPictureBox.Width, pokemonPictureBox.Height);
- }
- setDirty(false);
+ private bool IsValidEntry()
+ {
+ return levelNumericUpDown.Value > 0 &&
+ moveInputComboBox.SelectedIndex > 0;
}
- private void PopulateAllFromCurrentFile() {
- movesListBox.BeginUpdate();
- movesListBox.Items.Clear();
- foreach (var elem in currentLoadedFile.list) {
- movesListBox.Items.Add(ElemToString(elem));
- }
-
- UpdateEntryCountLabel();
- movesListBox.EndUpdate();
+ private void UpdateByEditMode()
+ {
+ int index = editMode == false ? 0 : 1;
+ editMoveButton.Text = editButtonNames[index];
+ deleteMoveButton.Text = deleteButtonNames[index];
}
- //-------------------------------
- private void saveDataButton_Click(object sender, EventArgs e) {
- currentLoadedFile.SaveToFileDefaultDir(currentLoadedId, true);
- setDirty(false);
- }
+ private void UpdateButtonsOnMoveSelection()
+ {
+ int sel = movesListBox.SelectedIndex;
- private void pokemonNameInputComboBox_SelectedIndexChanged(object sender, EventArgs e) {
- Update();
- if (Helpers.HandlersDisabled) {
+ if (sel < 0)
+ {
+ editMoveButton.Enabled = false;
+ deleteMoveButton.Enabled = false;
+ moveUpButton.Enabled = false;
+ moveDownButton.Enabled = false;
return;
}
+
+ editMoveButton.Enabled = true;
+ deleteMoveButton.Enabled = true;
+
+ int moveLevel = currentLoadedFile.list[sel].level;
+ int previousLevel = sel > 0 ? currentLoadedFile.list[sel - 1].level : 0;
+ int nextLevel = sel < currentLoadedFile.list.Count - 1 ? currentLoadedFile.list[sel + 1].level : 255;
+
+ // Allow reordering only if the levels are the same
+ moveUpButton.Enabled = moveLevel == previousLevel;
+ moveDownButton.Enabled = moveLevel == nextLevel;
+ }
+
+ private int InsertEntrySafe(int level, int moveID)
+ {
+ if (currentLoadedFile == null || !IsValidEntry())
+ {
+ return -1;
+ }
+
+ (byte level, ushort move) newEntry = ((byte)level, (ushort)moveID);
+
+ if (currentLoadedFile.list.Contains(newEntry))
+ {
+ MessageBox.Show(this, "This entry already exists!\nThis should not have happened.", "Learnset Editor - Duplicate Entry", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ AppLogger.Error("Learnset Editor: Attempted to insert a duplicate entry: " + newEntry);
+ return -1;
+ }
+
+ int index = currentLoadedFile.list.FindIndex(x => x.level > newEntry.level || (x.level == newEntry.level && x.move > newEntry.move));
+
+ if (index < 0)
+ {
+ currentLoadedFile.list.Add(newEntry);
+ return currentLoadedFile.list.Count - 1; // Add to the end if no larger entry is found
+ }
+ else
+ {
+ currentLoadedFile.list.Insert(index, newEntry);
+ return index; // Insert at the found index
+ }
+
+ }
+
+ private bool ShiftEntry(int index, int direction)
+ {
+ if (currentLoadedFile == null || index < 0 || index >= currentLoadedFile.list.Count)
+ {
+ return false; // Invalid index
+ }
+
+ int newIndex = index + direction;
+ if (newIndex < 0 || newIndex >= currentLoadedFile.list.Count)
+ {
+ return false; // Out of bounds
+ }
+ // Move the entry safely
+ SwapEntriesSafe(index, newIndex);
+ return true;
+ }
+
+ private bool SwapEntriesSafe(int indexA, int indexB)
+ {
+ if (currentLoadedFile == null || indexA < 0 || indexB < 0 || indexA >= currentLoadedFile.list.Count || indexB >= currentLoadedFile.list.Count)
+ {
+ return false; // Invalid indices
+ }
+ (byte level, ushort move) entryA = currentLoadedFile.list[indexA];
+ (byte level, ushort move) entryB = currentLoadedFile.list[indexB];
+ // Swap the entries
+ currentLoadedFile.list[indexA] = entryB;
+ currentLoadedFile.list[indexB] = entryA;
+
+ return true; // Successfully swapped
+ }
+
+ #region Event Handlers
+ private void saveDataButton_Click(object sender, EventArgs e) {
+ SaveLearnsetData();
+ }
+
+ private void pokemonNameInputComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (Helpers.HandlersDisabled)
+ {
+ return;
+ }
+
+ Update();
+
this._parent.TrySyncIndices((ComboBox)sender);
Helpers.DisableHandlers();
- UpdateAddEditStatus();
- if (CheckDiscardChanges()) {
- int newNumber = pokemonNameInputComboBox.SelectedIndex;
- monNumberNumericUpDown.Value = newNumber;
- ChangeLoadedFile(newNumber);
+ if (CheckDiscardChanges())
+ {
+ ChangeLoadedFile(pokemonNameInputComboBox.SelectedIndex);
}
Helpers.EnableHandlers();
}
private void monNumberNumericUpDown_ValueChanged(object sender, EventArgs e) {
- Update();
- if (Helpers.HandlersDisabled) {
+
+ if (Helpers.HandlersDisabled)
+ {
return;
}
+
+ Update();
+
this._parent.TrySyncIndices((NumericUpDown)sender);
Helpers.DisableHandlers();
- UpdateAddEditStatus();
- if (CheckDiscardChanges()) {
- int newNumber = (int)monNumberNumericUpDown.Value;
- pokemonNameInputComboBox.SelectedIndex = newNumber;
- ChangeLoadedFile(newNumber);
+ if (CheckDiscardChanges())
+ {
+ ChangeLoadedFile((int)monNumberNumericUpDown.Value);
}
Helpers.EnableHandlers();
}
@@ -175,10 +400,6 @@ namespace DSPRE {
descriptorLabel.Text = "Move ID: " + moveInputComboBox.SelectedIndex;
}
- private bool CheckValidEntry() {
- return levelNumericUpDown.Value > 0 &&
- moveInputComboBox.SelectedIndex > 0;
- }
private void levelNumericUpDown_ValueChanged(object sender, EventArgs e) {
if (currentLoadedFile == null) {
return;
@@ -186,61 +407,39 @@ namespace DSPRE {
UpdateAddEditStatus();
}
- private void UpdateAddEditStatus() {
- (byte level, ushort move) newEntry = ((byte)levelNumericUpDown.Value, (ushort)moveInputComboBox.SelectedIndex);
-
- if (currentLoadedFile == null)
- {
- return;
- }
-
- bool duplicate = currentLoadedFile.list.Contains(newEntry);
-
- if (duplicate) {
- if (editMode) {
- editMoveButton.Enabled = false;
- } else {
- addMoveButton.Enabled = false;
- }
- statusLabel.Text = "Entry already exists!";
- } else {
- bool addable = CheckValidEntry();
- if (addable) {
- statusLabel.Text = "";
- } else {
- statusLabel.Text = "Invalid Move ID or Level!";
- }
-
- if (editMode) {
- editMoveButton.Enabled = addable;
- } else {
- addMoveButton.Enabled = addable;
- }
- }
- }
-
private void addMoveButton_Click(object sender, EventArgs e) {
- (byte level, ushort move) newEntry = ((byte)levelNumericUpDown.Value, (ushort)moveInputComboBox.SelectedIndex);
- currentLoadedFile.list.Add(newEntry);
-
- currentLoadedFile.list.Sort();
- PopulateAllFromCurrentFile();
- movesListBox.SelectedIndex = currentLoadedFile.list.FindIndex(x => x == newEntry);
+
+ int index = InsertEntrySafe((byte)levelNumericUpDown.Value, (ushort)moveInputComboBox.SelectedIndex);
+
+ if (index < 0) {
+ return; // Insertion failed, likely due to invalid entry
+ }
+
+ UpdateMovesListFromFile();
+ movesListBox.SelectedIndex = index;
UpdateAddEditStatus();
- setDirty(true);
+ SetDirty(true);
}
private void deleteMoveButton_Click(object sender, EventArgs e) {
+
+ if (currentLoadedFile == null) {
+ return;
+ }
+
int sel = movesListBox.SelectedIndex;
if (sel < 0) {
return;
}
- if (editMode) {
+ if (editMode)
+ {
editMode = false;
movesListBox.Enabled = true;
UpdateButtonsOnMoveSelection();
- } else {
+ }
+ else
+ {
currentLoadedFile.list.RemoveAt(sel);
movesListBox.Items.RemoveAt(sel);
@@ -254,7 +453,7 @@ namespace DSPRE {
UpdateByEditMode();
UpdateAddEditStatus();
- setDirty(true);
+ SetDirty(true);
}
private void editMoveButton_Click(object sender, EventArgs e) {
@@ -268,16 +467,19 @@ namespace DSPRE {
int newSelection;
int oldLevel = currentLoadedFile.list[sel].level;
- currentLoadedFile.list[sel] = newEntry;
- if (newEntry.level == oldLevel) {
+ if (newEntry.level == oldLevel)
+ {
+ currentLoadedFile.list[sel] = newEntry;
movesListBox.Items[sel] = ElemToString(newEntry);
newSelection = sel;
- } else {
- currentLoadedFile.list.Sort();
- PopulateAllFromCurrentFile();
- newSelection = currentLoadedFile.list.FindIndex(x => x == newEntry);
}
+ else
+ {
+ currentLoadedFile.list.RemoveAt(sel);
+ newSelection = InsertEntrySafe(newEntry.level, newEntry.move);
+ UpdateMovesListFromFile();
+ }
UpdateEntryCountLabel();
movesListBox.SelectedIndex = newSelection;
@@ -286,6 +488,8 @@ namespace DSPRE {
} else {
editMode = true;
movesListBox.Enabled = false;
+ moveUpButton.Enabled = false;
+ moveDownButton.Enabled = false;
editMoveButton.Text = editButtonNames[1];
deleteMoveButton.Text = deleteButtonNames[1];
@@ -296,50 +500,39 @@ namespace DSPRE {
}
UpdateByEditMode();
- addMoveButton.Enabled = (editMode == false && CheckValidEntry());
- setDirty(true);
- }
-
- private void UpdateByEditMode() {
- UpdateButtonNames(editMode);
- }
-
- private void UpdateButtonNames(bool editMode) {
- int index = editMode == false ? 0 : 1;
- editMoveButton.Text = editButtonNames[index];
- deleteMoveButton.Text = deleteButtonNames[index];
+ UpdateAddEditStatus();
+ SetDirty(true);
}
private void movesListBox_SelectedIndexChanged(object sender, EventArgs e) {
UpdateButtonsOnMoveSelection();
}
- private void UpdateButtonsOnMoveSelection() {
+ private void moveUpButton_Click(object sender, EventArgs e)
+ {
int sel = movesListBox.SelectedIndex;
- if (sel < 0) {
- editMoveButton.Enabled = false;
- deleteMoveButton.Enabled = false;
+ if (!ShiftEntry(sel, -1))
+ {
return;
}
-
- editMoveButton.Enabled = true;
- deleteMoveButton.Enabled = true;
+ UpdateMovesListFromFile();
+ movesListBox.SelectedIndex = sel-1;
+ SetDirty(true);
}
- private void UpdateEntryCountLabel(){
- StringBuilder labelText = new StringBuilder("Entry Count: ");
- labelText.Append(movesListBox.Items.Count);
-
- if (movesListBox.Items.Count > LearnsetData.VanillaLimit) {
- labelText.Append("!");
- entryCountLabel.ForeColor = Color.FromArgb(210, 120, 0);
- entryCountLabel.Font = new Font(entryCountLabel.Font, FontStyle.Bold);
- } else {
- entryCountLabel.ForeColor = Color.Black;
- entryCountLabel.Font = new Font(entryCountLabel.Font, FontStyle.Regular);
+ private void moveDownButton_Click(object sender, EventArgs e)
+ {
+ int sel = movesListBox.SelectedIndex;
+ if (!ShiftEntry(sel, 1))
+ {
+ return;
}
-
- entryCountLabel.Text = labelText.ToString();
+ UpdateMovesListFromFile();
+ movesListBox.SelectedIndex = sel+1;
+ SetDirty(true);
}
+
+ #endregion
+
}
}
diff --git a/DS_Map/Editors/PersonalDataEditor.Designer.cs b/DS_Map/Editors/PersonalDataEditor.Designer.cs
index 22e02c5..8c7e32f 100644
--- a/DS_Map/Editors/PersonalDataEditor.Designer.cs
+++ b/DS_Map/Editors/PersonalDataEditor.Designer.cs
@@ -81,11 +81,11 @@
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel9 = new System.Windows.Forms.TableLayoutPanel();
this.eggStepsNumericUpDown = new System.Windows.Forms.NumericUpDown();
- this.label21 = new System.Windows.Forms.Label();
- this.label22 = new System.Windows.Forms.Label();
+ this.eggGroup1Label = new System.Windows.Forms.Label();
+ this.eggGroup2Label = new System.Windows.Forms.Label();
this.eggGroup1InputCombobox = new DSPRE.InputComboBox();
this.eggGroup2InputCombobox = new DSPRE.InputComboBox();
- this.label23 = new System.Windows.Forms.Label();
+ this.hatchStepsLabel = new System.Windows.Forms.Label();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.tableLayoutPanel8 = new System.Windows.Forms.TableLayoutPanel();
this.dexColorInputComboBox = new DSPRE.InputComboBox();
@@ -118,6 +118,8 @@
this.type2InputComboBox = new DSPRE.InputComboBox();
this.type1InputComboBox = new DSPRE.InputComboBox();
this.pokemonNameInputComboBox = new DSPRE.InputComboBox();
+ this.hatchResultLabel = new System.Windows.Forms.Label();
+ this.hatchResultComboBox = new DSPRE.InputComboBox();
this.tableLayoutPanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pokemonPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.monNumberNumericUpDown)).BeginInit();
@@ -922,30 +924,34 @@
//
this.tableLayoutPanel9.ColumnCount = 1;
this.tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel9.Controls.Add(this.hatchResultLabel, 0, 6);
this.tableLayoutPanel9.Controls.Add(this.eggStepsNumericUpDown, 0, 5);
- this.tableLayoutPanel9.Controls.Add(this.label21, 0, 0);
- this.tableLayoutPanel9.Controls.Add(this.label22, 0, 2);
+ this.tableLayoutPanel9.Controls.Add(this.eggGroup1Label, 0, 0);
+ this.tableLayoutPanel9.Controls.Add(this.eggGroup2Label, 0, 2);
this.tableLayoutPanel9.Controls.Add(this.eggGroup1InputCombobox, 0, 1);
this.tableLayoutPanel9.Controls.Add(this.eggGroup2InputCombobox, 0, 3);
- this.tableLayoutPanel9.Controls.Add(this.label23, 0, 4);
+ this.tableLayoutPanel9.Controls.Add(this.hatchStepsLabel, 0, 4);
+ this.tableLayoutPanel9.Controls.Add(this.hatchResultComboBox, 0, 7);
this.tableLayoutPanel9.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel9.Location = new System.Drawing.Point(3, 16);
this.tableLayoutPanel9.Name = "tableLayoutPanel9";
this.tableLayoutPanel9.Padding = new System.Windows.Forms.Padding(5);
- this.tableLayoutPanel9.RowCount = 6;
+ this.tableLayoutPanel9.RowCount = 8;
this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25.06265F));
this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25.06265F));
this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
+ this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25.06265F));
+ this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
+ this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 24.81203F));
this.tableLayoutPanel9.Size = new System.Drawing.Size(120, 231);
this.tableLayoutPanel9.TabIndex = 23;
//
// eggStepsNumericUpDown
//
this.eggStepsNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
- this.eggStepsNumericUpDown.Location = new System.Drawing.Point(8, 188);
+ this.eggStepsNumericUpDown.Location = new System.Drawing.Point(8, 142);
this.eggStepsNumericUpDown.Maximum = new decimal(new int[] {
255,
0,
@@ -956,25 +962,25 @@
this.eggStepsNumericUpDown.TabIndex = 18;
this.eggStepsNumericUpDown.ValueChanged += new System.EventHandler(this.eggStepsNumericUpDown_ValueChanged);
//
- // label21
+ // eggGroup1Label
//
- this.label21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
- this.label21.AutoSize = true;
- this.label21.Location = new System.Drawing.Point(8, 8);
- this.label21.Name = "label21";
- this.label21.Size = new System.Drawing.Size(104, 13);
- this.label21.TabIndex = 13;
- this.label21.Text = "Group 1";
+ this.eggGroup1Label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.eggGroup1Label.AutoSize = true;
+ this.eggGroup1Label.Location = new System.Drawing.Point(8, 8);
+ this.eggGroup1Label.Name = "eggGroup1Label";
+ this.eggGroup1Label.Size = new System.Drawing.Size(104, 13);
+ this.eggGroup1Label.TabIndex = 13;
+ this.eggGroup1Label.Text = "Group 1";
//
- // label22
+ // eggGroup2Label
//
- this.label22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
- this.label22.AutoSize = true;
- this.label22.Location = new System.Drawing.Point(8, 81);
- this.label22.Name = "label22";
- this.label22.Size = new System.Drawing.Size(104, 13);
- this.label22.TabIndex = 14;
- this.label22.Text = "Group 2";
+ this.eggGroup2Label.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.eggGroup2Label.AutoSize = true;
+ this.eggGroup2Label.Location = new System.Drawing.Point(8, 63);
+ this.eggGroup2Label.Name = "eggGroup2Label";
+ this.eggGroup2Label.Size = new System.Drawing.Size(104, 13);
+ this.eggGroup2Label.TabIndex = 14;
+ this.eggGroup2Label.Text = "Group 2";
//
// eggGroup1InputCombobox
//
@@ -982,7 +988,7 @@
this.eggGroup1InputCombobox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.eggGroup1InputCombobox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.eggGroup1InputCombobox.FormattingEnabled = true;
- this.eggGroup1InputCombobox.Location = new System.Drawing.Point(8, 41);
+ this.eggGroup1InputCombobox.Location = new System.Drawing.Point(8, 32);
this.eggGroup1InputCombobox.Name = "eggGroup1InputCombobox";
this.eggGroup1InputCombobox.Size = new System.Drawing.Size(104, 21);
this.eggGroup1InputCombobox.TabIndex = 15;
@@ -994,21 +1000,21 @@
this.eggGroup2InputCombobox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
this.eggGroup2InputCombobox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.eggGroup2InputCombobox.FormattingEnabled = true;
- this.eggGroup2InputCombobox.Location = new System.Drawing.Point(8, 114);
+ this.eggGroup2InputCombobox.Location = new System.Drawing.Point(8, 87);
this.eggGroup2InputCombobox.Name = "eggGroup2InputCombobox";
this.eggGroup2InputCombobox.Size = new System.Drawing.Size(104, 21);
this.eggGroup2InputCombobox.TabIndex = 16;
this.eggGroup2InputCombobox.SelectedIndexChanged += new System.EventHandler(this.eggGroup2InputCombobox_SelectedIndexChanged);
//
- // label23
+ // hatchStepsLabel
//
- this.label23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
- this.label23.AutoSize = true;
- this.label23.Location = new System.Drawing.Point(8, 154);
- this.label23.Name = "label23";
- this.label23.Size = new System.Drawing.Size(104, 13);
- this.label23.TabIndex = 17;
- this.label23.Text = "Hatch Steps";
+ this.hatchStepsLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.hatchStepsLabel.AutoSize = true;
+ this.hatchStepsLabel.Location = new System.Drawing.Point(8, 118);
+ this.hatchStepsLabel.Name = "hatchStepsLabel";
+ this.hatchStepsLabel.Size = new System.Drawing.Size(104, 13);
+ this.hatchStepsLabel.TabIndex = 17;
+ this.hatchStepsLabel.Text = "Hatch Steps";
//
// groupBox7
//
@@ -1437,6 +1443,28 @@
this.pokemonNameInputComboBox.TabIndex = 31;
this.pokemonNameInputComboBox.SelectedIndexChanged += new System.EventHandler(this.pokemonNameInputComboBox_SelectedIndexChanged);
//
+ // hatchResultLabel
+ //
+ this.hatchResultLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.hatchResultLabel.AutoSize = true;
+ this.hatchResultLabel.Location = new System.Drawing.Point(8, 173);
+ this.hatchResultLabel.Name = "hatchResultLabel";
+ this.hatchResultLabel.Size = new System.Drawing.Size(104, 13);
+ this.hatchResultLabel.TabIndex = 19;
+ this.hatchResultLabel.Text = "Hatch Result";
+ //
+ // hatchResultComboBox
+ //
+ this.hatchResultComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right)));
+ this.hatchResultComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.hatchResultComboBox.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
+ this.hatchResultComboBox.FormattingEnabled = true;
+ this.hatchResultComboBox.Location = new System.Drawing.Point(8, 197);
+ this.hatchResultComboBox.Name = "hatchResultComboBox";
+ this.hatchResultComboBox.Size = new System.Drawing.Size(104, 21);
+ this.hatchResultComboBox.TabIndex = 20;
+ this.hatchResultComboBox.SelectedIndexChanged += new System.EventHandler(this.hatchResultComboBox_SelectedIndexChanged);
+ //
// PersonalDataEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -1560,11 +1588,11 @@
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel9;
private System.Windows.Forms.NumericUpDown eggStepsNumericUpDown;
- private System.Windows.Forms.Label label21;
- private System.Windows.Forms.Label label22;
+ private System.Windows.Forms.Label eggGroup1Label;
+ private System.Windows.Forms.Label eggGroup2Label;
private InputComboBox eggGroup1InputCombobox;
private InputComboBox eggGroup2InputCombobox;
- private System.Windows.Forms.Label label23;
+ private System.Windows.Forms.Label hatchStepsLabel;
private System.Windows.Forms.GroupBox groupBox7;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel8;
private InputComboBox dexColorInputComboBox;
@@ -1605,5 +1633,7 @@
private InputComboBox type1InputComboBox;
public InputComboBox pokemonNameInputComboBox;
public System.Windows.Forms.NumericUpDown monNumberNumericUpDown;
+ private System.Windows.Forms.Label hatchResultLabel;
+ private InputComboBox hatchResultComboBox;
}
}
\ No newline at end of file
diff --git a/DS_Map/Editors/PersonalDataEditor.cs b/DS_Map/Editors/PersonalDataEditor.cs
index d7343df..4ba3ac6 100644
--- a/DS_Map/Editors/PersonalDataEditor.cs
+++ b/DS_Map/Editors/PersonalDataEditor.cs
@@ -3,6 +3,7 @@ using DSPRE.ROMFiles;
using System;
using System.Collections.Generic;
using System.ComponentModel;
+using System.IO;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Forms;
@@ -17,7 +18,7 @@ namespace DSPRE {
private int currentLoadedId = 0;
private PokemonPersonalData currentLoadedFile = null;
- private static bool dirty = false;
+ public bool dirty = false;
private bool modifiedAbilities = false;
private static readonly string formName = "Personal Data Editor";
@@ -72,6 +73,7 @@ namespace DSPRE {
this.fileNames = fileNames.ToArray();
monNumberNumericUpDown.Maximum = fileNames.Count - 1;
pokemonNameInputComboBox.Items.AddRange(this.fileNames);
+ hatchResultComboBox.DataSource = fileNames.ToArray();
/* ---------------- */
Helpers.EnableHandlers();
@@ -87,6 +89,7 @@ namespace DSPRE {
dirty = false;
this.Text = formName;
}
+ _parent.UpdateTabPageNames();
}
private void baseHpNumericUpDown_ValueChanged(object sender, EventArgs e) {
if (Helpers.HandlersDisabled) {
@@ -398,6 +401,7 @@ namespace DSPRE {
}
private void saveDataButton_Click(object sender, EventArgs e) {
currentLoadedFile.SaveToFileDefaultDir(currentLoadedId, true);
+ WriteHatchResult(currentLoadedId);
//if (modifiedAbilities) {
// EditorPanels.MainProgram.RefreshAbilities(currentLoadedId);
// modifiedAbilities = false;
@@ -452,6 +456,18 @@ namespace DSPRE {
Helpers.EnableHandlers();
}
+
+ private void hatchResultComboBox_SelectedIndexChanged(object sender, EventArgs e)
+ {
+
+ if (Helpers.HandlersDisabled)
+ {
+ return;
+ }
+
+ setDirty(true);
+ }
+
public void ChangeLoadedFile(int toLoad) {
currentLoadedId = toLoad;
currentLoadedFile = new PokemonPersonalData(currentLoadedId);
@@ -486,6 +502,7 @@ namespace DSPRE {
eggGroup1InputCombobox.SelectedIndex = currentLoadedFile.eggGroup1;
eggGroup2InputCombobox.SelectedIndex = currentLoadedFile.eggGroup2;
+ hatchResultComboBox.SelectedIndex = GetHatchResult(currentLoadedId);
ability1InputComboBox.SelectedIndex = currentLoadedFile.firstAbility;
ability2InputComboBox.SelectedIndex = currentLoadedFile.secondAbility;
@@ -554,6 +571,50 @@ namespace DSPRE {
}
}
+ private int GetHatchResult(int monID)
+ {
+ if (monID < 0) {
+ return 0;
+ }
+
+ // Open PMS file to find the hatch result
+ // This isn't a narc despite the name, it's a binary file. It's also in the same location for all games and languages.
+ FileStream stream = new FileStream(Path.Combine(RomInfo.dataPath, @"poketool/personal/pms.narc"), FileMode.Open);
+
+ using (BinaryReader reader = new BinaryReader(stream))
+ {
+ // Each entry is 2 bytes long
+ int offset = monID * 2;
+ if (offset + 1 > stream.Length) {
+ return 0; // Out of bounds
+ }
+ stream.Seek(offset, SeekOrigin.Begin);
+ ushort hatchResult = reader.ReadUInt16();
+ stream.Close();
+ return hatchResult;
+ }
+ }
+
+ private void WriteHatchResult(int monID) {
+ if (monID < 0) {
+ return;
+ }
+ // Open PMS file to write the hatch result
+ FileStream stream = new FileStream(Path.Combine(RomInfo.dataPath, @"poketool/personal/pms.narc"), FileMode.Open);
+ using (BinaryWriter writer = new BinaryWriter(stream))
+ {
+ // Each entry is 2 bytes long
+ int offset = monID * 2;
+ if (offset + 1 > stream.Length)
+ {
+ return; // Out of bounds
+ }
+ stream.Seek(offset, SeekOrigin.Begin);
+ writer.Write((ushort)hatchResultComboBox.SelectedIndex);
+ stream.Close();
+ }
+ }
+
private static string MachineNameFromZeroBasedIndex(int n) {
//0-91 --> TMs
//>=92 --> HM
diff --git a/DS_Map/Editors/PokemonEditor.Designer.cs b/DS_Map/Editors/PokemonEditor.Designer.cs
index 29a8fc4..280a546 100644
--- a/DS_Map/Editors/PokemonEditor.Designer.cs
+++ b/DS_Map/Editors/PokemonEditor.Designer.cs
@@ -33,6 +33,7 @@
this.syncChangesCheckbox = new System.Windows.Forms.CheckBox();
this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+ this.FormClosing += PokemonEditor_FormClosing;
this.tabControl.SuspendLayout();
this.flowLayoutPanel1.SuspendLayout();
this.SuspendLayout();
diff --git a/DS_Map/Editors/PokemonEditor.cs b/DS_Map/Editors/PokemonEditor.cs
index 196cbb7..8a7a851 100644
--- a/DS_Map/Editors/PokemonEditor.cs
+++ b/DS_Map/Editors/PokemonEditor.cs
@@ -106,5 +106,37 @@ namespace DSPRE {
}
Helpers.RestoreDisableHandler();
}
+
+ public void UpdateTabPageNames()
+ {
+ if (personalEditor == null || learnsetEditor == null || evoEditor == null)
+ {
+ return;
+ }
+
+ personalPage.Text = personalEditor.Text;
+ learnsetPage.Text = learnsetEditor.Text;
+ evoPage.Text = evoEditor.Text;
+ }
+
+ private void PokemonEditor_FormClosing(object sender, FormClosingEventArgs e)
+ {
+ if (personalEditor == null || learnsetEditor == null || evoEditor == null)
+ {
+ return;
+ }
+
+ if (personalEditor.dirty || learnsetEditor.dirty || evoEditor.dirty)
+ {
+ DialogResult result = MessageBox.Show("There are unsaved changes. Closing the editor will discard them!", "Unsaved Changes", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);
+
+ if (result != DialogResult.OK)
+ {
+ e.Cancel = true;
+ return;
+ }
+
+ }
+ }
}
}
diff --git a/DS_Map/Editors/PokemonSpriteEditor.Designer.cs b/DS_Map/Editors/PokemonSpriteEditor.Designer.cs
new file mode 100644
index 0000000..14c8ade
--- /dev/null
+++ b/DS_Map/Editors/PokemonSpriteEditor.Designer.cs
@@ -0,0 +1,364 @@
+using DSPRE.Editors.Utils;
+using System.Drawing;
+using System.Windows.Forms;
+using static DSPRE.RomInfo;
+
+namespace DSPRE.Editors
+{
+ partial class PokemonSpriteEditor
+ {
+ private System.ComponentModel.IContainer components = null;
+ private ComboBox IndexBox;
+ private ComboBox SaveBox;
+ private ComboBox BasePalette;
+ private ComboBox ShinyPalette;
+ private Button OpenPngs;
+ private Button LoadSheet;
+ private Button SaveSingle;
+ private Button MakeShiny;
+ private Button OpenOther;
+ private Button SaveChanges;
+ private Label lblMale;
+ private Label lblFemale;
+ private Label BackN;
+ private Label BackS;
+ private Label FrontN;
+ private Label FrontS;
+ private Label lblNormal;
+ private Label lblShiny;
+
+ private void InitializeComponent()
+ {
+ this.OpenPngs = new System.Windows.Forms.Button();
+ this.LoadSheet = new System.Windows.Forms.Button();
+ this.SaveSingle = new System.Windows.Forms.Button();
+ this.MakeShiny = new System.Windows.Forms.Button();
+ this.OpenOther = new System.Windows.Forms.Button();
+ this.SaveChanges = new System.Windows.Forms.Button();
+ this.lblMale = new System.Windows.Forms.Label();
+ this.lblFemale = new System.Windows.Forms.Label();
+ this.BackN = new System.Windows.Forms.Label();
+ this.BackS = new System.Windows.Forms.Label();
+ this.FrontN = new System.Windows.Forms.Label();
+ this.FrontS = new System.Windows.Forms.Label();
+ this.lblNormal = new System.Windows.Forms.Label();
+ this.lblShiny = new System.Windows.Forms.Label();
+ this.IndexBox = new System.Windows.Forms.ComboBox();
+ this.BasePalette = new System.Windows.Forms.ComboBox();
+ this.ShinyPalette = new System.Windows.Forms.ComboBox();
+ this.SaveBox = new System.Windows.Forms.ComboBox();
+ this.femaleBackNormalPic = new System.Windows.Forms.PictureBox();
+ this.maleBackNormalPic = new System.Windows.Forms.PictureBox();
+ this.femaleFrontNormalPic = new System.Windows.Forms.PictureBox();
+ this.maleFrontNormalPic = new System.Windows.Forms.PictureBox();
+ this.maleBackShinyPic = new System.Windows.Forms.PictureBox();
+ this.femaleBackShinyPic = new System.Windows.Forms.PictureBox();
+ this.maleFrontShinyPic = new System.Windows.Forms.PictureBox();
+ this.femaleFrontShinyPic = new System.Windows.Forms.PictureBox();
+ ((System.ComponentModel.ISupportInitialize)(this.femaleBackNormalPic)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.maleBackNormalPic)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.femaleFrontNormalPic)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.maleFrontNormalPic)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.maleBackShinyPic)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.femaleBackShinyPic)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.maleFrontShinyPic)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.femaleFrontShinyPic)).BeginInit();
+ this.SuspendLayout();
+ //
+ // OpenPngs
+ //
+ this.OpenPngs.Enabled = false;
+ this.OpenPngs.Location = new System.Drawing.Point(475, 8);
+ this.OpenPngs.Name = "OpenPngs";
+ this.OpenPngs.Size = new System.Drawing.Size(100, 25);
+ this.OpenPngs.TabIndex = 3;
+ this.OpenPngs.Text = "Load Sprite Set";
+ //
+ // LoadSheet
+ //
+ this.LoadSheet.Location = new System.Drawing.Point(369, 8);
+ this.LoadSheet.Name = "LoadSheet";
+ this.LoadSheet.Size = new System.Drawing.Size(100, 25);
+ this.LoadSheet.TabIndex = 9;
+ this.LoadSheet.Text = "Load Sprite Sheet";
+ this.LoadSheet.Click += new System.EventHandler(this.btnLoadSheet_Click);
+ //
+ // SaveSingle
+ //
+ this.SaveSingle.Location = new System.Drawing.Point(674, 728);
+ this.SaveSingle.Name = "SaveSingle";
+ this.SaveSingle.Size = new System.Drawing.Size(70, 21);
+ this.SaveSingle.TabIndex = 10;
+ this.SaveSingle.Text = "Save PNG";
+ this.SaveSingle.Click += new System.EventHandler(this.SaveSingle_Click);
+ //
+ // MakeShiny
+ //
+ this.MakeShiny.Location = new System.Drawing.Point(12, 728);
+ this.MakeShiny.Name = "MakeShiny";
+ this.MakeShiny.Size = new System.Drawing.Size(120, 21);
+ this.MakeShiny.TabIndex = 11;
+ this.MakeShiny.Text = "Create Shiny Palette";
+ //
+ // OpenOther
+ //
+ this.OpenOther.Location = new System.Drawing.Point(12, 8);
+ this.OpenOther.Name = "OpenOther";
+ this.OpenOther.Size = new System.Drawing.Size(100, 25);
+ this.OpenOther.TabIndex = 12;
+ this.OpenOther.Text = "Open Forms";
+ this.OpenOther.Visible = false;
+ this.OpenOther.Click += new System.EventHandler(this.btnOpenOther_Click);
+ //
+ // SaveChanges
+ //
+ this.SaveChanges.Location = new System.Drawing.Point(642, 12);
+ this.SaveChanges.Name = "SaveChanges";
+ this.SaveChanges.Size = new System.Drawing.Size(100, 21);
+ this.SaveChanges.TabIndex = 13;
+ this.SaveChanges.Text = "Save Changes";
+ this.SaveChanges.Click += new System.EventHandler(this.SaveChanges_Click);
+ //
+ // lblMale
+ //
+ this.lblMale.Location = new System.Drawing.Point(564, 36);
+ this.lblMale.Name = "lblMale";
+ this.lblMale.Size = new System.Drawing.Size(100, 23);
+ this.lblMale.TabIndex = 1;
+ this.lblMale.Text = "Male";
+ //
+ // lblFemale
+ //
+ this.lblFemale.Location = new System.Drawing.Point(232, 36);
+ this.lblFemale.Name = "lblFemale";
+ this.lblFemale.Size = new System.Drawing.Size(100, 23);
+ this.lblFemale.TabIndex = 0;
+ this.lblFemale.Text = "Female";
+ //
+ // BackN
+ //
+ this.BackN.Location = new System.Drawing.Point(52, 126);
+ this.BackN.Name = "BackN";
+ this.BackN.Size = new System.Drawing.Size(56, 23);
+ this.BackN.TabIndex = 2;
+ this.BackN.Text = "Back";
+ //
+ // BackS
+ //
+ this.BackS.Location = new System.Drawing.Point(52, 462);
+ this.BackS.Name = "BackS";
+ this.BackS.Size = new System.Drawing.Size(56, 23);
+ this.BackS.TabIndex = 3;
+ this.BackS.Text = "Back";
+ //
+ // FrontN
+ //
+ this.FrontN.Location = new System.Drawing.Point(52, 294);
+ this.FrontN.Name = "FrontN";
+ this.FrontN.Size = new System.Drawing.Size(56, 23);
+ this.FrontN.TabIndex = 4;
+ this.FrontN.Text = "Front";
+ //
+ // FrontS
+ //
+ this.FrontS.Location = new System.Drawing.Point(52, 630);
+ this.FrontS.Name = "FrontS";
+ this.FrontS.Size = new System.Drawing.Size(56, 23);
+ this.FrontS.TabIndex = 5;
+ this.FrontS.Text = "Front";
+ //
+ // lblNormal
+ //
+ this.lblNormal.Location = new System.Drawing.Point(8, 210);
+ this.lblNormal.Name = "lblNormal";
+ this.lblNormal.Size = new System.Drawing.Size(100, 23);
+ this.lblNormal.TabIndex = 6;
+ this.lblNormal.Text = "Normal";
+ //
+ // lblShiny
+ //
+ this.lblShiny.Location = new System.Drawing.Point(8, 546);
+ this.lblShiny.Name = "lblShiny";
+ this.lblShiny.Size = new System.Drawing.Size(100, 23);
+ this.lblShiny.TabIndex = 7;
+ this.lblShiny.Text = "Shiny";
+ //
+ // IndexBox
+ //
+ this.IndexBox.DropDownWidth = 160;
+ this.IndexBox.Location = new System.Drawing.Point(172, 8);
+ this.IndexBox.MaxDropDownItems = 16;
+ this.IndexBox.Name = "IndexBox";
+ this.IndexBox.Size = new System.Drawing.Size(160, 21);
+ this.IndexBox.TabIndex = 6;
+ this.IndexBox.SelectedIndexChanged += new System.EventHandler(this.IndexBox_SelectedIndexChanged);
+ //
+ // BasePalette
+ //
+ this.BasePalette.DropDownWidth = 160;
+ this.BasePalette.Enabled = false;
+ this.BasePalette.Location = new System.Drawing.Point(138, 728);
+ this.BasePalette.MaxDropDownItems = 16;
+ this.BasePalette.Name = "BasePalette";
+ this.BasePalette.Size = new System.Drawing.Size(160, 21);
+ this.BasePalette.TabIndex = 6;
+ this.BasePalette.Visible = false;
+ this.BasePalette.SelectedIndexChanged += new System.EventHandler(this.BasePalette_SelectedIndexChanged);
+ //
+ // ShinyPalette
+ //
+ this.ShinyPalette.DropDownWidth = 160;
+ this.ShinyPalette.Enabled = false;
+ this.ShinyPalette.Location = new System.Drawing.Point(309, 729);
+ this.ShinyPalette.MaxDropDownItems = 16;
+ this.ShinyPalette.Name = "ShinyPalette";
+ this.ShinyPalette.Size = new System.Drawing.Size(160, 21);
+ this.ShinyPalette.TabIndex = 6;
+ this.ShinyPalette.Visible = false;
+ this.ShinyPalette.SelectedIndexChanged += new System.EventHandler(this.ShinyPalette_SelectedIndexChanged);
+ //
+ // SaveBox
+ //
+ this.SaveBox.DropDownWidth = 160;
+ this.SaveBox.Items.AddRange(new object[] {
+ "Normal Female Backsprite",
+ "Normal Male Backsprite",
+ "Normal Female Frontsprite",
+ "Normal Male Frontprite",
+ "Shiny Female Backsprite",
+ "Shiny Male Backsprite",
+ "Shiny Female Frontsprite",
+ "Shiny Male Frontprite"});
+ this.SaveBox.Location = new System.Drawing.Point(512, 728);
+ this.SaveBox.Name = "SaveBox";
+ this.SaveBox.Size = new System.Drawing.Size(160, 21);
+ this.SaveBox.TabIndex = 8;
+ //
+ // femaleBackNormalPic
+ //
+ this.femaleBackNormalPic.Location = new System.Drawing.Point(96, 64);
+ this.femaleBackNormalPic.Name = "femaleBackNormalPic";
+ this.femaleBackNormalPic.Size = new System.Drawing.Size(320, 160);
+ this.femaleBackNormalPic.TabIndex = 14;
+ this.femaleBackNormalPic.TabStop = false;
+ this.femaleBackNormalPic.Click += new System.EventHandler(this.Picturebox_Click);
+ //
+ // maleBackNormalPic
+ //
+ this.maleBackNormalPic.Location = new System.Drawing.Point(422, 64);
+ this.maleBackNormalPic.Name = "maleBackNormalPic";
+ this.maleBackNormalPic.Size = new System.Drawing.Size(320, 160);
+ this.maleBackNormalPic.TabIndex = 15;
+ this.maleBackNormalPic.TabStop = false;
+ this.maleBackNormalPic.Click += new System.EventHandler(this.Picturebox_Click);
+ //
+ // femaleFrontNormalPic
+ //
+ this.femaleFrontNormalPic.Location = new System.Drawing.Point(96, 230);
+ this.femaleFrontNormalPic.Name = "femaleFrontNormalPic";
+ this.femaleFrontNormalPic.Size = new System.Drawing.Size(320, 160);
+ this.femaleFrontNormalPic.TabIndex = 16;
+ this.femaleFrontNormalPic.TabStop = false;
+ this.femaleFrontNormalPic.Click += new System.EventHandler(this.Picturebox_Click);
+ //
+ // maleFrontNormalPic
+ //
+ this.maleFrontNormalPic.Location = new System.Drawing.Point(422, 230);
+ this.maleFrontNormalPic.Name = "maleFrontNormalPic";
+ this.maleFrontNormalPic.Size = new System.Drawing.Size(320, 160);
+ this.maleFrontNormalPic.TabIndex = 17;
+ this.maleFrontNormalPic.TabStop = false;
+ this.maleFrontNormalPic.Click += new System.EventHandler(this.Picturebox_Click);
+ //
+ // maleBackShinyPic
+ //
+ this.maleBackShinyPic.Location = new System.Drawing.Point(422, 396);
+ this.maleBackShinyPic.Name = "maleBackShinyPic";
+ this.maleBackShinyPic.Size = new System.Drawing.Size(320, 160);
+ this.maleBackShinyPic.TabIndex = 18;
+ this.maleBackShinyPic.TabStop = false;
+ this.maleBackShinyPic.Click += new System.EventHandler(this.Picturebox_Click);
+ //
+ // femaleBackShinyPic
+ //
+ this.femaleBackShinyPic.Location = new System.Drawing.Point(96, 396);
+ this.femaleBackShinyPic.Name = "femaleBackShinyPic";
+ this.femaleBackShinyPic.Size = new System.Drawing.Size(320, 160);
+ this.femaleBackShinyPic.TabIndex = 19;
+ this.femaleBackShinyPic.TabStop = false;
+ this.femaleBackShinyPic.Click += new System.EventHandler(this.Picturebox_Click);
+ //
+ // maleFrontShinyPic
+ //
+ this.maleFrontShinyPic.Location = new System.Drawing.Point(422, 562);
+ this.maleFrontShinyPic.Name = "maleFrontShinyPic";
+ this.maleFrontShinyPic.Size = new System.Drawing.Size(320, 160);
+ this.maleFrontShinyPic.TabIndex = 20;
+ this.maleFrontShinyPic.TabStop = false;
+ this.maleFrontShinyPic.Click += new System.EventHandler(this.Picturebox_Click);
+ //
+ // femaleFrontShinyPic
+ //
+ this.femaleFrontShinyPic.Location = new System.Drawing.Point(96, 562);
+ this.femaleFrontShinyPic.Name = "femaleFrontShinyPic";
+ this.femaleFrontShinyPic.Size = new System.Drawing.Size(320, 160);
+ this.femaleFrontShinyPic.TabIndex = 21;
+ this.femaleFrontShinyPic.TabStop = false;
+ this.femaleFrontShinyPic.Click += new System.EventHandler(this.Picturebox_Click);
+ //
+ // PokemonSpriteEditor
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(763, 761);
+ this.Controls.Add(this.femaleFrontShinyPic);
+ this.Controls.Add(this.maleFrontShinyPic);
+ this.Controls.Add(this.femaleBackShinyPic);
+ this.Controls.Add(this.maleBackShinyPic);
+ this.Controls.Add(this.maleFrontNormalPic);
+ this.Controls.Add(this.femaleFrontNormalPic);
+ this.Controls.Add(this.maleBackNormalPic);
+ this.Controls.Add(this.femaleBackNormalPic);
+ this.Controls.Add(this.lblFemale);
+ this.Controls.Add(this.lblMale);
+ this.Controls.Add(this.BackN);
+ this.Controls.Add(this.BackS);
+ this.Controls.Add(this.FrontN);
+ this.Controls.Add(this.FrontS);
+ this.Controls.Add(this.lblNormal);
+ this.Controls.Add(this.lblShiny);
+ this.Controls.Add(this.IndexBox);
+ this.Controls.Add(this.BasePalette);
+ this.Controls.Add(this.ShinyPalette);
+ this.Controls.Add(this.SaveBox);
+ this.Controls.Add(this.OpenPngs);
+ this.Controls.Add(this.LoadSheet);
+ this.Controls.Add(this.SaveSingle);
+ this.Controls.Add(this.MakeShiny);
+ this.Controls.Add(this.OpenOther);
+ this.Controls.Add(this.SaveChanges);
+ this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
+ this.MaximizeBox = false;
+ this.Name = "PokemonSpriteEditor";
+ ((System.ComponentModel.ISupportInitialize)(this.femaleBackNormalPic)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.maleBackNormalPic)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.femaleFrontNormalPic)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.maleFrontNormalPic)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.maleBackShinyPic)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.femaleBackShinyPic)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.maleFrontShinyPic)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.femaleFrontShinyPic)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ private PictureBox femaleBackNormalPic;
+ private PictureBox maleBackNormalPic;
+ private PictureBox femaleFrontNormalPic;
+ private PictureBox maleFrontNormalPic;
+ private PictureBox maleBackShinyPic;
+ private PictureBox femaleBackShinyPic;
+ private PictureBox maleFrontShinyPic;
+ private PictureBox femaleFrontShinyPic;
+ }
+}
\ No newline at end of file
diff --git a/DS_Map/Editors/PokemonSpriteEditor.cs b/DS_Map/Editors/PokemonSpriteEditor.cs
index 48c322d..1087a1b 100644
--- a/DS_Map/Editors/PokemonSpriteEditor.cs
+++ b/DS_Map/Editors/PokemonSpriteEditor.cs
@@ -1,12 +1,12 @@
-
+using DSPRE.Editors.Utils;
+using System;
using System.Drawing;
-using System.Windows.Forms;
-using static System.Windows.Forms.VisualStyles.VisualStyleElement.ScrollBar;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
-using System;
+using System.Windows.Forms;
using static DSPRE.RomInfo;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement.ScrollBar;
namespace DSPRE.Editors
{
@@ -16,225 +16,62 @@ namespace DSPRE.Editors
public int Size;
}
- public class NarcReader
- {
- public int Entrys;
-
- public FileEntry[] fe;
-
- public FileStream fs;
-
- string m_sFileName;
-
- public long size;
-
- public NarcReader(string strFileName)
- {
- m_sFileName = strFileName;
- fs = new FileStream(strFileName, FileMode.Open, FileAccess.ReadWrite);
- BinaryReader binaryReader = new BinaryReader(fs);
- byte[] array = new byte[16];
- binaryReader.Read(array, 0, 16);
- size = BitConverter.ToUInt32(array, 8);
- int num = BitConverter.ToInt16(array, 12);
- fs.Seek(num, SeekOrigin.Begin);
- array = new byte[12];
- binaryReader.Read(array, 0, 12);
- int num2 = BitConverter.ToInt32(array, 4);
- Entrys = BitConverter.ToInt32(array, 8);
- fe = new FileEntry[Entrys];
- for (int i = 0; i < Entrys; i++)
- {
- fe[i].Ofs = binaryReader.ReadInt32();
- fe[i].Size = binaryReader.ReadInt32() - fe[i].Ofs;
- }
- fs.Seek(num + num2, SeekOrigin.Begin);
- array = new byte[16];
- binaryReader.Read(array, 0, 16);
- int num3 = BitConverter.ToInt32(array, 4);
- num3 = num + num3 + num2 + 8;
- for (int j = 0; j < Entrys; j++)
- {
- fe[j].Ofs += num3;
- }
- fs.Close();
- }
-
- public void Close()
- {
- fs.Close();
- }
-
- public int OpenEntry(int id)
- {
- fs = new FileStream(m_sFileName, FileMode.Open, FileAccess.ReadWrite);
- fs.Seek(fe[id].Ofs, SeekOrigin.Begin);
- return 0;
- }
- }
- public class SpriteSet
- {
- public Bitmap[] Sprites;
- public ColorPalette Normal;
- public ColorPalette Shiny;
-
- public SpriteSet()
- {
- Sprites = new Bitmap[4];
- for (int i = 0; i < 4; i++)
- {
- Sprites[i] = null;
- }
- Normal = null;
- Shiny = null;
- }
- }
-
public partial class PokemonSpriteEditor : Form
{
- System.ComponentModel.IContainer components = null;
-
- ComboBox IndexBox;
- ComboBox SaveBox;
- ComboBox BasePalette;
- ComboBox ShinyPalette;
- Button OpenPngs;
- Button LoadSheet;
- Button SaveSingle;
- Button MakeShiny;
- Button OpenOther;
- Button SaveChanges;
-
- NarcReader nr;
- PictureBox[,] Display;
-
- Label lblMale;
- Label lblFemale;
- Label BackN;
- Label BackS;
- Label FrontN;
- Label FrontS;
- Label lblNormal;
- Label lblShiny;
-
- bool[] used;
- Rectangle rect;
- IndexedBitmapHandler Handler;
-
- SpriteSet CurrentSprites;
private readonly string[] pokenames;
-
private readonly int[] formPalettes = new int[]
{
- // Deoxys forms (Base, Attack, Defence, Speed)
- 158, 158, 158, 158,
-
- // Unown forms (A-Z, !, ?)
+ 158, 158, 158, 158,
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
-
- // Castform (Base, Sunny, Rainy, Snowy)
- 162, 162, 162, 162,
-
- // Burmy (Plant, Sandy, Trash)
- 164, 164, 164,
-
- // Wormadam (Plant, Sandy, Trash)
- 166, 166, 166,
-
- // Shellos (West, East)
+ 162, 162, 162, 162,
+ 164, 164, 164,
+ 166, 166, 166,
168, 168, 168, 168,
-
- // Gastrodon (West, East)
170, 170, 170, 170,
-
- // Cherrim (Overcast, Sunny)
172, 172, 172, 172,
-
- // Arceus (various forms)
174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174,
-
- // Egg (Global, Manaphy)
176, 176,
-
- // Shaymin (Land, Sky)
178, 178, 178, 178,
-
- // Rotom (Normal, Heat, Wash, Frost, Fan, Mow)
180, 180, 180, 180, 180, 180, 180, 180,
180, 180, 180, 180, 180, 180, 180, 180,
-
- // Giratina (Altered, Origin)
182, 182, 182, 182,
-
- // Substitute (Sprites)
184, 184, 184,
-
- // Shadows
186, 186
};
private readonly int[] shinyPalettes = new int[]
{
- // Deoxys forms (Base, Attack, Defence, Speed)
159, 159, 159, 159,
-
- // Unown forms (A-Z, !, ?)
161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
-
- // Castform (Base, Sunny, Rainy, Snowy)
- 163, 163, 163, 163,
-
- // Burmy (Plant, Sandy, Trash)
- 165, 165, 165,
-
- // Wormadam (Plant, Sandy, Trash)
- 167, 167, 167,
-
- // Shellos (West, East)
+ 163, 163, 163, 163,
+ 165, 165, 165,
+ 167, 167, 167,
169, 169, 169, 169,
-
- // Gastrodon (West, East)
171, 171, 171, 171,
-
- // Cherrim (Overcast, Sunny)
173, 173, 173, 173,
-
- // Arceus (various forms)
175, 175, 175, 175, 175, 175, 175, 175,
175, 175, 175, 175, 175, 175, 175, 175,
175, 175, 175, 175, 175, 175, 175, 175,
175, 175, 175, 175, 175, 175, 175, 175,
175, 175, 175, 175, 175, 175, 175, 175,
-
- // Egg (Global, Manaphy)
177, 177,
-
- // Shaymin (Land, Sky)
179, 179, 179, 179,
-
- // Rotom (Normal, Heat, Wash, Frost, Fan, Mow)
181, 181, 181, 181, 181, 181, 181, 181,
181, 181, 181, 181, 181, 181, 181, 181,
-
- // Giratina (Altered, Origin)
183, 183, 183, 183,
-
- // Substitute (Sprites)
185, 185, 185,
-
- // Shadows
187, 187
};
- private readonly int[] validPalettesHGSS = new int[]
+ private readonly int[] validPalettesHGSS = new int[]
{
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
@@ -265,13 +102,13 @@ namespace DSPRE.Editors
private readonly int[] validPalettesDP = new int[]
{
134, 135, 136, 137, 138, 139, 140, 141, 142, 145,
- 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
- 156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
- 166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
- 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
- 186, 187, 188, 189, 190, 191, 192, 193, 194, 195,
- 196, 197, 198, 199, 200, 201, 202, 203, 204, 205,
- 206, 207, 210, 212,
+ 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
+ 156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
+ 166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
+ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185,
+ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195,
+ 196, 197, 198, 199, 200, 201, 202, 203, 204, 205,
+ 206, 207, 210, 212
};
private readonly string[] otherPokenames = new string[]
@@ -282,12 +119,12 @@ namespace DSPRE.Editors
"Unown - M", "Unown - N", "Unown - O", "Unown - P", "Unown - Q", "Unown - R",
"Unown - S", "Unown - T", "Unown - U", "Unown - V", "Unown - W", "Unown - X",
"Unown - Y", "Unown - Z", "Unown - !", "Unown - ?",
- "Castform - Base", "Castform - Sunny", "Castform - Rainy", "Castform - Snow",
- "Burmy - Plant", "Burmy - Sandy", "Burmy - Trash",
- "Wormadam - Plant", "Wormadam - Sandy", "Wormadam - Trash",
- "Shellos", "Shellos",
- "Gastrodon", "Gastrodon",
- "Cherrim", "Cherrim",
+ "Castform - Base", "Castform - Sunny", "Castform - Rainy", "Castform - Snow",
+ "Burmy - Plant", "Burmy - Sandy", "Burmy - Trash",
+ "Wormadam - Plant", "Wormadam - Sandy", "Wormadam - Trash",
+ "Shellos", "Shellos",
+ "Gastrodon", "Gastrodon",
+ "Cherrim", "Cherrim",
"Arceus - Type 1", "Arceus - Type 2", "Arceus - Type 3", "Arceus - Type 4",
"Arceus - Type 5", "Arceus - Type 6", "Arceus - Type 7", "Arceus - Type 8",
"Arceus - Type 9", "Arceus - Type 10", "Arceus - Type 11", "Arceus - Type 12",
@@ -319,195 +156,43 @@ namespace DSPRE.Editors
"Shadows", "Shadows"
};
- static string[] names = { "Female backsprite", "Male backsprite", "Female frontsprite", "Male frontsprite", "Shiny" };
-
+ private static string[] names = { "Female backsprite", "Male backsprite", "Female frontsprite", "Male frontsprite", "Shiny" };
private bool loadingOther = false;
private PokemonEditor _parent;
-
private static bool dirty = false;
private static readonly string formName = "Sprite Editor";
+ private NarcReader nr;
+ private PictureBox[,] Display;
+ private bool[] used;
+ private Rectangle rect;
+ private IndexedBitmapHandler Handler;
+ private SpriteSet CurrentSprites;
+
public PokemonSpriteEditor(Control parent, PokemonEditor pokeEditor)
{
this._parent = pokeEditor;
- InitializeComponent();
+ InitializeComponent();
+ SetupPictureBoxes();
+ int[] source = RomInfo.gameFamily == GameFamilies.Plat ? validPalettesPt : RomInfo.gameFamily == GameFamilies.DP ? validPalettesDP : validPalettesHGSS;
+ foreach (var item in source)
+ {
+ BasePalette.Items.Add(item);
+ ShinyPalette.Items.Add(item);
+ }
+
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Size = parent.Size;
this.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
this.pokenames = RomInfo.GetPokemonNames();
Helpers.DisableHandlers();
- LoadSprites();
+ LoadSprites();
Helpers.EnableHandlers();
}
- void InitializeComponent()
- {
- used = null;
- Handler = new IndexedBitmapHandler();
- CurrentSprites = new SpriteSet();
- BuildPictureBoxes(96, 56);
-
- OpenPngs = new Button();
- LoadSheet = new Button();
- SaveSingle = new Button();
- MakeShiny = new Button();
- OpenOther = new Button();
- SaveChanges = new Button();
-
- lblMale = new Label();
- lblFemale = new Label();
- BackN = new Label();
- BackS = new Label();
- FrontN = new Label();
- FrontS = new Label();
- lblNormal = new Label();
- lblShiny = new Label();
- SuspendLayout();
-
- IndexBox = new ComboBox();
- IndexBox.DropDownWidth = 160;
- IndexBox.Location = new Point(340, 8);
- IndexBox.MaxDropDownItems = 16;
- IndexBox.Name = "IndexBox";
- IndexBox.Size = new Size(160, 21);
- IndexBox.TabIndex = 6;
- IndexBox.SelectedIndexChanged += (IndexBox_SelectedIndexChanged);
-
- int[] source = RomInfo.gameFamily == GameFamilies.Plat ? validPalettesPt : RomInfo.gameFamily == GameFamilies.DP ? validPalettesDP : validPalettesHGSS;
-
- BasePalette = new ComboBox();
- BasePalette.DropDownWidth = 160;
- BasePalette.Location = new Point(220, 728);
- BasePalette.MaxDropDownItems = 16;
- BasePalette.Name = "BasePalette";
- BasePalette.Size = new Size(160, 21);
- BasePalette.TabIndex = 6;
- BasePalette.SelectedIndexChanged += (BasePalette_SelectedIndexChanged);
-
- ShinyPalette = new ComboBox();
- ShinyPalette.DropDownWidth = 160;
- ShinyPalette.Location = new Point(400, 728);
- ShinyPalette.MaxDropDownItems = 16;
- ShinyPalette.Name = "ShinyPalette";
- ShinyPalette.Size = new Size(160, 21);
- ShinyPalette.TabIndex = 6;
- ShinyPalette.SelectedIndexChanged += (ShinyPalette_SelectedIndexChanged);
-
- foreach ( var item in source )
- {
- BasePalette.Items.Add( item );
- ShinyPalette.Items.Add( item );
- }
-
- BasePalette.Enabled = false;
- BasePalette.Visible = false;
- ShinyPalette.Enabled = false;
- ShinyPalette.Visible = false;
-
- OpenPngs.Location = new Point(646, 8);
- OpenPngs.Name = "OpenPng";
- OpenPngs.Size = new Size(100, 25);
- OpenPngs.TabIndex = 3;
- OpenPngs.Text = "Load Sprite Set";
- OpenPngs.Click += (OpenPng_Click);
-
- LoadSheet.Location = new Point(538, 8);
- LoadSheet.Name = "LoadSheet";
- LoadSheet.Size = new Size(100, 25);
- LoadSheet.Text = "Load Sprite Sheet";
- LoadSheet.Click += (btnLoadSheet_Click);
-
- OpenOther.Location = new Point(130, 8);
- OpenOther.Name = "OpenForms";
- OpenOther.Size = new Size(100, 25);
- OpenOther.Text = "Open Forms";
- OpenOther.Click += (btnOpenOther_Click);
-
- SaveBox = new ComboBox();
- SaveBox.DropDownWidth = 160;
- SaveBox.Location = new Point(512, 728);
- SaveBox.MaxDropDownItems = 8;
- SaveBox.Name = "SaveBox";
- SaveBox.Size = new Size(160, 21);
-
- SaveBox.Items.Add("Normal Female Backsprite");
- SaveBox.Items.Add("Normal Male Backsprite");
- SaveBox.Items.Add("Normal Female Frontsprite");
- SaveBox.Items.Add("Normal Male Frontprite");
- SaveBox.Items.Add("Shiny Female Backsprite");
- SaveBox.Items.Add("Shiny Male Backsprite");
- SaveBox.Items.Add("Shiny Female Frontsprite");
- SaveBox.Items.Add("Shiny Male Frontprite");
- SaveBox.SelectedIndex = 0;
-
- SaveSingle.Location = new Point(674, 728);
- SaveSingle.Name = "SaveSingle";
- SaveSingle.Size = new Size(70, 21);
- SaveSingle.Text = "Save PNG";
- SaveSingle.Click += (SaveSingle_Click);
-
- MakeShiny.Location = new Point(96, 728);
- MakeShiny.Name = "MakeShiny";
- MakeShiny.Size = new Size(120, 21);
- MakeShiny.Text = "Create Shiny Palette";
- MakeShiny.Click += (MakeShiny_Click);
-
- SaveChanges.Location = new Point(754, 8);
- SaveChanges.Name = "SaveChanges";
- SaveChanges.Size = new Size(70, 21);
- SaveChanges.Text = "Save Changes";
- SaveChanges.Click += (SaveChanges_Click);
-
- lblFemale.Text = "Female";
- lblFemale.Location = new Point(232, 36);
- Controls.Add(lblFemale);
- lblMale.Text = "Male";
- lblMale.Location = new Point(564, 36);
- Controls.Add(lblMale);
- BackN.Text = "Back";
- BackN.Location = new Point(52, 126);
- Controls.Add(BackN);
- BackS.Text = "Back";
- BackS.Location = new Point(52, 462);
- Controls.Add(BackS);
- FrontN.Text = "Front";
- FrontN.Location = new Point(52, 294);
- Controls.Add(FrontN);
- FrontS.Text = "Front";
- FrontS.Location = new Point(52, 630);
- Controls.Add(FrontS);
- lblNormal.Text = "Normal";
- lblNormal.Location = new Point(8, 210);
- Controls.Add(lblNormal);
- lblShiny.Text = "Shiny";
- lblShiny.Location = new Point(8, 546);
- Controls.Add(lblShiny);
-
- ResumeLayout(false);
-
- Controls.Add(IndexBox);
- Controls.Add(BasePalette);
- Controls.Add(ShinyPalette);
- Controls.Add(SaveBox);
- Controls.Add(OpenPngs);
- Controls.Add(LoadSheet);
- Controls.Add(SaveSingle);
- Controls.Add(MakeShiny);
- Controls.Add(OpenOther);
- Controls.Add(SaveChanges);
- AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- Width = 760;
- Height = 808;
- AutoScaleBaseSize = new Size(5, 13);
- FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- MaximizeBox = false;
- OpenPngs.Enabled = false;
- OpenOther.Visible = false;
- }
-
void IndexBox_SelectedIndexChanged(object sender, EventArgs e)
{
CurrentSprites = new SpriteSet();
- if ( !this.loadingOther )
+ if (!this.loadingOther)
{
int num = (IndexBox.Items.IndexOf(IndexBox.Text) * 6);
for (int i = 0; i < 4; i++)
@@ -531,7 +216,8 @@ namespace DSPRE.Editors
CurrentSprites.Shiny = SetPal(nr.fs);
nr.Close();
}
- } else
+ }
+ else
{
int num = (IndexBox.Items.IndexOf(IndexBox.Text) * 2);
for (int i = 0; i < 2; i++)
@@ -539,7 +225,7 @@ namespace DSPRE.Editors
if (nr.fe[num + i].Size == 6448)
{
nr.OpenEntry(num + i);
- CurrentSprites.Sprites[i*2 + 1] = MakeImage(nr.fs);
+ CurrentSprites.Sprites[i * 2 + 1] = MakeImage(nr.fs);
nr.Close();
}
}
@@ -556,7 +242,6 @@ namespace DSPRE.Editors
nr.Close();
}
}
-
LoadImages();
OpenPngs.Enabled = true;
}
@@ -569,8 +254,7 @@ namespace DSPRE.Editors
nr.OpenEntry((int)BasePalette.SelectedItem);
CurrentSprites.Normal = SetPal(nr.fs);
nr.Close();
- }
-
+ }
LoadImages();
}
@@ -583,25 +267,36 @@ namespace DSPRE.Editors
CurrentSprites.Shiny = SetPal(nr.fs);
nr.Close();
}
-
LoadImages();
}
- void BuildPictureBoxes(int x_start, int y_start)
+ void SetupPictureBoxes()
{
Display = new PictureBox[2, 4];
- for (int i = 0; i < Display.GetLength(0); i++)
- {
- for (int j = 0; j < Display.GetLength(1); j++)
- {
- Display[i, j] = new PictureBox();
- Display[i, j].Size = new Size(320, 160);
- Display[i, j].Location = new Point((x_start + 328 * i), (y_start + 168 * j));
- Display[i, j].Name = "" + (2 * j + i);
- Display[i, j].Click += (Picturebox_Click);
- Controls.Add(Display[i, j]);
- }
- }
+
+ femaleBackNormalPic.Name = "0";
+ Display[0, 0] = femaleBackNormalPic;
+
+ maleBackNormalPic.Name = "1";
+ Display[1, 0] = maleBackNormalPic;
+
+ femaleFrontNormalPic.Name = "2";
+ Display[0, 1] = femaleFrontNormalPic;
+
+ maleFrontNormalPic.Name = "3";
+ Display[1, 1] = maleFrontNormalPic;
+
+ femaleBackShinyPic.Name = "4";
+ Display[0, 2] = femaleBackShinyPic;
+
+ maleBackShinyPic.Name = "5";
+ Display[1, 2] = maleBackShinyPic;
+
+ femaleFrontShinyPic.Name = "6";
+ Display[0, 3] = femaleFrontShinyPic;
+
+ maleFrontShinyPic.Name = "7";
+ Display[1, 3] = maleFrontShinyPic;
}
void LoadImages()
@@ -636,7 +331,7 @@ namespace DSPRE.Editors
IndexedBitmapHandler Handler = new IndexedBitmapHandler();
if (image.PixelFormat != PixelFormat.Format8bppIndexed)
{
- yesno = MessageBox.Show(filename + " is not 8bpp Indexed! Attempt conversion?", "Incompatible image format", MessageBoxButtons.YesNo);
+ yesno = MessageBox.Show(filename + " is not 8bpp Indexed! Attempt conversion?", "Incompatible image format", MessageBoxButtons.YesNo);
if (yesno != DialogResult.Yes)
return null;
image = Handler.Convert(image, PixelFormat.Format8bppIndexed);
@@ -651,7 +346,6 @@ namespace DSPRE.Editors
if (((image.Height != 64) && (image.Height != 80)) || ((image.Width != 64) && (image.Width != 80) && (image.Width != 160)))
{
int imagescale = 0;
-
if ((image.Width / 64 == image.Height / 64) && (image.Width % 64 == 0) && (image.Height % 64 == 0))
imagescale = image.Width / 64;
if ((image.Width / 80 == image.Height / 80) && (image.Width % 80 == 0) && (image.Height % 80 == 0))
@@ -660,13 +354,12 @@ namespace DSPRE.Editors
imagescale = image.Width / 160;
if (imagescale > 1)
{
- yesno = MessageBox.Show(filename + " is too large. Attempt to shrink?", "Too large", MessageBoxButtons.YesNo);
+ yesno = MessageBox.Show(filename + " is too large. Attempt to shrink?", "Too large", MessageBoxButtons.YesNo);
if (yesno == DialogResult.Yes)
image = Handler.ShrinkImage(image, imagescale, imagescale);
else
imagescale = 0;
}
-
if (imagescale == 0)
{
yesno = MessageBox.Show(filename + " size not recognized. Use Canvas Splitter?", "Unrecognized size", MessageBoxButtons.YesNo);
@@ -701,18 +394,16 @@ namespace DSPRE.Editors
Cropper.Dispose();
}
}
-
- //image.Palette = StandardizeColors(image);
byte check = Handler.PaletteSize(image);
if (check > 16)
{
- yesno = MessageBox.Show("Image's palette contains more than sixteen colors. Attempt to shrink?", "Improper palette size", MessageBoxButtons.YesNo);
+ yesno = MessageBox.Show("Image's palette contains more than sixteen colors. Attempt to shrink?", "Improper palette size", MessageBoxButtons.YesNo);
if (yesno == DialogResult.Yes)
{
image = Handler.ShrinkPalette(image);
check = Handler.PaletteSize(image);
if (check > 16)
- MessageBox.Show("Palette still too large. Image will not save correctly.", "Failed");
+ MessageBox.Show("Palette still too large. Image will not save correctly.", "Failed");
}
}
if (image.Height == 64 && image.Width == 64)
@@ -768,7 +459,6 @@ namespace DSPRE.Editors
}
}
}
-
Bitmap r_bitmap = new Bitmap(160, 80, PixelFormat.Format8bppIndexed);
rect = new Rectangle(0, 0, 160, 80);
byte[] array3 = new byte[12800];
@@ -790,7 +480,6 @@ namespace DSPRE.Editors
palette.Entries[l] = Color.FromArgb(l << 4, l << 4, l << 4);
}
r_bitmap.Palette = palette;
-
if (r_bitmap == null)
{
MessageBox.Show("MakeImage Failed");
@@ -821,7 +510,6 @@ namespace DSPRE.Editors
{
OpenPngs.Enabled = false;
IndexBox.Items.Clear();
- int tot6448 = 0, tot72 = 0;
if (!this.loadingOther)
{
nr = new NarcReader(RomInfo.gameDirs[DirNames.pokemonBattleSprites].packedDir);
@@ -830,19 +518,16 @@ namespace DSPRE.Editors
IndexBox.Items.Add(this.pokenames[i / 6] + " (" + nr.fe[i].Size + ")");
}
IndexBox.SelectedIndex = 1;
- } else
+ }
+ else
{
nr = new NarcReader(RomInfo.gameDirs[DirNames.otherPokemonBattleSprites].packedDir);
for (int i = 0; i < nr.Entrys; i += 2)
{
- IndexBox.Items.Add(this.otherPokenames[i/2] + " (" + nr.fe[i].Size + ")");
+ IndexBox.Items.Add(this.otherPokenames[i / 2] + " (" + nr.fe[i].Size + ")");
}
-
IndexBox.SelectedIndex = 0;
- }
-
-
-
+ }
}
void Picturebox_Click(object sender, EventArgs e)
@@ -890,7 +575,7 @@ namespace DSPRE.Editors
bool match = Handler.PaletteEquals(CurrentSprites.Normal, image);
if (!match)
{
- DialogResult yesno = MessageBox.Show("Image's palette does not match the current palette. Use PaletteMatch?", "Palette mismatch", MessageBoxButtons.YesNo);
+ DialogResult yesno = MessageBox.Show("Image's palette does not match the current palette. Use PaletteMatch?", "Palette mismatch", MessageBoxButtons.YesNo);
if (yesno == DialogResult.Yes)
{
image = Handler.PaletteMatch(CurrentSprites.Normal, image, used);
@@ -968,7 +653,6 @@ namespace DSPRE.Editors
else
temp.Shiny = image.Palette;
}
-
if (Autofill)
{
if (temp.Sprites[0] == null)
@@ -982,7 +666,6 @@ namespace DSPRE.Editors
if (filenames[4] == "")
temp.Shiny = temp.Normal;
}
-
for (int i = 0; i < 4; i++)
{
if (temp.Sprites[i] != null)
@@ -992,7 +675,6 @@ namespace DSPRE.Editors
CurrentSprites.Normal = temp.Normal;
if (temp.Shiny != null)
CurrentSprites.Shiny = temp.Shiny;
-
LoadImages();
OpenPngs.Enabled = true;
}
@@ -1025,10 +707,9 @@ namespace DSPRE.Editors
}
}
- void menuItem13_Click(object sender, EventArgs e)
- {
- MessageBox.Show("Credit to loadingNOW and SCV for the original PokeDsPic and PokeDsPicPlatinum, without which this would never have happened.", "Credits");
- }
+ // Credit to loadingNOW and SCV for the original PokeDsPic and PokeDsPicPlatinum, without which this would never have happened.
+ // In addition to G4SpriteEditor
+
protected void btnSaveAs_Click(object sender, EventArgs e)
{
@@ -1217,12 +898,6 @@ namespace DSPRE.Editors
LoadImages();
}
- void menuCheck_Click(object sender, EventArgs e)
- {
- MenuItem item = sender as MenuItem;
- item.Checked = !item.Checked;
- }
-
ColorPalette StandardizeColors(Bitmap image)
{
ColorPalette pal = image.Palette;
@@ -1234,9 +909,6 @@ namespace DSPRE.Editors
}
if (OffColor)
{
- // yesno = MessageBox.Show("Colors are not appropriately formatted for storage. Fix?", "Incompatible colors", MessageBoxButtons.YesNo);
- // if(yesno != DialogResult.Yes)
- // MessageBox.Show("Colors will not store correctly. Image may look different in-game.", "Failed");
for (int i = 0; i < pal.Entries.Length; i++)
{
byte r = (byte)(pal.Entries[i].R - (pal.Entries[i].R % 8));
@@ -1307,7 +979,11 @@ namespace DSPRE.Editors
}
}
byte[] array4 = new byte[48]
- {82, 71, 67, 78, 255, 254, 0, 1, 48, 25, 0, 0, 16, 0, 1, 0, 82, 65, 72, 67, 32, 25, 0, 0, 10, 0, 20, 0, 3, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 25, 0, 0, 24, 0, 0, 0};
+ {
+ 82, 71, 67, 78, 255, 254, 0, 1, 48, 25, 0, 0, 16, 0, 1, 0,
+ 82, 65, 72, 67, 32, 25, 0, 0, 10, 0, 20, 0, 3, 0, 0, 0,
+ 0, 0, 0, 0, 1, 0, 0, 0, 0, 25, 0, 0, 24, 0, 0, 0
+ };
for (int k = 0; k < 48; k++)
{
binaryWriter.Write(array4[k]);
@@ -1321,7 +997,11 @@ namespace DSPRE.Editors
void SavePal(FileStream fs, ColorPalette palette)
{
byte[] buffer = new byte[40]
- {82, 76, 67, 78, 255, 254, 0, 1, 72, 0, 0, 0, 16, 0, 1, 0, 84, 84, 76, 80, 56, 0, 0, 0, 4, 0, 10, 0, 0, 0, 0, 0, 32, 0, 0, 0, 16, 0, 0, 0};
+ {
+ 82, 76, 67, 78, 255, 254, 0, 1, 72, 0, 0, 0, 16, 0, 1, 0,
+ 84, 84, 76, 80, 56, 0, 0, 0, 4, 0, 10, 0, 0, 0, 0, 0,
+ 32, 0, 0, 0, 16, 0, 0, 0
+ };
BinaryWriter binaryWriter = new BinaryWriter(fs);
binaryWriter.Write(buffer, 0, 40);
ushort[] array = new ushort[16];
@@ -1334,446 +1014,5 @@ namespace DSPRE.Editors
binaryWriter.Write(array[j]);
}
}
-
- protected override void Dispose(bool disposing)
- {
- if (disposing)
- {
- if (components != null)
- {
- components.Dispose();
- }
- }
- base.Dispose(disposing);
- }
}
-
- public class IndexedBitmapHandler
- {
- public IndexedBitmapHandler()
- {
- }
-
- public Bitmap Convert(Bitmap source, PixelFormat target)
- {
- if ((source.PixelFormat == target) || (target == PixelFormat.DontCare))
- return source;
- Bitmap image = new Bitmap(source.Width, source.Height, target);
- if ((source.PixelFormat == PixelFormat.Format4bppIndexed) && (target == PixelFormat.Format8bppIndexed))
- {
- byte[] array = GetArray(source);
- byte[] array2 = new byte[(array.Length * 2)];
- byte current;
- for (int i = 0; i < array.Length; i++)
- {
- current = array[i];
- array2[2 * i] = (byte)((current & 0xF0) >> 4);
- array2[2 * i + 1] = (byte)((current & 0x0F));
- }
- image = MakeImage(source.Width, source.Height, array2, target);
- image.Palette = source.Palette;
- }
- if (((source.PixelFormat == PixelFormat.Format24bppRgb) || (source.PixelFormat == PixelFormat.Format32bppArgb)) && (target == PixelFormat.Format8bppIndexed))
- {
- int skip = 3;
- if (source.PixelFormat == PixelFormat.Format32bppArgb)
- skip = 4;
- Color[] newPalette = new Color[256];
- byte[] array = new byte[source.Width * source.Height];
- byte[] sourceArray = GetArray(source);
- Color Pixel = Color.FromArgb(sourceArray[2], sourceArray[1], sourceArray[0]);
- newPalette[0] = Pixel;
- int index = 1;
- array[0] = 0;
- byte r = 0;
- byte g = 0;
- byte b = 0;
- bool match = false;
- for (int i = 1; i < (source.Width * source.Height); i++)
- {
- b = sourceArray[(i * skip)];
- g = sourceArray[(i * skip + 1)];
- r = sourceArray[(i * skip + 2)];
- Pixel = Color.FromArgb(r, g, b);
- for (int j = 0; j < index; j++)
- {
- if (Pixel == newPalette[j])
- {
- array[i] = (byte)j;
- match = true;
- break;
- }
- }
- if (!match)
- {
- if (index >= 256)
- {
- MessageBox.Show("Conversion failed");
- return null;
- }
- newPalette[index] = Pixel;
- array[i] = (byte)index;
- index++;
- }
- match = false;
- }
- image = MakeImage(source.Width, source.Height, array, target);
- ColorPalette oldPalette = image.Palette;
- for (int i = 0; i < index; i++)
- {
- oldPalette.Entries[i] = newPalette[i];
- }
- image.Palette = oldPalette;
- }
- return image;
- }
-
- public Bitmap Resize(Bitmap source, int top, int bottom, int left, int right)
- {
- int newWidth = source.Width + left + right;
- int newHeight = source.Height + top + bottom;
- int arraysize = newWidth * newHeight;
- ColorPalette palette = source.Palette;
-
- byte[] source_array = GetArray(source);
-
- byte[] byte_array = new byte[arraysize];
- byte background = source_array[0];
-
- int source_index = 0;
- int index = 0;
- for (int j = 0; j < newHeight; j++)
- {
- for (int i = 0; i < newWidth; i++)
- {
- if (i < left || i >= (left + source.Width) || j < top || j >= (top + source.Height))
- byte_array[index] = background;
- else
- {
- source_index = ((j - top) * source.Width) + i - left;
- byte_array[index] = source_array[source_index];
- }
- index++;
- }
- }
- Bitmap newImage = MakeImage(newWidth, newHeight, byte_array, PixelFormat.Format8bppIndexed);
- newImage.Palette = palette;
- return newImage;
- }
-
- public Bitmap Concat(Bitmap first, Bitmap second)
- {
- int newWidth = first.Width + second.Width;
- int newHeight = first.Height;
- if (first.Height < second.Height)
- newHeight = second.Height;
- int arraysize = newWidth * newHeight;
- ColorPalette palette = first.Palette;
-
- byte[] first_array = GetArray(first);
- byte[] second_array = GetArray(second);
-
- byte[] byte_array = new byte[arraysize];
- byte background = first_array[0];
-
- int source_index = 0;
- int index = 0;
- for (int j = 0; j < newHeight; j++)
- {
- for (int i = 0; i < first.Width; i++)
- {
- if (j > first.Height)
- byte_array[index] = background;
- else
- {
- source_index = ((j * first.Width) + i);
- byte_array[index] = first_array[source_index];
- }
- index++;
- }
- for (int i = 0; i < second.Width; i++)
- {
- if (j > second.Height)
- byte_array[index] = background;
- else
- {
- source_index = ((j * second.Width) + i);
- byte_array[index] = second_array[source_index];
- }
- index++;
- }
- }
- Bitmap newImage = MakeImage(newWidth, newHeight, byte_array, PixelFormat.Format8bppIndexed);
- newImage.Palette = palette;
- return newImage;
- }
-
- public Bitmap[] Split(Bitmap source, int tilewidth, int tileheight)
- {
- int maxTiles = (source.Width / tilewidth) * (source.Height / tileheight);
- Bitmap[] tiles = new Bitmap[maxTiles];
- int index = 0;
- int x_index = 0;
- int y_index = 0;
- while (y_index + tileheight <= source.Height)
- {
- if (x_index + tilewidth <= source.Width)
- {
- tiles[index] = Resize(source, (y_index * -1), ((source.Height - y_index - tileheight) * -1), (x_index * -1), ((source.Width - x_index - tilewidth) * -1));
- index++;
- }
- x_index += tilewidth;
- if (x_index + tilewidth > source.Width)
- {
- y_index += tileheight;
- x_index = 0;
- }
- }
- return tiles;
- }
-
- public Bitmap ShrinkImage(Bitmap image, int x_scale, int y_scale)
- {
- byte[] array = GetArray(image);
- ColorPalette palette = image.Palette;
- int new_width = image.Width / x_scale;
- int new_height = image.Height / y_scale;
- byte[] array2 = new byte[new_width * new_height];
- for (int j = 0; j < new_height; j++)
- {
- for (int i = 0; i < new_width; i++)
- {
- array2[j * new_width + i] = array[y_scale * j * image.Width + i * x_scale];
- }
- }
- Bitmap temp = MakeImage(new_width, new_height, array2, image.PixelFormat);
- temp.Palette = palette;
- return temp;
- }
-
- public ColorPalette AlternatePalette(Bitmap parent, Bitmap child)
- {
- Bitmap temp = new Bitmap(1, 1, parent.PixelFormat);
- ColorPalette newPalette = temp.Palette;
- ColorPalette ChildPalette = child.Palette;
- byte[] ParentArray = GetArray(parent);
- byte[] ChildArray = GetArray(child);
- if (ParentArray.Length != ChildArray.Length)
- return null;
- for (int i = 0; i < ChildPalette.Entries.Length; i++)
- {
- for (int j = 0; j < ParentArray.Length; j++)
- {
- if (ParentArray[j] == i)
- {
- newPalette.Entries[i] = ChildPalette.Entries[ChildArray[j]];
- break;
- }
- }
- }
- return newPalette;
- }
-
- public Bitmap PaletteMatch(ColorPalette parent, Bitmap child, bool[] used = null)
- {
- if (parent.Entries == child.Palette.Entries)
- return child;
- if (used == null)
- {
- used = new bool[parent.Entries.Length];
- for (int i = 0; i < parent.Entries.Length; i++)
- used[i] = true;
- }
- Bitmap image = ShrinkPalette(child);
- Bitmap temp = new Bitmap(1, 1, child.PixelFormat);
- ColorPalette childPalette = image.Palette;
- ColorPalette newPalette = temp.Palette;
- int size = PaletteSize(image);
- byte[] array = GetArray(image);
- byte[] indexof = new byte[size];
- bool[] NotFound = new bool[size];
- for (int i = 0; i < size; i++)
- NotFound[i] = true;
- for (int i = 0; i < size; i++)
- {
- for (int j = 0; j < parent.Entries.Length; j++)
- {
- if (parent.Entries[j] == childPalette.Entries[i])
- {
- indexof[i] = (byte)j;
- NotFound[i] = false;
- break;
- }
- }
- }
- int maxsize = 0;
- for (int i = 0; i < parent.Entries.Length; i++)
- {
- if (used[i])
- {
- newPalette.Entries[i] = parent.Entries[i];
- maxsize++;
- }
- }
- for (int i = 0; i < size; i++)
- {
- if (NotFound[i])
- maxsize++;
- }
- for (int i = 0; i < maxsize; i++)
- {
- if ((i < used.Length) && (used[i]))
- continue;
- for (int j = 0; j < size; j++)
- {
- if (NotFound[j])
- {
- indexof[j] = (byte)i;
- newPalette.Entries[i] = childPalette.Entries[j];
- NotFound[j] = false;
- break;
- }
- }
- }
- byte[] newArray = new byte[array.Length];
- for (int i = 0; i < array.Length; i++)
- {
- newArray[i] = indexof[array[i]];
- }
- image = MakeImage(child.Width, child.Height, newArray, child.PixelFormat);
- image.Palette = newPalette;
- return image;
- }
-
- public Bitmap ShrinkPalette(Bitmap image, bool[] used = null)
- {
- used = IsUsed(image, used);
- byte[] array = GetArray(image);
- ColorPalette oldPalette = image.Palette;
- Bitmap temp = new Bitmap(image.Width, image.Height, image.PixelFormat);
- ColorPalette newPalette = temp.Palette;
- int size = oldPalette.Entries.Length;
- int index = 0;
- int unused = 0;
- byte[] indexof = new byte[size];
- for (int i = 0; i < size; i++)
- {
- if (used[i])
- {
- newPalette.Entries[index] = oldPalette.Entries[i];
- indexof[i] = (byte)index;
- index++;
- }
- else
- unused++;
- }
- if (unused == 0 || unused == size)
- return image;
- byte[] newArray = new byte[array.Length];
- for (int i = 0; i < array.Length; i++)
- {
- newArray[i] = indexof[array[i]];
- }
- image = MakeImage(image.Width, image.Height, newArray, image.PixelFormat);
- image.Palette = newPalette;
- return image;
- }
-
- public bool[] IsUsed(Bitmap image, bool[] used = null)
- {
- byte[] array = GetArray(image);
- int size = image.Palette.Entries.Length;
- if (used == null)
- {
- used = new bool[size];
- for (int i = 0; i < size; i++)
- {
- used[i] = false;
- }
- }
- if (size > used.Length)
- {
- bool[] temp = new bool[size];
- for (int i = 0; i < size; i++)
- {
- if (i < used.Length)
- temp[i] = used[i];
- else
- temp[i] = false;
- }
- used = temp;
- }
- for (int i = 0; i < array.Length; i++)
- {
- used[array[i]] = true;
- }
- return used;
- }
-
- public byte PaletteSize(Bitmap image)
- {
- byte[] array = GetArray(image);
- byte max = 0;
- for (int i = 0; i < array.Length; i++)
- {
- if (array[i] > max)
- max = array[i];
- }
- return (byte)(max + 1);
- }
-
- public bool PaletteEquals(ColorPalette parent, Bitmap child)
- {
- bool Match = true;
- int max = PaletteSize(child);
- for (int i = 0; i < max; i++)
- {
- if (parent.Entries[i] != child.Palette.Entries[i])
- Match = false;
- }
- return Match;
- }
-
- public ColorPalette CleanPalette(Bitmap image)
- {
- int used = PaletteSize(image);
- ColorPalette temp = image.Palette;
- for (int i = used; i < image.Palette.Entries.Length; i++)
- temp.Entries[i] = Color.FromArgb(0, 0, 0);
- return temp;
- }
-
- public byte[] GetArray(Bitmap target)
- {
- int Width = target.Width;
- if (target.PixelFormat == PixelFormat.Format1bppIndexed)
- Width = Width / 8;
- if (target.PixelFormat == PixelFormat.Format4bppIndexed)
- Width = Width / 2;
- if ((target.PixelFormat == PixelFormat.Format16bppArgb1555) || (target.PixelFormat == PixelFormat.Format16bppGrayScale) || (target.PixelFormat == PixelFormat.Format16bppRgb555) || (target.PixelFormat == PixelFormat.Format16bppRgb565))
- Width = Width * 2;
- if (target.PixelFormat == PixelFormat.Format24bppRgb)
- Width = Width * 3;
- if ((target.PixelFormat == PixelFormat.Format32bppRgb) || (target.PixelFormat == PixelFormat.Format32bppArgb) || (target.PixelFormat == PixelFormat.Format32bppPArgb))
- Width = Width * 4;
- byte[] array = new byte[Width * target.Height];
- Rectangle rect = new Rectangle(0, 0, target.Width, target.Height);
- BitmapData sourceData = target.LockBits(rect, ImageLockMode.ReadOnly, target.PixelFormat);
- IntPtr scan = sourceData.Scan0;
- Marshal.Copy(scan, array, 0, Width * target.Height);
- target.UnlockBits(sourceData);
- return array;
- }
-
- public Bitmap MakeImage(int width, int height, byte[] array, PixelFormat format)
- {
- Bitmap image = new Bitmap(width, height, format);
- Rectangle rect = new Rectangle(0, 0, width, height);
- BitmapData imageData = image.LockBits(rect, ImageLockMode.WriteOnly, image.PixelFormat);
- IntPtr scan = imageData.Scan0;
- Marshal.Copy(array, 0, scan, (width * height));
- image.UnlockBits(imageData);
- return image;
- }
- }
-}
+}
\ No newline at end of file
diff --git a/DS_Map/Editors/PokemonSpriteEditor.resx b/DS_Map/Editors/PokemonSpriteEditor.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/DS_Map/Editors/PokemonSpriteEditor.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
\ No newline at end of file
diff --git a/DS_Map/Editors/ScriptEditor.cs b/DS_Map/Editors/ScriptEditor.cs
index bc488c4..00e4edb 100644
--- a/DS_Map/Editors/ScriptEditor.cs
+++ b/DS_Map/Editors/ScriptEditor.cs
@@ -98,6 +98,9 @@ namespace DSPRE.Editors
populate_selectScriptFileComboBox(0);
UpdateScriptNumberCheckBox((NumberStyles)SettingsManager.Settings.scriptEditorFormatPreference);
Helpers.statusLabelMessage();
+ ScriptDatabase.InitializePokemonNames();
+ ScriptDatabase.InitializeItemNames();
+ ScriptDatabase.InitializeMoveNames();
}
public void OpenScriptEditor(MainProgram parent, int scriptFileID)
{
@@ -116,6 +119,9 @@ namespace DSPRE.Editors
secondaryKeyWords = String.Join(" ", RomInfo.ScriptComparisonOperatorsDict.Values) +
" " + String.Join(" ", ScriptDatabase.specialOverworlds.Values) +
" " + String.Join(" ", ScriptDatabase.overworldDirections.Values) +
+ " " + String.Join(" ", ScriptDatabase.pokemonNames.Values) +
+ " " + String.Join(" ", ScriptDatabase.itemNames.Values) +
+ " " + String.Join(" ", ScriptDatabase.moveNames.Values) +
" " + ScriptFile.ContainerTypes.Script.ToString() +
" " + ScriptFile.ContainerTypes.Function.ToString() +
" " + ScriptFile.ContainerTypes.Action.ToString() +
diff --git a/DS_Map/Editors/TextEditor.cs b/DS_Map/Editors/TextEditor.cs
index eff8027..5095a81 100644
--- a/DS_Map/Editors/TextEditor.cs
+++ b/DS_Map/Editors/TextEditor.cs
@@ -21,6 +21,7 @@ namespace DSPRE.Editors
public TextEditor()
{
InitializeComponent();
+ this.textSearchResultsListBox.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.textSearchResultsListBox_GoToEntryResult);
}
diff --git a/DS_Map/Editors/TradeEditor.Designer.cs b/DS_Map/Editors/TradeEditor.Designer.cs
new file mode 100644
index 0000000..6cefc5a
--- /dev/null
+++ b/DS_Map/Editors/TradeEditor.Designer.cs
@@ -0,0 +1,836 @@
+namespace DSPRE.Editors
+{
+ partial class TradeEditor
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.mainPanel = new System.Windows.Forms.Panel();
+ this.saveAllButton = new System.Windows.Forms.Button();
+ this.saveTextDataButton = new System.Windows.Forms.Button();
+ this.saveTradeButton = new System.Windows.Forms.Button();
+ this.textDataGroupBox = new System.Windows.Forms.GroupBox();
+ this.nicknameTextBox = new System.Windows.Forms.TextBox();
+ this.otNameTextBox = new System.Windows.Forms.TextBox();
+ this.nicknameLabel = new System.Windows.Forms.Label();
+ this.otNameLabel = new System.Windows.Forms.Label();
+ this.tradeDataGroupBox = new System.Windows.Forms.GroupBox();
+ this.requestedComboBox = new System.Windows.Forms.ComboBox();
+ this.requestedLabel = new System.Windows.Forms.Label();
+ this.otGenderComboBox = new System.Windows.Forms.ComboBox();
+ this.otGenderLabel = new System.Windows.Forms.Label();
+ this.otIDNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.otIDLabel = new System.Windows.Forms.Label();
+ this.monDataGroupBox = new System.Windows.Forms.GroupBox();
+ this.monDataPanel = new System.Windows.Forms.Panel();
+ this.abilityComboBox = new System.Windows.Forms.ComboBox();
+ this.abilityLabel = new System.Windows.Forms.Label();
+ this.unknownNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.unknownLabel = new System.Windows.Forms.Label();
+ this.pidNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.pidLabel = new System.Windows.Forms.Label();
+ this.langComboBox = new System.Windows.Forms.ComboBox();
+ this.langLabel = new System.Windows.Forms.Label();
+ this.heldItemComboBox = new System.Windows.Forms.ComboBox();
+ this.heldItemLabel = new System.Windows.Forms.Label();
+ this.contestGroupBox = new System.Windows.Forms.GroupBox();
+ this.toughNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.smartNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.cuteNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.beautyNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.coolNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.sheenNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.toughLabel = new System.Windows.Forms.Label();
+ this.smartLabel = new System.Windows.Forms.Label();
+ this.cuteLabel = new System.Windows.Forms.Label();
+ this.beautyLabel = new System.Windows.Forms.Label();
+ this.coolLabel = new System.Windows.Forms.Label();
+ this.sheenLabel = new System.Windows.Forms.Label();
+ this.IVGroupBox = new System.Windows.Forms.GroupBox();
+ this.speIVNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.spdIVNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.spaIVNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.defIVNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.atkIVNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.hpIVNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.speIVLabel = new System.Windows.Forms.Label();
+ this.spdIVLabel = new System.Windows.Forms.Label();
+ this.spaIVLabel = new System.Windows.Forms.Label();
+ this.defIVLabel = new System.Windows.Forms.Label();
+ this.atkIVLabel = new System.Windows.Forms.Label();
+ this.hpIVLabel = new System.Windows.Forms.Label();
+ this.speciesComboBox = new System.Windows.Forms.ComboBox();
+ this.speciesLabel = new System.Windows.Forms.Label();
+ this.tradeIDNumericUpDown = new System.Windows.Forms.NumericUpDown();
+ this.tradeIDLabel = new System.Windows.Forms.Label();
+ this.toolTip = new System.Windows.Forms.ToolTip(this.components);
+ this.addFileButton = new System.Windows.Forms.Button();
+ this.removeLastButton = new System.Windows.Forms.Button();
+ this.mainPanel.SuspendLayout();
+ this.textDataGroupBox.SuspendLayout();
+ this.tradeDataGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.otIDNumericUpDown)).BeginInit();
+ this.monDataGroupBox.SuspendLayout();
+ this.monDataPanel.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.unknownNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pidNumericUpDown)).BeginInit();
+ this.contestGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.toughNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.smartNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.cuteNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.beautyNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.coolNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.sheenNumericUpDown)).BeginInit();
+ this.IVGroupBox.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.speIVNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.spdIVNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.spaIVNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.defIVNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.atkIVNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.hpIVNumericUpDown)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.tradeIDNumericUpDown)).BeginInit();
+ this.SuspendLayout();
+ //
+ // mainPanel
+ //
+ this.mainPanel.Controls.Add(this.removeLastButton);
+ this.mainPanel.Controls.Add(this.saveAllButton);
+ this.mainPanel.Controls.Add(this.addFileButton);
+ this.mainPanel.Controls.Add(this.saveTextDataButton);
+ this.mainPanel.Controls.Add(this.saveTradeButton);
+ this.mainPanel.Controls.Add(this.textDataGroupBox);
+ this.mainPanel.Controls.Add(this.tradeDataGroupBox);
+ this.mainPanel.Location = new System.Drawing.Point(12, 12);
+ this.mainPanel.Name = "mainPanel";
+ this.mainPanel.Size = new System.Drawing.Size(624, 444);
+ this.mainPanel.TabIndex = 0;
+ //
+ // saveAllButton
+ //
+ this.saveAllButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.saveAllButton.Image = global::DSPRE.Properties.Resources.saveButton;
+ this.saveAllButton.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
+ this.saveAllButton.Location = new System.Drawing.Point(470, 389);
+ this.saveAllButton.Name = "saveAllButton";
+ this.saveAllButton.Size = new System.Drawing.Size(147, 47);
+ this.saveAllButton.TabIndex = 6;
+ this.saveAllButton.Text = "Save All";
+ this.saveAllButton.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+ this.saveAllButton.UseVisualStyleBackColor = true;
+ this.saveAllButton.Click += new System.EventHandler(this.saveAllButton_Click);
+ //
+ // saveTextDataButton
+ //
+ this.saveTextDataButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.saveTextDataButton.Image = global::DSPRE.Properties.Resources.saveButton;
+ this.saveTextDataButton.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
+ this.saveTextDataButton.Location = new System.Drawing.Point(479, 142);
+ this.saveTextDataButton.Name = "saveTextDataButton";
+ this.saveTextDataButton.Size = new System.Drawing.Size(126, 40);
+ this.saveTextDataButton.TabIndex = 5;
+ this.saveTextDataButton.Text = "Save Text Data";
+ this.saveTextDataButton.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+ this.saveTextDataButton.UseVisualStyleBackColor = true;
+ this.saveTextDataButton.Click += new System.EventHandler(this.saveTextDataButton_Click);
+ //
+ // saveTradeButton
+ //
+ this.saveTradeButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.saveTradeButton.Image = global::DSPRE.Properties.Resources.saveButton;
+ this.saveTradeButton.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
+ this.saveTradeButton.Location = new System.Drawing.Point(480, 342);
+ this.saveTradeButton.Name = "saveTradeButton";
+ this.saveTradeButton.Size = new System.Drawing.Size(126, 40);
+ this.saveTradeButton.TabIndex = 4;
+ this.saveTradeButton.Text = "Save Trade Data";
+ this.saveTradeButton.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+ this.saveTradeButton.UseVisualStyleBackColor = true;
+ this.saveTradeButton.Click += new System.EventHandler(this.saveTradeButton_Click);
+ //
+ // textDataGroupBox
+ //
+ this.textDataGroupBox.Controls.Add(this.nicknameTextBox);
+ this.textDataGroupBox.Controls.Add(this.otNameTextBox);
+ this.textDataGroupBox.Controls.Add(this.nicknameLabel);
+ this.textDataGroupBox.Controls.Add(this.otNameLabel);
+ this.textDataGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.textDataGroupBox.Location = new System.Drawing.Point(470, 3);
+ this.textDataGroupBox.Name = "textDataGroupBox";
+ this.textDataGroupBox.Size = new System.Drawing.Size(147, 133);
+ this.textDataGroupBox.TabIndex = 3;
+ this.textDataGroupBox.TabStop = false;
+ this.textDataGroupBox.Text = "Text Data";
+ //
+ // nicknameTextBox
+ //
+ this.nicknameTextBox.Location = new System.Drawing.Point(9, 100);
+ this.nicknameTextBox.Name = "nicknameTextBox";
+ this.nicknameTextBox.Size = new System.Drawing.Size(126, 22);
+ this.nicknameTextBox.TabIndex = 17;
+ //
+ // otNameTextBox
+ //
+ this.otNameTextBox.Location = new System.Drawing.Point(9, 46);
+ this.otNameTextBox.Name = "otNameTextBox";
+ this.otNameTextBox.Size = new System.Drawing.Size(126, 22);
+ this.otNameTextBox.TabIndex = 16;
+ //
+ // nicknameLabel
+ //
+ this.nicknameLabel.AutoSize = true;
+ this.nicknameLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.nicknameLabel.Location = new System.Drawing.Point(6, 79);
+ this.nicknameLabel.Name = "nicknameLabel";
+ this.nicknameLabel.Size = new System.Drawing.Size(129, 16);
+ this.nicknameLabel.TabIndex = 15;
+ this.nicknameLabel.Text = "Pokémon Nickname";
+ //
+ // otNameLabel
+ //
+ this.otNameLabel.AutoSize = true;
+ this.otNameLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.otNameLabel.Location = new System.Drawing.Point(6, 25);
+ this.otNameLabel.Name = "otNameLabel";
+ this.otNameLabel.Size = new System.Drawing.Size(66, 16);
+ this.otNameLabel.TabIndex = 13;
+ this.otNameLabel.Text = "OT Name";
+ //
+ // tradeDataGroupBox
+ //
+ this.tradeDataGroupBox.Controls.Add(this.requestedComboBox);
+ this.tradeDataGroupBox.Controls.Add(this.requestedLabel);
+ this.tradeDataGroupBox.Controls.Add(this.otGenderComboBox);
+ this.tradeDataGroupBox.Controls.Add(this.otGenderLabel);
+ this.tradeDataGroupBox.Controls.Add(this.otIDNumericUpDown);
+ this.tradeDataGroupBox.Controls.Add(this.otIDLabel);
+ this.tradeDataGroupBox.Controls.Add(this.monDataGroupBox);
+ this.tradeDataGroupBox.Controls.Add(this.tradeIDNumericUpDown);
+ this.tradeDataGroupBox.Controls.Add(this.tradeIDLabel);
+ this.tradeDataGroupBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.tradeDataGroupBox.Location = new System.Drawing.Point(3, 3);
+ this.tradeDataGroupBox.Name = "tradeDataGroupBox";
+ this.tradeDataGroupBox.Size = new System.Drawing.Size(461, 437);
+ this.tradeDataGroupBox.TabIndex = 2;
+ this.tradeDataGroupBox.TabStop = false;
+ this.tradeDataGroupBox.Text = "Trade Data";
+ //
+ // requestedComboBox
+ //
+ this.requestedComboBox.FormattingEnabled = true;
+ this.requestedComboBox.Location = new System.Drawing.Point(165, 44);
+ this.requestedComboBox.Name = "requestedComboBox";
+ this.requestedComboBox.Size = new System.Drawing.Size(150, 24);
+ this.requestedComboBox.TabIndex = 12;
+ //
+ // requestedLabel
+ //
+ this.requestedLabel.AutoSize = true;
+ this.requestedLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.requestedLabel.Location = new System.Drawing.Point(162, 25);
+ this.requestedLabel.Name = "requestedLabel";
+ this.requestedLabel.Size = new System.Drawing.Size(135, 16);
+ this.requestedLabel.TabIndex = 11;
+ this.requestedLabel.Text = "Requested Pokémon";
+ //
+ // otGenderComboBox
+ //
+ this.otGenderComboBox.FormattingEnabled = true;
+ this.otGenderComboBox.Location = new System.Drawing.Point(165, 98);
+ this.otGenderComboBox.Name = "otGenderComboBox";
+ this.otGenderComboBox.Size = new System.Drawing.Size(150, 24);
+ this.otGenderComboBox.TabIndex = 10;
+ //
+ // otGenderLabel
+ //
+ this.otGenderLabel.AutoSize = true;
+ this.otGenderLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.otGenderLabel.Location = new System.Drawing.Point(162, 79);
+ this.otGenderLabel.Name = "otGenderLabel";
+ this.otGenderLabel.Size = new System.Drawing.Size(74, 16);
+ this.otGenderLabel.TabIndex = 9;
+ this.otGenderLabel.Text = "OT Gender";
+ //
+ // otIDNumericUpDown
+ //
+ this.otIDNumericUpDown.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.otIDNumericUpDown.Location = new System.Drawing.Point(21, 98);
+ this.otIDNumericUpDown.Name = "otIDNumericUpDown";
+ this.otIDNumericUpDown.Size = new System.Drawing.Size(120, 22);
+ this.otIDNumericUpDown.TabIndex = 6;
+ //
+ // otIDLabel
+ //
+ this.otIDLabel.AutoSize = true;
+ this.otIDLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.otIDLabel.Location = new System.Drawing.Point(18, 79);
+ this.otIDLabel.Name = "otIDLabel";
+ this.otIDLabel.Size = new System.Drawing.Size(42, 16);
+ this.otIDLabel.TabIndex = 7;
+ this.otIDLabel.Text = "OT ID";
+ //
+ // monDataGroupBox
+ //
+ this.monDataGroupBox.Controls.Add(this.monDataPanel);
+ this.monDataGroupBox.Location = new System.Drawing.Point(9, 139);
+ this.monDataGroupBox.Name = "monDataGroupBox";
+ this.monDataGroupBox.Size = new System.Drawing.Size(441, 288);
+ this.monDataGroupBox.TabIndex = 5;
+ this.monDataGroupBox.TabStop = false;
+ this.monDataGroupBox.Text = "Pokémon Data";
+ //
+ // monDataPanel
+ //
+ this.monDataPanel.Controls.Add(this.abilityComboBox);
+ this.monDataPanel.Controls.Add(this.abilityLabel);
+ this.monDataPanel.Controls.Add(this.unknownNumericUpDown);
+ this.monDataPanel.Controls.Add(this.unknownLabel);
+ this.monDataPanel.Controls.Add(this.pidNumericUpDown);
+ this.monDataPanel.Controls.Add(this.pidLabel);
+ this.monDataPanel.Controls.Add(this.langComboBox);
+ this.monDataPanel.Controls.Add(this.langLabel);
+ this.monDataPanel.Controls.Add(this.heldItemComboBox);
+ this.monDataPanel.Controls.Add(this.heldItemLabel);
+ this.monDataPanel.Controls.Add(this.contestGroupBox);
+ this.monDataPanel.Controls.Add(this.IVGroupBox);
+ this.monDataPanel.Controls.Add(this.speciesComboBox);
+ this.monDataPanel.Controls.Add(this.speciesLabel);
+ this.monDataPanel.Location = new System.Drawing.Point(6, 21);
+ this.monDataPanel.Name = "monDataPanel";
+ this.monDataPanel.Size = new System.Drawing.Size(418, 257);
+ this.monDataPanel.TabIndex = 4;
+ //
+ // abilityComboBox
+ //
+ this.abilityComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.abilityComboBox.FormattingEnabled = true;
+ this.abilityComboBox.Location = new System.Drawing.Point(6, 218);
+ this.abilityComboBox.Name = "abilityComboBox";
+ this.abilityComboBox.Size = new System.Drawing.Size(147, 24);
+ this.abilityComboBox.TabIndex = 26;
+ //
+ // abilityLabel
+ //
+ this.abilityLabel.AutoSize = true;
+ this.abilityLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.abilityLabel.Location = new System.Drawing.Point(3, 198);
+ this.abilityLabel.Name = "abilityLabel";
+ this.abilityLabel.Size = new System.Drawing.Size(101, 16);
+ this.abilityLabel.TabIndex = 27;
+ this.abilityLabel.Text = "Ability (Unused)";
+ //
+ // unknownNumericUpDown
+ //
+ this.unknownNumericUpDown.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.unknownNumericUpDown.Location = new System.Drawing.Point(294, 220);
+ this.unknownNumericUpDown.Name = "unknownNumericUpDown";
+ this.unknownNumericUpDown.Size = new System.Drawing.Size(111, 22);
+ this.unknownNumericUpDown.TabIndex = 24;
+ //
+ // unknownLabel
+ //
+ this.unknownLabel.AutoSize = true;
+ this.unknownLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.unknownLabel.Location = new System.Drawing.Point(291, 201);
+ this.unknownLabel.Name = "unknownLabel";
+ this.unknownLabel.Size = new System.Drawing.Size(100, 16);
+ this.unknownLabel.TabIndex = 25;
+ this.unknownLabel.Text = "Unknown Value";
+ //
+ // pidNumericUpDown
+ //
+ this.pidNumericUpDown.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.pidNumericUpDown.Location = new System.Drawing.Point(169, 220);
+ this.pidNumericUpDown.Name = "pidNumericUpDown";
+ this.pidNumericUpDown.Size = new System.Drawing.Size(111, 22);
+ this.pidNumericUpDown.TabIndex = 11;
+ //
+ // pidLabel
+ //
+ this.pidLabel.AutoSize = true;
+ this.pidLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.pidLabel.Location = new System.Drawing.Point(166, 201);
+ this.pidLabel.Name = "pidLabel";
+ this.pidLabel.Size = new System.Drawing.Size(29, 16);
+ this.pidLabel.TabIndex = 23;
+ this.pidLabel.Text = "PID";
+ //
+ // langComboBox
+ //
+ this.langComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.langComboBox.FormattingEnabled = true;
+ this.langComboBox.Location = new System.Drawing.Point(6, 166);
+ this.langComboBox.Name = "langComboBox";
+ this.langComboBox.Size = new System.Drawing.Size(147, 24);
+ this.langComboBox.TabIndex = 20;
+ //
+ // langLabel
+ //
+ this.langLabel.AutoSize = true;
+ this.langLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.langLabel.Location = new System.Drawing.Point(3, 146);
+ this.langLabel.Name = "langLabel";
+ this.langLabel.Size = new System.Drawing.Size(106, 16);
+ this.langLabel.TabIndex = 21;
+ this.langLabel.Text = "Origin Language";
+ //
+ // heldItemComboBox
+ //
+ this.heldItemComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.heldItemComboBox.FormattingEnabled = true;
+ this.heldItemComboBox.Location = new System.Drawing.Point(6, 98);
+ this.heldItemComboBox.Name = "heldItemComboBox";
+ this.heldItemComboBox.Size = new System.Drawing.Size(147, 24);
+ this.heldItemComboBox.TabIndex = 18;
+ //
+ // heldItemLabel
+ //
+ this.heldItemLabel.AutoSize = true;
+ this.heldItemLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.heldItemLabel.Location = new System.Drawing.Point(3, 78);
+ this.heldItemLabel.Name = "heldItemLabel";
+ this.heldItemLabel.Size = new System.Drawing.Size(64, 16);
+ this.heldItemLabel.TabIndex = 19;
+ this.heldItemLabel.Text = "Held Item";
+ //
+ // contestGroupBox
+ //
+ this.contestGroupBox.Controls.Add(this.toughNumericUpDown);
+ this.contestGroupBox.Controls.Add(this.smartNumericUpDown);
+ this.contestGroupBox.Controls.Add(this.cuteNumericUpDown);
+ this.contestGroupBox.Controls.Add(this.beautyNumericUpDown);
+ this.contestGroupBox.Controls.Add(this.coolNumericUpDown);
+ this.contestGroupBox.Controls.Add(this.sheenNumericUpDown);
+ this.contestGroupBox.Controls.Add(this.toughLabel);
+ this.contestGroupBox.Controls.Add(this.smartLabel);
+ this.contestGroupBox.Controls.Add(this.cuteLabel);
+ this.contestGroupBox.Controls.Add(this.beautyLabel);
+ this.contestGroupBox.Controls.Add(this.coolLabel);
+ this.contestGroupBox.Controls.Add(this.sheenLabel);
+ this.contestGroupBox.Location = new System.Drawing.Point(285, 10);
+ this.contestGroupBox.Name = "contestGroupBox";
+ this.contestGroupBox.Size = new System.Drawing.Size(120, 180);
+ this.contestGroupBox.TabIndex = 17;
+ this.contestGroupBox.TabStop = false;
+ this.contestGroupBox.Text = "Contest Stats";
+ //
+ // toughNumericUpDown
+ //
+ this.toughNumericUpDown.Location = new System.Drawing.Point(64, 148);
+ this.toughNumericUpDown.Name = "toughNumericUpDown";
+ this.toughNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.toughNumericUpDown.TabIndex = 16;
+ //
+ // smartNumericUpDown
+ //
+ this.smartNumericUpDown.Location = new System.Drawing.Point(64, 123);
+ this.smartNumericUpDown.Name = "smartNumericUpDown";
+ this.smartNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.smartNumericUpDown.TabIndex = 15;
+ //
+ // cuteNumericUpDown
+ //
+ this.cuteNumericUpDown.Location = new System.Drawing.Point(64, 97);
+ this.cuteNumericUpDown.Name = "cuteNumericUpDown";
+ this.cuteNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.cuteNumericUpDown.TabIndex = 14;
+ //
+ // beautyNumericUpDown
+ //
+ this.beautyNumericUpDown.Location = new System.Drawing.Point(64, 72);
+ this.beautyNumericUpDown.Name = "beautyNumericUpDown";
+ this.beautyNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.beautyNumericUpDown.TabIndex = 13;
+ //
+ // coolNumericUpDown
+ //
+ this.coolNumericUpDown.Location = new System.Drawing.Point(64, 47);
+ this.coolNumericUpDown.Name = "coolNumericUpDown";
+ this.coolNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.coolNumericUpDown.TabIndex = 12;
+ //
+ // sheenNumericUpDown
+ //
+ this.sheenNumericUpDown.Location = new System.Drawing.Point(64, 22);
+ this.sheenNumericUpDown.Name = "sheenNumericUpDown";
+ this.sheenNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.sheenNumericUpDown.TabIndex = 11;
+ //
+ // toughLabel
+ //
+ this.toughLabel.AutoSize = true;
+ this.toughLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.toughLabel.Location = new System.Drawing.Point(6, 150);
+ this.toughLabel.Name = "toughLabel";
+ this.toughLabel.Size = new System.Drawing.Size(46, 16);
+ this.toughLabel.TabIndex = 10;
+ this.toughLabel.Text = "Tough";
+ //
+ // smartLabel
+ //
+ this.smartLabel.AutoSize = true;
+ this.smartLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.smartLabel.Location = new System.Drawing.Point(6, 125);
+ this.smartLabel.Name = "smartLabel";
+ this.smartLabel.Size = new System.Drawing.Size(42, 16);
+ this.smartLabel.TabIndex = 9;
+ this.smartLabel.Text = "Smart";
+ //
+ // cuteLabel
+ //
+ this.cuteLabel.AutoSize = true;
+ this.cuteLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.cuteLabel.Location = new System.Drawing.Point(6, 100);
+ this.cuteLabel.Name = "cuteLabel";
+ this.cuteLabel.Size = new System.Drawing.Size(34, 16);
+ this.cuteLabel.TabIndex = 8;
+ this.cuteLabel.Text = "Cute";
+ //
+ // beautyLabel
+ //
+ this.beautyLabel.AutoSize = true;
+ this.beautyLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.beautyLabel.Location = new System.Drawing.Point(6, 75);
+ this.beautyLabel.Name = "beautyLabel";
+ this.beautyLabel.Size = new System.Drawing.Size(49, 16);
+ this.beautyLabel.TabIndex = 7;
+ this.beautyLabel.Text = "Beauty";
+ //
+ // coolLabel
+ //
+ this.coolLabel.AutoSize = true;
+ this.coolLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.coolLabel.Location = new System.Drawing.Point(6, 50);
+ this.coolLabel.Name = "coolLabel";
+ this.coolLabel.Size = new System.Drawing.Size(35, 16);
+ this.coolLabel.TabIndex = 6;
+ this.coolLabel.Text = "Cool";
+ //
+ // sheenLabel
+ //
+ this.sheenLabel.AutoSize = true;
+ this.sheenLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.sheenLabel.Location = new System.Drawing.Point(6, 25);
+ this.sheenLabel.Name = "sheenLabel";
+ this.sheenLabel.Size = new System.Drawing.Size(46, 16);
+ this.sheenLabel.TabIndex = 5;
+ this.sheenLabel.Text = "Sheen";
+ //
+ // IVGroupBox
+ //
+ this.IVGroupBox.Controls.Add(this.speIVNumericUpDown);
+ this.IVGroupBox.Controls.Add(this.spdIVNumericUpDown);
+ this.IVGroupBox.Controls.Add(this.spaIVNumericUpDown);
+ this.IVGroupBox.Controls.Add(this.defIVNumericUpDown);
+ this.IVGroupBox.Controls.Add(this.atkIVNumericUpDown);
+ this.IVGroupBox.Controls.Add(this.hpIVNumericUpDown);
+ this.IVGroupBox.Controls.Add(this.speIVLabel);
+ this.IVGroupBox.Controls.Add(this.spdIVLabel);
+ this.IVGroupBox.Controls.Add(this.spaIVLabel);
+ this.IVGroupBox.Controls.Add(this.defIVLabel);
+ this.IVGroupBox.Controls.Add(this.atkIVLabel);
+ this.IVGroupBox.Controls.Add(this.hpIVLabel);
+ this.IVGroupBox.Location = new System.Drawing.Point(160, 10);
+ this.IVGroupBox.Name = "IVGroupBox";
+ this.IVGroupBox.Size = new System.Drawing.Size(120, 180);
+ this.IVGroupBox.TabIndex = 4;
+ this.IVGroupBox.TabStop = false;
+ this.IVGroupBox.Text = "IVs";
+ //
+ // speIVNumericUpDown
+ //
+ this.speIVNumericUpDown.Location = new System.Drawing.Point(50, 148);
+ this.speIVNumericUpDown.Name = "speIVNumericUpDown";
+ this.speIVNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.speIVNumericUpDown.TabIndex = 16;
+ //
+ // spdIVNumericUpDown
+ //
+ this.spdIVNumericUpDown.Location = new System.Drawing.Point(50, 123);
+ this.spdIVNumericUpDown.Name = "spdIVNumericUpDown";
+ this.spdIVNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.spdIVNumericUpDown.TabIndex = 15;
+ //
+ // spaIVNumericUpDown
+ //
+ this.spaIVNumericUpDown.Location = new System.Drawing.Point(50, 97);
+ this.spaIVNumericUpDown.Name = "spaIVNumericUpDown";
+ this.spaIVNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.spaIVNumericUpDown.TabIndex = 14;
+ //
+ // defIVNumericUpDown
+ //
+ this.defIVNumericUpDown.Location = new System.Drawing.Point(50, 72);
+ this.defIVNumericUpDown.Name = "defIVNumericUpDown";
+ this.defIVNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.defIVNumericUpDown.TabIndex = 13;
+ //
+ // atkIVNumericUpDown
+ //
+ this.atkIVNumericUpDown.Location = new System.Drawing.Point(50, 47);
+ this.atkIVNumericUpDown.Name = "atkIVNumericUpDown";
+ this.atkIVNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.atkIVNumericUpDown.TabIndex = 12;
+ //
+ // hpIVNumericUpDown
+ //
+ this.hpIVNumericUpDown.Location = new System.Drawing.Point(50, 22);
+ this.hpIVNumericUpDown.Name = "hpIVNumericUpDown";
+ this.hpIVNumericUpDown.Size = new System.Drawing.Size(51, 22);
+ this.hpIVNumericUpDown.TabIndex = 11;
+ //
+ // speIVLabel
+ //
+ this.speIVLabel.AutoSize = true;
+ this.speIVLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.speIVLabel.Location = new System.Drawing.Point(6, 150);
+ this.speIVLabel.Name = "speIVLabel";
+ this.speIVLabel.Size = new System.Drawing.Size(32, 16);
+ this.speIVLabel.TabIndex = 10;
+ this.speIVLabel.Text = "Spe";
+ //
+ // spdIVLabel
+ //
+ this.spdIVLabel.AutoSize = true;
+ this.spdIVLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.spdIVLabel.Location = new System.Drawing.Point(6, 125);
+ this.spdIVLabel.Name = "spdIVLabel";
+ this.spdIVLabel.Size = new System.Drawing.Size(34, 16);
+ this.spdIVLabel.TabIndex = 9;
+ this.spdIVLabel.Text = "SpD";
+ //
+ // spaIVLabel
+ //
+ this.spaIVLabel.AutoSize = true;
+ this.spaIVLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.spaIVLabel.Location = new System.Drawing.Point(6, 100);
+ this.spaIVLabel.Name = "spaIVLabel";
+ this.spaIVLabel.Size = new System.Drawing.Size(33, 16);
+ this.spaIVLabel.TabIndex = 8;
+ this.spaIVLabel.Text = "SpA";
+ //
+ // defIVLabel
+ //
+ this.defIVLabel.AutoSize = true;
+ this.defIVLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.defIVLabel.Location = new System.Drawing.Point(6, 75);
+ this.defIVLabel.Name = "defIVLabel";
+ this.defIVLabel.Size = new System.Drawing.Size(28, 16);
+ this.defIVLabel.TabIndex = 7;
+ this.defIVLabel.Text = "Def";
+ //
+ // atkIVLabel
+ //
+ this.atkIVLabel.AutoSize = true;
+ this.atkIVLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.atkIVLabel.Location = new System.Drawing.Point(6, 50);
+ this.atkIVLabel.Name = "atkIVLabel";
+ this.atkIVLabel.Size = new System.Drawing.Size(26, 16);
+ this.atkIVLabel.TabIndex = 6;
+ this.atkIVLabel.Text = "Atk";
+ //
+ // hpIVLabel
+ //
+ this.hpIVLabel.AutoSize = true;
+ this.hpIVLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.hpIVLabel.Location = new System.Drawing.Point(6, 25);
+ this.hpIVLabel.Name = "hpIVLabel";
+ this.hpIVLabel.Size = new System.Drawing.Size(26, 16);
+ this.hpIVLabel.TabIndex = 5;
+ this.hpIVLabel.Text = "HP";
+ //
+ // speciesComboBox
+ //
+ this.speciesComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
+ this.speciesComboBox.FormattingEnabled = true;
+ this.speciesComboBox.Location = new System.Drawing.Point(6, 30);
+ this.speciesComboBox.Name = "speciesComboBox";
+ this.speciesComboBox.Size = new System.Drawing.Size(147, 24);
+ this.speciesComboBox.TabIndex = 2;
+ //
+ // speciesLabel
+ //
+ this.speciesLabel.AutoSize = true;
+ this.speciesLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.speciesLabel.Location = new System.Drawing.Point(3, 10);
+ this.speciesLabel.Name = "speciesLabel";
+ this.speciesLabel.Size = new System.Drawing.Size(57, 16);
+ this.speciesLabel.TabIndex = 3;
+ this.speciesLabel.Text = "Species";
+ //
+ // tradeIDNumericUpDown
+ //
+ this.tradeIDNumericUpDown.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.tradeIDNumericUpDown.Location = new System.Drawing.Point(21, 46);
+ this.tradeIDNumericUpDown.Name = "tradeIDNumericUpDown";
+ this.tradeIDNumericUpDown.Size = new System.Drawing.Size(120, 22);
+ this.tradeIDNumericUpDown.TabIndex = 0;
+ this.tradeIDNumericUpDown.ValueChanged += new System.EventHandler(this.tradeIDNumericUpDown_ValueChanged);
+ //
+ // tradeIDLabel
+ //
+ this.tradeIDLabel.AutoSize = true;
+ this.tradeIDLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.tradeIDLabel.Location = new System.Drawing.Point(18, 27);
+ this.tradeIDLabel.Name = "tradeIDLabel";
+ this.tradeIDLabel.Size = new System.Drawing.Size(60, 16);
+ this.tradeIDLabel.TabIndex = 1;
+ this.tradeIDLabel.Text = "Trade ID";
+ //
+ // addFileButton
+ //
+ this.addFileButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.addFileButton.Image = global::DSPRE.Properties.Resources.addIcon;
+ this.addFileButton.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
+ this.addFileButton.Location = new System.Drawing.Point(480, 242);
+ this.addFileButton.Name = "addFileButton";
+ this.addFileButton.Size = new System.Drawing.Size(126, 40);
+ this.addFileButton.TabIndex = 13;
+ this.addFileButton.Text = "Add File";
+ this.addFileButton.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+ this.addFileButton.UseVisualStyleBackColor = true;
+ this.addFileButton.Click += new System.EventHandler(this.addFileButton_Click);
+ //
+ // removeLastButton
+ //
+ this.removeLastButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.removeLastButton.Image = global::DSPRE.Properties.Resources.deleteIcon;
+ this.removeLastButton.ImageAlign = System.Drawing.ContentAlignment.TopCenter;
+ this.removeLastButton.Location = new System.Drawing.Point(480, 292);
+ this.removeLastButton.Name = "removeLastButton";
+ this.removeLastButton.Size = new System.Drawing.Size(126, 40);
+ this.removeLastButton.TabIndex = 14;
+ this.removeLastButton.Text = "Remove Last";
+ this.removeLastButton.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
+ this.removeLastButton.UseVisualStyleBackColor = true;
+ this.removeLastButton.Click += new System.EventHandler(this.removeLastButton_Click);
+ //
+ // TradeEditor
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(641, 460);
+ this.Controls.Add(this.mainPanel);
+ this.Name = "TradeEditor";
+ this.Text = "TradeEditor";
+ this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.TradeEditor_FormClosing);
+ this.mainPanel.ResumeLayout(false);
+ this.textDataGroupBox.ResumeLayout(false);
+ this.textDataGroupBox.PerformLayout();
+ this.tradeDataGroupBox.ResumeLayout(false);
+ this.tradeDataGroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.otIDNumericUpDown)).EndInit();
+ this.monDataGroupBox.ResumeLayout(false);
+ this.monDataPanel.ResumeLayout(false);
+ this.monDataPanel.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.unknownNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.pidNumericUpDown)).EndInit();
+ this.contestGroupBox.ResumeLayout(false);
+ this.contestGroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.toughNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.smartNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.cuteNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.beautyNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.coolNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.sheenNumericUpDown)).EndInit();
+ this.IVGroupBox.ResumeLayout(false);
+ this.IVGroupBox.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.speIVNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.spdIVNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.spaIVNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.defIVNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.atkIVNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.hpIVNumericUpDown)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.tradeIDNumericUpDown)).EndInit();
+ this.ResumeLayout(false);
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.Panel mainPanel;
+ private System.Windows.Forms.NumericUpDown tradeIDNumericUpDown;
+ private System.Windows.Forms.Label tradeIDLabel;
+ private System.Windows.Forms.GroupBox tradeDataGroupBox;
+ private System.Windows.Forms.GroupBox textDataGroupBox;
+ private System.Windows.Forms.Label speciesLabel;
+ private System.Windows.Forms.ComboBox speciesComboBox;
+ private System.Windows.Forms.Panel monDataPanel;
+ private System.Windows.Forms.GroupBox IVGroupBox;
+ private System.Windows.Forms.Label speIVLabel;
+ private System.Windows.Forms.Label spdIVLabel;
+ private System.Windows.Forms.Label spaIVLabel;
+ private System.Windows.Forms.Label defIVLabel;
+ private System.Windows.Forms.Label atkIVLabel;
+ private System.Windows.Forms.Label hpIVLabel;
+ private System.Windows.Forms.NumericUpDown speIVNumericUpDown;
+ private System.Windows.Forms.NumericUpDown spdIVNumericUpDown;
+ private System.Windows.Forms.NumericUpDown spaIVNumericUpDown;
+ private System.Windows.Forms.NumericUpDown defIVNumericUpDown;
+ private System.Windows.Forms.NumericUpDown atkIVNumericUpDown;
+ private System.Windows.Forms.NumericUpDown hpIVNumericUpDown;
+ private System.Windows.Forms.GroupBox contestGroupBox;
+ private System.Windows.Forms.NumericUpDown toughNumericUpDown;
+ private System.Windows.Forms.NumericUpDown smartNumericUpDown;
+ private System.Windows.Forms.NumericUpDown cuteNumericUpDown;
+ private System.Windows.Forms.NumericUpDown beautyNumericUpDown;
+ private System.Windows.Forms.NumericUpDown coolNumericUpDown;
+ private System.Windows.Forms.NumericUpDown sheenNumericUpDown;
+ private System.Windows.Forms.Label toughLabel;
+ private System.Windows.Forms.Label smartLabel;
+ private System.Windows.Forms.Label cuteLabel;
+ private System.Windows.Forms.Label beautyLabel;
+ private System.Windows.Forms.Label coolLabel;
+ private System.Windows.Forms.Label sheenLabel;
+ private System.Windows.Forms.ComboBox heldItemComboBox;
+ private System.Windows.Forms.Label heldItemLabel;
+ private System.Windows.Forms.GroupBox monDataGroupBox;
+ private System.Windows.Forms.ComboBox langComboBox;
+ private System.Windows.Forms.Label langLabel;
+ private System.Windows.Forms.NumericUpDown otIDNumericUpDown;
+ private System.Windows.Forms.Label otIDLabel;
+ private System.Windows.Forms.Label otGenderLabel;
+ private System.Windows.Forms.ComboBox otGenderComboBox;
+ private System.Windows.Forms.NumericUpDown pidNumericUpDown;
+ private System.Windows.Forms.Label pidLabel;
+ private System.Windows.Forms.NumericUpDown unknownNumericUpDown;
+ private System.Windows.Forms.Label unknownLabel;
+ private System.Windows.Forms.ComboBox abilityComboBox;
+ private System.Windows.Forms.Label abilityLabel;
+ private System.Windows.Forms.ComboBox requestedComboBox;
+ private System.Windows.Forms.Label requestedLabel;
+ private System.Windows.Forms.ToolTip toolTip;
+ private System.Windows.Forms.Button saveTradeButton;
+ private System.Windows.Forms.TextBox nicknameTextBox;
+ private System.Windows.Forms.TextBox otNameTextBox;
+ private System.Windows.Forms.Label nicknameLabel;
+ private System.Windows.Forms.Label otNameLabel;
+ private System.Windows.Forms.Button saveTextDataButton;
+ private System.Windows.Forms.Button saveAllButton;
+ private System.Windows.Forms.Button addFileButton;
+ private System.Windows.Forms.Button removeLastButton;
+ }
+}
\ No newline at end of file
diff --git a/DS_Map/Editors/TradeEditor.cs b/DS_Map/Editors/TradeEditor.cs
new file mode 100644
index 0000000..a7bad41
--- /dev/null
+++ b/DS_Map/Editors/TradeEditor.cs
@@ -0,0 +1,546 @@
+using DSPRE.ROMFiles;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace DSPRE.Editors
+{
+ public partial class TradeEditor : Form
+ {
+
+ private TradeData curTradeData;
+ private TextArchive tradeArchive;
+
+ // Track if any changes have been made
+ private bool tradeDirty = false;
+ private bool textDirty = false;
+
+ #region Enums
+ public enum OriginLang
+ {
+ NONE = 0,
+ JAPANESE = 1,
+ ENGLISH = 2,
+ FRENCH = 3,
+ ITALIAN = 4,
+ GERMAN = 5,
+ UNUSED = 6,
+ SPANISH = 7,
+ KOREAN = 8
+ }
+ #endregion
+
+ public TradeEditor()
+ {
+ Helpers.DisableHandlers();
+
+ AppLogger.Debug("TradeEditor: Initializing Trade Editor.");
+
+ InitializeComponent();
+ InitLimits();
+ InitDataRanges();
+ SetToolTips();
+ RegisterMarkDirtyHandlers();
+
+ if (TradeData.GetTradeCount() == 0)
+ {
+ MessageBox.Show("No trades could be found! The narc may have failed to unpack.", "Loading Trades Failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ AppLogger.Error("TradeEditor: Loading trades failed.");
+ return;
+ }
+
+ if (RomInfo.gameFamily != RomInfo.GameFamilies.HGSS)
+ {
+ unknownNumericUpDown.Enabled = false;
+ }
+
+ // PLAT: Overlay 6, 0x8050-0x8053: dc f5 f0 fb -> 00 00 00 00 to dummy out ASSERT
+
+ // Disable buttons until trade expansion is implemented
+ addFileButton.Enabled = false;
+ removeLastButton.Enabled = false;
+
+ tradeArchive = new TextArchive(GetTextBankIndex());
+ LoadFromFile(0);
+ }
+
+ private void InitLimits()
+ {
+ // IVs: 0-31
+ hpIVNumericUpDown.Minimum = 0;
+ hpIVNumericUpDown.Maximum = 31;
+ atkIVNumericUpDown.Minimum = 0;
+ atkIVNumericUpDown.Maximum = 31;
+ defIVNumericUpDown.Minimum = 0;
+ defIVNumericUpDown.Maximum = 31;
+ speIVNumericUpDown.Minimum = 0;
+ speIVNumericUpDown.Maximum = 31;
+ spaIVNumericUpDown.Minimum = 0;
+ spaIVNumericUpDown.Maximum = 31;
+ spdIVNumericUpDown.Minimum = 0;
+ spdIVNumericUpDown.Maximum = 31;
+
+ // Contest stats: 0-255
+ coolNumericUpDown.Minimum = 0;
+ coolNumericUpDown.Maximum = 255;
+ beautyNumericUpDown.Minimum = 0;
+ beautyNumericUpDown.Maximum = 255;
+ cuteNumericUpDown.Minimum = 0;
+ cuteNumericUpDown.Maximum = 255;
+ smartNumericUpDown.Minimum = 0;
+ smartNumericUpDown.Maximum = 255;
+ toughNumericUpDown.Minimum = 0;
+ toughNumericUpDown.Maximum = 255;
+
+ // PID: (32-bit unsigned)
+ pidNumericUpDown.Minimum = 0;
+ pidNumericUpDown.Maximum = int.MaxValue;
+
+ // Sheen: 0-255
+ sheenNumericUpDown.Minimum = 0;
+ sheenNumericUpDown.Maximum = 255;
+
+ // Unknown: (32-bit unsigned)
+ unknownNumericUpDown.Minimum = 0;
+ unknownNumericUpDown.Maximum = int.MaxValue;
+
+ // Trade ID: (dynamic based on loaded data)
+ tradeIDNumericUpDown.Minimum = 0;
+ tradeIDNumericUpDown.Maximum = TradeData.GetTradeCount() - 1;
+
+ // OT ID: (32-bit unsigned)
+ otIDNumericUpDown.Minimum = 0;
+ otIDNumericUpDown.Maximum = int.MaxValue;
+
+ // Text fields
+ otNameTextBox.MaxLength = 7;
+ nicknameTextBox.MaxLength = 10;
+ }
+
+ private void InitDataRanges()
+ {
+ // Species Names
+ speciesComboBox.DataSource = RomInfo.GetPokemonNames();
+ speciesComboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
+ requestedComboBox.DataSource = RomInfo.GetPokemonNames();
+ requestedComboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
+
+ // Abilities
+ abilityComboBox.DataSource = RomInfo.GetAbilityNames();
+ abilityComboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
+
+ // Held Items
+ heldItemComboBox.DataSource = RomInfo.GetItemNames();
+ heldItemComboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
+
+ // OT Gender
+ otGenderComboBox.DataSource = new string[] { "Male", "Female" };
+
+ // Languages
+ langComboBox.DataSource = Enum.GetNames(typeof(OriginLang));
+ langComboBox.AutoCompleteSource = AutoCompleteSource.ListItems;
+ }
+
+ private void SetToolTips()
+ {
+ SetToolTipsForControls(new Control[] { tradeIDNumericUpDown, tradeIDLabel }, "The Trade ID to edit.");
+ SetToolTipsForControls(new Control[] { speciesComboBox, speciesLabel }, "The species of the Pokémon being traded.");
+ SetToolTipsForControls(new Control[] { IVGroupBox }, "Individual Values (IVs)");
+ SetToolTipsForControls(new Control[] { abilityComboBox, abilityLabel }, "The ability of the Pokémon.\nThis value is unused and will have no effect!");
+ SetToolTipsForControls(new Control[] { otIDNumericUpDown, otIDLabel }, "The Original Trainer ID of the Pokémon.");
+ SetToolTipsForControls(new Control[] { contestGroupBox }, "Contest stats for the Pokémon.");
+ SetToolTipsForControls(new Control[] { pidNumericUpDown, pidLabel }, "The PID of the Pokémon.\nDetermines ability and nature.");
+ SetToolTipsForControls(new Control[] { heldItemComboBox, heldItemLabel }, "The held item of the Pokémon.");
+ SetToolTipsForControls(new Control[] { otGenderComboBox, otGenderLabel }, "The gender of the Original Trainer (OT).\nThe OT name is determined by the text bank.");
+ SetToolTipsForControls(new Control[] { langComboBox, langLabel }, "The language of origin of the traded Pokémon.");
+ SetToolTipsForControls(new Control[] { requestedComboBox, requestedLabel }, "The species of the requested Pokémon.\nWhether the Pokémon selected by the player matches this species or not is checked via scripting.");
+ SetToolTipsForControls(new Control[] { unknownNumericUpDown, unknownLabel }, "An unknown value, present in HGSS only.\nAppears to be unused.");
+ SetToolTipsForControls(new Control[] { otNameTextBox, otNameLabel },
+ $"The Original Trainer's name.\nStored in text bank {GetTextBankIndex()}.\nAt most {otNameTextBox.MaxLength} characters.");
+ SetToolTipsForControls(new Control[] { nicknameTextBox, nicknameLabel },
+ $"The nickname of the Pokémon.\nStored in text bank {GetTextBankIndex()}.\nAt most {nicknameTextBox.MaxLength} characters.");
+
+ SetToolTipsForControls(new Control[] { saveTradeButton }, "Save the current trade data to file.");
+ SetToolTipsForControls(new Control[] { saveTextDataButton }, "Save the current text data to file.");
+ SetToolTipsForControls(new Control[] { saveAllButton }, "Save both trade data and text data to file.");
+
+ // ToDo: Remove these tooltips when the features are implemented
+ SetToolTipsForControls(new Control[] { addFileButton, removeLastButton }, "Coming soon!\nThis feature is not yet implemented.\nIt will allow you to add or remove trades from the trade data file.");
+ }
+
+ private void SetToolTipsForControls(IEnumerable controls, string text)
+ {
+ foreach (var control in controls)
+ {
+ toolTip.SetToolTip(control, text);
+ }
+ }
+
+ public void LoadFromFile(int tradeID)
+ {
+ Helpers.DisableHandlers();
+ curTradeData = new TradeData(tradeID);
+ tradeArchive = new TextArchive(GetTextBankIndex());
+ tradeIDNumericUpDown.Value = tradeID;
+ speciesComboBox.SelectedIndex = curTradeData.species;
+ hpIVNumericUpDown.Value = curTradeData.hpIV;
+ atkIVNumericUpDown.Value = curTradeData.atkIV;
+ defIVNumericUpDown.Value = curTradeData.defIV;
+ speIVNumericUpDown.Value = curTradeData.speedIV;
+ spaIVNumericUpDown.Value = curTradeData.spAtkIV;
+ spdIVNumericUpDown.Value = curTradeData.spDefIV;
+ abilityComboBox.SelectedIndex = curTradeData.ability;
+ otIDNumericUpDown.Value = curTradeData.otID;
+ coolNumericUpDown.Value = curTradeData.cool;
+ beautyNumericUpDown.Value = curTradeData.beauty;
+ cuteNumericUpDown.Value = curTradeData.cute;
+ smartNumericUpDown.Value = curTradeData.smart;
+ toughNumericUpDown.Value = curTradeData.tough;
+ pidNumericUpDown.Value = curTradeData.pid;
+ heldItemComboBox.SelectedIndex = curTradeData.heldItem;
+ otGenderComboBox.SelectedIndex = curTradeData.otGender;
+ sheenNumericUpDown.Value = curTradeData.sheen;
+ langComboBox.SelectedIndex = curTradeData.language;
+ requestedComboBox.SelectedIndex = curTradeData.requestedSpecies;
+ unknownNumericUpDown.Value = curTradeData.unknown;
+
+ otNameTextBox.Text = GetOTName(tradeID);
+ nicknameTextBox.Text = GetMonNickname(tradeID);
+ tradeDataGroupBox.Text = "Trade Data";
+ textDataGroupBox.Text = "Text Data";
+ this.Text = "Trade Editor";
+
+ tradeDirty = false;
+ textDirty = false;
+
+ Helpers.EnableHandlers();
+ }
+
+ private void SaveTradeToFile()
+ {
+ Helpers.DisableHandlers();
+ curTradeData.species = speciesComboBox.SelectedIndex;
+ curTradeData.hpIV = (int)hpIVNumericUpDown.Value;
+ curTradeData.atkIV = (int)atkIVNumericUpDown.Value;
+ curTradeData.defIV = (int)defIVNumericUpDown.Value;
+ curTradeData.speedIV = (int)speIVNumericUpDown.Value;
+ curTradeData.spAtkIV = (int)spaIVNumericUpDown.Value;
+ curTradeData.spDefIV = (int)spdIVNumericUpDown.Value;
+ curTradeData.ability = abilityComboBox.SelectedIndex;
+ curTradeData.otID = (int)otIDNumericUpDown.Value;
+ curTradeData.cool = (int)coolNumericUpDown.Value;
+ curTradeData.beauty = (int)beautyNumericUpDown.Value;
+ curTradeData.cute = (int)cuteNumericUpDown.Value;
+ curTradeData.smart = (int)smartNumericUpDown.Value;
+ curTradeData.tough = (int)toughNumericUpDown.Value;
+ curTradeData.pid = (int)pidNumericUpDown.Value;
+ curTradeData.heldItem = heldItemComboBox.SelectedIndex;
+ curTradeData.otGender = otGenderComboBox.SelectedIndex;
+ curTradeData.sheen = (int)sheenNumericUpDown.Value;
+ curTradeData.language = langComboBox.SelectedIndex;
+ curTradeData.requestedSpecies = requestedComboBox.SelectedIndex;
+
+ if (RomInfo.gameFamily == RomInfo.GameFamilies.HGSS)
+ {
+ curTradeData.unknown = (int)unknownNumericUpDown.Value;
+ }
+ else
+ {
+ curTradeData.unknown = 0;
+ }
+
+ curTradeData.SaveToFileDefaultDir((int)tradeIDNumericUpDown.Value, false);
+ tradeDataGroupBox.Text = "Trade Data";
+ tradeDirty = false;
+ if (!textDirty)
+ {
+ this.Text = "Trade Editor";
+ }
+ AppLogger.Debug($"TradeEditor: Saved trade data for ID {curTradeData.id}.");
+ Helpers.EnableHandlers();
+ }
+
+ private void SaveTextDataToFile()
+ {
+ Helpers.DisableHandlers();
+ int tradeID = (int)tradeIDNumericUpDown.Value;
+
+ if (tradeID < 0 || tradeID + TradeData.GetTradeCount() > tradeArchive.messages.Count)
+ {
+ MessageBox.Show("Can't save to text bank. Index is out of range.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ AppLogger.Error("TradeEditor: Can't save to text bank. Index is out of range.");
+ Helpers.EnableHandlers();
+ return;
+ }
+
+ // Nickname
+ tradeArchive.messages[tradeID] = nicknameTextBox.Text;
+
+ // OT Name
+ tradeArchive.messages[tradeID + TradeData.GetTradeCount()] = otNameTextBox.Text;
+
+ tradeArchive.SaveToFileDefaultDir(GetTextBankIndex(), false);
+
+ // Reset the text data group box and dirty flags
+ textDataGroupBox.Text = "Text Data";
+ textDirty = false;
+ if (!tradeDirty)
+ {
+ this.Text = "Trade Editor";
+ }
+ AppLogger.Debug($"TradeEditor: Saved trade text data to message bank {GetTextBankIndex()}");
+ Helpers.EnableHandlers();
+ }
+
+ private int GetTextBankIndex()
+ {
+ switch (RomInfo.gameFamily)
+ {
+ case RomInfo.GameFamilies.DP:
+ switch (RomInfo.gameLanguage)
+ {
+ case RomInfo.GameLanguages.Japanese:
+ return 324;
+ default:
+ return 326;
+ }
+ case RomInfo.GameFamilies.Plat:
+ switch (RomInfo.gameLanguage)
+ {
+ case RomInfo.GameLanguages.Japanese:
+ return 369;
+ default:
+ return 370;
+ }
+ case RomInfo.GameFamilies.HGSS:
+ switch (RomInfo.gameLanguage)
+ {
+ case RomInfo.GameLanguages.Japanese:
+ return 198;
+ default:
+ return 200;
+ }
+ default:
+ AppLogger.Error("TradeEditor: Invalid game family for text bank index retrieval.");
+ MessageBox.Show("Invalid game family for text bank index retrieval.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return 0;
+ }
+
+ }
+ private string GetMonNickname(int tradeID)
+ {
+ string msg = tradeArchive.messages[tradeID];
+ if (msg.Length > nicknameTextBox.MaxLength)
+ {
+ msg = msg.Substring(0, nicknameTextBox.MaxLength);
+ }
+ return msg;
+ }
+
+ private string GetOTName(int tradeID)
+ {
+ int index = tradeID + TradeData.GetTradeCount();
+ string msg = tradeArchive.messages[index];
+ if (msg.Length > otNameTextBox.MaxLength)
+ {
+ msg = msg.Substring(0, otNameTextBox.MaxLength);
+ }
+ return msg;
+ }
+
+ private void RegisterMarkDirtyHandlers()
+ {
+ // ComboBoxes
+ speciesComboBox.SelectedIndexChanged += MarkDirty;
+ abilityComboBox.SelectedIndexChanged += MarkDirty;
+ heldItemComboBox.SelectedIndexChanged += MarkDirty;
+ otGenderComboBox.SelectedIndexChanged += MarkDirty;
+ langComboBox.SelectedIndexChanged += MarkDirty;
+ requestedComboBox.SelectedIndexChanged += MarkDirty;
+
+ // NumericUpDowns
+ hpIVNumericUpDown.ValueChanged += MarkDirty;
+ atkIVNumericUpDown.ValueChanged += MarkDirty;
+ defIVNumericUpDown.ValueChanged += MarkDirty;
+ speIVNumericUpDown.ValueChanged += MarkDirty;
+ spaIVNumericUpDown.ValueChanged += MarkDirty;
+ spdIVNumericUpDown.ValueChanged += MarkDirty;
+ otIDNumericUpDown.ValueChanged += MarkDirty;
+ coolNumericUpDown.ValueChanged += MarkDirty;
+ beautyNumericUpDown.ValueChanged += MarkDirty;
+ cuteNumericUpDown.ValueChanged += MarkDirty;
+ smartNumericUpDown.ValueChanged += MarkDirty;
+ toughNumericUpDown.ValueChanged += MarkDirty;
+ pidNumericUpDown.ValueChanged += MarkDirty;
+ sheenNumericUpDown.ValueChanged += MarkDirty;
+ unknownNumericUpDown.ValueChanged += MarkDirty;
+
+ // TextBoxes
+ otNameTextBox.TextChanged += MarkDirty;
+ nicknameTextBox.TextChanged += MarkDirty;
+ }
+
+ #region Handlers
+
+ private void MarkDirty(object sender, EventArgs e)
+ {
+ if (Helpers.HandlersDisabled)
+ {
+ return;
+ }
+
+ Helpers.DisableHandlers();
+
+ if (sender.Equals(otNameTextBox) || sender.Equals(nicknameTextBox))
+ {
+ textDataGroupBox.Text = "Text Data*";
+ this.Text = "Trade Editor*";
+ textDirty = true;
+ }
+ else
+ {
+ tradeDataGroupBox.Text = "Trade Data*";
+ this.Text = "Trade Editor*";
+ tradeDirty = true;
+ }
+
+ Helpers.EnableHandlers();
+ }
+
+ private void tradeIDNumericUpDown_ValueChanged(object sender, EventArgs e)
+ {
+ if (Helpers.HandlersDisabled)
+ {
+ return;
+ }
+
+ Helpers.DisableHandlers();
+
+ if (tradeDirty || textDirty)
+ {
+ DialogResult result = MessageBox.Show("You have unsaved changes. Do you want to save before changing the Trade ID?", "Unsaved Changes", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);
+ if (result == DialogResult.Yes)
+ {
+ SaveTradeToFile();
+ SaveTextDataToFile();
+ }
+ else if (result == DialogResult.Cancel)
+ {
+ // Revert the change
+ tradeIDNumericUpDown.Value = curTradeData.id;
+ Helpers.EnableHandlers();
+ return;
+ }
+ }
+
+ int tradeID = (int)tradeIDNumericUpDown.Value;
+ if (tradeID < 0 || tradeID >= TradeData.GetTradeCount())
+ {
+ MessageBox.Show("Invalid Trade ID selected.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+
+ LoadFromFile(tradeID);
+
+ Helpers.EnableHandlers();
+
+ }
+
+ private void saveTradeButton_Click(object sender, EventArgs e)
+ {
+ SaveTradeToFile();
+ }
+
+ private void saveTextDataButton_Click(object sender, EventArgs e)
+ {
+ SaveTextDataToFile();
+ }
+
+ private void saveAllButton_Click(object sender, EventArgs e)
+ {
+ SaveTradeToFile();
+ SaveTextDataToFile();
+ }
+
+ private void TradeEditor_FormClosing(object sender, FormClosingEventArgs e)
+ {
+ if (tradeDirty || textDirty)
+ {
+ DialogResult result = MessageBox.Show("You have unsaved changes. Do you want to save before closing?", "Unsaved Changes", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);
+ if (result == DialogResult.Yes)
+ {
+ SaveTradeToFile();
+ SaveTextDataToFile();
+ }
+ else if (result == DialogResult.Cancel)
+ {
+ e.Cancel = true; // Cancel the closing
+ }
+ }
+ }
+
+ private void addFileButton_Click(object sender, EventArgs e)
+ {
+ TradeData newTrade = new TradeData(TradeData.GetTradeCount());
+ newTrade.SaveToFileDefaultDir(newTrade.id, false);
+ tradeIDNumericUpDown.Maximum = TradeData.GetTradeCount() - 1; // Update the maximum value
+
+ // Adjust text archive to accommodate the new trade
+ int lastNicknameIndex = TradeData.GetTradeCount() - 1;
+ tradeArchive.messages.Insert(lastNicknameIndex, "Nickname");
+ tradeArchive.messages.Add("OT Name");
+ tradeArchive.SaveToFileDefaultDir(GetTextBankIndex(), false);
+
+ MessageBox.Show($"Added new trade with id {newTrade.id}", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ }
+
+ private void removeLastButton_Click(object sender, EventArgs e)
+ {
+ DialogResult result = MessageBox.Show("Are you sure you want to remove the last trade? This action cannot be undone.", "Confirm Removal", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
+ if (result != DialogResult.Yes)
+ {
+ return; // User cancelled the removal
+ }
+
+ if (TradeData.GetTradeCount() <= 1)
+ {
+ MessageBox.Show("Cannot remove the last trade.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ return;
+ }
+
+ int lastTradeID = TradeData.GetTradeCount() - 1;
+
+ try
+ {
+ File.Delete(RomInfo.gameDirs[RomInfo.DirNames.tradeData].unpackedDir + "\\" + lastTradeID.ToString("D4"));
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show($"Failed to delete trade file: {ex.Message}", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ AppLogger.Error($"TradeEditor: Failed to delete trade file for ID {lastTradeID}: {ex.Message}");
+ return;
+ }
+
+ tradeIDNumericUpDown.Maximum = lastTradeID - 1; // Update the maximum value
+ // Adjust text archive to remove the last trade's text
+
+ if (tradeArchive.messages.Count > lastTradeID)
+ {
+ tradeArchive.messages.RemoveAt(lastTradeID); // Remove Nickname
+ tradeArchive.messages.RemoveAt(tradeArchive.messages.Count - 1); // Remove OT Name
+ tradeArchive.SaveToFileDefaultDir(GetTextBankIndex(), false);
+ }
+
+ }
+
+ #endregion
+
+ }
+}
diff --git a/DS_Map/Editors/TradeEditor.resx b/DS_Map/Editors/TradeEditor.resx
new file mode 100644
index 0000000..8766f29
--- /dev/null
+++ b/DS_Map/Editors/TradeEditor.resx
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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
+
+
+ 17, 17
+
+
\ No newline at end of file
diff --git a/DS_Map/Editors/TrainerEditor.Designer.cs b/DS_Map/Editors/TrainerEditor.Designer.cs
index 795c888..6c6509e 100644
--- a/DS_Map/Editors/TrainerEditor.Designer.cs
+++ b/DS_Map/Editors/TrainerEditor.Designer.cs
@@ -29,34 +29,18 @@
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();
@@ -64,15 +48,6 @@
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();
@@ -83,33 +58,19 @@
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();
@@ -123,44 +84,27 @@
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();
@@ -169,7 +113,6 @@
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();
@@ -178,55 +121,103 @@
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();
+ this.exportTrainerButton = new System.Windows.Forms.Button();
+ this.importTrainerButton = new System.Windows.Forms.Button();
+ this.importReplacePartyButton = new System.Windows.Forms.Button();
+ this.exportPartyButton = new System.Windows.Forms.Button();
+ this.DVExplainButton = new System.Windows.Forms.Button();
+ this.partyPokemonItemPictureBox6 = new System.Windows.Forms.PictureBox();
+ this.partyPokemon6PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemonItemPictureBox5 = new System.Windows.Forms.PictureBox();
+ this.partyPokemon5PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemonItemPictureBox4 = new System.Windows.Forms.PictureBox();
+ this.partyPokemon4PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemonItemPictureBox3 = new System.Windows.Forms.PictureBox();
+ this.partyPokemon3PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemonItemPictureBox2 = new System.Windows.Forms.PictureBox();
+ this.partyPokemon2PictureBox = new System.Windows.Forms.PictureBox();
+ this.partyPokemonItemPictureBox1 = new System.Windows.Forms.PictureBox();
+ this.partyPokemon1PictureBox = new System.Windows.Forms.PictureBox();
+ this.saveTrainerClassButton = new System.Windows.Forms.Button();
+ this.trainerClassPicBox = new System.Windows.Forms.PictureBox();
+ this.deleteTrainerButton = new System.Windows.Forms.Button();
+ this.addTrainerButton = new System.Windows.Forms.Button();
+ this.trainerSaveCurrentButton = new System.Windows.Forms.Button();
+ this.replacePropertiesButton = new System.Windows.Forms.Button();
+ this.exportPropertiesButton = new System.Windows.Forms.Button();
+ 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.partyItem6ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon6ComboBox = new DSPRE.InputComboBox();
+ 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.partyItem5ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon5ComboBox = new DSPRE.InputComboBox();
+ 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.partyItem4ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon4ComboBox = new DSPRE.InputComboBox();
+ this.partyMove3_1ComboBox = new DSPRE.InputComboBox();
+ this.partyMove3_2ComboBox = new DSPRE.InputComboBox();
+ this.partyMove3_3ComboBox = new DSPRE.InputComboBox();
+ this.partyMove3_4ComboBox = new DSPRE.InputComboBox();
+ this.partyItem3ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon3ComboBox = new DSPRE.InputComboBox();
+ 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.partyItem2ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon2ComboBox = 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.partyItem1ComboBox = new DSPRE.InputComboBox();
+ this.partyPokemon1ComboBox = new DSPRE.InputComboBox();
+ this.trainerComboBox = new DSPRE.InputComboBox();
+ this.trainerItem1ComboBox = new DSPRE.InputComboBox();
+ this.trainerItem2ComboBox = new DSPRE.InputComboBox();
+ this.trainerItem3ComboBox = new DSPRE.InputComboBox();
+ this.trainerItem4ComboBox = new DSPRE.InputComboBox();
((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();
@@ -234,14 +225,11 @@
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();
@@ -250,72 +238,24 @@
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();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox6)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon6PictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox5)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon5PictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox4)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon4PictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox3)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon3PictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox2)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon2PictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox1)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon1PictureBox)).BeginInit();
+ ((System.ComponentModel.ISupportInitialize)(this.trainerClassPicBox)).BeginInit();
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;
@@ -345,16 +285,6 @@
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;
@@ -402,54 +332,6 @@
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;
@@ -470,64 +352,6 @@
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);
@@ -570,16 +394,6 @@
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;
@@ -661,107 +475,6 @@
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;
@@ -874,38 +587,6 @@
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;
@@ -964,26 +645,6 @@
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);
@@ -1017,16 +678,6 @@
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;
@@ -1067,54 +718,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);
@@ -1156,50 +759,6 @@
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);
@@ -1343,46 +902,6 @@
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;
@@ -1438,34 +957,6 @@
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);
@@ -1500,34 +991,6 @@
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;
@@ -1569,16 +1032,6 @@
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);
@@ -1632,16 +1085,6 @@
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;
@@ -1682,54 +1125,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);
@@ -1771,38 +1166,6 @@
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);
@@ -1896,18 +1259,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);
@@ -2007,19 +1358,6 @@
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);
@@ -2036,45 +1374,6 @@
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;
@@ -2084,29 +1383,6 @@
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;
@@ -2177,34 +1453,6 @@
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;
@@ -2253,6 +1501,782 @@
this.trainerClassListBox.TabIndex = 0;
this.trainerClassListBox.SelectedIndexChanged += new System.EventHandler(this.trainerClassListBox_SelectedIndexChanged);
//
+ // 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);
+ //
+ // 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);
+ //
+ // DVExplainButton
+ //
+ this.DVExplainButton.Image = global::DSPRE.Properties.Resources.DV_Icon;
+ this.DVExplainButton.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
+ this.DVExplainButton.Location = new System.Drawing.Point(230, 11);
+ this.DVExplainButton.Name = "DVExplainButton";
+ this.DVExplainButton.Size = new System.Drawing.Size(130, 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);
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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;
+ //
+ // 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);
+ //
+ // 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);
+ //
+ // 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);
+ //
+ // 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);
+ //
+ // 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove6_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // 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);
+ //
+ // 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);
+ //
+ // 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove5_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // 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);
+ //
+ // 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);
+ //
+ // 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove4_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // 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);
+ //
+ // 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_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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove3_1ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove3_2ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove3_3ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove3_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // 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);
+ //
+ // 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove2_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_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);
+ //
+ // 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);
+ //
+ // 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ 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.DropDown += new System.EventHandler(this.partyMoveComboBox_DropDown);
+ this.partyMove1_4ComboBox.SelectedIndexChanged += new System.EventHandler(this.partyMoveComboBox_SelectedIndexChanged);
+ //
+ // 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);
+ //
+ // 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);
+ //
+ // 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);
+ //
+ // 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;
+ //
// TrainerEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -2268,37 +2292,28 @@
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);
@@ -2309,15 +2324,12 @@
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);
@@ -2328,11 +2340,23 @@
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);
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox6)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon6PictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox5)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon5PictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox4)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon4PictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox3)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon3PictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox2)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon2PictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemonItemPictureBox1)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.partyPokemon1PictureBox)).EndInit();
+ ((System.ComponentModel.ISupportInitialize)(this.trainerClassPicBox)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
diff --git a/DS_Map/Editors/TrainerEditor.cs b/DS_Map/Editors/TrainerEditor.cs
index 83114a7..1ad304d 100644
--- a/DS_Map/Editors/TrainerEditor.cs
+++ b/DS_Map/Editors/TrainerEditor.cs
@@ -52,6 +52,7 @@ namespace DSPRE.Editors
SpeciesFile[] pokemonSpecies;
private (int abi1, int abi2)[] pokemonSpeciesAbilities;
+ private List<(int monIdx, int moveIdx1, int moveIdx2)> duplicateMoves = new List<(int monIdx, int moveIdx1, int moveIdx2)>();
TrainerFile currentTrainerFile;
public PaletteBase trainerPal;
@@ -398,6 +399,8 @@ namespace DSPRE.Editors
RefreshTrainerPartyGUI();
RefreshTrainerPropertiesGUI();
+ UpdateDuplicateMovesList();
+
Helpers.EnableHandlers();
if (error)
@@ -472,9 +475,13 @@ namespace DSPRE.Editors
for (int j = 0; j < Party.MOVES_PER_POKE; j++)
{
(partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex = currentTrainerFile.party[i].moves[j];
+ (partyMovesGroupboxList[i].Controls[j] as ComboBox).ForeColor = SystemColors.WindowText;
}
}
}
+
+ MarkDuplicateMoves();
+
}
private void ShowPartyPokemonPic(byte partyPos)
@@ -654,19 +661,61 @@ namespace DSPRE.Editors
partyItemsComboboxList[i].Enabled = trainerItemsCheckBox.Checked;
}
}
+
+ private void partyMoveComboBox_DropDown(object sender, EventArgs e)
+ {
+ if (Helpers.HandlersDisabled)
+ {
+ return;
+ }
+ ((ComboBox)sender).ForeColor = SystemColors.WindowText;
+ }
+
private void partyMoveComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
- if (Helpers.HandlersEnabled)
+ if (Helpers.HandlersDisabled)
{
- for (int i = 0; i < TrainerFile.POKE_IN_PARTY; i++)
- {
- ushort[] moves = currentTrainerFile.party[i].moves;
+ return;
+ }
- if (moves != null)
+ MarkDuplicateMoves();
+
+ }
+
+ private void MarkDuplicateMoves()
+ {
+ foreach (var cbGroup in partyMovesGroupboxList)
+ {
+ foreach (var cb in cbGroup.Controls)
+ {
+ ((ComboBox)cb).ForeColor = SystemColors.WindowText;
+ }
+ }
+
+ UpdateDuplicateMovesList();
+
+ foreach (var duplicate in duplicateMoves)
+ {
+ ((ComboBox)partyMovesGroupboxList[duplicate.monIdx].Controls[duplicate.moveIdx1]).ForeColor = Color.Red;
+ ((ComboBox)partyMovesGroupboxList[duplicate.monIdx].Controls[duplicate.moveIdx2]).ForeColor = Color.Red;
+ }
+ }
+
+ private void UpdateDuplicateMovesList()
+ {
+ duplicateMoves.Clear();
+
+ for (int pokemonIndex = 0; pokemonIndex < partyMovesGroupboxList.Count; pokemonIndex++)
+ {
+ for (int i = 0; i < Party.MOVES_PER_POKE - 1; i++)
+ {
+ for (int j = i + 1; j < Party.MOVES_PER_POKE; j++)
{
- for (int j = 0; j < Party.MOVES_PER_POKE; j++)
+ ComboBox cb1 = (ComboBox)partyMovesGroupboxList[pokemonIndex].Controls[i];
+ ComboBox cb2 = (ComboBox)partyMovesGroupboxList[pokemonIndex].Controls[j];
+ if (cb1.SelectedIndex != 0 && cb1.SelectedIndex == cb2.SelectedIndex)
{
- moves[j] = (ushort)(partyMovesGroupboxList[i].Controls[j] as ComboBox).SelectedIndex;
+ duplicateMoves.Add((pokemonIndex, i, j));
}
}
}
@@ -750,6 +799,21 @@ namespace DSPRE.Editors
currentTrainerFile.party[i].ballSeals = (ushort)partyBallUpdownList[i].Value;
}
+ if (duplicateMoves.Count != 0)
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("Duplicate moves have been found:\n");
+
+ foreach (var duplicate in duplicateMoves)
+ {
+ string move = partyMovesGroupboxList[duplicate.monIdx].Controls[duplicate.moveIdx1].Text;
+ sb.Append($"- {partyPokemonComboboxList[duplicate.monIdx].Text} has duplicate move \"{move}\"\n");
+ }
+ sb.Append("This will cause issues in game.");
+
+ MessageBox.Show(sb.ToString(), "Duplicate Moves", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ }
+
/*Write to File*/
string indexStr = "\\" + trainerComboBox.SelectedIndex.ToString("D4");
File.WriteAllBytes(RomInfo.gameDirs[DirNames.trainerProperties].unpackedDir + indexStr, currentTrainerFile.trp.ToByteArray());
diff --git a/DS_Map/Editors/TrainerEditor.resx b/DS_Map/Editors/TrainerEditor.resx
index ee0acee..a5e3c53 100644
--- a/DS_Map/Editors/TrainerEditor.resx
+++ b/DS_Map/Editors/TrainerEditor.resx
@@ -118,33 +118,21 @@
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==
+ vAAADrwBlbxySQAAAI5JREFUSEtjGAXkAsOQtP8wDBWiHwBZmrbpJhhDHdACkaExgPkYZjkImydXwLFt
+ YRdODDWCPIDNYmy4/OJ/rBjqANJDiVKLYZgsB1DDYhimeghgswQfJtsBUNDi0TjvPwhjM5wYTKkDYACr
+ Q2Bi+DC1HAADYIcgOwAkRiSmHkD2IZBLXcNJALTx3QgCDAwAJg2KYP9PC1YAAAAASUVORK5CYII=
iVBORw0KGgoAAAANSUhEUgAAACAAAAAQCAYAAAB3AH1ZAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
- vAAADrwBlbxySQAAAJdJREFUSEtjYBgFFIA4Nav/MIwuRxcAsvh6XBcYU90RyL7DhRe6psEdAMItxoFg
- jG4WWQDZd4Tw/4IlKJgqDgE54HZcN4Zl+CxGxxQ5BJ8D0C0ihMlyBDYHoBtMCCOFQAsUEw+QHYBuMCE8
- 0y4ejJEsJs1yEKg18YMbhA9T3WI0gGwQBkZ2ALUtJgoghwRdLUYD9PX1sAMAB89ugVJE7dUAAAAASUVO
- RK5CYII=
+ vAAADrwBlbxySQAAAJ5JREFUSEtjGAWUgDg1q/8wDBWiLwBZfD2uC4yp7ghk3+HCC13T4A4A4RbjQDCG
+ GkEZAFmAbDg+/L9gCQqmikNADrgd143VQhhGtxgdU+QQfA7AZhk+TJYjsDkAm+H4MFIItEAx8QDZAdgM
+ x4dn2sWDMdAYmMWkWQ4CtSZ+cIPwYapbjAaQDcLAyA6gtsVEAZiP0SynO6Cvr4cZYGAAAAfPboEh2axl
+ AAAAAElFTkSuQmCC
\ No newline at end of file
diff --git a/DS_Map/Editors/Utils/IndexedBitmapHandler.cs b/DS_Map/Editors/Utils/IndexedBitmapHandler.cs
new file mode 100644
index 0000000..aea099b
--- /dev/null
+++ b/DS_Map/Editors/Utils/IndexedBitmapHandler.cs
@@ -0,0 +1,437 @@
+using System;
+using System.Drawing;
+using System.Drawing.Imaging;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+namespace DSPRE.Editors.Utils
+{
+ public class IndexedBitmapHandler
+ {
+ public IndexedBitmapHandler()
+ {
+ }
+
+ public Bitmap Convert(Bitmap source, PixelFormat target)
+ {
+ if ((source.PixelFormat == target) || (target == PixelFormat.DontCare))
+ return source;
+ Bitmap image = new Bitmap(source.Width, source.Height, target);
+ if ((source.PixelFormat == PixelFormat.Format4bppIndexed) && (target == PixelFormat.Format8bppIndexed))
+ {
+ byte[] array = GetArray(source);
+ byte[] array2 = new byte[(array.Length * 2)];
+ byte current;
+ for (int i = 0; i < array.Length; i++)
+ {
+ current = array[i];
+ array2[2 * i] = (byte)((current & 0xF0) >> 4);
+ array2[2 * i + 1] = (byte)((current & 0x0F));
+ }
+ image = MakeImage(source.Width, source.Height, array2, target);
+ image.Palette = source.Palette;
+ }
+ if (((source.PixelFormat == PixelFormat.Format24bppRgb) || (source.PixelFormat == PixelFormat.Format32bppArgb)) && (target == PixelFormat.Format8bppIndexed))
+ {
+ int skip = 3;
+ if (source.PixelFormat == PixelFormat.Format32bppArgb)
+ skip = 4;
+ Color[] newPalette = new Color[256];
+ byte[] array = new byte[source.Width * source.Height];
+ byte[] sourceArray = GetArray(source);
+ Color Pixel = Color.FromArgb(sourceArray[2], sourceArray[1], sourceArray[0]);
+ newPalette[0] = Pixel;
+ int index = 1;
+ array[0] = 0;
+ byte r = 0;
+ byte g = 0;
+ byte b = 0;
+ bool match = false;
+ for (int i = 1; i < (source.Width * source.Height); i++)
+ {
+ b = sourceArray[(i * skip)];
+ g = sourceArray[(i * skip + 1)];
+ r = sourceArray[(i * skip + 2)];
+ Pixel = Color.FromArgb(r, g, b);
+ for (int j = 0; j < index; j++)
+ {
+ if (Pixel == newPalette[j])
+ {
+ array[i] = (byte)j;
+ match = true;
+ break;
+ }
+ }
+ if (!match)
+ {
+ if (index >= 256)
+ {
+ MessageBox.Show("Conversion failed");
+ return null;
+ }
+ newPalette[index] = Pixel;
+ array[i] = (byte)index;
+ index++;
+ }
+ match = false;
+ }
+ image = MakeImage(source.Width, source.Height, array, target);
+ ColorPalette oldPalette = image.Palette;
+ for (int i = 0; i < index; i++)
+ {
+ oldPalette.Entries[i] = newPalette[i];
+ }
+ image.Palette = oldPalette;
+ }
+ return image;
+ }
+
+ public Bitmap Resize(Bitmap source, int top, int bottom, int left, int right)
+ {
+ int newWidth = source.Width + left + right;
+ int newHeight = source.Height + top + bottom;
+ int arraysize = newWidth * newHeight;
+ ColorPalette palette = source.Palette;
+
+ byte[] source_array = GetArray(source);
+
+ byte[] byte_array = new byte[arraysize];
+ byte background = source_array[0];
+
+ int source_index = 0;
+ int index = 0;
+ for (int j = 0; j < newHeight; j++)
+ {
+ for (int i = 0; i < newWidth; i++)
+ {
+ if (i < left || i >= (left + source.Width) || j < top || j >= (top + source.Height))
+ byte_array[index] = background;
+ else
+ {
+ source_index = ((j - top) * source.Width) + i - left;
+ byte_array[index] = source_array[source_index];
+ }
+ index++;
+ }
+ }
+ Bitmap newImage = MakeImage(newWidth, newHeight, byte_array, PixelFormat.Format8bppIndexed);
+ newImage.Palette = palette;
+ return newImage;
+ }
+
+ public Bitmap Concat(Bitmap first, Bitmap second)
+ {
+ int newWidth = first.Width + second.Width;
+ int newHeight = first.Height;
+ if (first.Height < second.Height)
+ newHeight = second.Height;
+ int arraysize = newWidth * newHeight;
+ ColorPalette palette = first.Palette;
+
+ byte[] first_array = GetArray(first);
+ byte[] second_array = GetArray(second);
+
+ byte[] byte_array = new byte[arraysize];
+ byte background = first_array[0];
+
+ int source_index = 0;
+ int index = 0;
+ for (int j = 0; j < newHeight; j++)
+ {
+ for (int i = 0; i < first.Width; i++)
+ {
+ if (j > first.Height)
+ byte_array[index] = background;
+ else
+ {
+ source_index = ((j * first.Width) + i);
+ byte_array[index] = first_array[source_index];
+ }
+ index++;
+ }
+ for (int i = 0; i < second.Width; i++)
+ {
+ if (j > second.Height)
+ byte_array[index] = background;
+ else
+ {
+ source_index = ((j * second.Width) + i);
+ byte_array[index] = second_array[source_index];
+ }
+ index++;
+ }
+ }
+ Bitmap newImage = MakeImage(newWidth, newHeight, byte_array, PixelFormat.Format8bppIndexed);
+ newImage.Palette = palette;
+ return newImage;
+ }
+
+ public Bitmap[] Split(Bitmap source, int tilewidth, int tileheight)
+ {
+ int maxTiles = (source.Width / tilewidth) * (source.Height / tileheight);
+ Bitmap[] tiles = new Bitmap[maxTiles];
+ int index = 0;
+ int x_index = 0;
+ int y_index = 0;
+ while (y_index + tileheight <= source.Height)
+ {
+ if (x_index + tilewidth <= source.Width)
+ {
+ tiles[index] = Resize(source, (y_index * -1), ((source.Height - y_index - tileheight) * -1), (x_index * -1), ((source.Width - x_index - tilewidth) * -1));
+ index++;
+ }
+ x_index += tilewidth;
+ if (x_index + tilewidth > source.Width)
+ {
+ y_index += tileheight;
+ x_index = 0;
+ }
+ }
+ return tiles;
+ }
+
+ public Bitmap ShrinkImage(Bitmap image, int x_scale, int y_scale)
+ {
+ byte[] array = GetArray(image);
+ ColorPalette palette = image.Palette;
+ int new_width = image.Width / x_scale;
+ int new_height = image.Height / y_scale;
+ byte[] array2 = new byte[new_width * new_height];
+ for (int j = 0; j < new_height; j++)
+ {
+ for (int i = 0; i < new_width; i++)
+ {
+ array2[j * new_width + i] = array[y_scale * j * image.Width + i * x_scale];
+ }
+ }
+ Bitmap temp = MakeImage(new_width, new_height, array2, image.PixelFormat);
+ temp.Palette = palette;
+ return temp;
+ }
+
+ public ColorPalette AlternatePalette(Bitmap parent, Bitmap child)
+ {
+ Bitmap temp = new Bitmap(1, 1, parent.PixelFormat);
+ ColorPalette newPalette = temp.Palette;
+ ColorPalette ChildPalette = child.Palette;
+ byte[] ParentArray = GetArray(parent);
+ byte[] ChildArray = GetArray(child);
+ if (ParentArray.Length != ChildArray.Length)
+ return null;
+ for (int i = 0; i < ChildPalette.Entries.Length; i++)
+ {
+ for (int j = 0; j < ParentArray.Length; j++)
+ {
+ if (ParentArray[j] == i)
+ {
+ newPalette.Entries[i] = ChildPalette.Entries[ChildArray[j]];
+ break;
+ }
+ }
+ }
+ return newPalette;
+ }
+
+ public Bitmap PaletteMatch(ColorPalette parent, Bitmap child, bool[] used = null)
+ {
+ if (parent.Entries == child.Palette.Entries)
+ return child;
+ if (used == null)
+ {
+ used = new bool[parent.Entries.Length];
+ for (int i = 0; i < parent.Entries.Length; i++)
+ used[i] = true;
+ }
+ Bitmap image = ShrinkPalette(child);
+ Bitmap temp = new Bitmap(1, 1, child.PixelFormat);
+ ColorPalette childPalette = image.Palette;
+ ColorPalette newPalette = temp.Palette;
+ int size = PaletteSize(image);
+ byte[] array = GetArray(image);
+ byte[] indexof = new byte[size];
+ bool[] NotFound = new bool[size];
+ for (int i = 0; i < size; i++)
+ NotFound[i] = true;
+ for (int i = 0; i < size; i++)
+ {
+ for (int j = 0; j < parent.Entries.Length; j++)
+ {
+ if (parent.Entries[j] == childPalette.Entries[i])
+ {
+ indexof[i] = (byte)j;
+ NotFound[i] = false;
+ break;
+ }
+ }
+ }
+ int maxsize = 0;
+ for (int i = 0; i < parent.Entries.Length; i++)
+ {
+ if (used[i])
+ {
+ newPalette.Entries[i] = parent.Entries[i];
+ maxsize++;
+ }
+ }
+ for (int i = 0; i < size; i++)
+ {
+ if (NotFound[i])
+ maxsize++;
+ }
+ for (int i = 0; i < maxsize; i++)
+ {
+ if ((i < used.Length) && (used[i]))
+ continue;
+ for (int j = 0; j < size; j++)
+ {
+ if (NotFound[j])
+ {
+ indexof[j] = (byte)i;
+ newPalette.Entries[i] = childPalette.Entries[j];
+ NotFound[j] = false;
+ break;
+ }
+ }
+ }
+ byte[] newArray = new byte[array.Length];
+ for (int i = 0; i < array.Length; i++)
+ {
+ newArray[i] = indexof[array[i]];
+ }
+ image = MakeImage(child.Width, child.Height, newArray, child.PixelFormat);
+ image.Palette = newPalette;
+ return image;
+ }
+
+ public Bitmap ShrinkPalette(Bitmap image, bool[] used = null)
+ {
+ used = IsUsed(image, used);
+ byte[] array = GetArray(image);
+ ColorPalette oldPalette = image.Palette;
+ Bitmap temp = new Bitmap(image.Width, image.Height, image.PixelFormat);
+ ColorPalette newPalette = temp.Palette;
+ int size = oldPalette.Entries.Length;
+ int index = 0;
+ int unused = 0;
+ byte[] indexof = new byte[size];
+ for (int i = 0; i < size; i++)
+ {
+ if (used[i])
+ {
+ newPalette.Entries[index] = oldPalette.Entries[i];
+ indexof[i] = (byte)index;
+ index++;
+ }
+ else
+ unused++;
+ }
+ if (unused == 0 || unused == size)
+ return image;
+ byte[] newArray = new byte[array.Length];
+ for (int i = 0; i < array.Length; i++)
+ {
+ newArray[i] = indexof[array[i]];
+ }
+ image = MakeImage(image.Width, image.Height, newArray, image.PixelFormat);
+ image.Palette = newPalette;
+ return image;
+ }
+
+ public bool[] IsUsed(Bitmap image, bool[] used = null)
+ {
+ byte[] array = GetArray(image);
+ int size = image.Palette.Entries.Length;
+ if (used == null)
+ {
+ used = new bool[size];
+ for (int i = 0; i < size; i++)
+ {
+ used[i] = false;
+ }
+ }
+ if (size > used.Length)
+ {
+ bool[] temp = new bool[size];
+ for (int i = 0; i < size; i++)
+ {
+ if (i < used.Length)
+ temp[i] = used[i];
+ else
+ temp[i] = false;
+ }
+ used = temp;
+ }
+ for (int i = 0; i < array.Length; i++)
+ {
+ used[array[i]] = true;
+ }
+ return used;
+ }
+
+ public byte PaletteSize(Bitmap image)
+ {
+ byte[] array = GetArray(image);
+ byte max = 0;
+ for (int i = 0; i < array.Length; i++)
+ {
+ if (array[i] > max)
+ max = array[i];
+ }
+ return (byte)(max + 1);
+ }
+
+ public bool PaletteEquals(ColorPalette parent, Bitmap child)
+ {
+ bool Match = true;
+ int max = PaletteSize(child);
+ for (int i = 0; i < max; i++)
+ {
+ if (parent.Entries[i] != child.Palette.Entries[i])
+ Match = false;
+ }
+ return Match;
+ }
+
+ public ColorPalette CleanPalette(Bitmap image)
+ {
+ int used = PaletteSize(image);
+ ColorPalette temp = image.Palette;
+ for (int i = used; i < image.Palette.Entries.Length; i++)
+ temp.Entries[i] = Color.FromArgb(0, 0, 0);
+ return temp;
+ }
+
+ public byte[] GetArray(Bitmap target)
+ {
+ int Width = target.Width;
+ if (target.PixelFormat == PixelFormat.Format1bppIndexed)
+ Width = Width / 8;
+ if (target.PixelFormat == PixelFormat.Format4bppIndexed)
+ Width = Width / 2;
+ if ((target.PixelFormat == PixelFormat.Format16bppArgb1555) || (target.PixelFormat == PixelFormat.Format16bppGrayScale) || (target.PixelFormat == PixelFormat.Format16bppRgb555) || (target.PixelFormat == PixelFormat.Format16bppRgb565))
+ Width = Width * 2;
+ if (target.PixelFormat == PixelFormat.Format24bppRgb)
+ Width = Width * 3;
+ if ((target.PixelFormat == PixelFormat.Format32bppRgb) || (target.PixelFormat == PixelFormat.Format32bppArgb) || (target.PixelFormat == PixelFormat.Format32bppPArgb))
+ Width = Width * 4;
+ byte[] array = new byte[Width * target.Height];
+ Rectangle rect = new Rectangle(0, 0, target.Width, target.Height);
+ BitmapData sourceData = target.LockBits(rect, ImageLockMode.ReadOnly, target.PixelFormat);
+ IntPtr scan = sourceData.Scan0;
+ Marshal.Copy(scan, array, 0, Width * target.Height);
+ target.UnlockBits(sourceData);
+ return array;
+ }
+
+ public Bitmap MakeImage(int width, int height, byte[] array, PixelFormat format)
+ {
+ Bitmap image = new Bitmap(width, height, format);
+ Rectangle rect = new Rectangle(0, 0, width, height);
+ BitmapData imageData = image.LockBits(rect, ImageLockMode.WriteOnly, image.PixelFormat);
+ IntPtr scan = imageData.Scan0;
+ Marshal.Copy(array, 0, scan, (width * height));
+ image.UnlockBits(imageData);
+ return image;
+ }
+ }
+}
\ No newline at end of file
diff --git a/DS_Map/Editors/Utils/NarcReader.cs b/DS_Map/Editors/Utils/NarcReader.cs
new file mode 100644
index 0000000..087dad4
--- /dev/null
+++ b/DS_Map/Editors/Utils/NarcReader.cs
@@ -0,0 +1,66 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DSPRE.Editors.Utils
+{
+ public class NarcReader
+ {
+ public int Entrys;
+
+ public FileEntry[] fe;
+
+ public FileStream fs;
+
+ string m_sFileName;
+
+ public long size;
+
+ public NarcReader(string strFileName)
+ {
+ m_sFileName = strFileName;
+ fs = new FileStream(strFileName, FileMode.Open, FileAccess.ReadWrite);
+ BinaryReader binaryReader = new BinaryReader(fs);
+ byte[] array = new byte[16];
+ binaryReader.Read(array, 0, 16);
+ size = BitConverter.ToUInt32(array, 8);
+ int num = BitConverter.ToInt16(array, 12);
+ fs.Seek(num, SeekOrigin.Begin);
+ array = new byte[12];
+ binaryReader.Read(array, 0, 12);
+ int num2 = BitConverter.ToInt32(array, 4);
+ Entrys = BitConverter.ToInt32(array, 8);
+ fe = new FileEntry[Entrys];
+ for (int i = 0; i < Entrys; i++)
+ {
+ fe[i].Ofs = binaryReader.ReadInt32();
+ fe[i].Size = binaryReader.ReadInt32() - fe[i].Ofs;
+ }
+ fs.Seek(num + num2, SeekOrigin.Begin);
+ array = new byte[16];
+ binaryReader.Read(array, 0, 16);
+ int num3 = BitConverter.ToInt32(array, 4);
+ num3 = num + num3 + num2 + 8;
+ for (int j = 0; j < Entrys; j++)
+ {
+ fe[j].Ofs += num3;
+ }
+ fs.Close();
+ }
+
+ public void Close()
+ {
+ fs.Close();
+ }
+
+ public int OpenEntry(int id)
+ {
+ fs = new FileStream(m_sFileName, FileMode.Open, FileAccess.ReadWrite);
+ fs.Seek(fe[id].Ofs, SeekOrigin.Begin);
+ return 0;
+ }
+ }
+}
diff --git a/DS_Map/Editors/Utils/SpriteSet.cs b/DS_Map/Editors/Utils/SpriteSet.cs
new file mode 100644
index 0000000..5066d87
--- /dev/null
+++ b/DS_Map/Editors/Utils/SpriteSet.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Drawing;
+using System.Drawing.Imaging;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DSPRE.Editors.Utils
+{
+ public class SpriteSet
+ {
+ public Bitmap[] Sprites;
+ public ColorPalette Normal;
+ public ColorPalette Shiny;
+
+ public SpriteSet()
+ {
+ Sprites = new Bitmap[4];
+ for (int i = 0; i < 4; i++)
+ {
+ Sprites[i] = null;
+ }
+ Normal = null;
+ Shiny = null;
+ }
+ }
+}
diff --git a/DS_Map/UniqueList.cs b/DS_Map/Editors/Utils/UniqueList.cs
similarity index 80%
rename from DS_Map/UniqueList.cs
rename to DS_Map/Editors/Utils/UniqueList.cs
index 12c338c..c98cdea 100644
--- a/DS_Map/UniqueList.cs
+++ b/DS_Map/Editors/Utils/UniqueList.cs
@@ -47,6 +47,22 @@ namespace DSPRE.ROMFiles {
return false;
}
+ public bool Insert(int index, T item) {
+ if (set.Contains(item)) {
+ //If the item is already in the set, we just move it to the new index
+ int oldIndex = list.FindIndex(x => x.Equals(item));
+ if (oldIndex != index) {
+ list.Move(oldIndex, index);
+ }
+ return false; //No insertion happened
+ } else {
+ //New item, insert it
+ list.Insert(index, item);
+ set.Add(item);
+ return true; //Insertion happened
+ }
+ }
+
// Expose some methods from the internal List
public T Find(Predicate match) {
return list.Find(match);
diff --git a/DS_Map/Main Window.Designer.cs b/DS_Map/Main Window.Designer.cs
index 9382449..8bd85a2 100644
--- a/DS_Map/Main Window.Designer.cs
+++ b/DS_Map/Main Window.Designer.cs
@@ -284,6 +284,7 @@
this.tableEditorTabPage = new System.Windows.Forms.TabPage();
this.tableEditor = new DSPRE.Editors.TableEditor();
this.tabPageEncountersEditor = new System.Windows.Forms.TabPage();
+ this.encountersEditor = new DSPRE.Editors.EncountersEditor();
this.mainTabImageList = new System.Windows.Forms.ImageList(this.components);
this.gameIcon = new System.Windows.Forms.PictureBox();
this.languageLabel = new System.Windows.Forms.Label();
@@ -329,6 +330,7 @@
this.flyWarpEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.itemEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.overworldEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+ this.tradeEditorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.aboutToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.statusLabel = new System.Windows.Forms.ToolStripStatusLabel();
@@ -441,6 +443,7 @@
this.cameraEditorTabPage.SuspendLayout();
this.trainerEditorTabPage.SuspendLayout();
this.tableEditorTabPage.SuspendLayout();
+ this.tabPageEncountersEditor.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gameIcon)).BeginInit();
this.menuStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
@@ -3548,6 +3551,7 @@
//
// tabPageEncountersEditor
//
+ this.tabPageEncountersEditor.Controls.Add(this.encountersEditor);
this.tabPageEncountersEditor.Location = new System.Drawing.Point(4, 23);
this.tabPageEncountersEditor.Name = "tabPageEncountersEditor";
this.tabPageEncountersEditor.Padding = new System.Windows.Forms.Padding(3);
@@ -3556,6 +3560,14 @@
this.tabPageEncountersEditor.Text = "Encounters";
this.tabPageEncountersEditor.UseVisualStyleBackColor = true;
//
+ // encountersEditor
+ //
+ this.encountersEditor.encounterEditorIsReady = false;
+ this.encountersEditor.Location = new System.Drawing.Point(0, 0);
+ this.encountersEditor.Name = "encountersEditor";
+ this.encountersEditor.Size = new System.Drawing.Size(1189, 675);
+ this.encountersEditor.TabIndex = 0;
+ //
// mainTabImageList
//
this.mainTabImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("mainTabImageList.ImageStream")));
@@ -3920,7 +3932,8 @@
this.moveDataEditorToolStripMenuItem,
this.flyWarpEditorToolStripMenuItem,
this.itemEditorToolStripMenuItem,
- this.overworldEditorToolStripMenuItem});
+ this.overworldEditorToolStripMenuItem,
+ this.tradeEditorToolStripMenuItem});
this.otherEditorsToolStripMenuItem.Enabled = false;
this.otherEditorsToolStripMenuItem.Name = "otherEditorsToolStripMenuItem";
this.otherEditorsToolStripMenuItem.Size = new System.Drawing.Size(88, 20);
@@ -3975,6 +3988,13 @@
this.overworldEditorToolStripMenuItem.Text = "Overworld Editor";
this.overworldEditorToolStripMenuItem.Click += new System.EventHandler(this.overworldEditorToolStripMenuItem_Click);
//
+ // tradeEditorToolStripMenuItem
+ //
+ this.tradeEditorToolStripMenuItem.Name = "tradeEditorToolStripMenuItem";
+ this.tradeEditorToolStripMenuItem.Size = new System.Drawing.Size(174, 22);
+ this.tradeEditorToolStripMenuItem.Text = "Trade Editor";
+ this.tradeEditorToolStripMenuItem.Click += new System.EventHandler(this.tradeEditorToolStripMenuItem_Click);
+ //
// aboutToolStripMenuItem1
//
this.aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1";
@@ -4476,6 +4496,7 @@
this.trainerEditorTabPage.ResumeLayout(false);
this.trainerEditorTabPage.PerformLayout();
this.tableEditorTabPage.ResumeLayout(false);
+ this.tabPageEncountersEditor.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.gameIcon)).EndInit();
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
@@ -4819,7 +4840,6 @@
public System.Windows.Forms.TabControl mainTabControl;
public System.Windows.Forms.NumericUpDown scriptFileUpDown;
public System.Windows.Forms.TabPage tabPageEncountersEditor;
- public Editors.EncountersEditor encountersEditor;
private System.Windows.Forms.Button scanUnusedCollisionTypesButton;
private System.Windows.Forms.ToolStripMenuItem overlayEditorToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem spawnEditorToolStripMenuItem;
@@ -4834,6 +4854,7 @@
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
private System.Windows.Forms.ToolStripMenuItem flyWarpEditorToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem itemEditorToolStripMenuItem;
+ private System.Windows.Forms.ToolStripMenuItem tradeEditorToolStripMenuItem;
private System.Windows.Forms.Button popoutTextEditorButton;
private System.Windows.Forms.Label textEditorPoppedOutLabel;
private System.Windows.Forms.Button popoutLevelScriptEditorButton;
diff --git a/DS_Map/Main Window.cs b/DS_Map/Main Window.cs
index a6c98b2..1d5c232 100644
--- a/DS_Map/Main Window.cs
+++ b/DS_Map/Main Window.cs
@@ -73,6 +73,7 @@ namespace DSPRE
}
#endif
InitializeComponent();
+ Program.CloneAndSetupDatabase();
EditorPanels.Initialize(this);
Helpers.Initialize(this);
@@ -5251,7 +5252,7 @@ namespace DSPRE
}
private void exportScriptDatabaseJSONToolStripMenuItem_Click(object sender, EventArgs e)
{
- MessageBox.Show("Not implemented yet");
+ MessageBox.Show("The database JSONs can be found in AppData/Roaming/DSPRE");
}
private void generateCSVToolStripMenuItem_Click(object sender, EventArgs e)
@@ -5270,6 +5271,14 @@ namespace DSPRE
flyEditor.Show();
}
+ private void tradeEditorToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ DSUtils.TryUnpackNarcs(new List { DirNames.tradeData });
+
+ TradeEditor tradeEditor = new TradeEditor();
+ tradeEditor.Show();
+ }
+
private void itemEditorToolStripMenuItem_Click(object sender, EventArgs e)
{
Helpers.statusLabelMessage("Setting up Item Data Editor...");
diff --git a/DS_Map/Main Window.resx b/DS_Map/Main Window.resx
index 311f019..b57c838 100644
--- a/DS_Map/Main Window.resx
+++ b/DS_Map/Main Window.resx
@@ -696,6 +696,96 @@
vAAADrwBlbxySQAAAGJJREFUOE9j+P//P1bMMEXuHxD/Z5gm+x/ExqYGhLEKgjDYgAUK/8F41AD8BoAV
gkIbAwNDH24AJCawYhSFpGJQFFPBACzOAmMkg/F5AVvAgDBYEm7AaEIi3wBEwsJhwH8GAOQLbolFp0OS
AAAAAElFTkSuQmCC
+
+
+
+ 239, 17
+
+
+
+ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
+ LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
+ ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAACM
+ EgAAAk1TRnQBSQFMAgEBCgEAAfABHQHwAR0BEAEAARABAAT/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==
@@ -707,9 +797,6 @@
386, 19
-
- 533, 20
-
57
diff --git a/DS_Map/Program.cs b/DS_Map/Program.cs
index ac9f794..c56e42f 100644
--- a/DS_Map/Program.cs
+++ b/DS_Map/Program.cs
@@ -5,6 +5,7 @@ using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Velopack;
+using LibGit2Sharp;
namespace DSPRE
{
@@ -13,6 +14,7 @@ namespace DSPRE
public static string DspreDataPath { get; } = Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
"DSPRE");
+ public static string DatabasePath = Path.Combine(Program.DspreDataPath, "databases");
///
/// Punto di ingresso principale dell'applicazione.
@@ -23,7 +25,6 @@ namespace DSPRE
if (!Directory.Exists(DspreDataPath))
Directory.CreateDirectory(DspreDataPath);
-
VelopackApp.Build().Run();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
@@ -31,5 +32,28 @@ namespace DSPRE
CrashReporter.Initialize(mainProgram);
Application.Run(mainProgram);
}
+
+ public static void CloneAndSetupDatabase()
+ {
+ try
+ {
+ string repoUrl = "https://github.com/DS-Pokemon-Rom-Editor/scrcmd-database.git";
+
+
+ // Only clone if directory doesn't exist
+ if (!Directory.Exists(DatabasePath) && SettingsManager.Settings.databasesPulled == false)
+ {
+ Repository.Clone(repoUrl, DatabasePath);
+ SettingsManager.Settings.databasesPulled = true;
+ }
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show($"Failed to clone database repository: {ex.Message}",
+ "Database Setup Error",
+ MessageBoxButtons.OK,
+ MessageBoxIcon.Error);
+ }
+ }
}
}
diff --git a/DS_Map/Properties/Resources.Designer.cs b/DS_Map/Properties/Resources.Designer.cs
index f6902f2..aaa5eec 100644
--- a/DS_Map/Properties/Resources.Designer.cs
+++ b/DS_Map/Properties/Resources.Designer.cs
@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------
//
-// Ce code a été généré par un outil.
-// Version du runtime :4.0.30319.42000
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
//
-// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
-// le code est régénéré.
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
//
//------------------------------------------------------------------------------
@@ -13,12 +13,12 @@ namespace DSPRE.Properties {
///
- /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.
+ /// A strongly-typed resource class, for looking up localized strings, etc.
///
- // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
- // à l'aide d'un outil, tel que ResGen ou Visual Studio.
- // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
- // avec l'option /str ou régénérez votre projet VS.
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
@@ -33,7 +33,7 @@ namespace DSPRE.Properties {
}
///
- /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
+ /// Returns the cached ResourceManager instance used by this class.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
@@ -47,8 +47,8 @@ namespace DSPRE.Properties {
}
///
- /// Remplace la propriété CurrentUICulture du thread actuel pour toutes
- /// les recherches de ressources à l'aide de cette classe de ressource fortement typée.
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
///
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
@@ -61,7 +61,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap addIcon {
get {
@@ -71,7 +71,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap addTextureToNSBMD {
get {
@@ -81,7 +81,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap alphabgCheckerboard {
get {
@@ -91,7 +91,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Icon semblable à (Icône).
+ /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
///
internal static System.Drawing.Icon appIcon {
get {
@@ -101,7 +101,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon00 {
get {
@@ -111,7 +111,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon01 {
get {
@@ -121,7 +121,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon02 {
get {
@@ -131,7 +131,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon03 {
get {
@@ -141,7 +141,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon04 {
get {
@@ -151,7 +151,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon05 {
get {
@@ -161,7 +161,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon06 {
get {
@@ -171,7 +171,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon07 {
get {
@@ -181,7 +181,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon08 {
get {
@@ -191,7 +191,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap areaicon09 {
get {
@@ -201,7 +201,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap arrowdown {
get {
@@ -211,7 +211,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap arrowleft {
get {
@@ -221,7 +221,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap arrowright {
get {
@@ -231,7 +231,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap arrowup {
get {
@@ -241,7 +241,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap blue_sign {
get {
@@ -251,7 +251,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Byte[].
+ /// Looks up a localized resource of type System.Byte[].
///
internal static byte[] blz {
get {
@@ -261,7 +261,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap brown_sign {
get {
@@ -271,7 +271,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap buildingEditorButton {
get {
@@ -281,7 +281,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap cameraIcon {
get {
@@ -291,7 +291,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap checkmark {
get {
@@ -301,7 +301,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap compressArrow {
get {
@@ -311,7 +311,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap contentbasedRenameIcon {
get {
@@ -321,7 +321,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap copyIcon {
get {
@@ -331,7 +331,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap copyIcon_small {
get {
@@ -341,7 +341,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap Cross {
get {
@@ -351,7 +351,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dawn_platinum {
get {
@@ -361,7 +361,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dawnSpawn {
get {
@@ -371,7 +371,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap deleteIcon {
get {
@@ -381,7 +381,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap destroyLevelScript {
get {
@@ -391,7 +391,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpareaicon {
get {
@@ -401,7 +401,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpblizzard {
get {
@@ -411,7 +411,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera0 {
get {
@@ -421,7 +421,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera1 {
get {
@@ -431,7 +431,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera10 {
get {
@@ -441,7 +441,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera11 {
get {
@@ -451,7 +451,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera12 {
get {
@@ -461,7 +461,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera13 {
get {
@@ -471,7 +471,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera14 {
get {
@@ -481,7 +481,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera15 {
get {
@@ -491,7 +491,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera2 {
get {
@@ -501,7 +501,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera3 {
get {
@@ -511,7 +511,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera4 {
get {
@@ -521,7 +521,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera5 {
get {
@@ -531,7 +531,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera6 {
get {
@@ -541,7 +541,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera7 {
get {
@@ -551,7 +551,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera8 {
get {
@@ -561,7 +561,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcamera9 {
get {
@@ -571,7 +571,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpcloudy {
get {
@@ -581,7 +581,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpdark {
get {
@@ -591,7 +591,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpdiamondsnow {
get {
@@ -601,7 +601,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpfog {
get {
@@ -611,7 +611,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dphail {
get {
@@ -621,7 +621,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpheavyrain {
get {
@@ -631,7 +631,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dplightning {
get {
@@ -641,7 +641,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dplightsandstorm {
get {
@@ -651,7 +651,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpnormal {
get {
@@ -661,7 +661,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dppt_suitcase {
get {
@@ -671,7 +671,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dprain {
get {
@@ -681,7 +681,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dprocksascending {
get {
@@ -691,7 +691,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpsandfall {
get {
@@ -701,7 +701,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpsandstorm {
get {
@@ -711,7 +711,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpsnowslow {
get {
@@ -721,7 +721,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpthunderstorm {
get {
@@ -731,7 +731,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap dpthunderstorm1 {
get {
@@ -741,7 +741,17 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ ///
+ internal static System.Drawing.Bitmap DV_Icon {
+ get {
+ object obj = ResourceManager.GetObject("DV_Icon", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ ///
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap enumToListIcon {
get {
@@ -751,7 +761,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap expandArrow {
get {
@@ -761,7 +771,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap exploreKit {
get {
@@ -771,7 +781,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap exportArrow {
get {
@@ -781,7 +791,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap folderToListIcon {
get {
@@ -791,7 +801,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap folderToNarcIcon {
get {
@@ -801,7 +811,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap goToOW {
get {
@@ -811,7 +821,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap goToSpawnable {
get {
@@ -821,7 +831,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap goToTrigger {
get {
@@ -831,7 +841,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap goToWarp {
get {
@@ -841,7 +851,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap gray_sign {
get {
@@ -851,7 +861,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssArcade {
get {
@@ -861,7 +871,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera0 {
get {
@@ -871,7 +881,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera1 {
get {
@@ -881,7 +891,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera10 {
get {
@@ -891,7 +901,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera11 {
get {
@@ -901,7 +911,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera12 {
get {
@@ -911,7 +921,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera13 {
get {
@@ -921,7 +931,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera14 {
get {
@@ -931,7 +941,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera15 {
get {
@@ -941,7 +951,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera16 {
get {
@@ -951,7 +961,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera2 {
get {
@@ -961,7 +971,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera3 {
get {
@@ -971,7 +981,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera4 {
get {
@@ -981,7 +991,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera5 {
get {
@@ -991,7 +1001,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera6 {
get {
@@ -1001,7 +1011,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera7 {
get {
@@ -1011,7 +1021,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera8 {
get {
@@ -1021,7 +1031,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscamera9 {
get {
@@ -1031,7 +1041,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsscave {
get {
@@ -1041,7 +1051,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssdark {
get {
@@ -1051,7 +1061,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssdark2 {
get {
@@ -1061,7 +1071,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssdiamond {
get {
@@ -1071,7 +1081,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssfield {
get {
@@ -1081,7 +1091,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssfog {
get {
@@ -1091,7 +1101,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssforest {
get {
@@ -1101,7 +1111,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssgray {
get {
@@ -1111,7 +1121,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsslake {
get {
@@ -1121,7 +1131,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssnormal {
get {
@@ -1131,7 +1141,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssrain {
get {
@@ -1141,7 +1151,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgssrain1 {
get {
@@ -1151,7 +1161,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsssnow {
get {
@@ -1161,7 +1171,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsstown {
get {
@@ -1171,7 +1181,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsswall {
get {
@@ -1181,7 +1191,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsswater {
get {
@@ -1191,7 +1201,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap hgsswood {
get {
@@ -1201,7 +1211,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap IconItem {
get {
@@ -1211,7 +1221,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap IconPokeball {
get {
@@ -1221,7 +1231,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap IconPokeballNot {
get {
@@ -1231,7 +1241,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap importArrow {
get {
@@ -1241,7 +1251,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap LeftClick {
get {
@@ -1251,7 +1261,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap lens {
get {
@@ -1261,7 +1271,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap listbasedRenameIcon {
get {
@@ -1271,7 +1281,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap loadColorTable {
get {
@@ -1281,7 +1291,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap map_editor {
get {
@@ -1291,7 +1301,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap muteIcon {
get {
@@ -1301,7 +1311,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap narcToFolderIcon {
get {
@@ -1311,7 +1321,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Byte[].
+ /// Looks up a localized resource of type System.Byte[].
///
internal static byte[] ndstool {
get {
@@ -1321,7 +1331,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap open_file {
get {
@@ -1331,7 +1341,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap open_rom {
get {
@@ -1341,7 +1351,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap overworld {
get {
@@ -1351,7 +1361,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap overworldUnreadable {
get {
@@ -1361,7 +1371,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap pasteIcon {
get {
@@ -1371,7 +1381,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap popout {
get {
@@ -1381,7 +1391,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptblizzard {
get {
@@ -1391,7 +1401,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptblueish {
get {
@@ -1401,7 +1411,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera0 {
get {
@@ -1411,7 +1421,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera1 {
get {
@@ -1421,7 +1431,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera10 {
get {
@@ -1431,7 +1441,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera11 {
get {
@@ -1441,7 +1451,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera12 {
get {
@@ -1451,7 +1461,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera13 {
get {
@@ -1461,7 +1471,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera14 {
get {
@@ -1471,7 +1481,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera15 {
get {
@@ -1481,7 +1491,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera2 {
get {
@@ -1491,7 +1501,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera3 {
get {
@@ -1501,7 +1511,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera4 {
get {
@@ -1511,7 +1521,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera5 {
get {
@@ -1521,7 +1531,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera6 {
get {
@@ -1531,7 +1541,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera7 {
get {
@@ -1541,7 +1551,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera8 {
get {
@@ -1551,7 +1561,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcamera9 {
get {
@@ -1561,7 +1571,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptcloudy {
get {
@@ -1571,7 +1581,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptdark {
get {
@@ -1581,7 +1591,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptdarkfog {
get {
@@ -1591,7 +1601,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptdiamondsnow {
get {
@@ -1601,7 +1611,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptdim {
get {
@@ -1611,7 +1621,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptfog {
get {
@@ -1621,7 +1631,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptforestweather {
get {
@@ -1631,7 +1641,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptgreenish {
get {
@@ -1641,7 +1651,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap pthail {
get {
@@ -1651,7 +1661,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptheavyfog {
get {
@@ -1661,7 +1671,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptheavyrain {
get {
@@ -1671,7 +1681,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptlightfog {
get {
@@ -1681,7 +1691,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptlightning {
get {
@@ -1691,7 +1701,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptlightsandstorm {
get {
@@ -1701,7 +1711,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptnormal {
get {
@@ -1711,7 +1721,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptrain {
get {
@@ -1721,7 +1731,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptredish {
get {
@@ -1731,7 +1741,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptrocksascending {
get {
@@ -1741,7 +1751,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptsandfall {
get {
@@ -1751,7 +1761,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptsandstorm {
get {
@@ -1761,7 +1771,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptsnowslow {
get {
@@ -1771,7 +1781,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptspotlight {
get {
@@ -1781,7 +1791,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap ptthunderstorm {
get {
@@ -1791,7 +1801,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap questionMark {
get {
@@ -1801,7 +1811,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap red_sign {
get {
@@ -1811,7 +1821,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap removeTextureNSBMD {
get {
@@ -1821,7 +1831,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap RenameIcon {
get {
@@ -1831,7 +1841,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap resetColorTable {
get {
@@ -1841,7 +1851,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap resetIcon {
get {
@@ -1851,7 +1861,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap resetListIcon {
get {
@@ -1861,7 +1871,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap RightClick {
get {
@@ -1871,7 +1881,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap route_sign {
get {
@@ -1881,7 +1891,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap save_rom {
get {
@@ -1891,7 +1901,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap saveButton {
get {
@@ -1901,7 +1911,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap saveTextureFromNSBMD {
get {
@@ -1911,7 +1921,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap scriptDBIcon {
get {
@@ -1921,7 +1931,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap scriptDBIconDP {
get {
@@ -1931,7 +1941,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap scriptDBIconHGSS {
get {
@@ -1941,7 +1951,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap scriptDBIconPt {
get {
@@ -1951,7 +1961,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap SearchMiniIcon {
get {
@@ -1961,7 +1971,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap selectBldWithMouse {
get {
@@ -1971,7 +1981,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap sign {
get {
@@ -1981,7 +1991,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap sortAscending {
get {
@@ -1991,7 +2001,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap sortDescending {
get {
@@ -2001,7 +2011,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap spawnCoordsMatrixeditorIcon {
get {
@@ -2011,7 +2021,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap SurfIcon {
get {
@@ -2021,7 +2031,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap trainer_editor {
get {
@@ -2031,7 +2041,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap trigger {
get {
@@ -2041,7 +2051,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap unpackAllIcon {
get {
@@ -2051,7 +2061,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap unpackBuildingNarcsIcon {
get {
@@ -2061,7 +2071,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap warp {
get {
@@ -2071,7 +2081,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap warpCollision {
get {
@@ -2081,7 +2091,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap warpGo {
get {
@@ -2091,7 +2101,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap weather_editor {
get {
@@ -2101,7 +2111,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap WheelClick {
get {
@@ -2111,7 +2121,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap wideLensImage {
get {
@@ -2121,7 +2131,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap wideLensImageTransp {
get {
@@ -2131,7 +2141,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap wildEditorButton {
get {
@@ -2141,7 +2151,7 @@ namespace DSPRE.Properties {
}
///
- /// Recherche une ressource localisée de type System.Drawing.Bitmap.
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
///
internal static System.Drawing.Bitmap wrenchIcon {
get {
diff --git a/DS_Map/Properties/Resources.resx b/DS_Map/Properties/Resources.resx
index 26b0d12..c2faeb0 100644
--- a/DS_Map/Properties/Resources.resx
+++ b/DS_Map/Properties/Resources.resx
@@ -745,4 +745,7 @@
..\Resources\Graphics\Program Icons\popout.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
+ ..\Resources\Graphics\Program Icons\DV_Icon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+
\ No newline at end of file
diff --git a/DS_Map/ROMFiles/ItemData.cs b/DS_Map/ROMFiles/ItemData.cs
index ae3b57b..51e3028 100644
--- a/DS_Map/ROMFiles/ItemData.cs
+++ b/DS_Map/ROMFiles/ItemData.cs
@@ -1,5 +1,6 @@
using System;
using System.IO;
+using System.Net.Sockets;
using System.Windows.Controls.Primitives;
using static DSPRE.RomInfo;
using static Microsoft.WindowsAPICodePack.Shell.PropertySystem.SystemProperties.System;
@@ -82,14 +83,15 @@ namespace DSPRE.ROMFiles
KeyItems = 7
}
+ [Flags]
public enum BattlePocket
{
None = 0,
- PokeBalls = 1,
- BattleItems = 2,
- HpRestore = 4,
- StatusHealers = 8,
- PpRestore = 16
+ PokeBalls = 1 << 0, // 0b00001
+ BattleItems = 1 << 1, // 0b00010
+ HpRestore = 1 << 2, // 0b00100
+ StatusHealers = 1 << 3, // 0b01000
+ PpRestore = 1 << 4 // 0b10000
}
public enum HoldEffect
@@ -394,7 +396,7 @@ namespace DSPRE.ROMFiles
if (PreventToss) bitfield |= (1 << 5);
if (Selectable) bitfield |= (1 << 6);
bitfield |= (ushort)(((byte)fieldPocket & 0b1111) << 7);
- bitfield |= (ushort)(((byte)battlePocket & 0b11111) << 11);
+ bitfield |= (ushort)((bitfield & ~(0b11111 << 11)) | (((byte)battlePocket & 0b11111) << 11));
writer.Write(bitfield);
writer.Write((byte)fieldUseFunc);
diff --git a/DS_Map/ROMFiles/LearnsetData.cs b/DS_Map/ROMFiles/LearnsetData.cs
index ca44fdc..2324946 100644
--- a/DS_Map/ROMFiles/LearnsetData.cs
+++ b/DS_Map/ROMFiles/LearnsetData.cs
@@ -1,6 +1,8 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
+using System.Linq;
using DSPRE.ROMFiles;
using static DSPRE.RomInfo;
@@ -12,28 +14,37 @@ namespace DSPRE {
public readonly UniqueList<(byte level, ushort move)> list;
- public ushort[] GetLearnsetAtLevel(int atLevel) {
- ushort[] learnset = new ushort[4] {0, 0 , 0, 0};
- foreach ((ushort level, ushort move) in list)
- {
- if (level <= atLevel)
- {
- if (learnset[0] == 0) {
- learnset[0] = move;
- } else if (learnset[1] == 0) {
- learnset[1] = move;
- } else if (learnset[2] == 0) {
- learnset[2] = move;
- } else if (learnset[3] == 0) {
- learnset[3] = move;
- } else {
- learnset[0] = learnset[1];
- learnset[1] = learnset[2];
- learnset[2] = learnset[3];
- learnset[3] = move;
- }
+ public ushort[] GetLearnsetAtLevel(int atLevel)
+ {
+ List moves = new List();
+
+ foreach ((byte level, ushort move) elem in list) {
+
+ if (elem.level > atLevel) {
+ continue; // the moves should be sorted by level so we can probably break here but better safe than sorry
+ }
+
+ if (elem.move == 0) {
+ continue; // skip empty moves
+ }
+
+ if (!moves.Contains(elem.move)) {
+
+ if (moves.Count >= 4)
+ {
+ moves.RemoveAt(0);
+ }
+ moves.Add(elem.move); // add the new move to the end of the list
}
}
+
+ ushort[] learnset = moves.ToArray();
+
+ // Ensure we have exactly 4 moves, filling with 0 if necessary
+ if (learnset.Length < 4) {
+ Array.Resize(ref learnset, 4);
+ }
+
return learnset;
}
diff --git a/DS_Map/ROMFiles/ScriptCommand.cs b/DS_Map/ROMFiles/ScriptCommand.cs
index 81995bc..87a26f7 100644
--- a/DS_Map/ROMFiles/ScriptCommand.cs
+++ b/DS_Map/ROMFiles/ScriptCommand.cs
@@ -17,7 +17,10 @@ namespace DSPRE.ROMFiles {
OW_DIRECTION,
FUNCTION_ID,
ACTION_ID,
- CMD_NUMBER
+ CMD_NUMBER,
+ POKEMON_NAME,
+ ITEM_NAME,
+ MOVE_NAME
};
public ushort? id;
@@ -64,19 +67,39 @@ namespace DSPRE.ROMFiles {
break;
}
case 0x005E: // Movement
- name += $" {FormatNumber(parametersList[0], ParamTypeEnum.OW_ID)} {FormatNumber(parametersList[1], ParamTypeEnum.ACTION_ID)}";
+ name += $" {FormatNumber(parametersList[0], ParamTypeEnum.OW_ID)} {FormatNumber(parametersList[1], ParamTypeEnum.ACTION_ID)}";
break;
case 0x006A: // GetOverworldPosition
- name += FormatCmd_Overworld_TwoParams(parametersList);
+ name += FormatCmd_Overworld_TwoParams(parametersList);
break;
case 0x0062: // Lock
case 0x0063: // Release
case 0x0064: // AddOW
case 0x0065: // RemoveOW
- name += $" {FormatNumber(parametersList[0], ParamTypeEnum.OW_ID)}";
+ name += $" {FormatNumber(parametersList[0], ParamTypeEnum.OW_ID)}";
break;
case 0x006D: // SetOverworldMovement
- name += FormatCmd_Overworld_Move(parametersList);
+ name += FormatCmd_Overworld_Move(parametersList);
+ break;
+
+ case 0x004C: // PlayCry
+ name += FormatCmd_par0Pokemonpar1Generic(parametersList);
+ break;
+
+ case 0x0083: // SetStarter [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += $" {FormatNumber(parametersList[0], ParamTypeEnum.POKEMON_NAME)}";
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x0089: // GivePokemon [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_GivePokemonHGSS(parametersList);
+ } else {
+ goto default;
+ }
break;
case 0x00B0: // Warp [HGSS]
@@ -85,47 +108,215 @@ namespace DSPRE.ROMFiles {
} else {
goto default;
}
-
break;
+
+
+ case 0x008A: // GivePokemonEgg [HGSS]
+ case 0x00F9: // WildBattle [HGSS]
+ case 0x00FA: // WildBattleNoButtons [HGSS]
+ case 0x01C4: // ShowPokemonPic [HGSS]
+ case 0x0205: // CheckPokemonInParty [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_par0Pokemonpar1Generic(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x0081: // CheckItemIsMachine [HGSS]
+ case 0x0082: // GetItemPocket [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_par0Itempar1Generic(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x008B: // ReplaceMove [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_ReplaceMove(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x008C: // CheckPokemonHasMove [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_CheckPokemonHasMove(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x008D: // CheckMoveInParty [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_CheckMoveInParty(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x00C2: // TextItem [HGSS]
+ case 0x00C4: // TextMachineMove [HGSS]
+ case 0x01B0: // CheckFossilPokemon [HGSS]
+ case 0x034B: // TextItemLowercase [HGSS]
+ case 0x034C: // TextItemPlural [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_par0Genericpar1Item(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x00CA: // TextPokemon [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_TextPokemon(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x0185: // CheckBornPokemonInParty [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_par0Genericpar1Pokemon(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
case 0x0152: // SetOverworldDefaultPosition [HGSS]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
name += FormatCmd_Overworld_TwoParams(parametersList);
} else {
goto default;
}
-
break;
+
case 0x0153: // SetOverworldPosition [HGSS]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
name += FormatCmd_Overworld_3Coords_Dir(parametersList);
} else {
goto default;
}
-
break;
+
case 0x0154: // SetOverworldDefaultMovement [HGSS]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
name += FormatCmd_Overworld_Move(parametersList);
} else {
goto default;
}
-
break;
- case 0x0155: // SetOverworldDefaultDirection [DPPt]
+
+ case 0x01B1: // CheckFossil [HGSS]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
- name += FormatCmd_Overworld_Dir(parametersList);
+ name += FormatCmd_CheckFossil(parametersList);
} else {
goto default;
}
-
break;
+
+ case 0x024D: // WildBattleSp [HGSS]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_par0Pokemonpar1Genericpar2Generic(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x007E: // TakeItem [HGSS] or CheckItem [DPPt]
+ case 0x007D: // GiveItem [HGSS] or CheckItemSpace [DPPt]
+ name += FormatCmd_TakeItem(parametersList);
+ break;
+
+ case 0x007F: // CheckItemSpace [HGSS] or CheckItemIsMachine [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_TakeItem(parametersList);
+ } else if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_par0Itempar1Generic(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x0080: // CheckItem [HGSS] or GetItemPocket [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_TakeItem(parametersList);
+ } else if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_par0Itempar1Generic(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x00D3: // GetSwarmInfo [HGSS] or TextMachineMove [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += FormatCmd_par0Genericpar1Pokemon(parametersList);
+ } else if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_par0Genericpar1Item(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x007B: // GiveItem [DPPt]
+ case 0x007C: // TakeItem [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_TakeItem(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x0155: // SetOverworldDefaultDirection [DPPt]
case 0x0158: // SetOverworldDirection [DPPt]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
name += FormatCmd_Overworld_Dir(parametersList);
} else {
goto default;
}
+ break;
+ case 0x0097: // GivePokemonEgg [DPPt]
+ case 0x0124: // WildBattle [DPPt]
+ case 0x0208: // ShowPokemonPic [DPPt]
+ case 0x0262: // CheckPokemonInParty [DPPt]
+ case 0x02BD: // WildBattleSp [DPPt]
+ case 0x02DD: // GetBornPokemonPartyPos [DPPt]
+ case 0x0319: // GiratinaBattle [DPPt]
+ case 0x0337: // CheckPokemonIsSeen [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_par0Pokemonpar1Generic(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x0096: // GivePokemon [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_GivePokemonDPPt(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x0099: // CheckMove [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_CheckMove(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x009A: // CheckMoveInParty [DPPt]
+ case 0x00D4: // TextMove [DPPt]
+ case 0x0224: // TeachMoveScreen [DPPt]
+ case 0x02E7: // LearnMoveScreen [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_par0Genericpar1Move(parametersList);
+ } else {
+ goto default;
+ }
break;
case 0x00BE: // Warp [DPPt]
@@ -134,54 +325,132 @@ namespace DSPRE.ROMFiles {
} else {
goto default;
}
-
break;
+
+ case 0x00DA: // TextPokemon [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_TextPokemon(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x00E3: // GetSwarmInfo [DPPt]
+ case 0x01C0: // CheckBornPokemonInParty [DPPt]
+ case 0x0217: // GetAmitySquareAccessory [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_par0Genericpar1Pokemon(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x00D1: // TextItem [DPPt]
+ case 0x01F4: // CheckFossilPokemon [DPPt]
+ case 0x033C: // TextItemLowercase [DPPt]
+ case 0x033D: // TextItemPlural [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_par0Genericpar1Item(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x017B: // TextBerry [DPPt]
+ case 0x01F5: // CheckFossil [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_CheckFossil(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x0182: // SetBerryMulch [DPPt]
+ case 0x0183: // SetBerrySpecies [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.HGSS)) {
+ name += $" {FormatNumber(parametersList[0], ParamTypeEnum.ITEM_NAME)}";
+ } else {
+ goto default;
+ }
+ break;
+
case 0x0186: // SetOverworldDefaultPosition [DPPt]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
name += FormatCmd_Overworld_TwoParams(parametersList);
} else {
goto default;
}
-
break;
+
case 0x0187: // SetOverworldPosition [DPPt]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
name += FormatCmd_Overworld_3Coords_Dir(parametersList);
} else {
goto default;
}
-
break;
+
case 0x0188: // SetOverworldDefaultMovement [DPPt]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
name += FormatCmd_Overworld_Move(parametersList);
} else {
goto default;
}
-
break;
+
case 0x0189: // SetOverworldDefaultDirection [DPPt]
- if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
- name += FormatCmd_Overworld_Dir(parametersList);
- } else {
- goto default;
- }
-
- break;
case 0x018C: // SetOverworldDirection [DPPt]
if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
name += FormatCmd_Overworld_Dir(parametersList);
} else {
goto default;
}
+ break;
+ case 0x02E9: // ChangePartyPokemonMove [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_ChangePartyPokemonMove(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x02EA: // CheckAffordMove [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += $" {FormatNumber(parametersList[0], ParamTypeEnum.MOVE_NAME)} {FormatNumber(parametersList[1], ParamTypeEnum.MOVE_NAME)}";
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x02EB: // PayTutorShards [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += $" {FormatNumber(parametersList[0], ParamTypeEnum.MOVE_NAME)}";
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x02EC: // ShowMovePriceBoard [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += FormatCmd_ShowMovePriceBoard(parametersList);
+ } else {
+ goto default;
+ }
+ break;
+
+ case 0x031A: // RegisterSeenPokemon [DPPt]
+ if (RomInfo.gameFamily.Equals(RomInfo.GameFamilies.DP) || RomInfo.gameFamily.Equals(RomInfo.GameFamilies.Plat)) {
+ name += $" {FormatNumber(parametersList[0], ParamTypeEnum.POKEMON_NAME)}";
+ } else {
+ goto default;
+ }
break;
default:
for (int i = 0; i < parametersList.Count; i++) {
name += $" {FormatNumber(parametersList[i])}";
}
-
break;
}
@@ -208,11 +477,73 @@ namespace DSPRE.ROMFiles {
private string FormatCmd_Overworld_Dir(List parametersList) {
return $" {FormatNumber(parametersList[0], ParamTypeEnum.OW_ID)} {FormatNumber(parametersList[1], ParamTypeEnum.OW_DIRECTION)}";
}
+ // generic formatting command for playcry, showpokemonpic etc, first param is species, second param is a generic integer
+ private string FormatCmd_par0Pokemonpar1Generic(List parametersList) {
+ return $" {FormatNumber(parametersList[0], ParamTypeEnum.POKEMON_NAME)} {FormatNumber(parametersList[1])}";
+ }
+ private string FormatCmd_par0Itempar1Generic(List parametersList) {
+ return $" {FormatNumber(parametersList[0], ParamTypeEnum.ITEM_NAME)} {FormatNumber(parametersList[1])}";
+ }
+ private string FormatCmd_par0Genericpar1Item(List parametersList)
+ {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1], ParamTypeEnum.ITEM_NAME)}";
+ }
+ private string FormatCmd_par0Genericpar1Pokemon(List parametersList) {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1], ParamTypeEnum.POKEMON_NAME)}";
+ }
+ private string FormatCmd_par0Pokemonpar1Genericpar2Generic(List parametersList) {
+ return $" {FormatNumber(parametersList[0], ParamTypeEnum.POKEMON_NAME)} {FormatNumber(parametersList[1])} {FormatNumber(parametersList[2])}";
+ }
+ private string FormatCmd_TakeItem(List parametersList) {
+ return $" {FormatNumber(parametersList[0], ParamTypeEnum.ITEM_NAME)} {FormatNumber(parametersList[1])} {FormatNumber(parametersList[2])}";
+ }
+ private string FormatCmd_ReplaceMove(List parametersList) {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1])} {FormatNumber(parametersList[2], ParamTypeEnum.MOVE_NAME)}";
+ }
+ private string FormatCmd_CheckPokemonHasMove(List parametersList)
+ {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1], ParamTypeEnum.MOVE_NAME)} {FormatNumber(parametersList[2])}";
+ }
+ private string FormatCmd_CheckMoveInParty(List parametersList)
+ {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1], ParamTypeEnum.MOVE_NAME)}";
+ }
+ private string FormatCmd_TextPokemon(List parametersList) {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1], ParamTypeEnum.POKEMON_NAME)} {FormatNumber(parametersList[2])} {FormatNumber(parametersList[3])}";
+ }
+ private string FormatCmd_GivePokemonHGSS(List parametersList) {
+ return $" {FormatNumber(parametersList[0], ParamTypeEnum.POKEMON_NAME)} {FormatNumber(parametersList[1])} {FormatNumber(parametersList[2], ParamTypeEnum.ITEM_NAME)} {FormatNumber(parametersList[3])} {FormatNumber(parametersList[4])} {FormatNumber(parametersList[5])}";
+ }
+ private string FormatCmd_GivePokemonDPPt(List parametersList) {
+ return $" {FormatNumber(parametersList[0], ParamTypeEnum.POKEMON_NAME)} {FormatNumber(parametersList[1])} {FormatNumber(parametersList[2], ParamTypeEnum.ITEM_NAME)} {FormatNumber(parametersList[3])}";
+ }
+ private string FormatCmd_CheckFossil(List parametersList)
+ {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1], ParamTypeEnum.ITEM_NAME)} {FormatNumber(parametersList[2])}";
+ }
+ private string FormatCmd_CheckMove(List parametersList)
+ {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1], ParamTypeEnum.MOVE_NAME)} {FormatNumber(parametersList[2])}";
+ }
+ private string FormatCmd_par0Genericpar1Move(List parametersList)
+ {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1], ParamTypeEnum.MOVE_NAME)}";
+ }
+ private string FormatCmd_ChangePartyPokemonMove(List parametersList)
+ {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1])} {FormatNumber(parametersList[2], ParamTypeEnum.MOVE_NAME)}";
+ }
+ private string FormatCmd_ShowMovePriceBoard(List parametersList)
+ {
+ return $" {FormatNumber(parametersList[0])} {FormatNumber(parametersList[1])} {FormatNumber(parametersList[2], ParamTypeEnum.MOVE_NAME)} {FormatNumber(parametersList[3])}";
+ }
+
public ScriptCommand(string wholeLine, int lineNumber = 0) {
name = wholeLine;
cmdParams = new List();
- string[] nameParts = wholeLine.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); // Separate command code from parameters
+ var processedLine = ProcessBracketedItems(wholeLine);
+ string[] nameParts = processedLine.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); // Separate command code from parameters
/* Get command id, which is always first in the description */
if (RomInfo.ScriptCommandNamesReverseDict.TryGetValue(nameParts[0].ToLower(), out ushort cmdID)) {
@@ -241,7 +572,7 @@ namespace DSPRE.ROMFiles {
int paramLength = 0;
int paramsProcessed = 0;
- if (parametersSizeArr.First() == 0xFF) {
+ if (parametersSizeArr.Length > 0 && parametersSizeArr.First() == 0xFF) {
int firstParamValue = int.Parse(nameParts[1].PurgeSpecial(ScriptFile.specialChars), nameParts[1].GetNumberStyle());
byte firstParamSize = parametersSizeArr[1];
@@ -315,35 +646,75 @@ namespace DSPRE.ROMFiles {
int result = 0;
- try {
+ try
+ {
result = int.Parse(nameParts[i + 1], numStyle);
- } catch {
- if (string.IsNullOrWhiteSpace(nameParts[i + 1])) {
- MessageBox.Show($"You must specify an Overworld ID, Script, Function or Action number.\n\n" +
- $"Line {lineNumber}: {wholeLine}", "Unspecified identifier", MessageBoxButtons.OK, MessageBoxIcon.Error);
- id = null;
- } else {
- var first = ScriptDatabase.specialOverworlds.FirstOrDefault(x => x.Value.IgnoreCaseEquals(nameParts[i + 1]));
-
- if (string.IsNullOrWhiteSpace(first.Value)) {
- var res = ScriptDatabase.overworldDirections.FirstOrDefault(x => x.Value.IgnoreCaseEquals(nameParts[i + 1]));
-
- if (string.IsNullOrWhiteSpace(res.Value)) {
- MessageBox.Show($"Argument {nameParts[i + 1]} couldn't be parsed as a valid Condition, Overworld ID, Direction ID, Script, Function or Action number.\n\n" +
- $"Line {lineNumber}: {wholeLine}", "Invalid identifier", MessageBoxButtons.OK, MessageBoxIcon.Error);
- id = null;
- } else {
- result = res.Key;
- }
- } else {
+ }
+ catch (FormatException)
+ {
+ try
+ {
+ string paramToCheck = RestoreSpaces(nameParts[i + 1]);
+ var first = ScriptDatabase.specialOverworlds.FirstOrDefault(x => x.Value.IgnoreCaseEquals(paramToCheck));
+ if (!string.IsNullOrWhiteSpace(first.Value))
+ {
result = first.Key;
}
+ else
+ {
+ var direction = ScriptDatabase.overworldDirections.FirstOrDefault(x => x.Value.IgnoreCaseEquals(paramToCheck));
+ if (!string.IsNullOrWhiteSpace(direction.Value))
+ {
+ result = direction.Key;
+ }
+ else
+ {
+ var pokemon = ScriptDatabase.pokemonNames.FirstOrDefault(x => x.Value.IgnoreCaseEquals(paramToCheck));
+ if (!string.IsNullOrWhiteSpace(pokemon.Value))
+ {
+ result = pokemon.Key;
+ }
+ else
+ {
+ var item = ScriptDatabase.itemNames.FirstOrDefault(x => x.Value.IgnoreCaseEquals(paramToCheck));
+ if (!string.IsNullOrWhiteSpace(item.Value))
+ {
+ result = item.Key;
+ }
+ else
+ {
+ var move = ScriptDatabase.moveNames.FirstOrDefault(x => x.Value.IgnoreCaseEquals(paramToCheck));
+ if (!string.IsNullOrWhiteSpace(move.Value))
+ {
+ result = move.Key;
+ }
+ else
+ {
+ MessageBox.Show($"Argument {paramToCheck} couldn't be parsed as a valid Condition, Overworld ID, Direction ID, Pokemon ID, Item ID, Move ID, Script, Function or Action number.\n\n" +
+ $"Line {lineNumber}: {wholeLine}", "Invalid identifier", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ id = null;
+ return;
+ }
+ }
+ }
+ }
+ }
+ }
+ catch (ArgumentException ex)
+ {
+ MessageBox.Show($"{ex.Message}\n\nLine {lineNumber}: {wholeLine}",
+ "Invalid syntax", MessageBoxButtons.OK, MessageBoxIcon.Error);
+ id = null;
+ return;
}
}
- try {
+ try
+ {
cmdParams.Add(result.ToByteArrayChooseSize(parametersSizeArr[i]));
- } catch (OverflowException) {
+ }
+ catch (OverflowException)
+ {
MessageBox.Show($"Argument {nameParts[i + 1]} at line {lineNumber} is not in the range [0, {Math.Pow(2, 8 * parametersSizeArr[i]) - 1}].", "Argument error", MessageBoxButtons.OK, MessageBoxIcon.Error);
id = null;
}
@@ -357,6 +728,155 @@ namespace DSPRE.ROMFiles {
}
}
+ private string ProcessBracketedItems(string line)
+ {
+ // Early exit if no brackets
+ if (!line.Contains('[')) return line;
+
+ StringBuilder result = new StringBuilder(line);
+ int currentPos = 0;
+
+ while (true)
+ {
+ int start = result.ToString().IndexOf('[', currentPos);
+ if (start == -1) break;
+
+ int end = result.ToString().IndexOf(']', start);
+ if (end == -1) break;
+
+ // Process only the current bracket pair
+ for (int i = start + 1; i < end; i++)
+ {
+ if (result[i] == ' ')
+ {
+ result[i] = '§';
+ }
+ }
+
+ currentPos = end + 1;
+ }
+
+ return result.ToString();
+ }
+
+ private int LevenshteinDistance(string s1, string s2)
+ {
+ int[,] d = new int[s1.Length + 1, s2.Length + 1];
+
+ for (int i = 0; i <= s1.Length; i++)
+ d[i, 0] = i;
+ for (int j = 0; j <= s2.Length; j++)
+ d[0, j] = j;
+
+ for (int i = 1; i <= s1.Length; i++)
+ {
+ for (int j = 1; j <= s2.Length; j++)
+ {
+ int cost = (s2[j - 1] == s1[i - 1]) ? 0 : 1;
+ d[i, j] = Math.Min(Math.Min(
+ d[i - 1, j] + 1,
+ d[i, j - 1] + 1),
+ d[i - 1, j - 1] + cost);
+ }
+ }
+ return d[s1.Length, s2.Length];
+ }
+
+ private string FindClosestMatch(string input, IEnumerable possibilities, int threshold = 3)
+ {
+ // Remove brackets and spaces for comparison
+ input = input.Trim('[', ']').Replace(" ", "").ToLower();
+
+ var closest = possibilities
+ .Select(x => new {
+ Name = x,
+ Distance = LevenshteinDistance(
+ input,
+ x.Replace(" ", "").ToLower()
+ )
+ })
+ .Where(x => x.Distance <= threshold)
+ .OrderBy(x => x.Distance)
+ .FirstOrDefault();
+
+ return closest?.Name;
+ }
+
+ private string RestoreSpaces(string parameter)
+ {
+ if (!parameter.StartsWith("[") || !parameter.EndsWith("]"))
+ return parameter;
+
+ string content = parameter.Substring(1, parameter.Length - 2);
+
+ // First restore any § back to spaces for comparison
+ string contentWithSpaces = content.Replace("§", " ");
+
+ // Check for Pokemon names first
+ var pokemon = ScriptDatabase.pokemonNames.FirstOrDefault(x =>
+ x.Value.IgnoreCaseEquals(contentWithSpaces));
+ if (!string.IsNullOrWhiteSpace(pokemon.Value))
+ {
+ return pokemon.Value;
+ }
+
+ // Then check for Item names
+ var item = ScriptDatabase.itemNames.FirstOrDefault(x =>
+ x.Value.IgnoreCaseEquals(contentWithSpaces));
+ if (!string.IsNullOrWhiteSpace(item.Value))
+ {
+ return item.Value;
+ }
+
+ // Then check for Move names
+ var move = ScriptDatabase.moveNames.FirstOrDefault(x =>
+ x.Value.IgnoreCaseEquals(contentWithSpaces));
+ if (!string.IsNullOrWhiteSpace(move.Value))
+ {
+ return move.Value;
+ }
+
+ // If it's a number in brackets, provide suggestions
+ if (int.TryParse(content, out int numericValue))
+ {
+ string suggestion = "";
+ if (ScriptDatabase.itemNames.TryGetValue((ushort)numericValue, out string itemName))
+ {
+ suggestion = $"\nDid you mean [{itemName}]?";
+ }
+ else if (ScriptDatabase.pokemonNames.TryGetValue((ushort)numericValue, out string pokemonName))
+ {
+ suggestion = $"\nDid you mean [{pokemonName}]?";
+ }
+ else if (ScriptDatabase.moveNames.TryGetValue((ushort)numericValue, out string moveName))
+ {
+ suggestion = $"\nDid you mean [{moveName}]?";
+ }
+ throw new ArgumentException($"Invalid syntax: Numbers should not be wrapped in brackets: '{parameter}'{suggestion}");
+ }
+
+ string closestItem = FindClosestMatch(contentWithSpaces, ScriptDatabase.itemNames.Values);
+ if (!string.IsNullOrWhiteSpace(closestItem))
+ {
+ throw new ArgumentException($"'{parameter}' is not a valid Item name.\nDid you mean [{closestItem}]?");
+ }
+
+ string closestPokemon = FindClosestMatch(contentWithSpaces, ScriptDatabase.pokemonNames.Values);
+ if (!string.IsNullOrWhiteSpace(closestPokemon))
+ {
+ throw new ArgumentException($"'{parameter}' is not a valid Pokemon name.\nDid you mean [{closestPokemon}]?");
+ }
+
+ string closestMove = FindClosestMatch(contentWithSpaces, ScriptDatabase.moveNames.Values);
+ if (!string.IsNullOrWhiteSpace(closestMove))
+ {
+ throw new ArgumentException($"'{parameter}' is not a valid Move name.\nDid you mean [{closestMove}]?");
+ }
+
+ return contentWithSpaces;
+ }
+
+
private string FormatNumber(byte[] par, ParamTypeEnum paramType = ParamTypeEnum.INTEGER) {
//number acquisition
uint num;
@@ -426,6 +946,53 @@ namespace DSPRE.ROMFiles {
outp += $"Direction.";
}
+ goto default;
+ }
+ }
+ case ParamTypeEnum.POKEMON_NAME:
+ {
+ if (ScriptDatabase.pokemonNames.TryGetValue((ushort)num, out string output))
+ {
+ return $"[{output}]"; // Return the already-bracketed name directly
+ }
+ else
+ {
+ if (num < 4000)
+ {
+ outp += $"Pokemon.";
+ }
+ goto default;
+ }
+ }
+ case ParamTypeEnum.ITEM_NAME:
+ {
+ if (ScriptDatabase.itemNames.TryGetValue((ushort)num, out string output))
+ {
+ return $"[{output}]";
+ }
+ else
+ {
+ if (num < 4000)
+ {
+ outp += $"Item.";
+ }
+
+ goto default;
+ }
+ }
+ case ParamTypeEnum.MOVE_NAME:
+ {
+ if (ScriptDatabase.moveNames.TryGetValue((ushort)num, out string output))
+ {
+ return $"[{output}]";
+ }
+ else
+ {
+ if (num < 4000)
+ {
+ outp += $"Move.";
+ }
+
goto default;
}
}
diff --git a/DS_Map/ROMFiles/TradeData.cs b/DS_Map/ROMFiles/TradeData.cs
new file mode 100644
index 0000000..d6ec594
--- /dev/null
+++ b/DS_Map/ROMFiles/TradeData.cs
@@ -0,0 +1,145 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using static DSPRE.RomInfo;
+
+namespace DSPRE.ROMFiles
+{
+ internal class TradeData : RomFile
+ {
+
+ public int id;
+
+ // TradeData structure in narc
+ public int species;
+ public int hpIV;
+ public int atkIV;
+ public int defIV;
+ public int speedIV;
+ public int spAtkIV;
+ public int spDefIV;
+ public int ability; // unused
+ public int otID;
+ public int cool;
+ public int beauty;
+ public int cute;
+ public int smart;
+ public int tough;
+ public int pid;
+ public int heldItem;
+ public int otGender;
+ public int sheen;
+ public int language;
+ public int requestedSpecies;
+ public int unknown; // unused?
+
+ public TradeData(int id, Stream stream)
+ {
+ this.id = id;
+ using (BinaryReader br = new BinaryReader(stream))
+ {
+ species = br.ReadInt32();
+ hpIV = br.ReadInt32();
+ atkIV = br.ReadInt32();
+ defIV = br.ReadInt32();
+ speedIV = br.ReadInt32();
+ spAtkIV = br.ReadInt32();
+ spDefIV = br.ReadInt32();
+ ability = br.ReadInt32(); // appears unused
+ otID = br.ReadInt32();
+ cool = br.ReadInt32();
+ beauty = br.ReadInt32();
+ cute = br.ReadInt32();
+ smart = br.ReadInt32();
+ tough = br.ReadInt32();
+ pid = br.ReadInt32();
+ heldItem = br.ReadInt32();
+ otGender = br.ReadInt32();
+ sheen = br.ReadInt32();
+ language = br.ReadInt32();
+ requestedSpecies = br.ReadInt32();
+
+ if (RomInfo.gameFamily == GameFamilies.HGSS)
+ {
+ unknown = br.ReadInt32(); // unused?
+ }
+
+ }
+ }
+
+ public TradeData(int id) : this(id, GetStream(id)) { }
+
+ private static Stream GetStream(int id)
+ {
+
+ if (!File.Exists(RomInfo.gameDirs[DirNames.tradeData].unpackedDir + "\\" + id.ToString("D4")))
+ {
+ // If the file does not exist, create it with default values
+ FileStream fileStream = new FileStream(RomInfo.gameDirs[DirNames.tradeData].unpackedDir + "\\" + id.ToString("D4"), FileMode.Create);
+ fileStream.Write(new byte[0x50], 0, 0x50); // create an empty file
+ if (RomInfo.gameFamily == GameFamilies.HGSS)
+ {
+ fileStream.Write(new byte[0x04], 0, 0x04); // HGSS only
+ }
+ fileStream.Seek(0, SeekOrigin.Begin); // Reset the position to the start of the file
+ return fileStream;
+ }
+
+ return new FileStream(RomInfo.gameDirs[DirNames.tradeData].unpackedDir + "\\" + id.ToString("D4"), FileMode.Open);
+
+ }
+
+ public override byte[] ToByteArray()
+ {
+ using (MemoryStream ms = new MemoryStream())
+ using (BinaryWriter bw = new BinaryWriter(ms))
+ {
+ bw.Write(species);
+ bw.Write(hpIV);
+ bw.Write(atkIV);
+ bw.Write(defIV);
+ bw.Write(speedIV);
+ bw.Write(spAtkIV);
+ bw.Write(spDefIV);
+ bw.Write(ability); // unused
+ bw.Write(otID);
+ bw.Write(cool);
+ bw.Write(beauty);
+ bw.Write(cute);
+ bw.Write(smart);
+ bw.Write(tough);
+ bw.Write(pid);
+ bw.Write(heldItem);
+ bw.Write(otGender);
+ bw.Write(sheen);
+ bw.Write(language);
+ bw.Write(requestedSpecies);
+
+ if (RomInfo.gameFamily == GameFamilies.HGSS)
+ {
+ bw.Write(unknown); // HGSS only
+ }
+
+ return ms.ToArray();
+ }
+ }
+
+ public void SaveToFileDefaultDir(int IDtoReplace, bool showSuccessMessage = true)
+ {
+ SaveToFileDefaultDir(DirNames.tradeData, IDtoReplace, showSuccessMessage);
+ }
+ public void SaveToFileExplorePath(string suggestedFileName, bool showSuccessMessage = true)
+ {
+ SaveToFileExplorePath("Gen IV Trade data", "bin", suggestedFileName, showSuccessMessage);
+ }
+
+ public static int GetTradeCount()
+ {
+ return Directory.GetFiles(RomInfo.gameDirs[DirNames.tradeData].unpackedDir, "*.*").Length;
+ }
+
+ }
+}
diff --git a/DS_Map/Resources/PokeDatabase.cs b/DS_Map/Resources/PokeDatabase.cs
index a5d0418..78a5dfa 100644
--- a/DS_Map/Resources/PokeDatabase.cs
+++ b/DS_Map/Resources/PokeDatabase.cs
@@ -1805,7 +1805,7 @@ namespace DSPRE.Resources {
/* 213 */ "Camouflage effect",
/* 214 */ "Roost effect",
/* 215 */ "Gravity effect",
- /* 216 */ "2x power if target is asleep; wakes up target",
+ /* 216 */ "Miracle Eye effect",
/* 217 */ "Wake-Up Slap effect",
/* 218 */ "Lowers user's Spd",
/* 219 */ "Power = min(150; (25 x Target's Current Speed / User's Current Speed) + 1)",
diff --git a/DS_Map/Resources/ScriptDatabase.cs b/DS_Map/Resources/ScriptDatabase.cs
index 2208ff2..cb0cb46 100644
--- a/DS_Map/Resources/ScriptDatabase.cs
+++ b/DS_Map/Resources/ScriptDatabase.cs
@@ -1,19 +1,120 @@
-using DSPRE.ROMFiles;
+using DSPRE;
+using DSPRE.Resources;
+using DSPRE.ROMFiles;
using System;
using System.Collections.Generic;
+using System.IO;
using System.Linq;
using System.Text;
+using System.Text.Json;
using System.Threading.Tasks;
+using System.Xml.Linq;
+using static DSPRE.RomInfo;
+
+public static class ScriptDatabaseJsonLoader
+{
+ ///
+ /// Call this once at startup (before any script‐lookups).
+ ///
+ public static void InitializeFromJson(string jsonPath, GameVersions gameVersion)
+ {
+ string expandedPath = Environment.ExpandEnvironmentVariables(jsonPath);
+ string text = File.ReadAllText(expandedPath);
+ JsonDocument doc = JsonDocument.Parse(text);
+ try
+ {
+ JsonElement root = doc.RootElement;
+
+ ScriptDatabase.movementsDictIDName = root
+ .GetProperty("movements")
+ .EnumerateObject()
+ .ToDictionary(
+ prop => Convert.ToUInt16(prop.Name.Substring(2), 16),
+ prop => prop.Value.GetString()
+ );
+
+ ScriptDatabase.comparisonOperatorsDict = root
+ .GetProperty("comparisonOperators")
+ .EnumerateObject()
+ .ToDictionary(
+ prop => Convert.ToUInt16(prop.Name.Substring(2), 16),
+ prop => prop.Value.GetString()
+ );
+
+ ScriptDatabase.specialOverworlds = root
+ .GetProperty("specialOverworlds")
+ .EnumerateObject()
+ .ToDictionary(
+ prop => Convert.ToUInt16(prop.Name.Substring(2), 16),
+ prop => prop.Value.GetString()
+ );
+
+ ScriptDatabase.overworldDirections = root
+ .GetProperty("overworldDirections")
+ .EnumerateObject()
+ .ToDictionary(
+ prop => (byte)Convert.ToUInt16(prop.Name.Substring(2), 16),
+ prop => prop.Value.GetString()
+ );
+
+ Dictionary namesDict;
+ Dictionary paramsDict;
+
+ switch (gameVersion)
+ {
+ case GameVersions.Platinum:
+ namesDict = ScriptDatabase.PlatScrCmdNames;
+ paramsDict = ScriptDatabase.PlatScrCmdParameters;
+ break;
+
+ case GameVersions.Diamond:
+ case GameVersions.Pearl:
+ namesDict = ScriptDatabase.DPScrCmdNames;
+ paramsDict = ScriptDatabase.DPScrCmdParameters;
+ break;
+
+ case GameVersions.HeartGold:
+ case GameVersions.SoulSilver:
+ namesDict = ScriptDatabase.HGSSScrCmdNames;
+ paramsDict = ScriptDatabase.HGSSScrCmdParameters;
+ break;
+
+ default:
+ throw new ArgumentOutOfRangeException(nameof(gameVersion), gameVersion, "Unsupported game");
+ }
+
+ JsonElement scrRoot;
+ if (!root.TryGetProperty("scrcmd", out scrRoot))
+ throw new InvalidOperationException("JSON is missing the \"scrcmd\" key");
+
+ Console.WriteLine("About to load scrcmd entries:");
+ foreach (JsonProperty prop in scrRoot.EnumerateObject())
+ {
+ ushort code = Convert.ToUInt16(prop.Name.Substring(2), 16);
+ JsonElement entry = prop.Value;
+
+ string name = entry.GetProperty("name").GetString();
+ namesDict[code] = name;
+
+ var arr = entry.GetProperty("parameters");
+ byte[] bytes = arr
+ .EnumerateArray()
+ .Select(x => (byte)x.GetInt32())
+ .ToArray();
+ paramsDict[code] = bytes;
+ }
+ }
+ finally
+ {
+ doc.Dispose();
+ }
+ }
+}
namespace DSPRE.Resources {
public static class ScriptDatabase {
public static Dictionary comparisonOperatorsDict = new Dictionary() {
- [0] = "LESS",
- [1] = "EQUAL",
- [2] = "GREATER",
- [3] = "LESS/EQUAL",
- [4] = "GREATER/EQUAL",
- [5] = "DIFFERENT",
+ // Will be populated at runtime from json
};
public static Dictionary comparisonOperatorsGenVappendix = new Dictionary() {
/* GEN V ONLY */
@@ -22,17 +123,43 @@ namespace DSPRE.Resources {
[0xFF] = "TRUEUP"
};
public static Dictionary specialOverworlds = new Dictionary() {
- [241] = "Camera",
- [242] = "Partner",
- [253] = "Following",
- [255] = "Player"
+ // will be populated at runtime from json
};
public static Dictionary overworldDirections = new Dictionary() {
- [0] = "Up",
- [1] = "Down",
- [2] = "Left",
- [3] = "Right"
+ // Will be populated at runtime from json
};
+ public static Dictionary pokemonNames = new Dictionary()
+ {
+ // Will be populated at runtime from text archive
+ };
+ public static void InitializePokemonNames()
+ {
+ string[] names = RomInfo.GetPokemonNames();
+ pokemonNames = names.Select((name, index) => new { name, index })
+ .ToDictionary(x => (ushort)x.index, x => x.name);
+ }
+
+ public static Dictionary itemNames = new Dictionary()
+ {
+ // Will be populated at runtime from text archive
+ };
+ public static void InitializeItemNames()
+ {
+ string[] names = RomInfo.GetItemNames();
+ itemNames = names.Select((name, index) => new { name, index })
+ .ToDictionary(x => (ushort)x.index, x => x.name);
+ }
+
+ public static Dictionary moveNames = new Dictionary()
+ {
+ // Will be populated at runtime from text archive
+ };
+ public static void InitializeMoveNames()
+ {
+ string[] names = RomInfo.GetAttackNames();
+ moveNames = names.Select((name, index) => new { name, index })
+ .ToDictionary(x => (ushort)x.index, x => x.name);
+ }
public static Dictionary commandsWithRelativeJump = new Dictionary() {
//commandID, ID of parameter With Jump Address
@@ -52,3007 +179,37 @@ namespace DSPRE.Resources {
0x16,
0x1B
};
+
public static Dictionary movementsDictIDName = new Dictionary() {
- [0x0000] = "LookUp",
- [0x0001] = "LookDown",
- [0x0002] = "LookLeft",
- [0x0003] = "LookRight",
- [0x0004] = "WalkUpSlow",
- [0x0005] = "WalkDownSlow",
- [0x0006] = "WalkLeftSlow",
- [0x0007] = "WalkRightSlow",
- [0x0008] = "WalkUp",
- [0x0009] = "WalkDown",
- [0x000A] = "WalkLeft",
- [0x000B] = "WalkRight",
- [0x000C] = "WalkUpFast",
- [0x000D] = "WalkDownFast",
- [0x000E] = "WalkLeftFast",
- [0x000F] = "WalkRightFast",
- [0x0010] = "WalkUpVeryFast",
- [0x0011] = "WalkDownVeryFast",
- [0x0012] = "WalkLeftVeryFast",
- [0x0013] = "WalkRightVeryFast",
- [0x0014] = "RunUp",
- [0x0015] = "RunDown",
- [0x0016] = "RunLeft",
- [0x0017] = "RunRight",
- [0x0018] = "WalkUpSlowSite",
- [0x0019] = "WalkDownSlowSite",
- [0x001A] = "WalkLeftSlowSite",
- [0x001B] = "WalkRightSlowSite",
- [0x001C] = "WalkUpSite",
- [0x001D] = "WalkDownSite",
- [0x001E] = "WalkLeftSite",
- [0x001F] = "WalkRightSite",
- [0x0020] = "WalkUpFastSite",
- [0x0021] = "WalkDownFastSite",
- [0x0022] = "WalkLeftFastSite",
- [0x0023] = "WalkRightFastSite",
- [0x0024] = "WalkUpVeryFastSite",
- [0x0025] = "WalkDownVeryFastSite",
- [0x0026] = "WalkLeftVeryFastSite",
- [0x0027] = "WalkRightVeryFastSite",
- [0x0028] = "RunUpSite",
- [0x0029] = "RunDownSite",
- [0x002A] = "RunLeftSite",
- [0x002B] = "RunRightSite",
- [0x002C] = "JumpUpSlow",
- [0x002D] = "JumpDownSlow",
- [0x002E] = "JumpLeftSlow",
- [0x002F] = "JumpRightSlow",
- [0x0030] = "JumpUpSite",
- [0x0031] = "JumpDownSite",
- [0x0032] = "JumpLeftSite",
- [0x0033] = "JumpRightSite",
- [0x0034] = "JumpUp",
- [0x0035] = "JumpDown",
- [0x0036] = "JumpLeft",
- [0x0037] = "JumpRight",
- [0x0038] = "JumpUp2",
- [0x0039] = "JumpDown2",
- [0x003A] = "JumpLeft2",
- [0x003B] = "JumpRight2",
- [0x003C] = "Freeze1",
- [0x003D] = "Freeze2",
- [0x003E] = "Freeze4",
- [0x003F] = "Freeze8",
- [0x0040] = "Freeze15",
- [0x0041] = "Freeze16",
- [0x0042] = "Freeze32",
- [0x0043] = "TeleportUp",
- [0x0044] = "TeleportDown",
- [0x0045] = "DisappearTrue",
- [0x0046] = "DisappearFalse",
- [0x0047] = "LockDir",
- [0x0048] = "ReleaseDir",
- [0x0049] = "StopAnimation",
- [0x004A] = "ResumeAnimation",
- [0x004B] = "Exclamation",
- [0x004C] = "WaitWalkUpSlow",
- [0x004D] = "WaitWalkDownSlow",
- [0x004E] = "WaitWalkLeftSlow",//Seems to make the player run in HGSS?
- [0x004F] = "WaitWalkRightSlow",
- [0x0050] = "WaitWalkUp",
- [0x0051] = "WaitWalkDown",
- [0x0052] = "WaitWalkLeft",
- [0x0053] = "WaitWalkRight",
- [0x0054] = "WaitMoveUp",
- [0x0055] = "WaitMoveDown",
- [0x0056] = "WaitMoveLeft",
- [0x0057] = "WaitMoveRight",
- [0x0058] = "WaitWalkBackUp",
- [0x0059] = "WaitWalkBackDown",
- [0x005A] = "WaitWalkBackLeft",
- [0x005B] = "WaitWalkBackRight",
- [0x005C] = "WaitJumpLeft1",
- [0x005D] = "WaitJumpRight1",
- [0x005E] = "WaitJumpLeft2",
- [0x005F] = "WaitJumpRight2",
- [0x0064] = "WaitMoveSite",
- [0x0065] = "WaitJumpSite",
- [0x0067] = "WaitDoubleExclamation",
- [0x0068] = "WaitMoveForever",
- [0x00FE] = "End"
+ // Will be populated at runtime from json
};
public static HashSet movementEndCodes = new HashSet() {
0x00FE,
};
- public static Dictionary DPPtScrCmdNames = new Dictionary() {
- [0x0000] = "Nop",
- [0x0001] = "Dummy",
- [0x0002] = "End",
- [0x0003] = "WaitTime",
- [0x0004] = "RegValueSet",
- [0x0005] = "RegDataSet",
- [0x0006] = "RegAdrsSet",
- [0x0007] = "AdrsValueSet",
- [0x0008] = "AdrsRegSet",
- [0x0009] = "RegRegSet",
- [0x000A] = "AdrsAdrsSet",
- [0x000B] = "CompareRegs",
- [0x000C] = "CompareRegValue",
- [0x000D] = "CompareRegAdrs",
- [0x000E] = "CompareAdrsReg",
- [0x000F] = "CompareAdrsValue",
- [0x0010] = "CompareAdrsAdrs",
- [0x0011] = "CompareVarValue",
- [0x0012] = "CompareVars",
- [0x0013] = "ParallelCommonScript",
- [0x0014] = "CommonScript",
- [0x0015] = "LocalScript",
- [0x0016] = "Jump",
- [0x0017] = "JumpIfObjID",
- [0x0018] = "JumpIfEventID",
- [0x0019] = "JumpIfPlayerDir",
- [0x001A] = "Call",
- [0x001B] = "Return",
- [0x001C] = "JumpIf",
- [0x001D] = "CallIf",
- [0x001E] = "SetFlag",
- [0x001F] = "ClearFlag",
- [0x0020] = "CheckFlag",
- [0x0021] = "CheckFlagToVar",
- [0x0022] = "SetFlagFromVar",
- [0x0023] = "SetTrainerFlag",
- [0x0024] = "ClearTrainerFlag",
- [0x0025] = "CheckTrainerFlag",
- [0x0026] = "IncrementVar",
- [0x0027] = "DecrementVar",
- [0x0028] = "SetVar",
- [0x0029] = "SetVarFromVariable",
- [0x002A] = "SetVarFromFlexible",
- [0x002B] = "MessageAll",
- [0x002C] = "Message",
- [0x002D] = "MessageFlex",
- [0x002E] = "MessageNoSkip",
-
- [0x0030] = "WaitAB",
- [0x0031] = "WaitButton",
- [0x0032] = "WaitABPad",
- [0x0033] = "OpenMessage",
- [0x0034] = "CloseMessage",
- [0x0035] = "FreezeMessage",
- [0x0036] = "SetIconBoard",
- [0x0037] = "SetTextBoard",
- [0x0038] = "ShowBoard",
- [0x0039] = "WaitBoard",
- [0x003A] = "BoardMessage",
- [0x003B] = "CloseBoard",
- [0x003C] = "Menu",
-
- [0x003E] = "YesNoBox",
- [0x003F] = "DummyGuinnessBox",
- [0x0040] = "MultiStandardText",
- [0x0041] = "MultiLocalText",
- [0x0042] = "AddMultiOption",
- [0x0043] = "ShowMulti",
- [0x0044] = "ListStandardText",
- [0x0045] = "ListLocalText",
- [0x0046] = "AddListOption",
- [0x0047] = "ShowList",
- [0x0048] = "MultiColumn",
- [0x0049] = "PlayFanfare",
- [0x004A] = "StopFanfare",
- [0x004B] = "WaitFanfare",
- [0x004C] = "PlayCry",
- [0x004D] = "WaitCry",
- [0x004E] = "PlaySound",
- [0x004F] = "WaitSound",
- [0x0050] = "PlayMusic",
- [0x0051] = "StopMusic",
- [0x0052] = "PlayDefaultMusic",
- [0x0053] = "SetMusic",
- [0x0054] = "FadeOutMusic",
- [0x0055] = "FadeInMusic",
- [0x0056] = "SetMusicPauseStatus",
- [0x0057] = "PlayFieldBGM",
-
- [0x0059] = "CheckChatotCry",
- [0x005A] = "StartChatotCry",
- [0x005B] = "StopChatotCry",
- [0x005C] = "SaveChatotCry",
- [0x005D] = "LoadSpearPillarAudio",
- [0x005E] = "Movement",
- [0x005F] = "WaitMovement",
- [0x0060] = "LockAll",
- [0x0061] = "ReleaseAll",
- [0x0062] = "Lock",
- [0x0063] = "Release",
- [0x0064] = "AddOW",
- [0x0065] = "RemoveOW",
- [0x0066] = "LockCamera",
- [0x0067] = "ReleaseCamera",
- [0x0068] = "FacePlayer",
- [0x0069] = "GetPlayerPosition",
- [0x006A] = "GetOWPosition",
-
- [0x006C] = "KeepOverworld",
- [0x006D] = "SetOWMovement",
- [0x006E] = "SetFollowingOverworld",
- [0x006F] = "GiveMoney",
- [0x0070] = "TakeMoney",
- [0x0071] = "CompareMoney",
- [0x0072] = "ShowMoney",
- [0x0073] = "HideMoney",
- [0x0074] = "UpdateMoney",
- [0x0075] = "ShowCoins",
- [0x0076] = "HideCoins",
- [0x0077] = "UpdateCoins",
- [0x0078] = "CheckCoins",
- [0x0079] = "GiveCoins",
- [0x007A] = "TakeCoins",
- [0x007B] = "GiveItem",
- [0x007C] = "TakeItem",
- [0x007D] = "CheckItemSpace",
- [0x007E] = "CheckItem",
- [0x007F] = "CheckItemIsMachine",
- [0x0080] = "GetItemPocket",
- [0x0081] = "DummyGivePCItem",
- [0x0082] = "DummyCheckPCItem",
- [0x0083] = "GiveGoods",
- [0x0084] = "DummyTakeGoods",
- [0x0085] = "CheckGoodsSpace",
- [0x0086] = "DummyCheckGoods",
- [0x0087] = "GiveTrap",
- [0x0088] = "DummyTakeTrap",
- [0x0089] = "DummyCheckTrapSpace",
- [0x008A] = "DummyCheckTrap",
- [0x008B] = "DummyGiveTreasure",
- [0x008C] = "DummyTakeTreasure",
- [0x008D] = "DummyCheckTreasureSpace",
- [0x008E] = "DummyCheckTreasure",
- [0x008F] = "GiveSphere",
- [0x0090] = "DummyTakeSphere",
- [0x0091] = "DummyCheckSphereSpace",
- [0x0092] = "DummyCheckSphere",
- [0x0093] = "CheckSealAmount",
- [0x0094] = "GiveSeal",
- [0x0095] = "CheckPokemonForm",
- [0x0096] = "GivePokemon",
- [0x0097] = "GivePokemonEgg",
- [0x0098] = "ReplaceMove",
- [0x0099] = "CheckMove",
- [0x009A] = "CheckMoveInParty",
-
- [0x009C] = "DummySetWeather",
- [0x009D] = "DummyInitWeather",
- [0x009E] = "DummyUpdateWeather",
- [0x009F] = "DummyCheckMapPosition",
- [0x00A0] = "DummyCountPartyPokemon",
- [0x00A1] = "ReturnScreen",
-
- [0x00A6] = "DressPokemon",
- [0x00A7] = "DisplayDressedPokemon",
- [0x00A8] = "DisplayContestPokemon",
-
- [0x00A9] = "SealCapsuleScreen",
- [0x00AA] = "WorldMapScreen",
- [0x00AB] = "PCBoxScreen",
- [0x00AC] = "DrawUnion",
- [0x00AD] = "TrainerCaseUnion",
- [0x00AE] = "TradeUnion",
- [0x00AF] = "RecordMixingUnion",
-
- [0x00B0] = "EndGameScreen",
-
- [0x00B4] = "StarterSelectionScreen",
- [0x00B5] = "EndStarterSelectionScreen",
-
- [0x00BA] = "ChoosePlayerName",
- [0x00BB] = "ChoosePokemonNickname",
- [0x00BC] = "FadeScreen",
- [0x00BD] = "WaitFadeScreen",
- [0x00BE] = "Warp",
- [0x00BF] = "RockClimbAnimation",
- [0x00C0] = "SurfAnimation",
- [0x00C1] = "WaterfallAnimation",
- [0x00C2] = "FlyAnimation",
- [0x00C3] = "FlashAnimation",
- [0x00C4] = "DefogAnimation",
- [0x00C5] = "CutAnimation",
- [0x00C6] = "Tuxedo",
- [0x00C7] = "CheckBike",
- [0x00C8] = "RideBike",
- [0x00C9] = "CyclingRoad",
- [0x00CA] = "CheckPlayerForm",
- [0x00CB] = "SetPlayerForm",
- [0x00CC] = "UpdatePlayerForm",
- [0x00CD] = "TextPlayerName",
- [0x00CE] = "TextRivalName",
- [0x00CF] = "TextCounterpart",
- [0x00D0] = "TextPokemon",
- [0x00D1] = "TextItem",
- [0x00D2] = "TextPocket",
- [0x00D3] = "TextMachineMove",
- [0x00D4] = "TextMove",
- [0x00D5] = "TextNumber",
- [0x00D6] = "TextPokeNickname",
- [0x00D7] = "TextPoketch",
- [0x00D8] = "TextTrainer",
- [0x00D9] = "TextPlayerTrainerType",
- [0x00DA] = "TextPokemonStored",
- [0x00DB] = "TextStarterPokemon",
- [0x00DC] = "TextRivalStarter",
- [0x00DD] = "TextCounterpartStarter",
- [0x00DE] = "CheckStarter",
- [0x00DF] = "TextGoods",
- [0x00E0] = "TextTrap",
- [0x00E1] = "TextTreasure",
- [0x00E2] = "TextMapName",
- [0x00E3] = "GetSwarmInfo",
- [0x00E4] = "TrainerID",
- [0x00E5] = "TrainerBattle",
- [0x00E6] = "TrainerMessage",
- [0x00E7] = "TrainerMsgCheck",
- [0x00E8] = "TrainerRematchMsgCheck",
- [0x00E9] = "TrainerTypeCheck",
- [0x00EA] = "TrainerMusic",
- [0x00EB] = "LostBattle",
- [0x00EC] = "CheckBattleIsLost",
- [0x00ED] = "CheckDefeatedPokemon",
- [0x00EE] = "Check2vs2",
- [0x00EF] = "DummyTrainerBattle",
- [0x00F0] = "DummyTrainerFlag",
- [0x00F1] = "DummyTrainerFlagJump",
-
- [0x00F7] = "PokemonContest",
-
- [0x0111] = "FlashContest",
- [0x0112] = "EndFlash",
- [0x0116] = "ShowLinkCountRecord",
-
- [0x0119] = "CheckPokerus",
- [0x011A] = "GetPokemonGender",
- [0x011B] = "SetWarpData",
- [0x011C] = "GetElevatorFloor",
- [0x011D] = "ElevatorBox",
- [0x011E] = "CountSinnohDexSeen",
- [0x011F] = "CountSinnohDexObtained",
- [0x0120] = "CountNationalDexSeen",
- [0x0121] = "CountNationalDexObtained",
- [0x0122] = "DummyNationalDexCheck",
- [0x0123] = "GetDexProgressMsg",
- [0x0124] = "WildBattle",
- [0x0125] = "FirstBattle",
- [0x0126] = "CatchTutorial",
- [0x0127] = "UpdateHoneyTree",
- [0x0128] = "CheckHoneyTree",
- [0x0129] = "HoneyTreeBattle",
- [0x012A] = "StopHoneyTreeAnimation",
- [0x012B] = "SignatureScreen",
- [0x012C] = "CheckSaveGame",
- [0x012D] = "SaveGame",
- [0x012E] = "CheckPortrait",
- [0x012F] = "CheckContestPortrait",
-
- [0x0131] = "GivePoketch",
- [0x0132] = "PoketchFlag",
- [0x0133] = "GivePoketchApp",
- [0x0134] = "CheckPoketchApp",
-
- [0x0147] = "MartScreen",
- [0x0148] = "SpMartScreen",
- [0x0149] = "GoodsMartScreen",
- [0x014A] = "SealMartScreen",
- [0x014B] = "DummyLostBattle",
- [0x014C] = "SetLastWarp",
- [0x014D] = "CheckPlayerGender",
- [0x014E] = "HealPokemon",
- [0x014F] = "DummyUnderground",
-
- [0x0152] = "SetPlayerDirComm",
-
- [0x0157] = "CheckPokedex",
- [0x0158] = "GivePokedex",
- [0x0159] = "CheckShoes",
- [0x015A] = "GiveShoes",
- [0x015B] = "CheckBadge",
- [0x015C] = "GiveBadge",
- [0x015D] = "CountBadges",
- [0x015E] = "CheckBag",
- [0x015F] = "GiveBag",
- [0x0160] = "CheckPartner",
- [0x0161] = "SetPartner",
- [0x0162] = "ClearPartner",
- [0x0163] = "CheckStepFlag",
- [0x0164] = "SetStepFlag",
- [0x0165] = "ClearStepFlag",
- [0x0166] = "CheckGameIsCompleted",
- [0x0167] = "GameCompleted",
- [0x0168] = "DoorAnimation",
- [0x0169] = "WaitDoor",
- [0x016A] = "FreeDoor",
- [0x016B] = "OpenDoor",
- [0x016C] = "CloseDoor",
- [0x016D] = "GetDaycareNames",
- [0x016E] = "GetDaycareStatus",
- [0x016F] = "InitPastoriaGym",
- [0x0170] = "PastoriaGymButton",
- [0x0171] = "InitHearthomeGym",
- [0x0172] = "HearthomeGymLift",
- [0x0173] = "InitCanalaveGym",
- [0x0174] = "InitVeilstoneGym",
- [0x0175] = "InitSunyshoreGym",
- [0x0176] = "SunyshoreGymGear",
- [0x0177] = "GetPartyCount",
- [0x0178] = "BagScreen",
- [0x0179] = "GetBagSelection",
- [0x017A] = "CheckPocketItems",
- [0x017B] = "TextBerry",
- [0x017C] = "TextNature",
- [0x017D] = "GetBerryGrowth",
- [0x017E] = "GetBerrySpecies",
- [0x017F] = "GetBerryMulch",
- [0x0180] = "GetBerryDryness",
- [0x0181] = "CheckBerryAmount",
- [0x0182] = "SetBerryMulch",
- [0x0183] = "SetBerrySpecies",
- [0x0184] = "WateringAnimation",
- [0x0185] = "HarvestBerries",
- [0x0186] = "SetOWDefaultPosition",
- [0x0187] = "SetOWPosition",
- [0x0188] = "SetOWDefaultMovement",
- [0x0189] = "SetOWDefaultDirection",
- [0x018A] = "SetWarpPosition",
- [0x018B] = "SetSpawnablePosition",
- [0x018C] = "SetOWDirection",
-
- [0x0190] = "WaitTimeOrAB",
- [0x0191] = "PokemonSelectionScreen",
-
- [0x0193] = "GetSelectedPartySlot",
- [0x0198] = "GetPartyPokemonID",
- [0x0199] = "CheckTradedPokemon",
- [0x019A] = "CountPartyBornPokemon",
- [0x019B] = "CountRemainingPokemon",
- [0x019C] = "CountTotalAlivePokemon",
- [0x019D] = "CountPartyEggs",
-
- [0x01A3] = "TakeMoneyFlex",
-
- [0x01AB] = "CompareMoneyFlex",
- [0x01AC] = "EggHatchScreen", //This command is dangerous when used without an egg in party
- [0x01AD] = "DummyDaycare",
- [0x01AE] = "CheckDaycareLevel",
-
- [0x01B1] = "UnvanishOverworld",
- [0x01B2] = "VanishOverworld",
- [0x01B3] = "MailScreen",
- [0x01B4] = "CountMail",
-
- [0x01B6] = "GetTimePeriod",
- [0x01B7] = "GetRandom",
- [0x01B8] = "DummyGetRandom",
- [0x01B9] = "GetPokemonHappiness",
- [0x01BA] = "AddHappiness",
- [0x01BB] = "SubHappiness",
-
- [0x01BD] = "GetPlayerDirection",
-
- [0x01C0] = "CheckBornPokemonInParty",
- [0x01C1] = "ComparePokemonPlayerSize",
- [0x01C2] = "SetPokemonSizeRecord",
- [0x01C3] = "TextPartyPokemonSize",
- [0x01C4] = "TextPokemonSizeRecord",
- [0x01C5] = "InitPokemonSizeRecord",
-
- [0x01C8] = "GetMoveCount",
- [0x01C9] = "DeleteMove",
- [0x01CA] = "GetPartyPokemonMove",
- [0x01CB] = "TextPartyPokemonMove",
-
- [0x01CD] = "CreateJournalData",
-
- [0x01CF] = "Strength",
- [0x01D0] = "Flash",
- [0x01D1] = "Defog",
-
- [0x01E8] = "CheckCompleteSinnohDex",
- [0x01E9] = "CheckCompleteNationalDex",
- [0x01EA] = "RegisterSinnohPokedex",
- [0x01EB] = "RegisterNationalPokedex",
-
- [0x01F1] = "GetFossilCount",
-
- [0x01F4] = "GetPokeNameFromFossil",
- [0x01F5] = "CheckFossil",
- [0x01F6] = "CountPokemonUnderLevel",
- [0x01F7] = "SurvivePoison",
- [0x01F8] = "FinishOverworldScreen",
- [0x01F9] = "DummyGetVar",
- [0x01FA] = "MessageAllFromArchive",
- [0x01FB] = "MessageFromArchive",
-
- [0x0200] = "GetPreviousHeaderID",
- [0x0201] = "GetCurrentHeaderID",
- [0x0202] = "SetSafariFlag",
- [0x0203] = "BattleRoomWarp",
- [0x0204] = "ExitBattleRoom",
- [0x0205] = "GeonetScreen",
- [0x0206] = "GreatMarshBinoculars",
-
- [0x0208] = "ShowPokemonPic",
- [0x0209] = "HidePokemonPic",
-
- [0x020D] = "SpearPillarSequence",
- [0x020E] = "KeepSafariTrain",
- [0x020F] = "SafariTrainAnimation",
- [0x0210] = "CheckSafariTrainMovement",
- [0x0211] = "IgnoreHeights",
- [0x0212] = "GetPokemonNature",
- [0x0213] = "CheckPartyNature",
- [0x0214] = "CheckSpiritombCounter",
- [0x0215] = "ClearAmitySquareSteps",
- [0x0216] = "CheckAmitySquareSteps",
- [0x0217] = "GetAmitySquareAccessory",
-
- [0x021C] = "AddRoamingPokemon",
- [0x021D] = "UnionGroup",
-
- [0x0221] = "RememberMoveScreen",
- [0x0222] = "DummyMoveCommand", //
- [0x0223] = "ResponseRememberMove",
- [0x0224] = "TeachMoveScreen",
- [0x0225] = "ResponseTeachMove",
- [0x0226] = "InitTrade",
- [0x0227] = "GetOfferedPokemon",
- [0x0228] = "GetRequestedPokemon",
- [0x0229] = "TradePokemonScreen",
- [0x022A] = "EndTrade",
- [0x022B] = "ActivateInternationalDex",
- [0x022C] = "ActivateDimorphismDex",
- [0x022D] = "NationalDex",
- [0x022E] = "CountPokemonRibbons",
- [0x022F] = "CountPartyRibbons",
- [0x0230] = "CheckRibbon",
- [0x0231] = "GiveRibbon",
- [0x0232] = "TextRibbon",
- [0x0233] = "CountPokemonEVs",
- [0x0234] = "GetDayOfWeek",
-
- [0x0239] = "ShowRulesList",
- [0x023A] = "GetPokemonFootprint",
- [0x023B] = "PCHealAnimation",
- [0x023C] = "ElevatorAnimation",
- [0x023D] = "ShipAnimation",
- [0x023E] = "MysteryGiftGive",
-
- [0x0246] = "CheckVersion",
- [0x0247] = "FirstPokemonInParty",
- [0x0248] = "GetPartyPokemonTypes",
-
- [0x024E] = "GetLottoNumber",
- [0x024F] = "CheckWinLotto",
- [0x0250] = "InitLotto",
-
- [0x0252] = "CountPCFreeSpace",
-
- [0x0261] = "TextAccessory",
- [0x0262] = "CheckPokemonInParty",
- [0x0263] = "SetDeoxysForm",
- //0x0264 is different between DP/Plat
-
- [0x0267] = "SlotMachine",
- [0x0268] = "GetHour",
- [0x0269] = "ShakeOverworld",
- [0x026A] = "BlinkOverworld",
- [0x026B] = "CheckRegis",
-
- [0x026D] = "MessageUnown",
- [0x026E] = "CheckGBACartidge",
- [0x026F] = "ResetSpiritombCounter",
- [0x0270] = "SetMatrixAlternativeMap",
- [0x0271] = "WriteStone",
- [0x0272] = "TextStoneName",
-
- [0x027A] = "SunyshoreBinoculars",
-
- [0x0280] = "TextNumberSp",
-
- [0x0282] = "CheckBirthday",
- [0x0283] = "MusicVolumeSet",
- [0x0284] = "CountSeenUnown",
-
- [0x028B] = "CheckEventValidity",
-
- [0x028F] = "CountLeagueVictories",
-
-
- [0x0297] = "GetBP",
- [0x0298] = "AddBP",
- [0x0299] = "SubBP",
- [0x029A] = "CompareBP",
-
- [0x029F] = "ShakeCamera",
- [0x02A0] = "Battle2vs2",
-
- [0x02A5] = "PartyPokemonTradeScreen",
-
- [0x02AC] = "ActivateMysteryGift",
- [0x02AD] = "GetOWMovement",
- [0x02AE] = "CountPlayingSeq",
-
- [0x02B3] = "TextSeal",
- [0x02B4] = "DummyLockAll",
-
- [0x02BC] = "LastBattleCheckCaught",
- [0x02BD] = "SpWildBattle",
- [0x02BE] = "CheckTrainerCardLevel",
- [0x02BF] = "DummyRideBike",
-
- [0x02C1] = "ShowSaveBox",
- [0x02C2] = "HideSaveBox",
- [0x02C3] = "ScopeMode",
-
- [0x0333] = "SetFieldVolume",
- };
- public static Dictionary DPPtScrCmdParameters = new Dictionary() {
- [0x0000] = new byte[1] { 0 },
- [0x0001] = new byte[1] { 0 },
- [0x0002] = new byte[1] { 0 },
- [0x0003] = new byte[] { 2, 2 },
- [0x0004] = new byte[] { 1, 1 },
- [0x0005] = new byte[] { 1, 4 },
- [0x0006] = new byte[] { 1, 4 },
- [0x0007] = new byte[] { 4, 1 },
- [0x0008] = new byte[] { 4, 1 },
- [0x0009] = new byte[] { 1, 1 },
- [0x000A] = new byte[] { 4, 4 },
- [0x000B] = new byte[] { 1, 1 },
- [0x000C] = new byte[] { 1, 1 },
- [0x000D] = new byte[] { 1, 4 },
- [0x000E] = new byte[] { 4, 1 },
- [0x000F] = new byte[] { 4, 1 },
- [0x0010] = new byte[] { 4, 4 },
- [0x0011] = new byte[] { 2, 2 },
- [0x0012] = new byte[] { 2, 2 },
- [0x0013] = new byte[] { 2 },
- [0x0014] = new byte[] { 2 },
- [0x0015] = new byte[1] { 0 },
- [0x0016] = new byte[] { 4 },
- [0x0017] = new byte[] { 1, 4 },
- [0x0018] = new byte[] { 1, 4 },
- [0x0019] = new byte[] { 1, 4 },
- [0x001A] = new byte[] { 4 },
- [0x001B] = new byte[1] { 0 },
- [0x001C] = new byte[] { 1, 4 },
- [0x001D] = new byte[] { 1, 4 },
- [0x001E] = new byte[] { 2 },
- [0x001F] = new byte[] { 2 },
- [0x0020] = new byte[] { 2 },
- [0x0021] = new byte[] { 2, 2 },
- [0x0022] = new byte[] { 2 },
- [0x0023] = new byte[] { 2 },
- [0x0024] = new byte[] { 2 },
- [0x0025] = new byte[] { 2 },
- [0x0026] = new byte[] { 2, 2 },
- [0x0027] = new byte[] { 2, 2 },
- [0x0028] = new byte[] { 2, 2 },
- [0x0029] = new byte[] { 2, 2 },
- [0x002A] = new byte[] { 2, 2 },
- [0x002B] = new byte[] { 1 },
- [0x002C] = new byte[] { 1 },
- [0x002D] = new byte[] { 2 },
- [0x002E] = new byte[] { 2 },
- [0x002F] = new byte[] { 1 },
- [0x0030] = new byte[1] { 0 },
- [0x0031] = new byte[1] { 0 },
- [0x0032] = new byte[1] { 0 },
- [0x0033] = new byte[1] { 0 },
- [0x0034] = new byte[1] { 0 },
- [0x0035] = new byte[1] { 0 },
- [0x0036] = new byte[] { 1, 1, 2, 2 },
- [0x0037] = new byte[] { 1, 2 },
- [0x0038] = new byte[] { 1 },
- [0x0039] = new byte[1] { 0 },
- [0x003A] = new byte[] { 1, 2 },
- [0x003B] = new byte[] { 2 },
- [0x003C] = new byte[1] { 0 },
- [0x003D] = new byte[] { 1, 1, 1, 1, 1, 1 },
- [0x003E] = new byte[] { 2 },
- [0x003F] = new byte[1] { 0 },
- [0x0040] = new byte[] { 1, 1, 1, 1, 2 },
- [0x0041] = new byte[] { 1, 1, 1, 1, 2 },
- [0x0042] = new byte[] { 1, 1 },
- [0x0043] = new byte[1] { 0 },
- [0x0044] = new byte[] { 1, 1, 1, 1, 2 },
- [0x0045] = new byte[] { 1, 1, 1, 1, 2 },
- [0x0046] = new byte[] { 2, 2, 2 },
- [0x0047] = new byte[1] { 0 },
- [0x0048] = new byte[] { 1 },
- [0x0049] = new byte[] { 2 },
- [0x004A] = new byte[] { 2 },
- [0x004B] = new byte[] { 2 },
- [0x004C] = new byte[] { 2, 2 },
- [0x004D] = new byte[1] { 0 },
- [0x004E] = new byte[] { 2 },
- [0x004F] = new byte[1] { 0 },
- [0x0050] = new byte[] { 2 },
- [0x0051] = new byte[] { 2 },
- [0x0052] = new byte[1] { 0 },
- [0x0053] = new byte[] { 2 },
- [0x0054] = new byte[] { 2, 2 },
- [0x0055] = new byte[] { 2 },
- [0x0056] = new byte[] { 1, 1 },
- [0x0057] = new byte[] { 2 },
- [0x0058] = new byte[] { 1 },
- [0x0059] = new byte[] { 2 },
- [0x005A] = new byte[] { 2 },
- [0x005B] = new byte[1] { 0 },
- [0x005C] = new byte[1] { 0 },
- [0x005D] = new byte[1] { 0 },
- [0x005E] = new byte[] { 2, 4 },
- [0x005F] = new byte[1] { 0 },
- [0x0060] = new byte[1] { 0 },
- [0x0061] = new byte[1] { 0 },
- [0x0062] = new byte[] { 2 },
- [0x0063] = new byte[] { 2 },
- [0x0064] = new byte[] { 2 },
- [0x0065] = new byte[] { 2 },
- [0x0066] = new byte[] { 2, 2 },
- [0x0067] = new byte[1] { 0 },
- [0x0068] = new byte[1] { 0 },
- [0x0069] = new byte[] { 2, 2 },
- [0x006A] = new byte[] { 2, 2, 2 },
- [0x006B] = new byte[] { 2, 2, 2 },
- [0x006C] = new byte[] { 2, 1 },
- [0x006D] = new byte[] { 2, 2 },
- [0x006E] = new byte[1] { 0 },
- [0x006F] = new byte[] { 4 },
- [0x0070] = new byte[] { 4 },
- [0x0071] = new byte[] { 2, 4 },
- [0x0072] = new byte[] { 2, 2 },
- [0x0073] = new byte[1] { 0 },
- [0x0074] = new byte[1] { 0 },
- [0x0075] = new byte[] { 2, 2 },
- [0x0076] = new byte[1] { 0 },
- [0x0077] = new byte[1] { 0 },
- [0x0078] = new byte[] { 2 },
- [0x0079] = new byte[] { 2 },
- [0x007A] = new byte[] { 2 },
- [0x007B] = new byte[] { 2, 2, 2 },
- [0x007C] = new byte[] { 2, 2, 2 },
- [0x007D] = new byte[] { 2, 2, 2 },
- [0x007E] = new byte[] { 2, 2, 2 },
- [0x007F] = new byte[] { 2, 2 },
- [0x0080] = new byte[] { 2, 2 },
- [0x0081] = new byte[1] { 0 },
- [0x0082] = new byte[1] { 0 },
- [0x0083] = new byte[] { 2, 2, 2 },
- [0x0084] = new byte[1] { 0 },
- [0x0085] = new byte[] { 2, 2, 2 },
- [0x0086] = new byte[1] { 0 },
- [0x0087] = new byte[] { 2, 2, 2 },
- [0x0088] = new byte[1] { 0 },
- [0x0089] = new byte[1] { 0 },
- [0x008A] = new byte[1] { 0 },
- [0x008B] = new byte[1] { 0 },
- [0x008C] = new byte[1] { 0 },
- [0x008D] = new byte[1] { 0 },
- [0x008E] = new byte[1] { 0 },
- [0x008F] = new byte[] { 2, 2, 2 },
- [0x0090] = new byte[1] { 0 },
- [0x0091] = new byte[1] { 0 },
- [0x0092] = new byte[1] { 0 },
- [0x0093] = new byte[] { 2, 2 },
- [0x0094] = new byte[] { 2, 2 },
- [0x0095] = new byte[] { 2, 2 },
- [0x0096] = new byte[] { 2, 2, 2, 2 },
- [0x0097] = new byte[] { 2, 2 },
- [0x0098] = new byte[] { 2, 2, 2 },
- [0x0099] = new byte[] { 2, 2, 2 },
- [0x009A] = new byte[] { 2, 2 },
- [0x009B] = new byte[] { 2, 2 },
- [0x009C] = new byte[1] { 0 },
- [0x009D] = new byte[1] { 0 },
- [0x009E] = new byte[1] { 0 },
- [0x009F] = new byte[1] { 0 },
- [0x00A0] = new byte[1] { 0 },
- [0x00A1] = new byte[1] { 0 },
- [0x00A2] = new byte[1] { 0 },
- [0x00A3] = new byte[1] { 0 },
- [0x00A4] = new byte[1] { 0 },
- [0x00A5] = new byte[1] { 0 },
- [0x00A6] = new byte[] { 2, 2, 2 },
- [0x00A7] = new byte[] { 2, 2 },
- [0x00A8] = new byte[] { 2, 2 },
- [0x00A9] = new byte[1] { 0 },
- [0x00AA] = new byte[1] { 0 },
- [0x00AB] = new byte[] { 1 },
- [0x00AC] = new byte[1] { 0 },
- [0x00AD] = new byte[1] { 0 },
- [0x00AE] = new byte[1] { 0 },
- [0x00AF] = new byte[1] { 0 },
- [0x00B0] = new byte[1] { 0 },
- [0x00B1] = new byte[1] { 0 },
- [0x00B2] = new byte[] { 2, 2 },
- [0x00B3] = new byte[] { 2 },
- [0x00B4] = new byte[1] { 0 },
- [0x00B5] = new byte[1] { 0 },
- [0x00B6] = new byte[] { 2 },
- [0x00B7] = new byte[] { 2, 2 },
- [0x00B8] = new byte[] { 2 },
- [0x00B9] = new byte[] { 2, 2 },
- [0x00BA] = new byte[] { 2 },
- [0x00BB] = new byte[] { 2, 2 },
- [0x00BC] = new byte[] { 2, 2, 2, 2 },
- [0x00BD] = new byte[1] { 0 },
- [0x00BE] = new byte[] { 2, 2, 2, 2, 2 },
- [0x00BF] = new byte[] { 2 },
- [0x00C0] = new byte[] { 2 },
- [0x00C1] = new byte[] { 2 },
- [0x00C2] = new byte[] { 2, 2, 2 },
- [0x00C3] = new byte[1] { 0 },
- [0x00C4] = new byte[1] { 0 },
- [0x00C5] = new byte[] { 2 },
- [0x00C6] = new byte[1] { 0 },
- [0x00C7] = new byte[] { 2 },
- [0x00C8] = new byte[] { 1 },
- [0x00C9] = new byte[] { 1 },
- [0x00CA] = new byte[] { 2 },
- [0x00CB] = new byte[] { 2 },
- [0x00CC] = new byte[1] { 0 },
- [0x00CD] = new byte[] { 1 },
- [0x00CE] = new byte[] { 1 },
- [0x00CF] = new byte[] { 1 },
- [0x00D0] = new byte[] { 1, 2 },
- [0x00D1] = new byte[] { 1, 2 },
- [0x00D2] = new byte[] { 1, 2 },
- [0x00D3] = new byte[] { 1, 2 },
- [0x00D4] = new byte[] { 1, 2 },
- [0x00D5] = new byte[] { 1, 2 },
- [0x00D6] = new byte[] { 1, 2 },
- [0x00D7] = new byte[] { 1, 2 },
- [0x00D8] = new byte[] { 1, 2 },
- [0x00D9] = new byte[] { 1 },
- [0x00DA] = new byte[] { 1, 2, 2, 1 },
- [0x00DB] = new byte[] { 1 },
- [0x00DC] = new byte[] { 1 },
- [0x00DD] = new byte[] { 1 },
- [0x00DE] = new byte[] { 2 },
- [0x00DF] = new byte[] { 1, 2 },
- [0x00E0] = new byte[] { 1, 2 },
- [0x00E1] = new byte[] { 1, 2 },
- [0x00E2] = new byte[] { 1, 2 },
- [0x00E3] = new byte[] { 2, 2 },
- [0x00E4] = new byte[] { 2 },
- [0x00E5] = new byte[] { 2, 2 },
- [0x00E6] = new byte[] { 2, 2 },
- [0x00E7] = new byte[] { 2, 2, 2 },
- [0x00E8] = new byte[] { 2, 2, 2 },
- [0x00E9] = new byte[] { 2 },
- [0x00EA] = new byte[] { 2 },
- [0x00EB] = new byte[1] { 0 },
- [0x00EC] = new byte[] { 2 },
- [0x00ED] = new byte[] { 2 },
- [0x00EE] = new byte[] { 2 },
- [0x00EF] = new byte[1] { 0 },
- [0x00F0] = new byte[1] { 0 },
- [0x00F1] = new byte[] { 4 },
- [0x00F2] = new byte[] { 2, 2, 2, 2 },
- [0x00F3] = new byte[] { 2, 2, 2, 2 },
- [0x00F4] = new byte[1] { 0 },
- [0x00F5] = new byte[1] { 0 },
- [0x00F6] = new byte[1] { 0 },
- [0x00F7] = new byte[] { 2 },
- [0x00F8] = new byte[] { 2 },
- [0x00F9] = new byte[] { 2 },
- [0x00FA] = new byte[] { 2, 2, 2, 2 },
- [0x00FB] = new byte[] { 2 },
- [0x00FC] = new byte[1] { 0 },
- [0x00FD] = new byte[] { 2, 2 },
- [0x00FE] = new byte[] { 2, 2 },
- [0x00FF] = new byte[] { 2, 2 },
- [0x0100] = new byte[1] { 0 },
- [0x0101] = new byte[1] { 0 },
- [0x0102] = new byte[] { 2 },
- [0x0103] = new byte[] { 2 },
- [0x0104] = new byte[] { 2 },
- [0x0105] = new byte[1] { 0 },
- [0x0106] = new byte[] { 2 },
- [0x0107] = new byte[] { 2 },
- [0x0108] = new byte[] { 2 },
- [0x0109] = new byte[] { 2 },
- [0x010A] = new byte[] { 2, 2 },
- [0x010B] = new byte[] { 2, 2 },
- [0x010C] = new byte[] { 2 },
- [0x010D] = new byte[] { 2 },
- [0x010E] = new byte[] { 2 },
- [0x010F] = new byte[] { 2 },
- [0x0110] = new byte[] { 2, 2, 2, 2 },
- [0x0111] = new byte[] { 2 },
- [0x0112] = new byte[1] { 0 },
- [0x0113] = new byte[1] { 0 },
- [0x0114] = new byte[1] { 0 },
- [0x0115] = new byte[] { 2, 2, 2 },
- [0x0116] = new byte[1] { 0 },
- [0x0117] = new byte[1] { 0 },
- [0x0118] = new byte[1] { 0 },
- [0x0119] = new byte[] { 2 },
- [0x011A] = new byte[1] { 0 },
- [0x011B] = new byte[] { 2, 2, 2, 2, 2 },
- [0x011C] = new byte[] { 2 },
-
- [0x011E] = new byte[] { 2 },
- [0x011F] = new byte[1] { 0 },
- [0x0120] = new byte[] { 2 },
- [0x0121] = new byte[] { 2 },
- [0x0122] = new byte[1] { 0 },
- [0x0123] = new byte[] { 1, 2 },
- [0x0124] = new byte[] { 2, 2 },
- //0x0125 is different between DP and PT
- [0x0126] = new byte[1] { 0 },
- [0x0127] = new byte[1] { 0 },
- [0x0128] = new byte[] { 2 },
- [0x0129] = new byte[1] { 0 },
- [0x012A] = new byte[1] { 0 },
- [0x012B] = new byte[1] { 0 },
- [0x012C] = new byte[] { 2 },
- [0x012D] = new byte[] { 2 },
- [0x012E] = new byte[] { 2, 2 },
- [0x012F] = new byte[] { 2, 2 },
- [0x0130] = new byte[] { 2 },
- [0x0131] = new byte[1] { 0 },
- [0x0132] = new byte[] { 2 },
- [0x0133] = new byte[] { 2 },
- [0x0134] = new byte[] { 2, 2 },
- [0x0135] = new byte[] { 2 },
- [0x0136] = new byte[1] { 0 },
- [0x0137] = new byte[1] { 0 },
- [0x0138] = new byte[] { 2 },
- [0x0139] = new byte[] { 2 },
- [0x013A] = new byte[1] { 0 },
- [0x013B] = new byte[1] { 0 },
- [0x013C] = new byte[] { 2 },
- [0x013D] = new byte[1] { 0 },
- [0x013E] = new byte[1] { 0 },
- [0x013F] = new byte[] { 2, 2 },
- [0x0140] = new byte[] { 2 },
- [0x0141] = new byte[] { 2 },
- [0x0142] = new byte[1] { 0 },
- [0x0143] = new byte[] { 2, 2 },
- [0x0144] = new byte[] { 2 },
- [0x0145] = new byte[] { 2 },
- [0x0146] = new byte[] { 2, 2 },
- [0x0147] = new byte[] { 2 },
- [0x0148] = new byte[] { 2 },
- [0x0149] = new byte[] { 2 },
- [0x014A] = new byte[] { 2 },
- [0x014B] = new byte[1] { 0 },
- [0x014C] = new byte[] { 2 },
- [0x014D] = new byte[] { 2 },
- [0x014E] = new byte[1] { 0 },
- [0x014F] = new byte[1] { 0 },
- [0x0150] = new byte[1] { 0 },
- [0x0151] = new byte[1] { 0 },
- [0x0152] = new byte[] { 2 },
- [0x0153] = new byte[1] { 0 },
- [0x0154] = new byte[1] { 0 },
- [0x0155] = new byte[] { 2, 2 },
- [0x0156] = new byte[] { 2 },
- [0x0157] = new byte[] { 2 },
- [0x0158] = new byte[1] { 0 },
- [0x0159] = new byte[] { 2 },
- [0x015A] = new byte[1] { 0 },
- [0x015B] = new byte[] { 2, 2 },
- [0x015C] = new byte[] { 2 },
- [0x015D] = new byte[] { 2 },
- [0x015E] = new byte[] { 2 },
- [0x015F] = new byte[1] { 0 },
- [0x0160] = new byte[] { 2 },
- [0x0161] = new byte[1] { 0 },
- [0x0162] = new byte[1] { 0 },
- [0x0163] = new byte[] { 2 },
- [0x0164] = new byte[1] { 0 },
- [0x0165] = new byte[1] { 0 },
- [0x0166] = new byte[] { 2 },
- [0x0167] = new byte[1] { 0 },
- [0x0168] = new byte[] { 2, 2, 2, 2, 1 },
- [0x0169] = new byte[] { 1 },
- [0x016A] = new byte[] { 1 },
- [0x016B] = new byte[] { 1 },
- [0x016C] = new byte[] { 1 },
- [0x016D] = new byte[1] { 0 },
- [0x016E] = new byte[] { 2 },
- [0x016F] = new byte[1] { 0 },
- [0x0170] = new byte[1] { 0 },
- [0x0171] = new byte[1] { 0 },
- [0x0172] = new byte[1] { 0 },
- [0x0173] = new byte[1] { 0 },
- [0x0174] = new byte[1] { 0 },
- [0x0175] = new byte[] { 1 },
- [0x0176] = new byte[] { 1 },
- [0x0177] = new byte[] { 2 },
- [0x0178] = new byte[] { 1 },
- [0x0179] = new byte[] { 2 },
- [0x017A] = new byte[] { 2, 2 },
- [0x017B] = new byte[] { 1, 2, 2 },
- [0x017C] = new byte[] { 1, 2 },
- [0x017D] = new byte[] { 2 },
- [0x017E] = new byte[] { 2 },
- [0x017F] = new byte[] { 2 },
- [0x0180] = new byte[] { 2 },
- [0x0181] = new byte[] { 2 },
- [0x0182] = new byte[] { 2 },
- [0x0183] = new byte[] { 2 },
- [0x0184] = new byte[] { 2 },
- [0x0185] = new byte[1] { 0 },
- [0x0186] = new byte[] { 2, 2, 2 },
- [0x0187] = new byte[] { 2, 2, 2, 2, 2 },
- [0x0188] = new byte[] { 2, 2 },
- [0x0189] = new byte[] { 2, 2 },
- [0x018A] = new byte[] { 2, 2, 2 },
- [0x018B] = new byte[] { 2, 2, 2 },
- [0x018C] = new byte[] { 2, 2 },
- [0x018D] = new byte[1] { 0 },
- [0x018E] = new byte[1] { 0 },
- [0x018F] = new byte[] { 2 },
- [0x0190] = new byte[] { 2 },
- [0x0191] = new byte[1] { 0 },
- [0x0192] = new byte[1] { 0 },
- [0x0193] = new byte[] { 2 },
- [0x0194] = new byte[] { 2, 2, 2, 2 },
- [0x0195] = new byte[] { 2, 2 },
- [0x0196] = new byte[] { 2 },
- [0x0197] = new byte[] { 2 },
- [0x0198] = new byte[] { 2, 2 },
- [0x0199] = new byte[] { 2, 2 },
- [0x019A] = new byte[] { 2 },
- [0x019B] = new byte[] { 2, 2 },
- [0x019C] = new byte[] { 2 },
- [0x019D] = new byte[] { 2 },
- [0x019E] = new byte[] { 2, 2 },
- [0x019F] = new byte[] { 2 },
- [0x01A0] = new byte[1] { 0 },
- [0x01A1] = new byte[1] { 0 },
- [0x01A2] = new byte[1] { 0 },
- [0x01A3] = new byte[] { 2 },
- [0x01A4] = new byte[] { 2, 2 },
- [0x01A5] = new byte[1] { 0 },
- [0x01A6] = new byte[1] { 0 },
- [0x01A7] = new byte[1] { 0 },
- [0x01A8] = new byte[1] { 0 },
- [0x01A9] = new byte[1] { 0 },
- [0x01AA] = new byte[] { 2, 2 },
- [0x01AB] = new byte[] { 2, 2 },
- [0x01AC] = new byte[1] { 0 },
- [0x01AD] = new byte[1] { 0 },
- [0x01AE] = new byte[] { 2, 2 },
- [0x01AF] = new byte[] { 2, 2, 2 },
- [0x01B0] = new byte[] { 2 },
- [0x01B1] = new byte[] { 2 },
- [0x01B2] = new byte[] { 2 },
- [0x01B3] = new byte[1] { 0 },
- [0x01B4] = new byte[] { 2 },
- [0x01B5] = new byte[] { 2 },
- [0x01B6] = new byte[] { 2 },
- [0x01B7] = new byte[] { 2, 2 },
- [0x01B8] = new byte[] { 2, 2 },
- [0x01B9] = new byte[] { 2, 2 },
- [0x01BA] = new byte[] { 2, 2 },
- [0x01BB] = new byte[] { 2, 2 },
- [0x01BC] = new byte[] { 2, 2, 2, 2 },
- [0x01BD] = new byte[] { 2 },
- [0x01BE] = new byte[] { 2 },
- [0x01BF] = new byte[] { 2 },
- [0x01C0] = new byte[] { 2, 2 },
- [0x01C1] = new byte[] { 2, 2 },
- [0x01C2] = new byte[] { 2 },
- [0x01C3] = new byte[] { 2, 2, 2 },
- [0x01C4] = new byte[] { 2, 2, 2 },
- [0x01C5] = new byte[1] { 0 },
- [0x01C6] = new byte[] { 2 },
- [0x01C7] = new byte[] { 2 },
- [0x01C8] = new byte[] { 2, 2 },
- [0x01C9] = new byte[] { 2, 2 },
- [0x01CA] = new byte[] { 2, 2, 2 },
- [0x01CB] = new byte[] { 1, 2, 2 },
- [0x01CC] = new byte[1] { 0 },
- [0x01CD] = new byte[] { 2, 2, 2, 2, 2 },
- [0x01CE] = new byte[1] { 0 },
-
- [0x01CF] = new byte[] { 0xFF, 1, //0xFF signals that this scrcmd takes a variable num of parameters, 1 is the size of the 1st par
- 0, 0, //if 1st par is 0, read 0 parameters
- 1, 0, //if 1st par is 1, read 0 parameters
- 2, 1, 2 //if 1st par is 2, read 1 parameter of size = 2 bytes
- },
-
- [0x01D0] = new byte[] { 0xFF, 1, //0xFF signals that this scrcmd takes a variable num of parameters, 1 is the size of the 1st par
- 0, 0, //if 1st par is 0, read 0 parameters
- 1, 0, //if 1st par is 1, read 0 parameters
- 2, 1, 2 //if 1st par is 2, read 1 parameter of size = 2 bytes
- },
-
- [0x01D1] = new byte[] { 0xFF, 1, //0xFF signals that this scrcmd takes a variable num of parameters, 1 is the size of the 1st par
- 0, 0, //if 1st par is 0, read 0 parameters
- 1, 0, //if 1st par is 1, read 0 parameters
- 2, 1, 2 //if 1st par is 2, read 1 parameter of size = 2 bytes
- },
-
- [0x01D2] = new byte[] { 2, 2 },
- [0x01D3] = new byte[] { 2, 2, 2 },
- [0x01D4] = new byte[1] { 0 },
- [0x01D5] = new byte[] { 2 },
- [0x01D6] = new byte[] { 2, 2 },
- [0x01D7] = new byte[] { 2 },
- [0x01D8] = new byte[] { 2 },
- [0x01D9] = new byte[] { 2, 2 },
- [0x01DA] = new byte[1] { 0 },
- [0x01DB] = new byte[] { 2, 2 },
- [0x01DC] = new byte[1] { 0 },
- [0x01DD] = new byte[] { 2, 2, 2 },
- [0x01DE] = new byte[] { 2, 2, 2, 2 },
- [0x01DF] = new byte[] { 2 },
- [0x01E0] = new byte[] { 2 },
-
- [0x01E2] = new byte[] { 2, 2 },
- [0x01E3] = new byte[] { 2, 2 },
- [0x01E4] = new byte[] { 2 },
- [0x01E5] = new byte[] { 2 },
- [0x01E6] = new byte[] { 2, 2, 2 },
- [0x01E7] = new byte[] { 2, 2, 2, 1 },
- [0x01E8] = new byte[] { 2 },
- [0x01E9] = new byte[] { 2 },
- [0x01EA] = new byte[] { 2 },
- [0x01EB] = new byte[] { 2 },
- [0x01EC] = new byte[1] { 0 },
- [0x01ED] = new byte[] { 2 },
- [0x01EE] = new byte[1] { 0 },
- [0x01EF] = new byte[1] { 0 },
- [0x01F0] = new byte[1] { 0 },
- [0x01F1] = new byte[] { 2 },
- [0x01F2] = new byte[1] { 0 },
- [0x01F3] = new byte[1] { 0 },
- [0x01F4] = new byte[] { 2, 2 },
- [0x01F5] = new byte[] { 2, 2, 2 },
- [0x01F6] = new byte[] { 2, 2 },
- [0x01F7] = new byte[] { 2, 2 },
- [0x01F8] = new byte[1] { 0 },
- [0x01F9] = new byte[] { 2 },
- [0x01FA] = new byte[1] { 0 },
- [0x01FB] = new byte[] { 2, 2 },
- [0x01FC] = new byte[1] { 0 },
- [0x01FD] = new byte[] { 2, 2, 2, 2 },
- [0x01FE] = new byte[] { 1 },
- [0x01FF] = new byte[] { 2, 2, 2 },
- [0x0200] = new byte[] { 2 },
- [0x0201] = new byte[] { 2 },
- [0x0202] = new byte[] { 1 },
- [0x0203] = new byte[] { 2, 2, 2, 2, 2 },
- [0x0204] = new byte[1] { 0 },
- [0x0205] = new byte[1] { 0 },
- [0x0206] = new byte[1] { 0 },
- [0x0207] = new byte[] { 2 },
- [0x0208] = new byte[] { 2, 2 },
- [0x0209] = new byte[1] { 0 },
- [0x020A] = new byte[] { 2 },
- [0x020B] = new byte[1] { 0 },
- [0x020C] = new byte[1] { 0 },
- [0x020D] = new byte[] { 1, 2 },
- [0x020E] = new byte[1] { 0 },
- [0x020F] = new byte[] { 2, 2 },
- [0x0210] = new byte[] { 2, 2 },
- [0x0211] = new byte[] { 1 },
- [0x0212] = new byte[] { 2, 2 },
- [0x0213] = new byte[] { 2, 2 },
- [0x0214] = new byte[] { 2 },
- [0x0215] = new byte[1] { 0 },
- [0x0216] = new byte[] { 2 },
- [0x0217] = new byte[] { 2, 2 },
- [0x0218] = new byte[] { 2 },
- [0x0219] = new byte[] { 2 },
- [0x021A] = new byte[] { 2 },
- [0x021B] = new byte[1] { 0 },
- [0x021C] = new byte[] { 1 },
- [0x021D] = new byte[] { 0xFF, 2, //0xFF = Variable number of parameters, 2 = size of first parameter
- 0, 2, 2, 2, //if value is 0, read 2 parameters... first one takes up 2 bytes, second par takes up 2 bytes
- 1, 2, 2, 2, //if value is 1, read 2 parameters... first one takes up 2 bytes, second par takes up 2 bytes
- 2, 2, 2, 2, //if value is 2, read 2 parameters... first one takes up 2 bytes, second par takes up 2 bytes
- 3, 2, 2, 2, //if value is 3, read 2 parameters... first one takes up 2 bytes, second par takes up 2 bytes
- 4, 1, 2, //if value is 4, read 1 parameter... which takes up 2 bytes
- 5, 1, 2, //if value is 5, read 1 parameter... which takes up 2 bytes
- 6, 0 //if value is 6, don't read anything
- },
- [0x021E] = new byte[1] { 0 },
- [0x021F] = new byte[] { 2, 2 },
- [0x0220] = new byte[1] { 0 },
- [0x0221] = new byte[] { 2 },
- [0x0222] = new byte[1] { 0 },
- [0x0223] = new byte[] { 2 },
- [0x0224] = new byte[] { 2, 2 },
- [0x0225] = new byte[] { 2 },
- [0x0226] = new byte[] { 1 },
- [0x0227] = new byte[1] { 0 },
- [0x0228] = new byte[] { 2 },
- [0x0229] = new byte[] { 2 },
- [0x022A] = new byte[1] { 0 },
- [0x022B] = new byte[1] { 0 },
- [0x022C] = new byte[1] { 0 },
- [0x022D] = new byte[] { 1, 2 },
- [0x022E] = new byte[] { 2, 2 },
- [0x022F] = new byte[] { 2 },
- [0x0230] = new byte[] { 2, 2, 2 },
- [0x0231] = new byte[] { 2, 2 },
- [0x0232] = new byte[] { 1, 2 },
- [0x0233] = new byte[] { 2, 2 },
- [0x0234] = new byte[] { 2 },
- [0x0235] = new byte[] { 0xFF, 2, //0xFF = Variable number of parameters, 2 = size of first parameter
- 0, 1, 2, //if value is 0, read 1 parameter... which takes up 2 bytes
- 1, 3, 2, 2, 2, //if value is 1, read 3 parameters... each one takes up 2 bytes
- 2, 0, //if value is 2, don't read anything
- 3, 3, 2, 2, 2, //if value is 3, read 3 parameters... each one takes up 2 bytes
- 4, 2, 2, 2, //if value is 4, read 2 parameters... each one takes up 2 bytes
- 5, 3, 2, 2, 2, //if value is 5, read 3 parameters... each one takes up 2 bytes
- 6, 1, 2 //if value is 6, read 1 parameter... which takes up 2 bytes
- },
- [0x0236] = new byte[] { 2 },
- [0x0237] = new byte[] { 2, 2, 2, 2 }, //u16: 0; Flex: ???; Var: Variable; Var: //u16: 1; Flex: ???; Flex: ???; Flex: ???
- [0x0238] = new byte[] { 2, 2 },
- [0x0239] = new byte[] { 2 },
- [0x023A] = new byte[] { 2, 2, 2 },
- [0x023B] = new byte[] { 2 },
- [0x023C] = new byte[] { 2, 2 },
- [0x023D] = new byte[] { 1, 1, 2, 2, 2 },
- [0x023E] = new byte[] { 0xFF, 2, //0xFF = Variable number of parameters, 2 = size of first parameter
- 0, 0, //if value is 0, don't read anything
- 1, 1, 2, //if value is 1, read 1 parameter... which takes up 2 bytes
- 2, 1, 2, //if value is 2, read 1 parameter... which takes up 2 bytes
- 3, 1, 2, //if value is 3, read 1 parameter... which takes up 2 bytes
- 4, 0, //if value is 4, don't read anything
- 5, 2, 2, 2, //if value is 5, read 2 parameters... each one takes up 2 bytes
- 6, 2, 2, 2, //if value is 6, read 2 parameters... each one takes up 2 bytes
- 7, 0, //if value is 7, don't read anything
- 8, 0 //if value is 8, don't read anything
- },
- [0x023F] = new byte[1] { 0 },
- [0x0240] = new byte[1] { 0 },
- [0x0241] = new byte[1] { 0 },
- [0x0242] = new byte[1] { 0 },
- [0x0243] = new byte[] { 2, 2, 2 },
- [0x0244] = new byte[] { 2, 2, 2, 2 },
- [0x0245] = new byte[] { 2, 2 },
- [0x0246] = new byte[] { 2 },
- [0x0247] = new byte[] { 2 },
- [0x0248] = new byte[] { 2, 2, 2 },
- [0x0249] = new byte[] { 2, 2, 2, 2, 2 },
- [0x024A] = new byte[] { 2 },
- [0x024B] = new byte[] { 1 },
- [0x024C] = new byte[] { 1 },
- [0x024D] = new byte[] { 1 },
- [0x024E] = new byte[] { 2 },
- [0x024F] = new byte[] { 2, 2, 2, 2 },
- [0x0250] = new byte[1] { 0 },
- [0x0251] = new byte[] { 1, 2 },
- [0x0252] = new byte[] { 2 },
- [0x0253] = new byte[] { 2 },
- [0x0254] = new byte[] { 2 },
- [0x0255] = new byte[1] { 0 },
- [0x0256] = new byte[] { 2, 2 },
- [0x0257] = new byte[1] { 0 },
- [0x0258] = new byte[1] { 0 },
- [0x0259] = new byte[1] { 0 },
- [0x025A] = new byte[] { 2 },
- [0x025B] = new byte[1] { 0 },
- [0x025C] = new byte[1] { 0 },
- [0x025D] = new byte[] { 2 },
- [0x025E] = new byte[1] { 0 },
- [0x025F] = new byte[1] { 0 },
- [0x0260] = new byte[] { 2 },
- [0x0261] = new byte[] { 1, 2 },
- [0x0262] = new byte[] { 2, 2 },
- [0x0263] = new byte[] { 2 },
- [0x0264] = new byte[] { 2 },
- [0x0265] = new byte[1] { 0 },
- [0x0266] = new byte[1] { 0 },
- [0x0267] = new byte[] { 2 },
- [0x0268] = new byte[] { 2 },
- [0x0269] = new byte[] { 2, 2, 2, 2, 2 },
- [0x026A] = new byte[] { 2, 2, 2 },
- [0x026B] = new byte[] { 2 },
- [0x026C] = new byte[] { 2 },
- [0x026D] = new byte[] { 2 },
- [0x026E] = new byte[] { 2 },
- [0x026F] = new byte[1] { 0 },
- [0x0270] = new byte[] { 1, 2 },
- [0x0271] = new byte[] { 2 },
- [0x0272] = new byte[] { 1 },
- [0x0273] = new byte[] { 1, 2 },
- [0x0274] = new byte[] { 2, 4 },
- [0x0275] = new byte[] { 2 },
- [0x0276] = new byte[] { 2, 2, 2 },
- [0x0277] = new byte[] { 2 },
- [0x0278] = new byte[] { 2, 2 },
- [0x0279] = new byte[1] { 0 },
- [0x027A] = new byte[1] { 0 },
- [0x027B] = new byte[1] { 0 },
- [0x027C] = new byte[] { 2, 2 },
- [0x027D] = new byte[] { 2, 2 },
- [0x027E] = new byte[] { 2 },
- [0x027F] = new byte[] { 2 },
- [0x0280] = new byte[] { 1, 2, 2 },
- [0x0281] = new byte[] { 2, 2, 2 },
- [0x0282] = new byte[] { 2 },
- [0x0283] = new byte[] { 2, 2 },
- [0x0284] = new byte[] { 2 },
- [0x0285] = new byte[] { 2, 2 },
- [0x0286] = new byte[] { 2 },
- [0x0287] = new byte[] { 2 },
- [0x0288] = new byte[] { 2 },
- [0x0289] = new byte[] { 2, 2, 2, 2, 2, 2, 2 },
- [0x028A] = new byte[] { 2 },
- [0x028B] = new byte[] { 1, 2 },
- [0x028C] = new byte[] { 2 },
- [0x028D] = new byte[1] { 0 },
- [0x028E] = new byte[] { 2 },
- [0x028F] = new byte[] { 2 },
- [0x0290] = new byte[] { 2 },
- [0x0291] = new byte[] { 2, 2 },
- [0x0292] = new byte[] { 1, 2 },
- [0x0293] = new byte[] { 2 },
- [0x0294] = new byte[] { 2 },
- [0x0295] = new byte[1] { 0 },
- [0x0296] = new byte[1] { 0 },
- [0x0297] = new byte[] { 2 },
- [0x0298] = new byte[] { 2 },
- [0x0299] = new byte[] { 2 },
- [0x029A] = new byte[] { 2, 2 },
- [0x029B] = new byte[] { 2, 2, 2, 2 },
- [0x029C] = new byte[] { 2, 2 },
- [0x029D] = new byte[] { 2, 2 },
- [0x029E] = new byte[] { 2, 2 },
- [0x029F] = new byte[] { 2 },
- [0x02A0] = new byte[] { 2, 2, 2 },
- [0x02A1] = new byte[] { 2, 2, 2 },
- [0x02A2] = new byte[] { 2 },
- [0x02A3] = new byte[] { 2 },
- [0x02A4] = new byte[] { 2 },
- [0x02A5] = new byte[1] { 0 },
- [0x02A6] = new byte[] { 2, 2, 2 },
- [0x02A7] = new byte[] { 2, 2 },
- [0x02A8] = new byte[] { 2 },
- [0x02A9] = new byte[] { 2, 2 },
- [0x02AA] = new byte[] { 2, 2, 2, 2, 2 },
- [0x02AB] = new byte[] { 2 },
- [0x02AC] = new byte[1] { 0 },
- [0x02AD] = new byte[] { 2, 2 },
- [0x02AE] = new byte[1] { 0 },
- [0x02AF] = new byte[] { 2 },
- [0x02B0] = new byte[1] { 0 },
- [0x02B1] = new byte[1] { 0 },
- [0x02B2] = new byte[1] { 0 },
- [0x02B3] = new byte[] { 1, 2 },
- [0x02B4] = new byte[1] { 0 },
- [0x02B5] = new byte[] { 2, 2, 2 },
- [0x02B6] = new byte[] { 1, 2 },
- [0x02B7] = new byte[] { 2 },
- [0x02B8] = new byte[] { 2 },
- [0x02B9] = new byte[1] { 0 },
- [0x02BA] = new byte[] { 2 },
- [0x02BB] = new byte[1] { 0 },
- [0x02BC] = new byte[] { 2 },
- [0x02BD] = new byte[] { 2, 2 },
- [0x02BE] = new byte[] { 2 },
- [0x02BF] = new byte[1] { 0 },
- [0x02C0] = new byte[] { 2 },
- [0x02C1] = new byte[1] { 0 },
- [0x02C2] = new byte[1] { 0 },
- [0x02C3] = new byte[1] { 1 },
- };
-
public static Dictionary DPScrCmdNames = new Dictionary() {
- [0x0264] = "CheckBurmyForms",
+ // will be populated at runtime from json
};
+
public static Dictionary DPScrCmdParameters = new Dictionary() {
- [0x011D] = new byte[] { 1, 1, 2 },
-
- [0x0125] = new byte[] { 2, 2 },
-
- [0x01E1] = new byte[] { 2, 2 },
-
- //0x02C3 is the last command ID that DP and Plat have in common
- //International release exclusive
- [0x02C4] = new byte[] { 1, 2 },
- [0x02C5] = new byte[] { 1, 2 },
- [0x02C6] = new byte[] { 1, 2 },
- [0x02C7] = new byte[] { 1, 2 },
- [0x02C8] = new byte[] { 1, 2 },
- [0x02C9] = new byte[] { 1, 2, 2, 1 },
- [0x02CA] = new byte[] { 1 },
- [0x02CB] = new byte[] { 1, 2 },
- [0x02CC] = new byte[] { 1, 2 },
- [0x02CD] = new byte[] { 1, 2 },
- [0x02CE] = new byte[] { 1 },
- [0x02CF] = new byte[] { 1 },
- [0x02D0] = new byte[] { 2, 2, 2 },
- [0x02D1] = new byte[] { 1, 1 }
+ // will be populated at runtime from json
};
public static Dictionary PlatScrCmdNames = new Dictionary() {
- [0x0264] = "CombeeCheck",
-
- //0x02C3 is the last command ID that DP and Plat have in common
- [0x02C6] = "SpinTradeScreen",
- //[0x02C7] = "CheckGameVersion", //Needs to be checked
-
- [0x02C9] = "InitEternaGym",
- [0x02CA] = "EternaGymClockAnim",
-
- [0x02CD] = "SetDarkFog",
- [0x02CE] = "ClearDarkFog",
-
- [0x02E2] = "ScratchOffScreen",
- [0x02E3] = "ReleaseScriptApp",
-
- [0x02E5] = "CheckLearnableTutorMoves",
- [0x02E6] = "ShowTutorMovesList",
- [0x02E7] = "LearnMoveScreen",
- [0x02E8] = "LearnMoveGetSelection",
- [0x02E9] = "ChangePartyPokemonMove",
- [0x02EA] = "CheckAffordMove",
- [0x02EB] = "PayTutorShards",
- [0x02EC] = "ShowMovePriceBoard",
- [0x02ED] = "CloseMovePriceBoard",
-
- [0x02F0] = "InitVilla",
- [0x02F1] = "ChangePokemonForm",
- [0x02F2] = "InitDistortionWorld",
-
- [0x02F9] = "LoadFieldAudio",
- [0x02FA] = "GetPlayingBGM",
- [0x02FB] = "SpearPillarSequence2",
-
- [0x0302] = "CheckUsedRotomAppliances",
-
- [0x0314] = "GetBattleOutcome",
- [0x0315] = "GetCurrentWeather",
-
- [0x0317] = "GetPlayerPositionFull",
- [0x0318] = "WildBattleFateful",
- [0x0319] = "GiratinaBattle",
- [0x031A] = "RegisterSeenPokemon",
-
- [0x0320] = "PortalAnimation",
-
- [0x032B] = "CheckEventRegigigas",
-
- //International release exclusive
- [0x0337] = "CheckPokemonIsSeen",
-
- [0x033C] = "TextItemLowercase",
- [0x033D] = "TextItemPlural",
-
- [0x0344] = "TextTrainerClass",
- [0x0345] = "TextSealPlural",
- [0x0346] = "TextCapitalize",
- [0x0347] = "DisplayFloor",
+ // will be populated at runtime from json
};
public static Dictionary PlatScrCmdParameters = new Dictionary() {
- [0x011D] = new byte[] { 1, 1, 2, 2 },
-
- [0x0125] = new byte[] { 2 },
-
- [0x01E1] = new byte[] { 2, 2, 2 },
-
- //0x02C3 is the last command ID that DP and Plat have in common
- [0x02C4] = new byte[] { 1 },
- [0x02C5] = new byte[] { 1, 2 },
- [0x02C6] = new byte[] { 1, 2 },
- [0x02C7] = new byte[] { 2 },
- [0x02C8] = new byte[] { 2, 2, 2 },
- [0x02C9] = new byte[1] { 0 },
- [0x02CA] = new byte[1] { 0 },
- [0x02CB] = new byte[] { 2, 2 },
- [0x02CC] = new byte[] { 2, 2, 2 },
- [0x02CD] = new byte[1] { 0 },
- [0x02CE] = new byte[1] { 0 },
- [0x02CF] = new byte[] { 2, 2 },
- [0x02D0] = new byte[] { 2, 2 },
- [0x02D1] = new byte[] { 2 },
- [0x02D2] = new byte[] { 2, 2, 2 },
- [0x02D3] = new byte[] { 2, 2, 2 },
- [0x02D4] = new byte[] { 2, 2, 2 },
- [0x02D5] = new byte[] { 2 },
- [0x02D6] = new byte[1] { 0 },
- [0x02D7] = new byte[] { 2 },
- [0x02D8] = new byte[] { 1 },
- [0x02D9] = new byte[] { 2, 2, 2 },
- [0x02DA] = new byte[] { 2, 2, 2 },
- [0x02DB] = new byte[] { 2, 2, 2 },
- [0x02DC] = new byte[] { 2 },
- [0x02DD] = new byte[] { 2, 2 },
- [0x02DE] = new byte[] { 2, 2, 2, 2, 2 },
- [0x02DF] = new byte[] { 2 },
- [0x02E0] = new byte[] { 2, 2 },
- [0x02E1] = new byte[] { 2, 2 },
- [0x02E2] = new byte[1] { 0 },
- [0x02E3] = new byte[1] { 0 },
- [0x02E4] = new byte[] { 2, 2, 2 },
- [0x02E5] = new byte[] { 2, 2, 2 },
- [0x02E6] = new byte[] { 2, 2, 2 },
- [0x02E7] = new byte[] { 2, 2 },
- [0x02E8] = new byte[] { 2 },
- [0x02E9] = new byte[] { 2, 2, 2 },
- [0x02EA] = new byte[] { 2, 2 },
- [0x02EB] = new byte[] { 2 },
- [0x02EC] = new byte[] { 2, 2, 2 },
- [0x02ED] = new byte[1] { 0 },
- [0x02EE] = new byte[] { 2, 2, 2, 2 },
- [0x02EF] = new byte[1] { 0 },
- [0x02F0] = new byte[1] { 0 },
- [0x02F1] = new byte[1] { 0 },
- [0x02F2] = new byte[1] { 0 },
- [0x02F3] = new byte[] { 1, 2 },
- [0x02F4] = new byte[] { 2, 2, 2, 2 },
- [0x02F5] = new byte[] { 1, 2, 2, 2 },
- [0x02F6] = new byte[] { 2, 2, 2 },
- [0x02F7] = new byte[] { 2 },
- [0x02F8] = new byte[1] { 0 },
- [0x02F9] = new byte[] { 2 },
- [0x02FA] = new byte[] { 2 },
- [0x02FB] = new byte[1] { 0 },
- [0x02FC] = new byte[] { 2 },
- [0x02FD] = new byte[] { 2, 2, 2 },
- [0x02FE] = new byte[] { 2, 2 },
- [0x02FF] = new byte[] { 2, 2 },
- [0x0300] = new byte[1] { 0 },
- [0x0301] = new byte[1] { 0 },
- [0x0302] = new byte[] { 2, 2, 2, 2, 2 },
- [0x0303] = new byte[] { 2, 2 },
- [0x0304] = new byte[] { 2, 2, 2, 2 },
- [0x0305] = new byte[] { 2, 2 },
- [0x0306] = new byte[] { 2, 2 },
- [0x0307] = new byte[] { 2 },
- [0x0308] = new byte[1] { 0 },
- [0x0309] = new byte[1] { 0 },
- [0x030A] = new byte[] { 2 },
- [0x030B] = new byte[1] { 0 },
- [0x030C] = new byte[1] { 0 },
- [0x030D] = new byte[] { 2 },
- [0x030E] = new byte[] { 2 },
- [0x030F] = new byte[] { 2, 2 },
- [0x0310] = new byte[1] { 0 },
- [0x0311] = new byte[] { 2 },
- [0x0312] = new byte[] { 2 },
- [0x0313] = new byte[] { 2 },
- [0x0314] = new byte[] { 2 },
- [0x0315] = new byte[] { 2 },
- [0x0316] = new byte[1] { 0 },
- [0x0317] = new byte[] { 2, 2, 2 },
- [0x0318] = new byte[] { 2, 2, 2, 2 },
- [0x0319] = new byte[] { 2, 2, 2, 2 },
- [0x031A] = new byte[1] { 0 },
- [0x031B] = new byte[] { 2 },
- [0x031C] = new byte[] { 2 },
- [0x031D] = new byte[] { 2 },
- [0x031E] = new byte[] { 2, 2 },
- [0x031F] = new byte[1] { 0 },
- [0x0320] = new byte[1] { 0 },
- [0x0321] = new byte[] { 2 },
- [0x0322] = new byte[1] { 0 },
- [0x0323] = new byte[] { 2 },
- [0x0324] = new byte[] { 2, 2, 2, 2 },
- [0x0325] = new byte[] { 2 },
- [0x0326] = new byte[] { 2 },
- [0x0327] = new byte[] { 2 },
- [0x0328] = new byte[] { 2 },
- [0x0329] = new byte[] { 2, 2, 2, 2 },
- [0x032A] = new byte[] { 2 },
- [0x032B] = new byte[] { 2 },
- [0x032C] = new byte[] { 2, 2, 2, 2, },
- [0x032D] = new byte[1] { 0 },
- [0x032E] = new byte[1] { 0 },
- [0x032F] = new byte[] { 2, 2 },
- [0x0330] = new byte[1] { 0 },
- [0x0331] = new byte[1] { 0 },
- [0x0332] = new byte[1] { 0 },
- [0x0333] = new byte[] { 2 },
- [0x0334] = new byte[] { 2, 2 },
- [0x0335] = new byte[] { 2, 4 },
- [0x0336] = new byte[] { 2 },
-
- //International release exclusive
- [0x0337] = new byte[] { 2, 2 },
- [0x0338] = new byte[1] { 0 },
- [0x0339] = new byte[1] { 0 },
- [0x033A] = new byte[] { 1 },
- [0x033B] = new byte[] { 1 },
- [0x033C] = new byte[] { 1, 2 },
- [0x033D] = new byte[] { 1, 2 },
- [0x033E] = new byte[] { 1, 2 },
- [0x033F] = new byte[] { 1, 2 },
- [0x0340] = new byte[] { 1, 2 },
- [0x0341] = new byte[] { 1, 2, 2, 1 },
- [0x0342] = new byte[] { 1 },
- [0x0343] = new byte[] { 1, 2 },
- [0x0344] = new byte[] { 1, 2 },
- [0x0345] = new byte[] { 1, 2 },
- [0x0346] = new byte[] { 1 },
- [0x0347] = new byte[] { 1, 1 }
+ // will be populated at runtime from json
};
public static Dictionary HGSSScrCmdNames = new Dictionary() {
- [0x0000] = "Nop",
- [0x0001] = "Dummy",
- [0x0002] = "End",
- [0x0003] = "WaitTime",
- [0x0004] = "RegValueSet",
- [0x0005] = "RegDataSet",
- [0x0006] = "RegAdrsSet",
- [0x0007] = "AdrsValueSet",
- [0x0008] = "AdrsRegSet",
- [0x0009] = "RegRegSet",
- [0x000A] = "AdrsAdrsSet",
- [0x000B] = "CompareRegs",
- [0x000C] = "CompareRegValue",
- [0x000D] = "CompareRegAdrs",
- [0x000E] = "CompareAdrsReg",
- [0x000F] = "CompareAdrsValue",
- [0x0010] = "CompareAdrsAdrs",
- [0x0011] = "CompareVarValue",
- [0x0012] = "CompareVars",
- [0x0013] = "ParallelCommonScript",
- [0x0014] = "CommonScript",
- [0x0015] = "LocalScript",
- [0x0016] = "Jump",
- [0x0017] = "JumpIfObjID",
- [0x0018] = "JumpIfBgID",
- [0x0019] = "JumpIfPlayerDir",
- [0x001A] = "Call",
- [0x001B] = "Return",
- [0x001C] = "JumpIf",
- [0x001D] = "CallIf",
- [0x001E] = "SetFlag",
- [0x001F] = "ClearFlag",
- [0x0020] = "CheckFlag",
- [0x0021] = "SetFlagFromVar",
- [0x0022] = "ClearFlagFromVar",
- [0x0023] = "FlagStatusToVar",
- [0x0024] = "SetTrainerFlag",
- [0x0025] = "ClearTrainerFlag",
- [0x0026] = "CheckTrainerFlag",
- [0x0027] = "IncrementVar",
- [0x0028] = "DecrementVar",
- [0x0029] = "SetVar",
- [0x002A] = "SetVarFromVariable",
- [0x002B] = "SetVarFromFlexible",
- [0x002C] = "MessageAll",
- [0x002D] = "Message",
- [0x002E] = "MessageFlex",
- [0x002F] = "MessageNoSkip",
-
- [0x0031] = "WaitAB",
- [0x0032] = "WaitButton",
- [0x0033] = "WaitABPad",
- [0x0034] = "OpenMessage",
- [0x0035] = "CloseMessage",
- [0x0036] = "FreezeMessage",
- [0x0037] = "SetIconBoard",
- [0x0038] = "SetTextBoard",
- [0x0039] = "ShowBoard",
- [0x003A] = "WaitBoard",
- [0x003B] = "BoardMessage",
- [0x003C] = "CloseBoard",
- [0x003D] = "Menu",
-
- [0x003F] = "YesNoBox",
- [0x0040] = "MultiStandardText",
- [0x0041] = "MultiLocalText",
- [0x0042] = "AddMultiOption",
- [0x0043] = "ShowMulti",
- [0x0044] = "ListStandardText",
- [0x0045] = "ListLocalText",
- [0x0046] = "AddListOption",
- [0x0047] = "ShowList",
- [0x0048] = "MultiColumn",
- [0x0049] = "PlayFanfare",
- [0x004A] = "StopFanfare",
- [0x004B] = "WaitFanfare",
- [0x004C] = "PlayCry",
- [0x004D] = "WaitCry",
- [0x004E] = "PlaySound",
- [0x004F] = "WaitSound",
- [0x0050] = "PlayMusic",
- [0x0051] = "StopMusic",
- [0x0052] = "PlayDefaultMusic",
- [0x0053] = "SetMusic",
- [0x0054] = "FadeOutMusic",
- [0x0055] = "FadeInMusic",
- [0x0056] = "SetMusicPauseStatus",
- [0x0059] = "CheckChatotCry",
- [0x005A] = "StartChatotCry",
- [0x005B] = "StopChatotCry",
- [0x005C] = "SaveChatotCry",
-
- [0x005E] = "Movement",
- [0x005F] = "WaitMovement",
- [0x0060] = "LockAll",
- [0x0061] = "ReleaseAll",
- [0x0062] = "Lock",
- [0x0063] = "Release",
- [0x0064] = "AddOW",
- [0x0065] = "RemoveOW",
- [0x0066] = "LockCamera",
- [0x0067] = "ReleaseCamera",
- [0x0068] = "FacePlayer",
- [0x0069] = "GetPlayerPosition",
- [0x006A] = "GetOWPosition",
-
- [0x006C] = "KeepOverworld",
- [0x006D] = "SetOWMovement",
- [0x006E] = "GiveMoney",
- [0x006F] = "TakeMoney",
- [0x0070] = "CompareMoney",
- [0x0071] = "ShowMoney",
- [0x0072] = "HideMoney",
- [0x0073] = "UpdateMoney",
- [0x0074] = "ShowSpecialCurrency",
- [0x0075] = "HideSpecialCurrency",
- [0x0076] = "UpdateSpecialCurrency",
- [0x0077] = "CheckCoins",
- [0x0078] = "GiveCoins",
- [0x0079] = "TakeCoins",
- [0x007A] = "GiveAthletePoints",
- [0x007B] = "TakeAthletePoints",
- [0x007C] = "CompareAthletePoints",
- [0x007D] = "GiveItem",
- [0x007E] = "TakeItem",
- [0x007F] = "CheckItemSpace",
- [0x0080] = "CheckItem",
- [0x0081] = "CheckItemIsMachine",
- [0x0082] = "GetItemPocket",
- [0x0083] = "SetStarter",
- [0x0084] = "GenderMessage",
-
- [0x0089] = "GivePokemon",
- [0x008A] = "GivePokemonEgg",
- [0x008B] = "ReplaceMove",
- [0x008C] = "CheckPokemonHasMove",
- [0x008D] = "CheckMoveInParty",
-
- [0x008F] = "ChooseRivalName",
- [0x0090] = "GetCounterpartSprite",
- [0x0091] = "UpgradePokegear",
- [0x0092] = "RecordPokegearNumber", //to be confirmed
-
- [0x0096] = "ReturnScreen",
-
- [0x009D] = "WorldMapScreen",
-
- [0x00A3] = "EndGameScreen",
-
- [0x00A7] = "StarterSelectionScreen",
-
- [0x00AC] = "ChoosePlayerName",
- [0x00AD] = "ChoosePokemonNickname",
- [0x00AE] = "FadeScreen",
- [0x00AF] = "WaitFadeScreen",
- [0x00B0] = "Warp",
- [0x00B1] = "RockClimbAnimation",
- [0x00B2] = "SurfAnimation",
- [0x00B3] = "WaterfallAnimation",
- [0x00B4] = "FlyAnimation",
- [0x00B5] = "FlashAnimation",
- [0x00B6] = "WhirlpoolAnimation",
- [0x00B7] = "CutAnimation",
- [0x00B8] = "CheckBike",
- [0x00B9] = "RideBike",
- [0x00BA] = "CyclingRoad",
- [0x00BB] = "CheckPlayerForm",
- [0x00BC] = "SetPlayerForm",
- [0x00BD] = "UpdatePlayerForm",
- [0x00BE] = "TextPlayerName",
- [0x00BF] = "TextRivalName",
- [0x00C0] = "TextCounterpart",
- [0x00C1] = "TextPartyPokemon",
- [0x00C2] = "TextItem",
- [0x00C2] = "TextPocket",
- [0x00C4] = "TextAttackItem",
- [0x00C5] = "TextMove",
- [0x00C6] = "TextNumber",
- [0x00C7] = "TextPokeNickname",
-
- [0x00C9] = "TextPlayerTrainerType",
- [0x00CA] = "TextPokemon",
- [0x00CB] = "TextStarterPokemon",
- [0x00CC] = "TextRivalStarter",
- [0x00CD] = "TextCounterpartStarter",
- [0x00CE] = "CheckStarter",
- [0x00CF] = "DummyTextGoods",
- [0x00D0] = "DummyTextTrap",
- [0x00D1] = "DummyTextTreasure",
- [0x00D2] = "TextMapName",
- [0x00D3] = "GetSwarmInfo",
- [0x00D4] = "TrainerID",
- [0x00D5] = "TrainerBattle",
- [0x00D6] = "TrainerMessage",
- [0x00D7] = "TrainerMsgCheck",
- [0x00D8] = "TrainerRematchMsgCheck",
- [0x00D9] = "TrainerTypeCheck",
- [0x00DA] = "TrainerMusic",
- [0x00DB] = "LostBattle",
- [0x00DC] = "CheckBattleIsLost",
- [0x00DD] = "CheckDefeatedPokemon",
- [0x00DE] = "Check2vs2",
- [0x00DF] = "DummyTrainerBattle",
- [0x00E0] = "DummyTrainerFlag",
- [0x00E1] = "DummyTrainerFlagJump",
-
- [0x00EE] = "CheckPokerus",
- [0x00EF] = "GetPokemonGender",
-
- [0x00F1] = "GetElevatorFloor",
- [0x00F2] = "ElevatorBox",
- [0x00F3] = "CountJohtoDexSeen",
- [0x00F4] = "CountJohtoDexObtained",
- [0x00F5] = "CountNationalDexSeen",
- [0x00F6] = "CountNationalDexObtained",
- [0x00F7] = "DummyNationalDexCheck",
- [0x00F8] = "GetDexProgressMsg",
- [0x00F9] = "WildBattle",
- [0x00FA] = "WildBattleNoButtons",
- [0x00FB] = "CatchTutorial",
-
- [0x00FD] = "CheckSaveGame",
-
- [0x0113] = "MartScreen",
- [0x0114] = "SpMartScreen",
- [0x0115] = "GoodsMartScreen",
- [0x0116] = "SealMartScreen",
- [0x0117] = "DummyLostBattle",
- [0x0118] = "SetLastWarp",
- [0x0119] = "CheckPlayerGender",
- [0x011A] = "HealPokemon",
-
- [0x0122] = "CheckPokedex",
- [0x0123] = "GivePokedex",
- [0x0124] = "CheckShoes",
- [0x0125] = "GiveShoes",
- [0x0126] = "CheckBadge",
- [0x0127] = "GiveBadge",
- [0x0128] = "CountBadges",
- [0x0129] = "DummyCheckBag",
- [0x012A] = "DummyGiveBag",
- [0x012B] = "CheckPartner",
- [0x012C] = "SetPartner",
- [0x012D] = "ClearPartner",
-
- [0x0131] = "DummyCheckGameCompleted",
- [0x0132] = "DummyGameCompleted",
- [0x0133] = "DoorAnimation",
- [0x0134] = "WaitDoor",
- [0x0135] = "FreeDoor",
- [0x0136] = "OpenDoor",
- [0x0137] = "CloseDoor",
- [0x0138] = "GetDaycareNames",
- [0x0139] = "GetDaycareStatus",
-
- [0x0141] = "VermillionGymAnimation",
- [0x0142] = "VermillionGymBin",
-
- [0x0144] = "InitVioletGym",
- [0x0145] = "VioletGymElevator",
-
- [0x0147] = "AzaleaGym",
- [0x0148] = "AzaleaGym2",
-
- [0x014C] = "GetPartyCount",
-
- [0x0152] = "SetOWDefaultPosition",
- [0x0153] = "SetOWPosition",
- [0x0154] = "SetOWDefaultMovement",
- [0x0155] = "SetOWDefaultDirection",
- [0x0156] = "SetWarpPosition",
- [0x0157] = "SetSpawnablePosition",
- [0x0158] = "SetOWDirection",
-
- [0x015C] = "WaitTimeOrAB",
-
- [0x015F] = "GetSelectedPartySlot",
-
- [0x0162] = "GetPartyPokemonID",
- [0x0163] = "CheckTradedPokemon",
- [0x0164] = "CountPartyBornPokemon",
- [0x0165] = "CountAlivePokemonExceptFirst",
- [0x0166] = "CountTotalAlivePokemon",
- [0x0167] = "CountPartyEggs",
- [0x0168] = "TakeMoneyFlex",
-
- [0x016C] = "DeletePartyPokemon",
-
- [0x0170] = "CompareMoneyFlex",
- [0x0171] = "EggHatchScreen", //This command is dangerous when used without an egg in party
-
- [0x0176] = "UnvanishOverworld",
- [0x0177] = "VanishOverworld",
- [0x0178] = "MailScreen",
- [0x0179] = "CountMail",
-
- [0x017B] = "GetTimePeriod",
- [0x017C] = "GetRandom",
- [0x017D] = "DummyGetRandom",
- [0x017E] = "GetPokemonHappiness",
- [0x017F] = "AddHappiness",
- [0x0180] = "SubHappiness",
- [0x0181] = "TextDaycareMonData",
- [0x0182] = "GetPlayerDirection",
-
- [0x0185] = "CheckBornPokemonInParty",
- [0x0186] = "ComparePokemonPlayerSize",
- [0x0187] = "SetPokemonSizeRecord",
- [0x0188] = "TextPartyPokemonSize",
- [0x0189] = "TextPokemonRecordSize",
-
- [0x018C] = "GetMoveCount",
- [0x018D] = "DeleteMove",
- [0x018E] = "GetPartyPokemonMove",
- [0x018F] = "TextPartyPokemonMove",
- [0x0190] = "Strength",
-
- [0x01A7] = "CheckCompleteJohtoDex",
- [0x01A8] = "CheckCompleteNationalDex",
-
- [0x01AD] = "GetFossilCount",
-
- [0x01AE] = "PreparePokeGearCall",
- [0x01AF] = "StartPokeGearCall",
-
- [0x01B0] = "GetPokeNameFromFossil",
- [0x01B1] = "CheckFossil",
- [0x01B2] = "CountPokemonUnderLevel",
- [0x01B3] = "SurvivePoison",
- [0x01B4] = "FinishOverworldScreen",
- [0x01B5] = "DummyGetVar",
-
- [0x01BD] = "GetPreviousHeaderID",
- [0x01BE] = "GetCurrentHeaderID",
- [0x01BF] = "SetSafariFlag",
-
- [0x01C2] = "GeonetScreen",
-
- [0x01C4] = "ShowPokemonPic",
- [0x01C5] = "HidePokemonPic",
-
- [0x01D0] = "AddRoamingPokemon",
- [0x01D1] = "UnionGroup",
-
- [0x01D6] = "InitTrade",
- [0x01D7] = "GetOfferedPokemon",
- [0x01D8] = "GetRequestedPokemon",
- [0x01D9] = "TradePokemonScreen",
- [0x01DA] = "EndTrade",
- [0x01DB] = "DummyInternationalDex",
- [0x01DC] = "DummyDimorphismDex",
- [0x01DD] = "NationalDex",
- [0x01DE] = "PokemonRibbonCount",
- [0x01DF] = "PartyRibbonCount",
- [0x01E0] = "CheckRibbon",
- [0x01E1] = "GiveRibbon",
- [0x01E2] = "TextRibbon",
- [0x01E3] = "CountPokemonEVs",
- [0x01E4] = "GetDayOfWeek",
- [0x01E5] = "ShowRulesList",
- [0x01E6] = "DummyGetPokemonFootprint",
- [0x01E7] = "PCHealAnimation",
- [0x01E8] = "ElevatorAnimation",
- [0x01E9] = "MysteryGiftGive",
-
- [0x01EF] = "CheckVersion",
- [0x01F0] = "FirstPokemonInParty",
- [0x01F1] = "GetPartyPokemonTypes",
-
- [0x01F7] = "GetLottoNumber",
- [0x01F8] = "CheckWinLotto",
- [0x01F9] = "InitLotto",
-
- [0x01FB] = "CountPCFreeSpace",
-
- [0x0204] = "TextAccessory",
- [0x0205] = "CheckPokemonInParty",
- [0x0206] = "SetDeoxysForm",
- [0x0207] = "CheckBurmyForms",
-
- [0x020A] = "GetHour",
- [0x020B] = "ShakeOverworld",
- [0x020C] = "BlinkOverworld",
- [0x020D] = "CheckRegis",
-
- [0x020F] = "MessageUnown",
- [0x0210] = "CheckGBACartidge",
- [0x0211] = "GetFirstAlivePokemonSlot",
- [0x0212] = "SetMatrixAlternativeMap",
-
- [0x0217] = "GetPokemonLevel",
-
- [0x021D] = "TextNumberSp",
-
- [0x021F] = "CheckBirthday",
- [0x0220] = "MusicVolumeSet",
- [0x0221] = "CountSeenUnown",
-
- [0x0231] = "ShakeCamera",
- [0x0232] = "Battle2vs2",
-
- [0x0236] = "PartyPokemonTradeScreen",
-
- [0x024D] = "WildBattleSp",
- [0x024E] = "CheckTrainerCardLevel",
- [0x024F] = "DummyRideBike",
-
- [0x0251] = "ShowSaveBox",
- [0x0252] = "HideSaveBox",
- [0x0253] = "ScopeMode",
- [0x0254] = "GetFollowingPokeSize",
-
- [0x0257] = "FollowingPokePCAnimation",
- [0x0258] = "SendBackFollowingPoke",
- [0x0259] = "FollowingPokeFacePlayer",
- [0x025A] = "LockFollowingPoke",
- [0x025B] = "WaitFollowingPoke",
- [0x025C] = "SetFollowingPokeMovement",
- [0x025D] = "SetFollowingPokePosition",
- [0x025E] = "BallResetFollowingPoke",
- [0x025F] = "NoBallResetFollowingPoke",
- [0x0260] = "SendOutFollowingPoke",
- [0x0261] = "MecScript",
-
- [0x0267] = "TakePhoto",
-
- [0x026A] = "CheckAlbumPhoto",
-
- [0x026E] = "GetOWDirection",
- [0x026F] = "HarvestApricorn",
- [0x0270] = "GetApricornColor",
- [0x0271] = "GiveApricorn",
- [0x0272] = "TextApricorn",
-
- [0x0289] = "ScratchOffScreen",
- [0x028A] = "ReleaseScriptApp",
-
- [0x0290] = "CheckHeadbuttCompatibility",
-
- [0x02AB] = "GetBattleOutcome",
- [0x02AC] = "GetCurrentWeather",
- [0x02AD] = "GetPlayerPositionFull",
- [0x02AE] = "WildBattleFateful",
- [0x02AF] = "RegisterSeenPokemon",
-
- [0x02BF] = "SetFieldVolume",
-
-
- [0x02C4] = "FloorTrapAnimation",
-
- [0x02C7] = "TalkFollowingPoke",
-
- [0x02C9] = "OpenAlphaPuzzle",
- [0x02CA] = "OpenRuinsofAlphHiddenRoom",
-
- [0x02D3] = "BoatAnimation",
-
-
- [0x02D9] = "CheckPokemonAlive",
- [0x02DA] = "CheckFollowingPoke",
-
- [0x02DD] = "GetBornPokemonPartyPos",
-
- [0x02EA] = "OpenTouchScreen",
- [0x02EB] = "CloseTouchScreen",
- [0x02EC] = "YesNoTouchScreen",
- [0x02ED] = "MultiTouchStandardText",
- [0x02EE] = "MultiTouchLocalText",
- [0x02EF] = "CreateMultiTouchBox",
- [0x02F0] = "CloseMultiTouch",
-
- [0x0310] = "OverlayManager",
-
- [0x031B] = "ShowMomMoney",
- [0x031C] = "HideMomMoney",
-
- [0x0344] = "CheckJadeOrbRequirements",
-
- [0x0346] = "CheckMoneyFull",
-
- [0x034B] = "TextItemLowercase",
- [0x034C] = "TextItemPlural",
- [0x034D] = "TextPartyPokemonDefault",
-
- [0x0351] = "TextTrainerClass",
- [0x0352] = "TextSealPlural",
- [0x0353] = "TextCapitalize",
- [0x0354] = "TextFloor"
+ // will be populated from json at runtime
};
+
public static Dictionary HGSSScrCmdParameters = new Dictionary() {
- [0x0000] = new byte[1] { 0 },
- [0x0001] = new byte[1] { 0 },
- [0x0002] = new byte[1] { 0 },
- [0x0003] = new byte[] { 2, 2 },
- [0x0004] = new byte[] { 1, 1 },
- [0x0005] = new byte[] { 1, 4 },
- [0x0006] = new byte[] { 1, 4 },
- [0x0007] = new byte[] { 4, 1 },
- [0x0008] = new byte[] { 4, 1 },
- [0x0009] = new byte[] { 1, 1 },
- [0x000A] = new byte[] { 4, 4 },
- [0x000B] = new byte[] { 1, 1 },
- [0x000C] = new byte[] { 1, 1 },
- [0x000D] = new byte[] { 1, 4 },
- [0x000E] = new byte[] { 4, 1 },
- [0x000F] = new byte[] { 4, 1 },
- [0x0010] = new byte[] { 4, 4 },
- [0x0011] = new byte[] { 2, 2 },
- [0x0012] = new byte[] { 2, 2 },
- [0x0013] = new byte[] { 2 },
- [0x0014] = new byte[] { 2 },
- [0x0015] = new byte[1] { 0 },
- [0x0016] = new byte[] { 4 },
- [0x0017] = new byte[] { 1, 4 },
- [0x0018] = new byte[] { 1, 4 },
- [0x0019] = new byte[] { 1, 4 },
- [0x001A] = new byte[] { 4 },
- [0x001B] = new byte[1] { 0 },
- [0x001C] = new byte[] { 1, 4 },
- [0x001D] = new byte[] { 1, 4 },
- [0x001E] = new byte[] { 2 },
- [0x001F] = new byte[] { 2 },
- [0x0020] = new byte[] { 2 },
- [0x0021] = new byte[] { 2 },
- [0x0022] = new byte[] { 2 },
- [0x0023] = new byte[] { 2, 2 },
- [0x0024] = new byte[] { 2 },
- [0x0025] = new byte[] { 2 },
- [0x0026] = new byte[] { 2 },
- [0x0027] = new byte[] { 2, 2 },
- [0x0028] = new byte[] { 2, 2 },
- [0x0029] = new byte[] { 2, 2 },
- [0x002A] = new byte[] { 2, 2 },
- [0x002B] = new byte[] { 2, 2 },
- [0x002C] = new byte[] { 1 },
- [0x002D] = new byte[] { 1 },
- [0x002E] = new byte[] { 2 },
- [0x002F] = new byte[] { 2 },
- [0x0030] = new byte[] { 1 },
- [0x0031] = new byte[1] { 0 },
- [0x0032] = new byte[1] { 0 },
- [0x0033] = new byte[1] { 0 },
- [0x0034] = new byte[1] { 0 },
- [0x0035] = new byte[1] { 0 },
- [0x0036] = new byte[1] { 0 },
- [0x0037] = new byte[] { 1, 1, 2, 2 },
- [0x0038] = new byte[] { 1, 2 },
- [0x0039] = new byte[] { 1 },
- [0x003A] = new byte[1] { 0 },
- [0x003B] = new byte[] { 1, 2 },
- [0x003C] = new byte[] { 2 },
- [0x003D] = new byte[1] { 0 },
- [0x003E] = new byte[] { 1, 1, 1, 1, 1, 1 },
- [0x003F] = new byte[] { 2 },
- [0x0040] = new byte[] { 1, 1, 1, 1, 2 },
- [0x0041] = new byte[] { 1, 1, 1, 1, 2 },
- [0x0042] = new byte[] { 1, 1 },
- [0x0043] = new byte[1] { 0 },
- [0x0044] = new byte[] { 1, 1, 1, 1, 2 },
- [0x0045] = new byte[] { 1, 1, 1, 1, 2 },
- [0x0046] = new byte[] { 2, 2, 2 },
- [0x0047] = new byte[1] { 0 },
- [0x0048] = new byte[] { 1 },
- [0x0049] = new byte[] { 2 },
- [0x004A] = new byte[] { 2 },
- [0x004B] = new byte[] { 2 },
- [0x004C] = new byte[] { 2, 2 },
- [0x004D] = new byte[1] { 0 },
- [0x004E] = new byte[] { 2 },
- [0x004F] = new byte[1] { 0 },
- [0x0050] = new byte[] { 2 },
- [0x0051] = new byte[] { 2 },
- [0x0052] = new byte[1] { 0 },
- [0x0053] = new byte[] { 2 },
- [0x0054] = new byte[] { 2, 2 },
- [0x0055] = new byte[] { 2 },
- [0x0056] = new byte[] { 1, 1 },
- [0x0057] = new byte[] { 2 },
- [0x0058] = new byte[] { 1 },
- [0x0059] = new byte[] { 2 },
- [0x005A] = new byte[] { 2 },
- [0x005B] = new byte[1] { 0 },
- [0x005C] = new byte[1] { 0 },
- [0x005D] = new byte[1] { 0 },
- [0x005E] = new byte[] { 2, 4 },
- [0x005F] = new byte[1] { 0 },
- [0x0060] = new byte[1] { 0 },
- [0x0061] = new byte[1] { 0 },
- [0x0062] = new byte[] { 2 },
- [0x0063] = new byte[] { 2 },
- [0x0064] = new byte[] { 2 },
- [0x0065] = new byte[] { 2 },
- [0x0066] = new byte[] { 2, 2 },
- [0x0067] = new byte[1] { 0 },
- [0x0068] = new byte[1] { 0 },
- [0x0069] = new byte[] { 2, 2 },
- [0x006A] = new byte[] { 2, 2, 2 },
- [0x006B] = new byte[] { 2, 2, 2 },
- [0x006C] = new byte[] { 2, 1 },
- [0x006D] = new byte[] { 2, 2 },
- [0x006E] = new byte[] { 4 },
- [0x006F] = new byte[] { 4 },
- [0x0070] = new byte[] { 2, 4 },
- [0x0071] = new byte[] { 2, 2 },
- [0x0072] = new byte[1] { 0 },
- [0x0073] = new byte[1] { 0 },
- [0x0074] = new byte[] { 1, 2, 2 },
- [0x0075] = new byte[1] { 0 },
- [0x0076] = new byte[] { 1 },
- [0x0077] = new byte[] { 2 },
- [0x0078] = new byte[] { 2 },
- [0x0079] = new byte[] { 2 },
- [0x007A] = new byte[] { 2 },
- [0x007B] = new byte[] { 2 },
- [0x007C] = new byte[] { 2, 2 },
- [0x007D] = new byte[] { 2, 2, 2 },
- [0x007E] = new byte[] { 2, 2, 2 },
- [0x007F] = new byte[] { 2, 2, 2 },
- [0x0080] = new byte[] { 2, 2, 2 },
- [0x0081] = new byte[] { 2, 2 },
- [0x0082] = new byte[] { 2, 2 },
- [0x0083] = new byte[] { 2 },
- [0x0084] = new byte[] { 1, 1 },
- [0x0085] = new byte[] { 2, 2 },
- [0x0086] = new byte[] { 2, 2 },
- [0x0087] = new byte[] { 2, 2, 2 },
- [0x0088] = new byte[] { 2, 2 },
- [0x0089] = new byte[] { 2, 2, 2, 2, 2, 2 },
- [0x008A] = new byte[] { 2, 2 },
- [0x008B] = new byte[] { 2, 2, 2 },
- [0x008C] = new byte[] { 2, 2, 2 },
- [0x008D] = new byte[] { 2, 2 },
- [0x008E] = new byte[] { 2, 2 },
- [0x008F] = new byte[] { 2 },
- [0x0090] = new byte[] { 2 },
- [0x0091] = new byte[] { 1 },
- [0x0092] = new byte[] { 2 },
- [0x0093] = new byte[] { 2, 2 },
- [0x0094] = new byte[] { 2, 2 },
- [0x0095] = new byte[] { 1 },
- [0x0096] = new byte[1] { 0 },
- [0x0097] = new byte[1] { 0 },
- [0x0098] = new byte[1] { 0 },
- [0x0099] = new byte[] { 2, 2, 2 },
- [0x009A] = new byte[] { 2, 2, 2 },
- [0x009B] = new byte[] { 2, 2 },
- [0x009C] = new byte[1] { 0 },
- [0x009D] = new byte[1] { 0 },
- [0x009E] = new byte[] { 1 },
- [0x009F] = new byte[1] { 0 },
- [0x00A0] = new byte[1] { 0 },
- [0x00A1] = new byte[1] { 0 },
- [0x00A2] = new byte[1] { 0 },
- [0x00A3] = new byte[] { 2 },
- [0x00A4] = new byte[] { 2, 2, 2, 2 },
- [0x00A5] = new byte[] { 2, 2 },
- [0x00A6] = new byte[] { 2 },
- [0x00A7] = new byte[1] { 0 },
- [0x00A8] = new byte[] { 2 },
- [0x00A9] = new byte[] { 2, 2 },
- [0x00AA] = new byte[] { 2 },
- [0x00AB] = new byte[] { 2, 2 },
- [0x00AC] = new byte[1] { 2 },
- [0x00AD] = new byte[] { 2, 2 },
- [0x00AE] = new byte[] { 2, 2, 2, 2 },
- [0x00AF] = new byte[1] { 0 },
- [0x00B0] = new byte[] { 2, 2, 2, 2, 2 },
- [0x00B1] = new byte[] { 2 },
- [0x00B2] = new byte[] { 2 },
- [0x00B3] = new byte[] { 2 },
- [0x00B4] = new byte[] { 2, 2, 2 },
- [0x00B5] = new byte[1] { 0 },
- [0x00B6] = new byte[] { 2 },
- [0x00B7] = new byte[] { 2 },
- [0x00B8] = new byte[] { 2 },
- [0x00B9] = new byte[] { 1 },
- [0x00BA] = new byte[] { 1 },
- [0x00BB] = new byte[] { 2 },
- [0x00BC] = new byte[] { 2 },
- [0x00BD] = new byte[1] { 0 },
- [0x00BE] = new byte[] { 1 },
- [0x00BF] = new byte[] { 1 },
- [0x00C0] = new byte[] { 1 },
- [0x00C1] = new byte[] { 1, 2 },
- [0x00C2] = new byte[] { 1, 2 },
- [0x00C3] = new byte[] { 1, 2 },
- [0x00C4] = new byte[] { 1, 2 },
- [0x00C5] = new byte[] { 1, 2 },
- [0x00C6] = new byte[] { 1, 2 },
- [0x00C7] = new byte[] { 1, 2 },
- [0x00C8] = new byte[] { 1, 2 },
- [0x00C9] = new byte[] { 1 },
- [0x00CA] = new byte[] { 1, 2, 2, 1 },
- [0x00CB] = new byte[] { 1 },
- [0x00CC] = new byte[] { 1 },
- [0x00CD] = new byte[] { 1 },
- [0x00CE] = new byte[] { 2 },
- [0x00CF] = new byte[] { 1 },
- [0x00D0] = new byte[] { 1, 2 },
- [0x00D1] = new byte[] { 1, 2 },
- [0x00D2] = new byte[] { 1, 2 },
- [0x00D3] = new byte[] { 1, 2 },
- [0x00D4] = new byte[] { 2 },
- [0x00D5] = new byte[] { 2, 2, 1, 1 },
- [0x00D6] = new byte[] { 2, 2 },
- [0x00D7] = new byte[] { 2, 2, 2 },
- [0x00D8] = new byte[] { 2, 2, 2 },
- [0x00D9] = new byte[] { 2 },
- [0x00DA] = new byte[] { 2 },
- [0x00DB] = new byte[1] { 0 },
- [0x00DC] = new byte[] { 2 },
- [0x00DD] = new byte[] { 2, 1 },
- [0x00DE] = new byte[] { 2 },
- [0x00DF] = new byte[1] { 0 },
- [0x00E0] = new byte[1] { 0 },
- [0x00E1] = new byte[] { 4 },
- [0x00E2] = new byte[] { 2, 2, 2, 2 },
- [0x00E3] = new byte[] { 2, 2, 2, 2 },
- [0x00E4] = new byte[] { 2 },
- [0x00E5] = new byte[] { 2, 2 },
- [0x00E6] = new byte[1] { 0 },
- [0x00E7] = new byte[] { 2, 2, 2 },
- [0x00E8] = new byte[] { 2, 2, 2 },
- [0x00E9] = new byte[] { 2 },
- [0x00EA] = new byte[] { 2, 2, 2, 2 },
- [0x00EB] = new byte[] { 2 },
- [0x00EC] = new byte[] { 2, 2, 2, 2, 2 },
- [0x00ED] = new byte[1] { 0 },
- [0x00EE] = new byte[] { 2 },
- [0x00EF] = new byte[] { 2, 2 },
- [0x00F0] = new byte[] { 2, 2, 2, 2, 2 },
- [0x00F1] = new byte[] { 2 },
- [0x00F2] = new byte[] { 1, 1, 2, 2 },
- [0x00F3] = new byte[] { 2 },
- [0x00F4] = new byte[] { 2 },
- [0x00F5] = new byte[] { 2 },
- [0x00F6] = new byte[] { 2 },
- [0x00F7] = new byte[1] { 0 },
- [0x00F8] = new byte[] { 1, 2, 2 },
- [0x00F9] = new byte[] { 2, 2 },
- [0x00FA] = new byte[] { 2, 2 },
- [0x00FB] = new byte[1] { 0 },
- [0x00FC] = new byte[1] { 0 },
- [0x00FD] = new byte[] { 2 },
- [0x00FE] = new byte[] { 2 },
- [0x00FF] = new byte[] { 2, 2 },
- [0x0100] = new byte[] { 2 },
- [0x0101] = new byte[] { 2 },
- [0x0102] = new byte[] { 2, 2 },
- [0x0103] = new byte[] { 1, 1 },
- [0x0104] = new byte[] { 2 },
- [0x0105] = new byte[] { 2 },
- [0x0106] = new byte[1] { 0 },
- [0x0107] = new byte[1] { 0 },
- [0x0108] = new byte[] { 2 },
- [0x0109] = new byte[1] { 0 },
- [0x010A] = new byte[1] { 0 },
- [0x010B] = new byte[] { 2, 2 },
- [0x010C] = new byte[] { 2 },
- [0x010D] = new byte[] { 2, 2, 2, 2 },
- [0x010E] = new byte[] { 2 },
- [0x010F] = new byte[] { 2, 2 },
- [0x0110] = new byte[] { 2 },
- [0x0111] = new byte[] { 2 },
- [0x0112] = new byte[] { 2, 2 },
- [0x0113] = new byte[] { 2 },
- [0x0114] = new byte[] { 2 },
- [0x0115] = new byte[] { 2 },
- [0x0116] = new byte[] { 2 },
- [0x0117] = new byte[1] { 0 },
- [0x0118] = new byte[] { 2 },
- [0x0119] = new byte[] { 2 },
- [0x011A] = new byte[1] { 0 },
- [0x011B] = new byte[1] { 0 },
- [0x011C] = new byte[1] { 0 },
- [0x011D] = new byte[] { 2, 2 },
- [0x011E] = new byte[] { 2 },
- [0x011F] = new byte[] { 2, 2 },
- [0x0120] = new byte[] { 2, 2 },
- [0x0121] = new byte[] { 2 },
- [0x0122] = new byte[] { 2 },
- [0x0123] = new byte[1] { 0 },
- [0x0124] = new byte[] { 2 },
- [0x0125] = new byte[1] { 0 },
- [0x0126] = new byte[] { 2, 2 },
- [0x0127] = new byte[] { 2 },
- [0x0128] = new byte[] { 2 },
- [0x0129] = new byte[] { 2 },
- [0x012A] = new byte[1] { 0 },
- [0x012B] = new byte[] { 2 },
- [0x012C] = new byte[1] { 0 },
- [0x012D] = new byte[1] { 0 },
- [0x012E] = new byte[] { 2, 2 },
- [0x012F] = new byte[] { 2, 2 },
- [0x0130] = new byte[] { 2 },
- [0x0131] = new byte[] { 2 },
- [0x0132] = new byte[] { 0 },
- [0x0133] = new byte[] { 2, 2, 2, 2, 1 },
- [0x0134] = new byte[] { 1 },
- [0x0135] = new byte[] { 1 },
- [0x0136] = new byte[] { 1 },
- [0x0137] = new byte[] { 1 },
- [0x0138] = new byte[1] { 0 },
- [0x0139] = new byte[] { 2 },
- [0x013A] = new byte[1] { 0 },
- [0x013B] = new byte[1] { 0 },
- [0x013C] = new byte[1] { 0 },
- [0x013D] = new byte[] { 1 },
- [0x013E] = new byte[1] { 0 },
- [0x013F] = new byte[] { 2 },
- [0x0140] = new byte[] { 2 },
- [0x0141] = new byte[] { 2 },
- [0x0142] = new byte[] { 1, 2 },
- [0x0143] = new byte[] { 2, 2 },
- [0x0144] = new byte[1] { 0 },
- [0x0145] = new byte[1] { 0 },
- [0x0146] = new byte[1] { 0 },
- [0x0147] = new byte[] { 1 },
- [0x0148] = new byte[] { 1 },
- [0x0149] = new byte[1] { 0 },
- [0x014A] = new byte[1] { 0 },
- [0x014B] = new byte[1] { 0 },
- [0x014C] = new byte[] { 2 },
- [0x014D] = new byte[] { 2 },
- [0x014E] = new byte[1] { 0 },
- [0x014F] = new byte[1] { 0 },
- [0x0150] = new byte[1] { 0 },
- [0x0151] = new byte[1] { 0 },
- [0x0152] = new byte[] { 2, 2, 2 },
- [0x0153] = new byte[] { 2, 2, 2, 2, 2 },
- [0x0154] = new byte[] { 2, 2 },
- [0x0155] = new byte[] { 2, 2 },
- [0x0156] = new byte[] { 2, 2, 2 },
- [0x0157] = new byte[] { 2, 2, 2 },
- [0x0158] = new byte[] { 2, 2 },
- [0x0159] = new byte[1] { 0 },
- [0x015A] = new byte[1] { 0 },
- [0x015B] = new byte[] { 2, 2 },
- [0x015C] = new byte[] { 2 },
- [0x015D] = new byte[1] { 0 },
- [0x015E] = new byte[1] { 0 },
- [0x015F] = new byte[] { 2 },
- [0x0160] = new byte[] { 1, 2, 2 },
- [0x0161] = new byte[] { 1, 2 },
- [0x0162] = new byte[] { 2, 2 },
- [0x0163] = new byte[] { 2, 2 },
- [0x0164] = new byte[] { 2 },
- [0x0165] = new byte[] { 2, 2 },
- [0x0166] = new byte[] { 2 },
- [0x0167] = new byte[] { 2 },
- [0x0168] = new byte[] { 2 },
- [0x0169] = new byte[] { 2, 2 },
- [0x016A] = new byte[] { 2, 2 },
- [0x016B] = new byte[] { 1, 2, 2 },
- [0x016C] = new byte[] { 2 },
- [0x016D] = new byte[1] { 0 },
- [0x016E] = new byte[1] { 0 },
- [0x016F] = new byte[] { 2, 2 },
- [0x0170] = new byte[] { 2, 2 },
- [0x0171] = new byte[1] { 0 },
- [0x0172] = new byte[1] { 0 },
- [0x0173] = new byte[] { 2, 2 },
- [0x0174] = new byte[] { 2, 2 },
- [0x0175] = new byte[] { 2 },
- [0x0176] = new byte[] { 2 },
- [0x0177] = new byte[] { 2 },
- [0x0178] = new byte[1] { 0 },
- [0x0179] = new byte[] { 2 },
- [0x017A] = new byte[] { 2, 2 },
- [0x017B] = new byte[] { 2 },
- [0x017C] = new byte[] { 2, 2 },
- [0x017D] = new byte[] { 2, 2 },
- [0x017E] = new byte[] { 2, 2 },
- [0x017F] = new byte[] { 2, 2 },
- [0x0180] = new byte[] { 2, 2 },
- [0x0181] = new byte[] { 2, 2, 2, 2 },
- [0x0182] = new byte[] { 2 },
- [0x0183] = new byte[] { 2 },
- [0x0184] = new byte[] { 2 },
- [0x0185] = new byte[] { 2, 2 },
- [0x0186] = new byte[] { 2, 2 },
- [0x0187] = new byte[] { 2 },
- [0x0188] = new byte[] { 2, 2, 2 },
- [0x0189] = new byte[] { 2, 2, 2 },
- [0x018A] = new byte[] { 2 },
- [0x018B] = new byte[] { 2 },
- [0x018C] = new byte[] { 2, 2 },
- [0x018D] = new byte[] { 2, 2 },
- [0x018E] = new byte[] { 2, 2, 2 },
- [0x018F] = new byte[] { 1, 2, 2 },
-
- [0x0190] = new byte[] { 0xFF, 1, //0xFF signals that this scrcmd takes a variable num of parameters, 1 is the size of the 1st par
- 0, 0, //if 1st par is 0, read 0 parameters
- 1, 0, //if 1st par is 1, read 0 parameters
- 2, 1, 2 //if 1st par is 2, read 1 parameter of size = 2 bytes
- },
-
- [0x0191] = new byte[] { 0xFF, 1, //0xFF signals that this scrcmd takes a variable num of parameters, 1 is the size of the 1st par
- 0, 0, //if 1st par is 0, read 0 parameters
- 1, 0, //if 1st par is 1, read 0 parameters
- 2, 1, 2 //if 1st par is 2, read 1 parameter of size = 2 bytes
- },
-
- [0x0192] = new byte[] { 0xFF, 1, //0xFF signals that this scrcmd takes a variable num of parameters, 1 is the size of the 1st par
- 0, 0, //if 1st par is 0, read 0 parameters
- 1, 0, //if 1st par is 1, read 0 parameters
- 2, 1, 2 //if 1st par is 2, read 1 parameter of size = 2 bytes
- },
-
- [0x0193] = new byte[] { 2, 2 },
- [0x0194] = new byte[] { 2, 2, 2 },
- [0x0195] = new byte[] { 2, 2 },
- [0x0196] = new byte[] { 2 },
- [0x0197] = new byte[] { 2, 2 },
- [0x0198] = new byte[] { 2, 2 },
- [0x0199] = new byte[1] { 0 },
- [0x019A] = new byte[] { 2, 2 },
- [0x019B] = new byte[1] { 0 },
- [0x019C] = new byte[] { 2, 2, 2 },
- [0x019D] = new byte[] { 2, 2, 2, 2 },
- [0x019E] = new byte[] { 2 },
- [0x019F] = new byte[] { 2 },
- [0x01A0] = new byte[] { 2, 2, 2 },
- [0x01A1] = new byte[] { 2, 2 },
- [0x01A2] = new byte[] { 2, 2 },
- [0x01A3] = new byte[] { 2 },
- [0x01A4] = new byte[] { 2 },
- [0x01A5] = new byte[1] { 0 },
- [0x01A6] = new byte[1] { 0 },
- [0x01A7] = new byte[] { 2 },
- [0x01A8] = new byte[] { 2 },
- [0x01A9] = new byte[] { 2 },
- [0x01AA] = new byte[] { 1, 2, 2 },
- [0x01AB] = new byte[] { 2, 2 },
- [0x01AC] = new byte[] { 2 },
- [0x01AD] = new byte[] { 2 },
- [0x01AE] = new byte[] { 2, 2, 2 },
- [0x01AF] = new byte[1] { 0 },
- [0x01B0] = new byte[] { 2, 2 },
- [0x01B1] = new byte[] { 2, 2, 2 },
- [0x01B2] = new byte[] { 2, 2 },
- [0x01B3] = new byte[] { 2, 2 },
- [0x01B4] = new byte[1] { 0 },
- [0x01B5] = new byte[] { 2 },
- [0x01B6] = new byte[] { 2, 2 },
- [0x01B7] = new byte[] { 2, 2 },
- [0x01B8] = new byte[] { 2, 2 },
- [0x01B9] = new byte[] { 2, 2 },
- [0x01BA] = new byte[] { 2, 2 },
- [0x01BB] = new byte[1] { 0 },
- [0x01BC] = new byte[] { 1, 2, 2, 1 },
- [0x01BD] = new byte[] { 2 },
- [0x01BE] = new byte[] { 2 },
- [0x01BF] = new byte[] { 1, 1 },
- [0x01C0] = new byte[] { 2, 2, 2, 2, 2 },
- [0x01C1] = new byte[] { 2, 2 },
- [0x01C2] = new byte[1] { 0 },
- [0x01C3] = new byte[] { 2 },
- [0x01C4] = new byte[] { 2, 2 },
- [0x01C5] = new byte[1] { 0 },
- [0x01C6] = new byte[1] { 0 },
- [0x01C7] = new byte[] { 2 },
- [0x01C8] = new byte[] { 2, 2 },
- [0x01C9] = new byte[] { 2, 2 },
- [0x01CA] = new byte[] { 2, 2, 2 },
- [0x01CB] = new byte[1] { 0 },
- [0x01CC] = new byte[] { 2, 2 },
- [0x01CD] = new byte[] { 1, 2, 2 },
- [0x01CE] = new byte[] { 2 },
- [0x01CF] = new byte[1] { 0 },
- [0x01D0] = new byte[] { 1 },
- [0x01D1] = new byte[] { 0xFF, 2, //0xFF = Variable number of parameters, 2 = size of first parameter
- 0, 2, 2, 2, //if value is 0, read 2 parameters... first one takes up 2 bytes, second par takes up 2 bytes
- 1, 2, 2, 2, //if value is 1, read 2 parameters... first one takes up 2 bytes, second par takes up 2 bytes
- 2, 2, 2, 2, //if value is 2, read 2 parameters... first one takes up 2 bytes, second par takes up 2 bytes
- 3, 2, 2, 2, //if value is 3, read 2 parameters... first one takes up 2 bytes, second par takes up 2 bytes
- 4, 1, 2, //if value is 4, read 1 parameter... which takes up 2 bytes
- 5, 1, 2, //if value is 5, read 1 parameter... which takes up 2 bytes
- 6, 0, //if value is 6, don't read anything
- 7, 1, 2, //if value is 7, read 1 parameter... which takes up 2 bytes
- },
- [0x01D2] = new byte[] { 2, 2 },
- [0x01D3] = new byte[] { 2 },
- [0x01D4] = new byte[] { 2, 2 },
- [0x01D5] = new byte[] { 2 },
- [0x01D6] = new byte[] { 1 },
- [0x01D7] = new byte[] { 2 },
- [0x01D8] = new byte[] { 2 },
- [0x01D9] = new byte[] { 2 },
- [0x01DA] = new byte[1] { 0 },
- [0x01DB] = new byte[1] { 0 },
- [0x01DC] = new byte[1] { 0 },
- [0x01DD] = new byte[] { 1, 2 },
- [0x01DE] = new byte[] { 2, 2 },
- [0x01DF] = new byte[] { 2 },
- [0x01E0] = new byte[] { 2, 2, 2 },
- [0x01E1] = new byte[] { 2, 2 },
- [0x01E2] = new byte[] { 1, 2 },
- [0x01E3] = new byte[] { 2, 2 },
- [0x01E4] = new byte[] { 2 },
- [0x01E5] = new byte[] { 2 },
- [0x01E6] = new byte[1] { 0 },
- [0x01E7] = new byte[] { 2 },
- [0x01E8] = new byte[] { 2, 2 },
- [0x01E9] = new byte[] { 0xFF, 2, //0xFF = Variable number of parameters, 2 = size of first parameter
- 0, 0, //if value is 0, don't read anything
- 1, 1, 2, //if value is 1, read 1 parameter... which takes up 2 bytes
- 2, 1, 2, //if value is 2, read 1 parameter... which takes up 2 bytes
- 3, 1, 2, //if value is 3, read 1 parameter... which takes up 2 bytes
- 4, 0, //if value is 4, don't read anything
- 5, 2, 2, 2, //if value is 5, read 2 parameters... each one takes up 2 bytes
- 6, 2, 2, 2, //if value is 6, read 2 parameters... each one takes up 2 bytes
- 7, 0, //if value is 7, don't read anything
- 8, 0 //if value is 8, don't read anything
- },
- [0x01EA] = new byte[] { 2 },
- [0x01EB] = new byte[] { 2 },
- [0x01EC] = new byte[] { 2, 2, 2 },
- [0x01ED] = new byte[] { 2, 2, 2 },
- [0x01EE] = new byte[] { 2, 2 },
- [0x01EF] = new byte[] { 2 },
- [0x01F0] = new byte[] { 2 },
- [0x01F1] = new byte[] { 2, 2, 2 },
- [0x01F2] = new byte[] { 2, 2, 2, 2, 2 },
- [0x01F3] = new byte[] { 2, 2, 2, 2, 2 },
- [0x01F4] = new byte[] { 1 },
- [0x01F5] = new byte[] { 1 },
- [0x01F6] = new byte[] { 2, 2 },
- [0x01F7] = new byte[] { 2 },
- [0x01F8] = new byte[] { 2, 2, 2, 2 },
- [0x01F9] = new byte[1] { 0 },
- [0x01FA] = new byte[] { 1, 2 },
- [0x01FB] = new byte[] { 2 },
- [0x01FC] = new byte[] { 2 },
- [0x01FD] = new byte[] { 2 },
- [0x01FE] = new byte[1] { 0 },
- [0x01FF] = new byte[] { 2, 2 },
- [0x0200] = new byte[] { 2 },
- [0x0201] = new byte[] { 2, 2, 2 },
- [0x0202] = new byte[] { 2 },
- [0x0203] = new byte[] { 2 },
- [0x0204] = new byte[] { 1, 2 },
- [0x0205] = new byte[] { 2, 2 },
- [0x0206] = new byte[] { 2 },
- [0x0207] = new byte[] { 2 },
- [0x0208] = new byte[1] { 0 },
- [0x0209] = new byte[1] { 0 },
- [0x020A] = new byte[] { 2 },
- [0x020B] = new byte[] { 2, 2, 2, 2, 2 },
- [0x020C] = new byte[] { 2, 2, 2, 2, 2 },
- [0x020D] = new byte[] { 2 },
- [0x020E] = new byte[1] { 0 },
- [0x020F] = new byte[] { 2 },
- [0x0210] = new byte[] { 2 },
- [0x0211] = new byte[] { 2 },
- [0x0212] = new byte[] { 2, 1 },
- [0x0213] = new byte[] { 1, 2 },
- [0x0214] = new byte[] { 2, 2, 2 },
- [0x0215] = new byte[] { 2, 2, 2 },
- [0x0216] = new byte[] { 2 },
- [0x0217] = new byte[] { 2, 2 },
- [0x0218] = new byte[] { 2 },
- [0x0219] = new byte[1] { 0 },
- [0x021A] = new byte[] { 2, 2 },
- [0x021B] = new byte[1] { 0 },
- [0x021C] = new byte[] { 2 },
- [0x021D] = new byte[] { 1, 2, 1, 1 },
- [0x021E] = new byte[1] { 0 },
- [0x021F] = new byte[] { 2 },
- [0x0220] = new byte[] { 2, 2 },
- [0x0221] = new byte[] { 2 },
- [0x0222] = new byte[] { 1, 2 },
- [0x0223] = new byte[] { 2 },
- [0x0224] = new byte[1] { 0 },
- [0x0225] = new byte[] { 2 },
- [0x0226] = new byte[] { 1 },
- [0x0227] = new byte[] { 2 },
- [0x0228] = new byte[] { 2, 2 },
- [0x0229] = new byte[] { 1, 2 },
- [0x022A] = new byte[1] { 0 },
- [0x022B] = new byte[] { 2 },
- [0x022C] = new byte[] { 2 },
- [0x022D] = new byte[] { 2, 2 },
- [0x022E] = new byte[] { 2, 2 },
- [0x022F] = new byte[] { 2 },
- [0x0230] = new byte[] { 2, 2 },
- [0x0231] = new byte[] { 2, 2, 2, 2 },
- [0x0232] = new byte[] { 2, 2, 2, 1 },
- [0x0233] = new byte[] { 2, 2 },
- [0x0234] = new byte[] { 2 },
- [0x0235] = new byte[] { 2 },
- [0x0236] = new byte[1] { 0 },
- [0x0237] = new byte[] { 2, 2, 2, 2 },
- [0x0238] = new byte[] { 2, 2 },
- [0x0239] = new byte[] { 2 },
- [0x023A] = new byte[] { 2, 2, 2 },
- [0x023B] = new byte[] { 2 },
- [0x023C] = new byte[] { 2 },
- [0x023D] = new byte[1] { 0 },
- [0x023E] = new byte[] { 2, 2 },
- [0x023F] = new byte[1] { 0 },
- [0x0240] = new byte[] { 2 },
- [0x0241] = new byte[1] { 0 },
- [0x0242] = new byte[1] { 0 },
- [0x0243] = new byte[1] { 0 },
- [0x0244] = new byte[] { 1, 2 },
- [0x0245] = new byte[] { 2, 2 },
- [0x0246] = new byte[] { 2, 2, 2 },
- [0x0247] = new byte[] { 2 },
- [0x0248] = new byte[] { 2 },
- [0x0249] = new byte[1] { 0 },
- [0x024A] = new byte[] { 2 },
- [0x024B] = new byte[1] { 0 },
- [0x024C] = new byte[] { 2 },
- [0x024D] = new byte[] { 2, 2, 1 },
- [0x024E] = new byte[] { 2 },
- [0x024F] = new byte[1] { 0 },
- [0x0250] = new byte[] { 2 },
- [0x0251] = new byte[1] { 0 },
- [0x0252] = new byte[1] { 0 },
- [0x0253] = new byte[] { 1 },
- [0x0254] = new byte[] { 2 },
- [0x0255] = new byte[1] { 0 },
- [0x0256] = new byte[] { 2 },
- [0x0257] = new byte[1] { 0 },
- [0x0258] = new byte[1] { 0 },
- [0x0259] = new byte[1] { 0 },
- [0x025A] = new byte[] { 2 },
- [0x025B] = new byte[1] { 0 },
- [0x025C] = new byte[] { 2 },
- [0x025D] = new byte[] { 1, 1 },
- [0x025E] = new byte[1] { 0 },
- [0x025F] = new byte[1] { 0 },
- [0x0260] = new byte[1] { 0 },
- [0x0261] = new byte[1] { 0 },
- [0x0262] = new byte[1] { 0 },
- [0x0263] = new byte[] { 2, 2, 2, 2, 2, 2 },
- [0x0264] = new byte[] { 2 },
- [0x0265] = new byte[] { 2 },
- [0x0266] = new byte[] { 2 },
- [0x0267] = new byte[] { 2, 2 },
- [0x0268] = new byte[] { 2 },
- [0x0269] = new byte[1] { 0 },
- [0x026A] = new byte[] { 2 },
- [0x026B] = new byte[] { 2 },
- [0x026C] = new byte[] { 1 },
- [0x026D] = new byte[] { 2 },
- [0x026E] = new byte[] { 2, 2 },
- [0x026F] = new byte[] { 2 },
- [0x0270] = new byte[] { 2 },
- [0x0271] = new byte[] { 2, 2, 2 },
- [0x0272] = new byte[] { 1, 2 },
- [0x0273] = new byte[] { 1 },
- [0x0274] = new byte[] { 2, 2 },
- [0x0275] = new byte[] { 2 },
- [0x0276] = new byte[] { 2 },
- [0x0277] = new byte[] { 2, 2, 2 },
- [0x0278] = new byte[] { 2, 2 },
- [0x0279] = new byte[] { 2, 2, 2 },
- [0x027A] = new byte[] { 2, 2 },
- [0x027B] = new byte[] { 2, 2 },
- [0x027C] = new byte[] { 2 },
- [0x027D] = new byte[] { 2, 2, 2 },
- [0x027E] = new byte[] { 2, 2, 2 },
- [0x027F] = new byte[] { 2, 2, 2 },
- [0x0280] = new byte[] { 2 },
- [0x0281] = new byte[] { 2, 2, 2 },
- [0x0282] = new byte[] { 2 },
- [0x0283] = new byte[] { 2, 2, 2 },
- [0x0284] = new byte[] { 2, 2, 2 },
- [0x0285] = new byte[] { 2, 2, 2 },
- [0x0286] = new byte[] { 2 },
- [0x0287] = new byte[] { 2, 2 }, //To be checked!
- [0x0288] = new byte[] { 2 },
- [0x0289] = new byte[1] { 0 },
- [0x028A] = new byte[1] { 0 },
- [0x028B] = new byte[] { 2, 2, 2 },
- [0x028C] = new byte[] { 2, 2, 2 },
- [0x028D] = new byte[] { 2, 2, 2, 2 },
- [0x028E] = new byte[] { 2, 2, 2 },
- [0x028F] = new byte[] { 2, 2 },
- [0x0290] = new byte[] { 2, 2 },
- [0x0291] = new byte[] { 2, 2, 2, 2 },
- [0x0292] = new byte[] { 1, 2 },
- [0x0293] = new byte[] { 2 },
- [0x0294] = new byte[] { 2 },
- [0x0295] = new byte[1] { 0 },
- [0x0296] = new byte[] { 2, 2, 2 },
- [0x0297] = new byte[] { 2 },
- [0x0298] = new byte[1] { 0 },
- [0x0299] = new byte[] { 2 },
- [0x029A] = new byte[] { 2, 2 },
- [0x029B] = new byte[] { 2, 2, 2, 2 },
- [0x029C] = new byte[] { 1, 2 },
- [0x029D] = new byte[] { 2, 2 },
- [0x029E] = new byte[] { 2, 2 },
- [0x029F] = new byte[1] { 0 },
- [0x02A0] = new byte[] { 2, 2, 2 },
- [0x02A1] = new byte[] { 2, 2, 2, 2, 2 },
- [0x02A2] = new byte[] { 2, 2 },
- [0x02A3] = new byte[] { 2, 2, 2, 2 },
- [0x02A4] = new byte[] { 2, 2 },
- [0x02A5] = new byte[1] { 0 },
- [0x02A6] = new byte[] { 2, 2, 2 },
- [0x02A7] = new byte[] { 2, 2 },
- [0x02A8] = new byte[] { 2, 2 },
- [0x02A9] = new byte[] { 2 },
- [0x02AA] = new byte[] { 2 },
- [0x02AB] = new byte[] { 2 },
- [0x02AC] = new byte[] { 2 },
- [0x02AD] = new byte[] { 2, 2, 2 },
- [0x02AE] = new byte[] { 2, 2 },
- [0x02AF] = new byte[] { 2 },
- [0x02B0] = new byte[] { 2 },
- [0x02B1] = new byte[] { 2 },
- [0x02B2] = new byte[] { 2, 2 },
- [0x02B3] = new byte[] { 2 },
- [0x02B4] = new byte[1] { 0 },
- [0x02B5] = new byte[] { 2 },
- [0x02B6] = new byte[] { 2 },
- [0x02B7] = new byte[] { 2 },
- [0x02B8] = new byte[] { 2 },
- [0x02B9] = new byte[1] { 0 },
- [0x02BA] = new byte[] { 1, 2, 2 },
- [0x02BB] = new byte[1] { 0 },
- [0x02BC] = new byte[] { 2 },
- [0x02BD] = new byte[] { 2, 2, 2, 2 },
- [0x02BE] = new byte[1] { 0 },
- [0x02BF] = new byte[] { 2 },
- [0x02C0] = new byte[] { 2 },
- [0x02C1] = new byte[1] { 0 },
- [0x02C2] = new byte[] { 2 },
- [0x02C3] = new byte[] { 2, 2 },
- [0x02C4] = new byte[] { 2 },
- [0x02C5] = new byte[1] { 0 },
- [0x02C6] = new byte[1] { 0 },
- [0x02C7] = new byte[1] { 0 },
- [0x02C8] = new byte[] { 1 },
- [0x02C9] = new byte[] { 1 },
- [0x02CA] = new byte[] { 1 },
- [0x02CB] = new byte[1] { 0 },
- [0x02CC] = new byte[1] { 0 },
- [0x02CD] = new byte[] { 2 },
- [0x02CE] = new byte[] { 1, 2 },
- [0x02CF] = new byte[] { 2, 2 },
- [0x02D0] = new byte[] { 2 },
- [0x02D1] = new byte[] { 2 },
- [0x02D2] = new byte[] { 1, 1, 2, 2, 2 },
- [0x02D3] = new byte[] { 1, 1, 2, 2, 2 },
- [0x02D4] = new byte[] { 2, 2 },
- [0x02D5] = new byte[] { 1, 2 },
- [0x02D6] = new byte[1] { 0 },
- [0x02D7] = new byte[] { 2 },
- [0x02D8] = new byte[] { 1, 1 },
- [0x02D9] = new byte[] { 2 },
- [0x02DA] = new byte[] { 2 },
- [0x02DB] = new byte[1] { 0 },
- [0x02DC] = new byte[] { 1 },
- [0x02DD] = new byte[] { 1, 2 },
- [0x02DE] = new byte[] { 1 },
- [0x02DF] = new byte[] { 2 },
- [0x02E0] = new byte[1] { 0 },
- [0x02E1] = new byte[] { 2 },
- [0x02E2] = new byte[] { 2 },
- [0x02E3] = new byte[1] { 0 },
- [0x02E4] = new byte[] { 2, 2, 2 },
- [0x02E5] = new byte[] { 2, 2, 2, 2 },
- [0x02E6] = new byte[] { 2, 2, 2 },
- [0x02E7] = new byte[] { 2 },
- [0x02E8] = new byte[1] { 0 },
- [0x02E9] = new byte[] { 1, 2 },
- [0x02EA] = new byte[1] { 0 },
- [0x02EB] = new byte[1] { 0 },
- [0x02EC] = new byte[] { 2 },
- [0x02ED] = new byte[] { 1, 1, 1, 1, 2 },
- [0x02EE] = new byte[] { 1, 1, 1, 1, 2 },
- [0x02EF] = new byte[] { 2, 2, 2 },
- [0x02F0] = new byte[1] { 0 },
- [0x02F1] = new byte[] { 2, 2, 2 },
- [0x02F2] = new byte[] { 2 },
- [0x02F3] = new byte[1] { 0 },
- [0x02F4] = new byte[1] { 0 },
- [0x02F5] = new byte[] { 2, 2 },
- [0x02F6] = new byte[] { 2, 2, 2 },
- [0x02F7] = new byte[1] { 0 },
- [0x02F8] = new byte[1] { 0 },
- [0x02F9] = new byte[] { 2 },
- [0x02FA] = new byte[] { 2 },
- [0x02FB] = new byte[1] { 0 },
- [0x02FC] = new byte[1] { 0 },
- [0x02FD] = new byte[1] { 0 },
- [0x02FE] = new byte[] { 2, 2 },
- [0x02FF] = new byte[1] { 0 },
- [0x0300] = new byte[1] { 0 },
- [0x0301] = new byte[1] { 0 },
- [0x0302] = new byte[] { 2 },
- [0x0303] = new byte[1] { 0 },
- [0x0304] = new byte[1] { 0 },
- [0x0305] = new byte[] { 2 },
- [0x0306] = new byte[] { 2, 2 },
- [0x0307] = new byte[] { 2, 2 },
- [0x0308] = new byte[1] { 0 },
- [0x0309] = new byte[] { 2, 2 },
- [0x030A] = new byte[1] { 0 },
- [0x030B] = new byte[] { 2, 2 },
- [0x030C] = new byte[] { 1, 1 },
- [0x030D] = new byte[] { 2 },
- [0x030E] = new byte[1] { 0 },
- [0x030F] = new byte[] { 1 },
- [0x0310] = new byte[] { 1, 1 },
- [0x0311] = new byte[] { 2, 1 },
- [0x0312] = new byte[] { 1 },
- [0x0313] = new byte[] { 2, 2, 2 },
- [0x0314] = new byte[] { 1, 2 },
- [0x0315] = new byte[] { 1 },
- [0x0316] = new byte[] { 2, 2 },
- [0x0317] = new byte[] { 1, 2 },
- [0x0318] = new byte[1] { 0 },
- [0x0319] = new byte[] { 2, 2 },
- [0x031A] = new byte[] { 2, 2, 2 },
- [0x031B] = new byte[] { 2, 2 },
- [0x031C] = new byte[1] { 0 },
- [0x031D] = new byte[] { 2 },
- [0x031E] = new byte[] { 2 },
- [0x031F] = new byte[] { 2 },
- [0x0320] = new byte[] { 2 },
- [0x0321] = new byte[] { 2 },
- [0x0322] = new byte[1] { 0 },
- [0x0323] = new byte[] { 2, 2 },
- [0x0324] = new byte[] { 1 },
- [0x0325] = new byte[1] { 0 },
- [0x0326] = new byte[1] { 0 },
- [0x0327] = new byte[] { 2, 2 },
- [0x0328] = new byte[] { 2 },
- [0x0329] = new byte[] { 2 },
- [0x032A] = new byte[1] { 0 },
- [0x032B] = new byte[] { 2, 2 },
- [0x032C] = new byte[] { 2, 2, 2, 2 },
- [0x032D] = new byte[] { 2 },
- [0x032E] = new byte[1] { 0 },
- [0x032F] = new byte[] { 2 },
- [0x0330] = new byte[1] { 0 },
- [0x0331] = new byte[] { 1 },
- [0x0332] = new byte[1] { 0 },
- [0x0333] = new byte[1] { 0 },
- [0x0334] = new byte[] { 1 },
- [0x0335] = new byte[] { 2, 2 },
- [0x0336] = new byte[] { 2 },
- [0x0337] = new byte[] { 2 },
- [0x0338] = new byte[] { 2 },
- [0x0339] = new byte[] { 2, 2 },
- [0x033A] = new byte[] { 2 },
- [0x033B] = new byte[] { 2, 2 },
- [0x033C] = new byte[] { 2, 2, 1 },
- [0x033D] = new byte[] { 2 },
- [0x033E] = new byte[] { 2 },
- [0x033F] = new byte[] { 2 },
- [0x0340] = new byte[] { 2 },
- [0x0341] = new byte[] { 2 },
- [0x0342] = new byte[] { 2 },
- [0x0343] = new byte[] { 2 },
- [0x0344] = new byte[] { 2 },
- [0x0345] = new byte[] { 2 },
- [0x0346] = new byte[] { 2, 2 },
- [0x0347] = new byte[] { 2 },
- [0x0348] = new byte[] { 2, 2 },
- [0x0349] = new byte[] { 1 },
- [0x034A] = new byte[] { 1 },
- [0x034B] = new byte[] { 1, 2 },
- [0x034C] = new byte[] { 1, 2 },
- [0x034D] = new byte[] { 1, 2 },
- [0x034E] = new byte[] { 2, 2, 2 },
- [0x034F] = new byte[] { 1 },
- [0x0350] = new byte[] { 1, 2 },
- [0x0351] = new byte[] { 1, 2 },
- [0x0352] = new byte[] { 1, 2 },
- [0x0353] = new byte[] { 1 },
- [0x0354] = new byte[] { 1, 1 }
+ // will be populated from json at runtime
};
}
}
diff --git a/DS_Map/RomInfo.cs b/DS_Map/RomInfo.cs
index bc104bd..69d89b6 100644
--- a/DS_Map/RomInfo.cs
+++ b/DS_Map/RomInfo.cs
@@ -175,7 +175,9 @@ namespace DSPRE
evolutions,
itemData,
- itemIcons
+ itemIcons,
+
+ tradeData
};
public static Dictionary gameDirs { get; private set; }
@@ -247,6 +249,14 @@ namespace DSPRE
ScriptCommandNamesReverseDict = ScriptCommandNamesDict.Reverse();
ScriptActionNamesReverseDict = ScriptActionNamesDict.Reverse();
ScriptComparisonOperatorsReverseDict = ScriptComparisonOperatorsDict.Reverse();
+
+ if (gameVersion == GameVersions.Platinum) {
+ ScriptDatabaseJsonLoader.InitializeFromJson(Path.Combine(Program.DatabasePath, "platinum_scrcmd_database.json"), gameVersion);
+ } else if (gameVersion == GameVersions.HeartGold || gameVersion == GameVersions.SoulSilver) {
+ ScriptDatabaseJsonLoader.InitializeFromJson(Path.Combine(Program.DatabasePath, "hgss_scrcmd_database.json"), gameVersion);
+ } else if (gameVersion == GameVersions.Diamond || gameVersion == GameVersions.Pearl) {
+ ScriptDatabaseJsonLoader.InitializeFromJson(Path.Combine(Program.DatabasePath, "diamond_pearl_scrcmd_database.json"), gameVersion);
+ }
}
#endregion Constructors (1)
@@ -261,13 +271,14 @@ namespace DSPRE
switch (gameFam)
{
case GameFamilies.DP:
- commonDictionaryNames = ScriptDatabase.DPPtScrCmdNames;
- specificDictionaryNames = ScriptDatabase.DPScrCmdNames;
+ commonDictionaryNames = ScriptDatabase.DPScrCmdNames;
+ specificDictionaryNames = new Dictionary();
break;
case GameFamilies.Plat:
- commonDictionaryNames = ScriptDatabase.DPPtScrCmdNames;
- specificDictionaryNames = ScriptDatabase.PlatScrCmdNames;
+ //commonDictionaryNames = ScriptDatabase.DPPtScrCmdNames;
+ commonDictionaryNames = ScriptDatabase.PlatScrCmdNames;
+ specificDictionaryNames = new Dictionary();
break;
default:
@@ -290,13 +301,13 @@ namespace DSPRE
switch (gameFam)
{
case GameFamilies.DP:
- commonDictionaryParams = ScriptDatabase.DPPtScrCmdParameters;
- specificDictionaryParams = ScriptDatabase.DPScrCmdParameters;
+ commonDictionaryParams = ScriptDatabase.DPScrCmdParameters;
+ specificDictionaryParams = new Dictionary();
break;
case GameFamilies.Plat:
- commonDictionaryParams = ScriptDatabase.DPPtScrCmdParameters;
- specificDictionaryParams = ScriptDatabase.PlatScrCmdParameters;
+ commonDictionaryParams = ScriptDatabase.PlatScrCmdParameters;
+ specificDictionaryParams = new Dictionary();
break;
default:
@@ -1024,7 +1035,7 @@ namespace DSPRE
switch (gameFamily)
{
case GameFamilies.DP:
- itemNamesTextNumber = 344;
+ itemNamesTextNumber = gameLanguage == GameLanguages.Japanese ? 341 : 344;
itemDescriptionsTextNumber = 0;
break;
@@ -1470,7 +1481,9 @@ namespace DSPRE
[DirNames.otherPokemonBattleSprites] = @"data\poketool\pokegra\otherpoke.narc",
[DirNames.itemData] = @"data\itemtool\itemdata\item_data.narc",
- [DirNames.itemIcons] = @"data\itemtool\itemdata\item_icon.narc"
+ [DirNames.itemIcons] = @"data\itemtool\itemdata\item_icon.narc",
+
+ [DirNames.tradeData] = @"data\fielddata\pokemon_trade\fld_trade.narc"
};
//Personal Data archive is different for Pearl
@@ -1482,6 +1495,11 @@ namespace DSPRE
personal += @"\personal.narc";
packedDirsDict[DirNames.personalPokeData] = personal;
+ if (gameLanguage != GameLanguages.Japanese)
+ {
+ packedDirsDict[DirNames.tradeData] = $@"data\resource\{GetLangResFolderName()}\pokemon_trade\fld_trade.narc";
+ }
+
break;
case GameFamilies.Plat:
@@ -1525,8 +1543,16 @@ namespace DSPRE
[DirNames.evolutions] = @"data\poketool\personal\evo.narc",
[DirNames.itemData] = @"data\itemtool\itemdata\pl_item_data.narc",
- [DirNames.itemIcons] = @"data\itemtool\itemdata\item_icon.narc"
+ [DirNames.itemIcons] = @"data\itemtool\itemdata\item_icon.narc",
+
+ [DirNames.tradeData] = @"data\fielddata\pokemon_trade\fld_trade.narc"
};
+
+ if (gameLanguage != GameLanguages.Japanese && gameLanguage != GameLanguages.English)
+ {
+ packedDirsDict[DirNames.tradeData] = $@"data\resource\{GetLangResFolderName()}\pokemon_trade\fld_trade.narc";
+ }
+
break;
case GameFamilies.HGSS:
@@ -1567,6 +1593,7 @@ namespace DSPRE
[DirNames.evolutions] = @"data\a\0\3\4",
[DirNames.itemData] = @"data\a\0\1\7",
[DirNames.itemIcons] = @"data\a\0\1\8",
+ [DirNames.tradeData] = @"data\a\1\1\2",
[DirNames.safariZone] = @"data\a\2\3\0",
[DirNames.headbutt] = @"data\a\2\5\2", //both versions use the same folder with different data
@@ -1584,6 +1611,25 @@ namespace DSPRE
}
}
+ public static string GetLangResFolderName()
+ {
+ switch (gameLanguage)
+ {
+ case GameLanguages.English:
+ return "eng";
+ case GameLanguages.Italian:
+ return "ita";
+ case GameLanguages.French:
+ return "fra";
+ case GameLanguages.German:
+ return "ger";
+ case GameLanguages.Spanish:
+ return "spa";
+ default:
+ return "";
+ }
+ }
+
public void ResetMapCellsColorDictionary()
{
switch (gameFamily)
diff --git a/DS_Map/Script/ScriptParameter.cs b/DS_Map/Script/ScriptParameter.cs
index d6dd6ee..fba08b7 100644
--- a/DS_Map/Script/ScriptParameter.cs
+++ b/DS_Map/Script/ScriptParameter.cs
@@ -5,7 +5,10 @@ public class ScriptParameter {
Integer,
RelativeJump,
Byte,
- Variable
+ Variable,
+ PokemonName,
+ ItemName,
+ MoveName
}
public ParameterType Type { get; set; } = ParameterType.Integer;
diff --git a/DS_Map/SettingsManager.cs b/DS_Map/SettingsManager.cs
index 6d414b6..0281375 100644
--- a/DS_Map/SettingsManager.cs
+++ b/DS_Map/SettingsManager.cs
@@ -23,6 +23,7 @@ namespace DSPRE
public string mapImportStarterPoint { get; set; } = "";
public string openDefaultRom { get; set; } = "";
public bool neverAskForOpening { get; set; } = false;
+ public bool databasesPulled { get; set; } = false;
}
public static class SettingsManager
diff --git a/DS_Map/Tools/msgenc.exe b/DS_Map/Tools/msgenc.exe
new file mode 100644
index 0000000..20ff56f
Binary files /dev/null and b/DS_Map/Tools/msgenc.exe differ
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..0ad25db
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,661 @@
+ GNU AFFERO GENERAL PUBLIC LICENSE
+ Version 3, 19 November 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU Affero General Public License is a free, copyleft license for
+software and other kinds of works, specifically designed to ensure
+cooperation with the community in the case of network server software.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+our General Public Licenses are intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ Developers that use our General Public Licenses protect your rights
+with two steps: (1) assert copyright on the software, and (2) offer
+you this License which gives you legal permission to copy, distribute
+and/or modify the software.
+
+ A secondary benefit of defending all users' freedom is that
+improvements made in alternate versions of the program, if they
+receive widespread use, become available for other developers to
+incorporate. Many developers of free software are heartened and
+encouraged by the resulting cooperation. However, in the case of
+software used on network servers, this result may fail to come about.
+The GNU General Public License permits making a modified version and
+letting the public access it on a server without ever releasing its
+source code to the public.
+
+ The GNU Affero General Public License is designed specifically to
+ensure that, in such cases, the modified source code becomes available
+to the community. It requires the operator of a network server to
+provide the source code of the modified version running there to the
+users of that server. Therefore, public use of a modified version, on
+a publicly accessible server, gives the public access to the source
+code of the modified version.
+
+ An older license, called the Affero General Public License and
+published by Affero, was designed to accomplish similar goals. This is
+a different license, not a version of the Affero GPL, but Affero has
+released a new version of the Affero GPL which permits relicensing under
+this license.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU Affero General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Remote Network Interaction; Use with the GNU General Public License.
+
+ Notwithstanding any other provision of this License, if you modify the
+Program, your modified version must prominently offer all users
+interacting with it remotely through a computer network (if your version
+supports such interaction) an opportunity to receive the Corresponding
+Source of your version by providing access to the Corresponding Source
+from a network server at no charge, through some standard or customary
+means of facilitating copying of software. This Corresponding Source
+shall include the Corresponding Source for any work covered by version 3
+of the GNU General Public License that is incorporated pursuant to the
+following paragraph.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the work with which it is combined will remain governed by version
+3 of the GNU General Public License.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU Affero General Public License from time to time. Such new versions
+will be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU Affero General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU Affero General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU Affero General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If your software can interact with users remotely through a computer
+network, you should also make sure that it provides a way for users to
+get its source. For example, if your program is a web application, its
+interface could display a "Source" link that leads users to an archive
+of the code. There are many ways you could offer source, and different
+solutions will be better for different programs; see section 13 for the
+specific requirements.
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU AGPL, see
+.