mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-28 21:04:07 -05:00
Fix Vivillon Form loading/saving
Thanks KingGengar & Favna!
This commit is contained in:
@@ -525,5 +525,6 @@ http://projectpokemon.org/forums/showthread.php?36986
|
||||
- Fixed: Add ORAS Items to Memory Item Usage List. Thanks liopds!
|
||||
- Fixed: Trash Bytes now are no longer cleared when saving data. Thanks SciresM & Lunarcookies!
|
||||
- Fixed: Re-ordered controls to make tabbing flow down the form. Thanks Favna!
|
||||
- Fixed: Vivillon Form selection in the Trainer (Save)Data editor will now function with refactored code. Thanks KingGengar & Favna!
|
||||
- Changed: PKRS Days capped at legal limits.
|
||||
- Changed: Forms drop-down and label will be hidden if a Pokémon has no forms.
|
||||
@@ -328,6 +328,8 @@ private void getComboBoxes()
|
||||
CB_Multi.DataSource = oras_sprite_list;
|
||||
|
||||
L_Vivillon.Text = Form1.specieslist[666] + ":";
|
||||
CB_Vivillon.DisplayMember = "Text";
|
||||
CB_Vivillon.ValueMember = "Value";
|
||||
m_parent.setForms(666, CB_Vivillon);
|
||||
}
|
||||
private void getBadges()
|
||||
@@ -492,8 +494,8 @@ private void getTextBoxes()
|
||||
MT_1403F.Text = sav[TrainerCard + 0x3F + savshift].ToString();
|
||||
|
||||
// Vivillon
|
||||
int vivillon = sav[VivillonForm + savshift];
|
||||
CB_Vivillon.SelectedValue = vivillon;
|
||||
byte vivillon = sav[VivillonForm + savshift];
|
||||
CB_Vivillon.SelectedIndex = vivillon;
|
||||
}
|
||||
private void save()
|
||||
{
|
||||
@@ -612,7 +614,7 @@ private void save()
|
||||
sav[TrainerCard + 0x3F + savshift] = Byte.Parse(MT_1403F.Text);
|
||||
|
||||
// Vivillon
|
||||
sav[VivillonForm + savshift] = (byte)Util.ToUInt32(CB_Vivillon.SelectedValue.ToString());
|
||||
sav[VivillonForm + savshift] = (byte)CB_Vivillon.SelectedIndex;
|
||||
}
|
||||
|
||||
private void clickOT(object sender, MouseEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user