Fixed Wild Enc editor rod percentages + fixed tiny old rod max level bug [HGSS]

+ Minor refactor & datasource changes
This commit is contained in:
AdAstra-LD
2022-07-17 22:22:42 +02:00
parent 3bd88c4d7e
commit 8f2db1dc46
6 changed files with 1455 additions and 1431 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -7,28 +7,18 @@ namespace DSPRE {
public partial class WildEditorDPPt : Form {
public string encounterFileFolder { get; private set; }
EncounterFileDPPt currentFile;
bool disableHandlers = new bool();
bool disableHandlers = false;
public WildEditorDPPt(string dirPath, string[] names, int encToOpen) {
InitializeComponent();
encounterFileFolder = dirPath;
disableHandlers = true; //
for (int i = 0; i < Directory.GetFiles(encounterFileFolder).Length; i++) {
selectEncounterComboBox.Items.Add("Encounters File " + i.ToString());
}
foreach (TabPage page in mainTabControl.TabPages) {
foreach (Control g in page.Controls) {
if (g != null && g.GetType() == typeof(GroupBox)) {
foreach (Control c in g.Controls) {
if (c != null && c.GetType() == typeof(ComboBox)) {
(c as ComboBox).Items.AddRange(names);
}
}
}
}
}
if (encToOpen > selectEncounterComboBox.Items.Count) {
MessageBox.Show("This encounter file doesn't exist.\n" +
"Enc #0 will be loaded, instead.", "WildPoké Data not found", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
@@ -36,6 +26,24 @@ namespace DSPRE {
} else {
selectEncounterComboBox.SelectedIndex = encToOpen;
}
currentFile = new EncounterFileDPPt(selectEncounterComboBox.SelectedIndex);
disableHandlers = false;
foreach (TabPage page in mainTabControl.TabPages) {
foreach (Control g in page.Controls) {
if (g != null && g is GroupBox) {
foreach (Control c in g.Controls) {
if (c != null && c is ComboBox) {
(c as ComboBox).DataSource = new BindingSource(names, string.Empty);
}
}
}
}
}
SetupControls();
}
private void SetupControls() {
disableHandlers = true;
@@ -101,87 +109,87 @@ namespace DSPRE {
/* Water encounters controls setup */
surfSixtyComboBox.SelectedIndex = currentFile.surfPokemon[0];
surfSixtyMinUpDown.Value = currentFile.surfMinLevels[0];
surfSixtyMaxUpDown.Value = currentFile.surfMaxLevels[0];
surfSixtyMinLevelUpDown.Value = currentFile.surfMinLevels[0];
surfSixtyMaxLevelUpDown.Value = currentFile.surfMaxLevels[0];
surfThirtyComboBox.SelectedIndex = currentFile.surfPokemon[1];
surfThirtyMinUpDown.Value = currentFile.surfMinLevels[1];
surfThirtyMaxUpDown.Value = currentFile.surfMaxLevels[1];
surfThirtyMinLevelUpDown.Value = currentFile.surfMinLevels[1];
surfThirtyMaxLevelUpDown.Value = currentFile.surfMaxLevels[1];
surfFiveComboBox.SelectedIndex = currentFile.surfPokemon[2];
surfFiveMinUpDown.Value = currentFile.surfMinLevels[2];
surfFiveMaxUpDown.Value = currentFile.surfMaxLevels[2];
surfFiveMinLevelUpDown.Value = currentFile.surfMinLevels[2];
surfFiveMaxLevelUpDown.Value = currentFile.surfMaxLevels[2];
surfFourComboBox.SelectedIndex = currentFile.surfPokemon[3];
surfFourMinUpDown.Value = currentFile.surfMinLevels[3];
surfFourMaxUpDown.Value = currentFile.surfMaxLevels[3];
surfFourMinLevelUpDown.Value = currentFile.surfMinLevels[3];
surfFourMaxLevelUpDown.Value = currentFile.surfMaxLevels[3];
surfOneComboBox.SelectedIndex = currentFile.surfPokemon[4];
surfOneMinUpDown.Value = currentFile.surfMinLevels[4];
surfOneMaxUpDown.Value = currentFile.surfMaxLevels[4];
surfOneMinLevelUpDown.Value = currentFile.surfMinLevels[4];
surfOneMaxLevelUpDown.Value = currentFile.surfMaxLevels[4];
/* Old rod encounters controls setup */
oldRodSixtyComboBox.SelectedIndex = currentFile.oldRodPokemon[0];
oldRodSixtyMinUpDown.Value = currentFile.oldRodMinLevels[0];
oldRodSixtyMaxUpDown.Value = currentFile.oldRodMaxLevels[0];
oldRodSixtyMinLevelUpDown.Value = currentFile.oldRodMinLevels[0];
oldRodSixtyMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[0];
oldRodThirtyComboBox.SelectedIndex = currentFile.oldRodPokemon[1];
oldRodThirtyMinUpDown.Value = currentFile.oldRodMinLevels[1];
oldRodThirtyMaxUpDown.Value = currentFile.oldRodMaxLevels[1];
oldRodThirtyMinLevelUpDown.Value = currentFile.oldRodMinLevels[1];
oldRodThirtyMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[1];
oldRodFiveComboBox.SelectedIndex = currentFile.oldRodPokemon[2];
oldRodFiveMinUpDown.Value = currentFile.oldRodMinLevels[2];
oldRodFiveMaxUpDown.Value = currentFile.oldRodMaxLevels[2];
oldRodFiveMinLevelUpDown.Value = currentFile.oldRodMinLevels[2];
oldRodFiveMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[2];
oldRodFourComboBox.SelectedIndex = currentFile.oldRodPokemon[3];
oldRodFourMinUpDown.Value = currentFile.oldRodMinLevels[3];
oldRodFourMaxUpDown.Value = currentFile.oldRodMaxLevels[3];
oldRodFourMinLevelUpDown.Value = currentFile.oldRodMinLevels[3];
oldRodFourMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[3];
oldRodOneComboBox.SelectedIndex = currentFile.oldRodPokemon[4];
oldRodOneMinUpDown.Value = currentFile.oldRodMinLevels[4];
oldRodOneMaxUpDown.Value = currentFile.oldRodMaxLevels[4];
oldRodOneMinLevelUpDown.Value = currentFile.oldRodMinLevels[4];
oldRodOneMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[4];
/* Good rod encounters controls setup */
goodRodSixtyComboBox.SelectedIndex = currentFile.goodRodPokemon[0];
goodRodSixtyMinUpDown.Value = currentFile.goodRodMinLevels[0];
goodRodSixtyMaxUpDown.Value = currentFile.goodRodMaxLevels[0];
goodRodFirstFortyComboBox.SelectedIndex = currentFile.goodRodPokemon[0];
goodRodFirstFortyMinLevelUpDown.Value = currentFile.goodRodMinLevels[0];
goodRodFirstFortyMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[0];
goodRodThirtyComboBox.SelectedIndex = currentFile.goodRodPokemon[1];
goodRodThirtyMinUpDown.Value = currentFile.goodRodMinLevels[1];
goodRodThirtyMaxUpDown.Value = currentFile.goodRodMaxLevels[1];
goodRodSecondFortyComboBox.SelectedIndex = currentFile.goodRodPokemon[1];
goodRodSecondFortyMinLevelUpDown.Value = currentFile.goodRodMinLevels[1];
goodRodSecondFortyMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[1];
goodRodFiveComboBox.SelectedIndex = currentFile.goodRodPokemon[2];
goodRodFiveMinUpDown.Value = currentFile.goodRodMinLevels[2];
goodRodFiveMaxUpDown.Value = currentFile.goodRodMaxLevels[2];
goodRodFifteenComboBox.SelectedIndex = currentFile.goodRodPokemon[2];
goodRodFifteenMinLevelUpDown.Value = currentFile.goodRodMinLevels[2];
goodRodFifteenMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[2];
goodRodFourComboBox.SelectedIndex = currentFile.goodRodPokemon[3];
goodRodFourMinUpDown.Value = currentFile.goodRodMinLevels[3];
goodRodFourMaxUpDown.Value = currentFile.goodRodMaxLevels[3];
goodRodFourMinLevelUpDown.Value = currentFile.goodRodMinLevels[3];
goodRodFourMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[3];
goodRodOneComboBox.SelectedIndex = currentFile.goodRodPokemon[4];
goodRodOneMinUpDown.Value = currentFile.goodRodMinLevels[4];
goodRodOneMaxUpDown.Value = currentFile.goodRodMaxLevels[4];
goodRodOneMinLevelUpDown.Value = currentFile.goodRodMinLevels[4];
goodRodOneMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[4];
/* Super rod encounters controls setup */
superRodSixtyComboBox.SelectedIndex = currentFile.superRodPokemon[0];
superRodSixtyMinUpDown.Value = currentFile.superRodMinLevels[0];
superRodSixtyMaxUpDown.Value = currentFile.superRodMaxLevels[0];
superRodFirstFortyComboBox.SelectedIndex = currentFile.superRodPokemon[0];
superRodFirstFortyMinLevelUpDown.Value = currentFile.superRodMinLevels[0];
superRodFirstFortyMaxLevelUpDown.Value = currentFile.superRodMaxLevels[0];
superRodThirtyComboBox.SelectedIndex = currentFile.superRodPokemon[1];
superRodThirtyMinUpDown.Value = currentFile.superRodMinLevels[1];
superRodThirtyMaxUpDown.Value = currentFile.superRodMaxLevels[1];
superRodSecondFortyComboBox.SelectedIndex = currentFile.superRodPokemon[1];
superRodSecondFortyMinLevelUpDown.Value = currentFile.superRodMinLevels[1];
superRodSecondFortyMaxLevelUpDown.Value = currentFile.superRodMaxLevels[1];
superRodFiveComboBox.SelectedIndex = currentFile.superRodPokemon[2];
superRodFiveMinUpDown.Value = currentFile.superRodMinLevels[2];
superRodFiveMaxUpDown.Value = currentFile.superRodMaxLevels[2];
superRodFifteenComboBox.SelectedIndex = currentFile.superRodPokemon[2];
superRodFifteenMinLevelUpDown.Value = currentFile.superRodMinLevels[2];
superRodFifteenMaxLevelUpDown.Value = currentFile.superRodMaxLevels[2];
superRodFourComboBox.SelectedIndex = currentFile.superRodPokemon[3];
superRodFourMinUpDown.Value = currentFile.superRodMinLevels[3];
superRodFourMaxUpDown.Value = currentFile.superRodMaxLevels[3];
superRodFourMinLevelUpDown.Value = currentFile.superRodMinLevels[3];
superRodFourMaxLevelUpDown.Value = currentFile.superRodMaxLevels[3];
superRodOneComboBox.SelectedIndex = currentFile.superRodPokemon[4];
superRodOneMinUpDown.Value = currentFile.superRodMinLevels[4];
superRodOneMaxUpDown.Value = currentFile.superRodMaxLevels[4];
superRodOneMinLevelUpDown.Value = currentFile.superRodMinLevels[4];
superRodOneMaxLevelUpDown.Value = currentFile.superRodMaxLevels[4];
disableHandlers = false;
}
@@ -205,6 +213,10 @@ namespace DSPRE {
SetupControls();
}
private void selectEncounterComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile = new EncounterFileDPPt(selectEncounterComboBox.SelectedIndex);
SetupControls();
}
@@ -463,23 +475,23 @@ namespace DSPRE {
}
currentFile.oldRodPokemon[4] = (ushort)oldRodOneComboBox.SelectedIndex;
}
private void goodRodSixtyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void goodRodFirstFortyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodPokemon[0] = (ushort)goodRodSixtyComboBox.SelectedIndex;
currentFile.goodRodPokemon[0] = (ushort)goodRodFirstFortyComboBox.SelectedIndex;
}
private void goodRodThirtyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void goodRodSecondFortyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodPokemon[1] = (ushort)goodRodThirtyComboBox.SelectedIndex;
currentFile.goodRodPokemon[1] = (ushort)goodRodSecondFortyComboBox.SelectedIndex;
}
private void goodRodFiveComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void goodRodFifteenComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodPokemon[2] = (ushort)goodRodFiveComboBox.SelectedIndex;
currentFile.goodRodPokemon[2] = (ushort)goodRodFifteenComboBox.SelectedIndex;
}
private void goodRodFourComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
@@ -493,23 +505,23 @@ namespace DSPRE {
}
currentFile.goodRodPokemon[4] = (ushort)goodRodOneComboBox.SelectedIndex;
}
private void superRodSixtyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void superRodFirstFortyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodPokemon[0] = (ushort)superRodSixtyComboBox.SelectedIndex;
currentFile.superRodPokemon[0] = (ushort)superRodFirstFortyComboBox.SelectedIndex;
}
private void superRodThirtyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void superRodSecondFortyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodPokemon[1] = (ushort)superRodThirtyComboBox.SelectedIndex;
currentFile.superRodPokemon[1] = (ushort)superRodSecondFortyComboBox.SelectedIndex;
}
private void superRodFiveComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void superRodFifteenComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodPokemon[2] = (ushort)superRodFiveComboBox.SelectedIndex;
currentFile.superRodPokemon[2] = (ushort)superRodFifteenComboBox.SelectedIndex;
}
private void superRodFourComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
@@ -599,248 +611,248 @@ namespace DSPRE {
}
/* Water levels controls */
private void surfSixtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfSixtyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[0] = (byte)surfSixtyMinUpDown.Value;
currentFile.surfMinLevels[0] = (byte)surfSixtyMinLevelUpDown.Value;
}
private void surfThirtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfThirtyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[1] = (byte)surfThirtyMinUpDown.Value;
currentFile.surfMinLevels[1] = (byte)surfThirtyMinLevelUpDown.Value;
}
private void surfFiveMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfFiveMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[2] = (byte)surfFiveMinUpDown.Value;
currentFile.surfMinLevels[2] = (byte)surfFiveMinLevelUpDown.Value;
}
private void surfFourMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfFourMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[3] = (byte)surfFourMinUpDown.Value;
currentFile.surfMinLevels[3] = (byte)surfFourMinLevelUpDown.Value;
}
private void surfOneMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfOneMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[4] = (byte)surfOneMinUpDown.Value;
currentFile.surfMinLevels[4] = (byte)surfOneMinLevelUpDown.Value;
}
private void surfSixtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfSixtyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[0] = (byte)surfSixtyMaxUpDown.Value;
currentFile.surfMaxLevels[0] = (byte)surfSixtyMaxLevelUpDown.Value;
}
private void surfThirtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfThirtyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[1] = (byte)surfThirtyMaxUpDown.Value;
currentFile.surfMaxLevels[1] = (byte)surfThirtyMaxLevelUpDown.Value;
}
private void surfFiveMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfFiveMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[2] = (byte)surfFiveMaxUpDown.Value;
currentFile.surfMaxLevels[2] = (byte)surfFiveMaxLevelUpDown.Value;
}
private void surfFourMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfFourMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[3] = (byte)surfFourMaxUpDown.Value;
currentFile.surfMaxLevels[3] = (byte)surfFourMaxLevelUpDown.Value;
}
private void surfOneMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfOneMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[4] = (byte)surfOneMaxUpDown.Value;
currentFile.surfMaxLevels[4] = (byte)surfOneMaxLevelUpDown.Value;
}
private void oldRodSixtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodSixtyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[0] = (byte)oldRodSixtyMinUpDown.Value;
currentFile.oldRodMinLevels[0] = (byte)oldRodSixtyMinLevelUpDown.Value;
}
private void oldRodThirtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodThirtyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[1] = (byte)oldRodThirtyMinUpDown.Value;
currentFile.oldRodMinLevels[1] = (byte)oldRodThirtyMinLevelUpDown.Value;
}
private void oldRodFiveMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodFiveMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[2] = (byte)oldRodFiveMinUpDown.Value;
currentFile.oldRodMinLevels[2] = (byte)oldRodFiveMinLevelUpDown.Value;
}
private void oldRodFourMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodFourMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[3] = (byte)oldRodFourMinUpDown.Value;
currentFile.oldRodMinLevels[3] = (byte)oldRodFourMinLevelUpDown.Value;
}
private void oldRodOneMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodOneMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[4] = (byte)oldRodOneMinUpDown.Value;
currentFile.oldRodMinLevels[4] = (byte)oldRodOneMinLevelUpDown.Value;
}
private void oldRodSixtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodSixtyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[0] = (byte)oldRodSixtyMaxUpDown.Value;
currentFile.oldRodMaxLevels[0] = (byte)oldRodSixtyMaxLevelUpDown.Value;
}
private void oldRodThirtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodThirtyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[1] = (byte)oldRodThirtyMaxUpDown.Value;
currentFile.oldRodMaxLevels[1] = (byte)oldRodThirtyMaxLevelUpDown.Value;
}
private void oldRodFiveMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodFiveMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[2] = (byte)oldRodFiveMaxUpDown.Value;
currentFile.oldRodMaxLevels[2] = (byte)oldRodFiveMaxLevelUpDown.Value;
}
private void oldRodFourMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodFourMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[3] = (byte)oldRodFourMaxUpDown.Value;
currentFile.oldRodMaxLevels[3] = (byte)oldRodFourMaxLevelUpDown.Value;
}
private void oldRodOneMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodOneMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[4] = (byte)oldRodOneMaxUpDown.Value;
currentFile.oldRodMaxLevels[4] = (byte)oldRodOneMaxLevelUpDown.Value;
}
private void goodRodSixtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFirstFortyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[0] = (byte)goodRodSixtyMinUpDown.Value;
currentFile.goodRodMinLevels[0] = (byte)goodRodFirstFortyMinLevelUpDown.Value;
}
private void goodRodThirtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodSecondFortyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[1] = (byte)goodRodThirtyMinUpDown.Value;
currentFile.goodRodMinLevels[1] = (byte)goodRodSecondFortyMinLevelUpDown.Value;
}
private void goodRodFiveMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFifteenMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[2] = (byte)goodRodFiveMinUpDown.Value;
currentFile.goodRodMinLevels[2] = (byte)goodRodFifteenMinLevelUpDown.Value;
}
private void goodRodFourMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFourMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[3] = (byte)goodRodFourMinUpDown.Value;
currentFile.goodRodMinLevels[3] = (byte)goodRodFourMinLevelUpDown.Value;
}
private void goodRodOneMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodOneMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[4] = (byte)goodRodOneMinUpDown.Value;
currentFile.goodRodMinLevels[4] = (byte)goodRodOneMinLevelUpDown.Value;
}
private void goodRodSixtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFirstFortyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[0] = (byte)goodRodSixtyMaxUpDown.Value;
currentFile.goodRodMaxLevels[0] = (byte)goodRodFirstFortyMaxLevelUpDown.Value;
}
private void goodRodThirtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodSecondFortyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[1] = (byte)goodRodThirtyMaxUpDown.Value;
currentFile.goodRodMaxLevels[1] = (byte)goodRodSecondFortyMaxLevelUpDown.Value;
}
private void goodRodFiveMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFifteenMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[2] = (byte)goodRodFiveMaxUpDown.Value;
currentFile.goodRodMaxLevels[2] = (byte)goodRodFifteenMaxLevelUpDown.Value;
}
private void goodRodFourMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFourMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[3] = (byte)goodRodFourMaxUpDown.Value;
currentFile.goodRodMaxLevels[3] = (byte)goodRodFourMaxLevelUpDown.Value;
}
private void goodRodOneMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodOneMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[4] = (byte)goodRodOneMaxUpDown.Value;
currentFile.goodRodMaxLevels[4] = (byte)goodRodOneMaxLevelUpDown.Value;
}
private void superRodSixtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFirstFortyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[0] = (byte)superRodSixtyMinUpDown.Value;
currentFile.superRodMinLevels[0] = (byte)superRodFirstFortyMinLevelUpDown.Value;
}
private void superRodThirtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodSecondFortyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[1] = (byte)superRodThirtyMinUpDown.Value;
currentFile.superRodMinLevels[1] = (byte)superRodSecondFortyMinLevelUpDown.Value;
}
private void superRodFiveMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFifteenMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[2] = (byte)superRodFiveMinUpDown.Value;
currentFile.superRodMinLevels[2] = (byte)superRodFifteenMinLevelUpDown.Value;
}
private void superRodFourMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFourMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[3] = (byte)superRodFourMinUpDown.Value;
currentFile.superRodMinLevels[3] = (byte)superRodFourMinLevelUpDown.Value;
}
private void superRodOneMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodOneMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[4] = (byte)superRodOneMinUpDown.Value;
currentFile.superRodMinLevels[4] = (byte)superRodOneMinLevelUpDown.Value;
}
private void superRodSixtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFirstFortyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[0] = (byte)superRodSixtyMaxUpDown.Value;
currentFile.superRodMaxLevels[0] = (byte)superRodFirstFortyMaxLevelUpDown.Value;
}
private void superRodThirtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodSecondFortyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[1] = (byte)superRodThirtyMaxUpDown.Value;
currentFile.superRodMaxLevels[1] = (byte)superRodSecondFortyMaxLevelUpDown.Value;
}
private void superRodFiveMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFifteenMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[2] = (byte)superRodFiveMaxUpDown.Value;
currentFile.superRodMaxLevels[2] = (byte)superRodFifteenMaxLevelUpDown.Value;
}
private void superRodFourMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFourMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[3] = (byte)superRodFourMaxUpDown.Value;
currentFile.superRodMaxLevels[3] = (byte)superRodFourMaxLevelUpDown.Value;
}
private void superRodOneMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodOneMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[4] = (byte)superRodOneMaxUpDown.Value;
currentFile.superRodMaxLevels[4] = (byte)superRodOneMaxLevelUpDown.Value;
}
/* Encounter rate controls */

View File

@@ -121,7 +121,7 @@
<data name="pictureBox3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAACAAAAAdCAYAAADLnm6HAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wwAADsMBx2+oZAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAAPBJREFUSEvtkkEK
wgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAAPBJREFUSEvtkkEK
wjAURHOEHkFw1WWv5dalV/Eqnq0y+qeM32iaNgkUMvAIbfIzr2Lo6TlMzsMwE3vVLih9TNNCUxEtv4/j
i6YiKGAxuZ3eVBfBpfrlnqoivny+XhZUAhQX+VeuqAQoIrK23ONFsGaLbC0nnAOUACpiVd9h+R4Bwnkl
KYGNmASIlaxB7wBJAfxsJUV0FvBuq/wMN/lP5rOXALEyj57Xu7FaZTx6eKuInvF3WU06LM4V0fec56xd
@@ -132,7 +132,7 @@
<data name="pictureBox2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAXCAYAAAARIY8tAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAA95JREFUSEutlN1P
wQAADsEBuJFr7QAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAA95JREFUSEutlN1P
U3cYx3+ZjBcdirhCi1Rooe2v7Tmnp7RnVkUSTRR8i9FoBibuhmxTb4wXxt0srXOsM6DUFwxJFSFGeVES
fEGLL6QGozDdINuy7M7/wItlN7vZ43menv56KiSS6C/5htPn+3w/z++c8zuwxS4+xEZ0AcozxPYb5Y+z
dGB/U2r5662PPweUNlaSxpphf/jCXbc8sUDrdC0pcncZ3Ylhv3/xQTas63+zDIvWYga8m897jPyybYQn
@@ -166,7 +166,7 @@
<data name="pictureBox7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAK
8AAACvABQqw0mAAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAABOElE
7wAACu8BfXaKSAAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAABOElE
QVRIS7WToRLCMBBE+aRKPiOyks9AViKRfAYSWcknIJFIZF1gM7OZzeUKDVPEm1w2e7dNC5sY419xxTWp
hK7rYh9CxMr6OAzvo9K3lGKDgawxmMNZ86yFXOhwRUPmPJ/IxadmnCHkOo7NIbn41qghLd+k2CwNaXld
lYBGxZ7zmyx9Xa6o2CHYt4S4osUL8VAPqQQPbUZ97bfxOewS4+2eOJ0vbkixsXhPhj2HA+w53PPnQvGM
@@ -178,7 +178,7 @@
<data name="pictureBox6.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAe
wgAAHsIBbtB1PgAAAAd0SU1FB9UDGhMWCY0H+k0AAAEJSURBVEhLtZKxEcIwDEUZhzIlJSOkpGQEyoyQ
wQAAHsEBw2lUUwAAAAd0SU1FB9UDGhMWCY0H+k0AAAEJSURBVEhLtZKxEcIwDEUZhzIlJSOkpGQEyoyQ
ERgjJSVlRkjJCJTpzH3fSafYki3nQvGOb1nRi4BTCOGvqMUjUYtd14XHeA74pAzSPg9ZAQMp0+Bpvkbk
nZfNwRpAkuV7b5ZsDqWHcbdHwsHz0B4JB+8DrRIOXoH80UHt38XBKwAtW3BoEQCvhMNeQe1r4mAJUC/d
1bbgoDWgtq5rmG8XdQAJSltwSAfgjMESSzIMU0S73zRSpvN7+cQ3w/Dn9DIFfT9GigJgSazhBEm0LbJG
@@ -189,7 +189,7 @@
<data name="pictureBox5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAK
8AAACvABQqw0mAAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAABFElE
7wAACu8BfXaKSAAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAABFElE
QVRIS7WUvQ3CMBSEKSkZJSVlxmCElIxAyQgZgzJlSkagzBjpjC7SWc+PI/4RFJ+cd7bvU4LEIYTwV2RI
uq4LxO+VIkOA0mUaNq79qVkiQ0DBPPabYLjdmyQyJChk+fxamiQytKBwfExRUvu5ZEhYhBWCcTjGT1Yq
kSHwBZhRTgnWEokMv12kBG+AFeQkH0HuAvbtW+QkyZArJzWSZCgVgFJJcoHPpeAOfw+sEPme5DCfa7AS

File diff suppressed because it is too large Load Diff

View File

@@ -7,28 +7,18 @@ namespace DSPRE {
public partial class WildEditorHGSS : Form {
public string encounterFileFolder { get; private set; }
EncounterFileHGSS currentFile;
bool disableHandlers = new bool();
bool disableHandlers = false;
public WildEditorHGSS(string dirPath, string[] names, int encToOpen) {
InitializeComponent();
encounterFileFolder = dirPath;
disableHandlers = true; //
for (int i = 0; i < Directory.GetFiles(encounterFileFolder).Length; i++) {
selectEncounterComboBox.Items.Add("Encounters File " + i.ToString());
}
foreach (TabPage page in mainTabControl.TabPages) {
foreach (Control g in page.Controls) {
if (g != null && g.GetType() == typeof(GroupBox)) {
foreach (Control c in g.Controls) {
if (c != null && c.GetType() == typeof(ComboBox)) {
(c as ComboBox).Items.AddRange(names);
}
}
}
}
}
if (encToOpen > selectEncounterComboBox.Items.Count) {
MessageBox.Show("This encounter file doesn't exist.\n" +
"Enc #0 will be loaded, instead.", "WildPoké Data not found", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
@@ -36,6 +26,25 @@ namespace DSPRE {
} else {
selectEncounterComboBox.SelectedIndex = encToOpen;
}
currentFile = new EncounterFileHGSS(selectEncounterComboBox.SelectedIndex);
disableHandlers = false;
foreach (TabPage page in mainTabControl.TabPages) {
foreach (Control g in page.Controls) {
if (g != null && g is GroupBox) {
foreach (Control c in g.Controls) {
if (c != null && c is ComboBox) {
(c as ComboBox).DataSource = new BindingSource(names, string.Empty);
}
}
}
}
}
SetupControls();
}
public void SetupControls() {
@@ -112,10 +121,10 @@ namespace DSPRE {
/* Setup rock smash controls */
rockSmashNinetyComboBox.SelectedIndex = currentFile.rockSmashPokemon[0];
rockSmashTenComboBox.SelectedIndex = currentFile.rockSmashPokemon[1];
rockSmashNinetyMinUpDown.Value = currentFile.rockSmashMinLevels[0];
rockSmashTenMinUpDown.Value = currentFile.rockSmashMinLevels[1];
rockSmashNinetyMaxUpDown.Value = currentFile.rockSmashMaxLevels[0];
rockSmashTenMaxUpDown.Value = currentFile.rockSmashMaxLevels[1];
rockSmashNinetyMinLevelUpDown.Value = currentFile.rockSmashMinLevels[0];
rockSmashTenMinLevelUpDown.Value = currentFile.rockSmashMinLevels[1];
rockSmashNinetyMaxLevelUpDown.Value = currentFile.rockSmashMaxLevels[0];
rockSmashTenMaxLevelUpDown.Value = currentFile.rockSmashMaxLevels[1];
/* Setup swarm encounters controls */
grassSwarmComboBox.SelectedIndex = currentFile.swarmPokemon[0];
@@ -125,87 +134,87 @@ namespace DSPRE {
/* Water encounters controls setup */
surfSixtyComboBox.SelectedIndex = currentFile.surfPokemon[0];
surfSixtyMinUpDown.Value = currentFile.surfMinLevels[0];
surfSixtyMaxUpDown.Value = currentFile.surfMaxLevels[0];
surfSixtyMinLevelUpDown.Value = currentFile.surfMinLevels[0];
surfSixtyMaxLevelUpDown.Value = currentFile.surfMaxLevels[0];
surfThirtyComboBox.SelectedIndex = currentFile.surfPokemon[1];
surfThirtyMinUpDown.Value = currentFile.surfMinLevels[1];
surfThirtyMaxUpDown.Value = currentFile.surfMaxLevels[1];
surfThirtyMinLevelUpDown.Value = currentFile.surfMinLevels[1];
surfThirtyMaxLevelUpDown.Value = currentFile.surfMaxLevels[1];
surfFiveComboBox.SelectedIndex = currentFile.surfPokemon[2];
surfFiveMinUpDown.Value = currentFile.surfMinLevels[2];
surfFiveMaxUpDown.Value = currentFile.surfMaxLevels[2];
surfFiveMinLevelUpDown.Value = currentFile.surfMinLevels[2];
surfFiveMaxLevelUpDown.Value = currentFile.surfMaxLevels[2];
surfFourComboBox.SelectedIndex = currentFile.surfPokemon[3];
surfFourMinUpDown.Value = currentFile.surfMinLevels[3];
surfFourMaxUpDown.Value = currentFile.surfMaxLevels[3];
surfFourMinLevelUpDown.Value = currentFile.surfMinLevels[3];
surfFourMaxLevelUpDown.Value = currentFile.surfMaxLevels[3];
surfOneComboBox.SelectedIndex = currentFile.surfPokemon[4];
surfOneMinUpDown.Value = currentFile.surfMinLevels[4];
surfOneMaxUpDown.Value = currentFile.surfMaxLevels[4];
surfOneMinLevelUpDown.Value = currentFile.surfMinLevels[4];
surfOneMaxLevelUpDown.Value = currentFile.surfMaxLevels[4];
/* Old rod encounters controls setup */
oldRodSixtyComboBox.SelectedIndex = currentFile.oldRodPokemon[0];
oldRodSixtyMinUpDown.Value = currentFile.oldRodMaxLevels[0];
oldRodSixtyMaxUpDown.Value = currentFile.oldRodMinLevels[0];
oldRodSixtyMinLevelUpDown.Value = currentFile.oldRodMinLevels[0];
oldRodSixtyMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[0];
oldRodThirtyComboBox.SelectedIndex = currentFile.oldRodPokemon[1];
oldRodThirtyMinUpDown.Value = currentFile.oldRodMinLevels[1];
oldRodThirtyMaxUpDown.Value = currentFile.oldRodMaxLevels[1];
oldRodThirtyMinLevelUpDown.Value = currentFile.oldRodMinLevels[1];
oldRodThirtyMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[1];
oldRodFiveComboBox.SelectedIndex = currentFile.oldRodPokemon[2];
oldRodFiveMinUpDown.Value = currentFile.oldRodMinLevels[2];
oldRodFiveMaxUpDown.Value = currentFile.oldRodMaxLevels[2];
oldRodFiveMinLevelUpDown.Value = currentFile.oldRodMinLevels[2];
oldRodFiveMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[2];
oldRodFourComboBox.SelectedIndex = currentFile.oldRodPokemon[3];
oldRodFourMinUpDown.Value = currentFile.oldRodMinLevels[3];
oldRodFourMaxUpDown.Value = currentFile.oldRodMaxLevels[3];
oldRodFourMinLevelUpDown.Value = currentFile.oldRodMinLevels[3];
oldRodFourMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[3];
oldRodOneComboBox.SelectedIndex = currentFile.oldRodPokemon[4];
oldRodOneMinUpDown.Value = currentFile.oldRodMinLevels[4];
oldRodOneMaxUpDown.Value = currentFile.oldRodMaxLevels[4];
oldRodOneMinLevelUpDown.Value = currentFile.oldRodMinLevels[4];
oldRodOneMaxLevelUpDown.Value = currentFile.oldRodMaxLevels[4];
/* Good rod encounters controls setup */
goodRodSixtyComboBox.SelectedIndex = currentFile.goodRodPokemon[0];
goodRodSixtyMinUpDown.Value = currentFile.goodRodMaxLevels[0];
goodRodSixtyMaxUpDown.Value = currentFile.goodRodMaxLevels[0];
goodRodFirstFortyComboBox.SelectedIndex = currentFile.goodRodPokemon[0];
goodRodFirstFortyMinLevelUpDown.Value = currentFile.goodRodMaxLevels[0];
goodRodFirstFortyMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[0];
goodRodThirtyComboBox.SelectedIndex = currentFile.goodRodPokemon[1];
goodRodThirtyMinUpDown.Value = currentFile.goodRodMinLevels[1];
goodRodThirtyMaxUpDown.Value = currentFile.goodRodMaxLevels[1];
goodRodSecondFortyComboBox.SelectedIndex = currentFile.goodRodPokemon[1];
goodRodSecondFortyMinLevelUpDown.Value = currentFile.goodRodMinLevels[1];
goodRodSecondFortyMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[1];
goodRodFiveComboBox.SelectedIndex = currentFile.goodRodPokemon[2];
goodRodFiveMinUpDown.Value = currentFile.goodRodMinLevels[2];
goodRodFiveMaxUpDown.Value = currentFile.goodRodMaxLevels[2];
goodRodFifteenComboBox.SelectedIndex = currentFile.goodRodPokemon[2];
goodRodFifteenMinLevelUpDown.Value = currentFile.goodRodMinLevels[2];
goodRodFifteenMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[2];
goodRodFourComboBox.SelectedIndex = currentFile.goodRodPokemon[3];
goodRodFourMinUpDown.Value = currentFile.goodRodMinLevels[3];
goodRodFourMaxUpDown.Value = currentFile.goodRodMaxLevels[3];
goodRodFourMinLevelUpDown.Value = currentFile.goodRodMinLevels[3];
goodRodFourMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[3];
goodRodOneComboBox.SelectedIndex = currentFile.goodRodPokemon[4];
goodRodOneMinUpDown.Value = currentFile.goodRodMinLevels[4];
goodRodOneMaxUpDown.Value = currentFile.goodRodMaxLevels[4];
goodRodOneMinLevelUpDown.Value = currentFile.goodRodMinLevels[4];
goodRodOneMaxLevelUpDown.Value = currentFile.goodRodMaxLevels[4];
/* Super rod encounters controls setup */
superRodSixtyComboBox.SelectedIndex = currentFile.superRodPokemon[0];
superRodSixtyMinUpDown.Value = currentFile.superRodMinLevels[0];
superRodSixtyMaxUpDown.Value = currentFile.superRodMaxLevels[0];
superRodFirstFortyComboBox.SelectedIndex = currentFile.superRodPokemon[0];
superRodFirstFortyMinLevelUpDown.Value = currentFile.superRodMinLevels[0];
superRodFirstFortyMaxLevelUpDown.Value = currentFile.superRodMaxLevels[0];
superRodThirtyComboBox.SelectedIndex = currentFile.superRodPokemon[1];
superRodThirtyMinUpDown.Value = currentFile.superRodMinLevels[1];
superRodThirtyMaxUpDown.Value = currentFile.superRodMaxLevels[1];
superRodSecondFortyComboBox.SelectedIndex = currentFile.superRodPokemon[1];
superRodSecondFortyMinLevelUpDown.Value = currentFile.superRodMinLevels[1];
superRodSecondFortyMaxLevelUpDown.Value = currentFile.superRodMaxLevels[1];
superRodFiveComboBox.SelectedIndex = currentFile.superRodPokemon[2];
superRodFiveMinUpDown.Value = currentFile.superRodMinLevels[2];
superRodFiveMaxUpDown.Value = currentFile.superRodMaxLevels[2];
superRodFifteenComboBox.SelectedIndex = currentFile.superRodPokemon[2];
superRodFifteenMinLevelUpDown.Value = currentFile.superRodMinLevels[2];
superRodFifteenMaxLevelUpDown.Value = currentFile.superRodMaxLevels[2];
superRodFourComboBox.SelectedIndex = currentFile.superRodPokemon[3];
superRodFourMinUpDown.Value = currentFile.superRodMinLevels[3];
superRodFourMaxUpDown.Value = currentFile.superRodMaxLevels[3];
superRodFourMinLevelUpDown.Value = currentFile.superRodMinLevels[3];
superRodFourMaxLevelUpDown.Value = currentFile.superRodMaxLevels[3];
superRodOneComboBox.SelectedIndex = currentFile.superRodPokemon[4];
superRodOneMinUpDown.Value = currentFile.superRodMinLevels[4];
superRodOneMaxUpDown.Value = currentFile.superRodMaxLevels[4];
superRodOneMinLevelUpDown.Value = currentFile.superRodMinLevels[4];
superRodOneMaxLevelUpDown.Value = currentFile.superRodMaxLevels[4];
disableHandlers = false;
}
@@ -232,6 +241,9 @@ namespace DSPRE {
currentFile.SaveToFileDefaultDir(selectEncounterComboBox.SelectedIndex);
}
private void selectEncounterComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile = new EncounterFileHGSS(selectEncounterComboBox.SelectedIndex);
SetupControls();
}
@@ -240,7 +252,7 @@ namespace DSPRE {
currentFile.walkingRate = (byte)walkingRateUpDown.Value;
}
private void rockSmashRateUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashRate = (byte)rockSmashNinetyMaxUpDown.Value;
currentFile.rockSmashRate = (byte)rockSmashNinetyMaxLevelUpDown.Value;
}
private void surfRateUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.surfRate = (byte)surfRateUpDown.Value;
@@ -419,23 +431,23 @@ namespace DSPRE {
private void rockSmashTenComboBox_SelectedIndexChanged(object sender, EventArgs e) {
currentFile.rockSmashPokemon[1] = (ushort)rockSmashTenComboBox.SelectedIndex;
}
private void rockSmashNinetyMinUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashMinLevels[0] = (byte)rockSmashNinetyMinUpDown.Value;
private void rockSmashNinetyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashMinLevels[0] = (byte)rockSmashNinetyMinLevelUpDown.Value;
}
private void rockSmashTenMinUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashMinLevels[1] = (byte)rockSmashTenMinUpDown.Value;
private void rockSmashTenMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashMinLevels[1] = (byte)rockSmashTenMinLevelUpDown.Value;
}
private void rockSmashNinetyMaxUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashMaxLevels[0] = (byte)rockSmashNinetyMaxUpDown.Value;
private void rockSmashNinetyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashMaxLevels[0] = (byte)rockSmashNinetyMaxLevelUpDown.Value;
}
private void rockSmashTenMaxUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashMaxLevels[1] = (byte)rockSmashNinetyMaxUpDown.Value;
private void rockSmashTenMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
currentFile.rockSmashMaxLevels[1] = (byte)rockSmashNinetyMaxLevelUpDown.Value;
}
private void rockSmashNinetyMaxUpDown_ValueChanged_1(object sender, EventArgs e) {
currentFile.rockSmashMaxLevels[0] = (byte)rockSmashNinetyMaxUpDown.Value;
private void rockSmashNinetyMaxLevelUpDown_ValueChanged_1(object sender, EventArgs e) {
currentFile.rockSmashMaxLevels[0] = (byte)rockSmashNinetyMaxLevelUpDown.Value;
}
private void rockSmashTenMaxUpDown_ValueChanged_1(object sender, EventArgs e) {
currentFile.rockSmashMaxLevels[1] = (byte)rockSmashTenMaxUpDown.Value;
private void rockSmashTenMaxLevelUpDown_ValueChanged_1(object sender, EventArgs e) {
currentFile.rockSmashMaxLevels[1] = (byte)rockSmashTenMaxLevelUpDown.Value;
}
private void grassSwarmComboBox_SelectedIndexChanged(object sender, EventArgs e) {
@@ -511,23 +523,23 @@ namespace DSPRE {
}
currentFile.oldRodPokemon[4] = (ushort)oldRodOneComboBox.SelectedIndex;
}
private void goodRodSixtyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void goodRodFirstFortyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodPokemon[0] = (ushort)goodRodSixtyComboBox.SelectedIndex;
currentFile.goodRodPokemon[0] = (ushort)goodRodFirstFortyComboBox.SelectedIndex;
}
private void goodRodThirtyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void goodRodSecondFortyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodPokemon[1] = (ushort)goodRodThirtyComboBox.SelectedIndex;
currentFile.goodRodPokemon[1] = (ushort)goodRodSecondFortyComboBox.SelectedIndex;
}
private void goodRodFiveComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void goodRodFifteenComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodPokemon[2] = (ushort)goodRodFiveComboBox.SelectedIndex;
currentFile.goodRodPokemon[2] = (ushort)goodRodFifteenComboBox.SelectedIndex;
}
private void goodRodFourComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
@@ -541,23 +553,23 @@ namespace DSPRE {
}
currentFile.goodRodPokemon[4] = (ushort)goodRodOneComboBox.SelectedIndex;
}
private void superRodSixtyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void superRodFirstFortyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodPokemon[0] = (ushort)superRodSixtyComboBox.SelectedIndex;
currentFile.superRodPokemon[0] = (ushort)superRodFirstFortyComboBox.SelectedIndex;
}
private void superRodThirtyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void superRodSecondFortyComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodPokemon[1] = (ushort)superRodThirtyComboBox.SelectedIndex;
currentFile.superRodPokemon[1] = (ushort)superRodSecondFortyComboBox.SelectedIndex;
}
private void superRodFiveComboBox_SelectedIndexChanged(object sender, EventArgs e) {
private void superRodFifteenComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodPokemon[2] = (ushort)superRodFiveComboBox.SelectedIndex;
currentFile.superRodPokemon[2] = (ushort)superRodFifteenComboBox.SelectedIndex;
}
private void superRodFourComboBox_SelectedIndexChanged(object sender, EventArgs e) {
if (disableHandlers) {
@@ -573,251 +585,251 @@ namespace DSPRE {
}
/* Water levels controls */
private void surfSixtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfSixtyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[0] = (byte)surfSixtyMinUpDown.Value;
currentFile.surfMinLevels[0] = (byte)surfSixtyMinLevelUpDown.Value;
}
private void surfThirtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfThirtyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[1] = (byte)surfThirtyMinUpDown.Value;
currentFile.surfMinLevels[1] = (byte)surfThirtyMinLevelUpDown.Value;
}
private void surfFiveMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfFiveMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[2] = (byte)surfFiveMinUpDown.Value;
currentFile.surfMinLevels[2] = (byte)surfFiveMinLevelUpDown.Value;
}
private void surfFourMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfFourMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[3] = (byte)surfFourMinUpDown.Value;
currentFile.surfMinLevels[3] = (byte)surfFourMinLevelUpDown.Value;
}
private void surfOneMinUpDown_ValueChanged(object sender, EventArgs e) {
private void surfOneMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMinLevels[4] = (byte)surfOneMinUpDown.Value;
currentFile.surfMinLevels[4] = (byte)surfOneMinLevelUpDown.Value;
}
private void surfSixtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfSixtyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[0] = (byte)surfSixtyMaxUpDown.Value;
currentFile.surfMaxLevels[0] = (byte)surfSixtyMaxLevelUpDown.Value;
}
private void surfThirtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfThirtyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[1] = (byte)surfThirtyMaxUpDown.Value;
currentFile.surfMaxLevels[1] = (byte)surfThirtyMaxLevelUpDown.Value;
}
private void surfFiveMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfFiveMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[2] = (byte)surfFiveMaxUpDown.Value;
currentFile.surfMaxLevels[2] = (byte)surfFiveMaxLevelUpDown.Value;
}
private void surfFourMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfFourMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[3] = (byte)surfFourMaxUpDown.Value;
currentFile.surfMaxLevels[3] = (byte)surfFourMaxLevelUpDown.Value;
}
private void surfOneMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void surfOneMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.surfMaxLevels[4] = (byte)surfOneMaxUpDown.Value;
currentFile.surfMaxLevels[4] = (byte)surfOneMaxLevelUpDown.Value;
}
private void oldRodSixtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodSixtyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[0] = (byte)oldRodSixtyMinUpDown.Value;
currentFile.oldRodMinLevels[0] = (byte)oldRodSixtyMinLevelUpDown.Value;
}
private void oldRodThirtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodThirtyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[1] = (byte)oldRodThirtyMinUpDown.Value;
currentFile.oldRodMinLevels[1] = (byte)oldRodThirtyMinLevelUpDown.Value;
}
private void oldRodFiveMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodFiveMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[2] = (byte)oldRodFiveMinUpDown.Value;
currentFile.oldRodMinLevels[2] = (byte)oldRodFiveMinLevelUpDown.Value;
}
private void oldRodFourMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodFourMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[3] = (byte)oldRodFourMinUpDown.Value;
currentFile.oldRodMinLevels[3] = (byte)oldRodFourMinLevelUpDown.Value;
}
private void oldRodOneMinUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodOneMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMinLevels[4] = (byte)oldRodOneMinUpDown.Value;
currentFile.oldRodMinLevels[4] = (byte)oldRodOneMinLevelUpDown.Value;
}
private void oldRodSixtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodSixtyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[0] = (byte)oldRodSixtyMaxUpDown.Value;
currentFile.oldRodMaxLevels[0] = (byte)oldRodSixtyMaxLevelUpDown.Value;
}
private void oldRodThirtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodThirtyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[1] = (byte)oldRodThirtyMaxUpDown.Value;
currentFile.oldRodMaxLevels[1] = (byte)oldRodThirtyMaxLevelUpDown.Value;
}
private void oldRodFiveMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodFiveMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[2] = (byte)oldRodFiveMaxUpDown.Value;
currentFile.oldRodMaxLevels[2] = (byte)oldRodFiveMaxLevelUpDown.Value;
}
private void oldRodFourMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodFourMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[3] = (byte)oldRodFourMaxUpDown.Value;
currentFile.oldRodMaxLevels[3] = (byte)oldRodFourMaxLevelUpDown.Value;
}
private void oldRodOneMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void oldRodOneMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.oldRodMaxLevels[4] = (byte)oldRodOneMaxUpDown.Value;
currentFile.oldRodMaxLevels[4] = (byte)oldRodOneMaxLevelUpDown.Value;
}
private void goodRodSixtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFirstFortyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[0] = (byte)goodRodSixtyMinUpDown.Value;
currentFile.goodRodMinLevels[0] = (byte)goodRodFirstFortyMinLevelUpDown.Value;
}
private void goodRodThirtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodSecondFortyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[1] = (byte)goodRodThirtyMinUpDown.Value;
currentFile.goodRodMinLevels[1] = (byte)goodRodSecondFortyMinLevelUpDown.Value;
}
private void goodRodFiveMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFifteenMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[2] = (byte)goodRodFiveMinUpDown.Value;
currentFile.goodRodMinLevels[2] = (byte)goodRodFifteenMinLevelUpDown.Value;
}
private void goodRodFourMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFourMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[3] = (byte)goodRodFourMinUpDown.Value;
currentFile.goodRodMinLevels[3] = (byte)goodRodFourMinLevelUpDown.Value;
}
private void goodRodOneMinUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodOneMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMinLevels[4] = (byte)goodRodOneMinUpDown.Value;
currentFile.goodRodMinLevels[4] = (byte)goodRodOneMinLevelUpDown.Value;
}
private void goodRodSixtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFirstFortyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[0] = (byte)goodRodSixtyMaxUpDown.Value;
currentFile.goodRodMaxLevels[0] = (byte)goodRodFirstFortyMaxLevelUpDown.Value;
}
private void goodRodThirtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodSecondFortyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[1] = (byte)goodRodThirtyMaxUpDown.Value;
currentFile.goodRodMaxLevels[1] = (byte)goodRodSecondFortyMaxLevelUpDown.Value;
}
private void goodRodFiveMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFifteenMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[2] = (byte)goodRodFiveMaxUpDown.Value;
currentFile.goodRodMaxLevels[2] = (byte)goodRodFifteenMaxLevelUpDown.Value;
}
private void goodRodFourMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodFourMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[3] = (byte)goodRodFourMaxUpDown.Value;
currentFile.goodRodMaxLevels[3] = (byte)goodRodFourMaxLevelUpDown.Value;
}
private void goodRodOneMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void goodRodOneMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.goodRodMaxLevels[4] = (byte)goodRodOneMaxUpDown.Value;
currentFile.goodRodMaxLevels[4] = (byte)goodRodOneMaxLevelUpDown.Value;
}
private void superRodSixtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFirstFortyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[0] = (byte)superRodSixtyMinUpDown.Value;
currentFile.superRodMinLevels[0] = (byte)superRodFirstFortyMinLevelUpDown.Value;
}
private void superRodThirtyMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodSecondFortyMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[1] = (byte)superRodThirtyMinUpDown.Value;
currentFile.superRodMinLevels[1] = (byte)superRodSecondFortyMinLevelUpDown.Value;
}
private void superRodFiveMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFifteenMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[2] = (byte)superRodFiveMinUpDown.Value;
currentFile.superRodMinLevels[2] = (byte)superRodFifteenMinLevelUpDown.Value;
}
private void superRodFourMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFourMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[3] = (byte)superRodFourMinUpDown.Value;
currentFile.superRodMinLevels[3] = (byte)superRodFourMinLevelUpDown.Value;
}
private void superRodOneMinUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodOneMinLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMinLevels[4] = (byte)superRodOneMinUpDown.Value;
currentFile.superRodMinLevels[4] = (byte)superRodOneMinLevelUpDown.Value;
}
private void superRodSixtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFirstFortyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[0] = (byte)superRodSixtyMaxUpDown.Value;
currentFile.superRodMaxLevels[0] = (byte)superRodFirstFortyMaxLevelUpDown.Value;
}
private void superRodThirtyMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodSecondFortyMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[1] = (byte)superRodThirtyMaxUpDown.Value;
currentFile.superRodMaxLevels[1] = (byte)superRodSecondFortyMaxLevelUpDown.Value;
}
private void superRodFiveMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFifteenMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[2] = (byte)superRodFiveMaxUpDown.Value;
currentFile.superRodMaxLevels[2] = (byte)superRodFifteenMaxLevelUpDown.Value;
}
private void superRodFourMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodFourMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[3] = (byte)superRodFourMaxUpDown.Value;
currentFile.superRodMaxLevels[3] = (byte)superRodFourMaxLevelUpDown.Value;
}
private void superRodOneMaxUpDown_ValueChanged(object sender, EventArgs e) {
private void superRodOneMaxLevelUpDown_ValueChanged(object sender, EventArgs e) {
if (disableHandlers) {
return;
}
currentFile.superRodMaxLevels[4] = (byte)superRodOneMaxUpDown.Value;
currentFile.superRodMaxLevels[4] = (byte)superRodOneMaxLevelUpDown.Value;
}
private void addEncounterFileButton_Click(object sender, EventArgs e) {

View File

@@ -118,10 +118,42 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAA8AAAASCAYAAACEnoQPAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wQAADsEBuJFr7QAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAAK1JREFUOE+lkrER
gzAMRVmLFRiBlpIyZVZghLSUKVOmpWSEtB5DydOdfLJNwulSPOtb9uOwoRORQ8bxIlD3PYdNpJRE+n74
TNt1o2kgrutTCckREXKIiqBDLTI/Q2XCtr1UArIxz0uuPlPxshwly3yWKCrzqnbeCHiFvFwn2e9Tsekb
hWyif4BdVE0je5FayHv6LXvRZNZguD1ytv3U5swmhuUI/8v8o4QoItK9AbYu4JnkDiiKAAAAAElFTkSu
QmCC
</value>
</data>
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
EQAACxEBf2RfkQAAAAd0SU1FB9oIDQQnDocfMUsAAADvSURBVDhPdZOxAYMgFEQdwxEsKVNSUjICpSUj
OE5GyHbG+/rIh2hxAf6/d0DUqZbYqeRX09iTtpI6ncWaOxA4xbAjmQnxHoMRDaDPe923mmzU2uAU7gNI
B/RSiKSehy2ACTBmD6uO2v2vjf8CnkDqFuJOfQt7s8bxRPM821UsgDudyT8jay/VJAIk+1EBGBPyoBch
dgwCUFiWNpdZa0BqFnA80hbgmz5AIoC+xr8AmiOsGnUfIqb7EzmFRuZevq5xzed30QLWY4HJmz2MBOd0
PQW9EIIlFaURkNgox9BguwJvVTMo5DLZTsf8Ca4lTl/a+oEBOmHZ3AAAAABJRU5ErkJggg==
</value>
</data>
<data name="pictureBox2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAYAAABc6S4mAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
EQAACxEBf2RfkQAAAAd0SU1FB9oIDQQqEiawE0kAAAFVSURBVEhLrZGxQQMxEARdAiU4pARCh4QOHVKC
Q5dACYSElEFnz4/wiNW9bAIIxpJOulnpvVuW5S7783GBOpe6rkyLQvPh49ykz++nNtb18fOyCU2mRRrg
8fVbqNQ5ddcGQPVAn9Bko82MT2+nXjewnnEv+zcBsL+c2o0gA7wpghroGeacY3x4Oay6PwY4r+Tt4Ue+
bhDAaIBNhqZIMhyaZ8VXdLmHmM8kBubtlWeAjk2ADYw2uZaUg8EpFrw9wBAO85myWRmk3HWCw7G/QHH/
RGsAo5LZS0Qxczz2DgF5e5s8aPO9EHBfOeBtARZqSI7UbwVQJ8A1HoNaAD8WsxGozepiMOSr8Q2fyJBM
z8P1f0mZ8uxVPgRAk8lV4lrhILvO6/l09gmpMGuAHuB+Jc7ffMEQcKWG3NoDL5nOIQA8lI1VMNu3Xn3D
QmYSa8lvctgU/pdl9wW7k4QDv7pGRAAAAABJRU5ErkJggg==
</value>
</data>
<data name="pictureBox7.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAK
7wAACu8BfXaKSAAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAABOElE
7gAACu4BrzForAAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAABOElE
QVRIS7WToRLCMBBE+aRKPiOyks9AViKRfAYSWcknIJFIZF1gM7OZzeUKDVPEm1w2e7dNC5sY419xxTWp
hK7rYh9CxMr6OAzvo9K3lGKDgawxmMNZ86yFXOhwRUPmPJ/IxadmnCHkOo7NIbn41qghLd+k2CwNaXld
lYBGxZ7zmyx9Xa6o2CHYt4S4osUL8VAPqQQPbUZ97bfxOewS4+2eOJ0vbkixsXhPhj2HA+w53PPnQvGM
@@ -133,7 +165,7 @@
<data name="pictureBox6.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAe
wQAAHsEBw2lUUwAAAAd0SU1FB9UDGhMWCY0H+k0AAAEJSURBVEhLtZKxEcIwDEUZhzIlJSOkpGQEyoyQ
wAAAHsABES62twAAAAd0SU1FB9UDGhMWCY0H+k0AAAEJSURBVEhLtZKxEcIwDEUZhzIlJSOkpGQEyoyQ
ERgjJSVlRkjJCJTpzH3fSafYki3nQvGOb1nRi4BTCOGvqMUjUYtd14XHeA74pAzSPg9ZAQMp0+Bpvkbk
nZfNwRpAkuV7b5ZsDqWHcbdHwsHz0B4JB+8DrRIOXoH80UHt38XBKwAtW3BoEQCvhMNeQe1r4mAJUC/d
1bbgoDWgtq5rmG8XdQAJSltwSAfgjMESSzIMU0S73zRSpvN7+cQ3w/Dn9DIFfT9GigJgSazhBEm0LbJG
@@ -144,44 +176,12 @@
<data name="pictureBox5.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAK
7wAACu8BfXaKSAAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAABFElE
7gAACu4BrzForAAAACB0RVh0U29mdHdhcmUATWFjcm9tZWRpYSBGaXJld29ya3MgTVi7kSokAAABFElE
QVRIS7WUvQ3CMBSEKSkZJSVlxmCElIxAyQgZgzJlSkagzBjpjC7SWc+PI/4RFJ+cd7bvU4LEIYTwV2RI
uq4LxO+VIkOA0mUaNq79qVkiQ0DBPPabYLjdmyQyJChk+fxamiQytKBwfExRUvu5ZEhYhBWCcTjGT1Yq
kSHwBZhRTgnWEokMv12kBG+AFeQkH0HuAvbtW+QkyZArJzWSZCgVgFJJcoHPpeAOfw+sEPme5DCfa7AS
vo3tiocYeLDHfT7785gpqRIgX9c1PC9nWepnSIDdk4eZodiiSv3sM3mQGf97UI7/I1VoZ0V82JOocu77
zJMMuOAvqYxUC8heqaVZQChSRSXlQIYKKystBzL8HeHwBp8XImlIZls2AAAAAElFTkSuQmCC
</value>
</data>
<data name="pictureBox3.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAA8AAAASCAYAAACEnoQPAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
wgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZYUyZQAAAK1JREFUOE+lkrER
gzAMRVmLFRiBlpIyZVZghLSUKVOmpWSEtB5DydOdfLJNwulSPOtb9uOwoRORQ8bxIlD3PYdNpJRE+n74
TNt1o2kgrutTCckREXKIiqBDLTI/Q2XCtr1UArIxz0uuPlPxshwly3yWKCrzqnbeCHiFvFwn2e9Tsekb
hWyif4BdVE0je5FayHv6LXvRZNZguD1ytv3U5swmhuUI/8v8o4QoItK9AbYu4JnkDiiKAAAAAElFTkSu
QmCC
</value>
</data>
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
EgAACxIB0t1+/AAAAAd0SU1FB9oIDQQnDocfMUsAAADvSURBVDhPdZOxAYMgFEQdwxEsKVNSUjICpSUj
OE5GyHbG+/rIh2hxAf6/d0DUqZbYqeRX09iTtpI6ncWaOxA4xbAjmQnxHoMRDaDPe923mmzU2uAU7gNI
B/RSiKSehy2ACTBmD6uO2v2vjf8CnkDqFuJOfQt7s8bxRPM821UsgDudyT8jay/VJAIk+1EBGBPyoBch
dgwCUFiWNpdZa0BqFnA80hbgmz5AIoC+xr8AmiOsGnUfIqb7EzmFRuZevq5xzed30QLWY4HJmz2MBOd0
PQW9EIIlFaURkNgox9BguwJvVTMo5DLZTsf8Ca4lTl/a+oEBOmHZ3AAAAABJRU5ErkJggg==
</value>
</data>
<data name="pictureBox2.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAABgAAAAVCAYAAABc6S4mAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAL
EgAACxIB0t1+/AAAAAd0SU1FB9oIDQQqEiawE0kAAAFVSURBVEhLrZGxQQMxEARdAiU4pARCh4QOHVKC
Q5dACYSElEFnz4/wiNW9bAIIxpJOulnpvVuW5S7783GBOpe6rkyLQvPh49ykz++nNtb18fOyCU2mRRrg
8fVbqNQ5ddcGQPVAn9Bko82MT2+nXjewnnEv+zcBsL+c2o0gA7wpghroGeacY3x4Oay6PwY4r+Tt4Ue+
bhDAaIBNhqZIMhyaZ8VXdLmHmM8kBubtlWeAjk2ADYw2uZaUg8EpFrw9wBAO85myWRmk3HWCw7G/QHH/
RGsAo5LZS0Qxczz2DgF5e5s8aPO9EHBfOeBtARZqSI7UbwVQJ8A1HoNaAD8WsxGozepiMOSr8Q2fyJBM
z8P1f0mZ8uxVPgRAk8lV4lrhILvO6/l09gmpMGuAHuB+Jc7ffMEQcKWG3NoDL5nOIQA8lI1VMNu3Xn3D
QmYSa8lvctgU/pdl9wW7k4QDv7pGRAAAAABJRU5ErkJggg==
</value>
</data>
</root>