mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-05-15 16:29:49 -05:00
removed useless helper function
This commit is contained in:
parent
b19459ad3e
commit
856a96c6da
|
|
@ -1291,12 +1291,11 @@ namespace DSPRE {
|
|||
if (disableHandlers)
|
||||
return;
|
||||
|
||||
int headerNumber = GetHeaderNumberFromListBoxName();
|
||||
currentHeader = LoadHeader(headerNumber);
|
||||
|
||||
|
||||
String nameDisplayedInListBox = headerListBox.SelectedItem.ToString();
|
||||
int separatorPosition = nameDisplayedInListBox.IndexOf(headerNamesSeparator);
|
||||
int headerNumber = Int32.Parse(nameDisplayedInListBox.Substring(0, separatorPosition));
|
||||
currentHeader = LoadHeader(headerNumber);
|
||||
|
||||
/* Setup controls for common fields across headers */
|
||||
internalNameBox.Text = nameDisplayedInListBox.Substring(separatorPosition + headerNamesSeparator.Length);
|
||||
matrixUpDown.Value = currentHeader.matrix;
|
||||
|
|
@ -1312,7 +1311,6 @@ namespace DSPRE {
|
|||
if (romInfo.gameVersion == "HG" || romInfo.gameVersion == "SS")
|
||||
areaSettingsComboBox.SelectedIndex = cameraComboBox.FindString("[" + currentHeader.areaSettings.ToString("D2"));
|
||||
|
||||
|
||||
if (currentHeader.wildPokémon == romInfo.nullEncounterID)
|
||||
openWildEditorWithIdButton.Enabled = false;
|
||||
else
|
||||
|
|
@ -1345,13 +1343,6 @@ namespace DSPRE {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private int GetHeaderNumberFromListBoxName() {
|
||||
String nameDisplayedInListBox = headerListBox.SelectedItem.ToString();
|
||||
int separatorPosition = nameDisplayedInListBox.IndexOf(headerNamesSeparator);
|
||||
return Int32.Parse(nameDisplayedInListBox.Substring(0, separatorPosition));
|
||||
}
|
||||
|
||||
private void refreshFlags() {
|
||||
int i = 7;
|
||||
disableHandlers = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user