mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-11 15:07:11 +00:00
add Vivillon FormValue
This code will not change the value, even if the value is illegal.
This commit is contained in:
parent
6ede0b3bce
commit
77dd8d1829
1 changed files with 10 additions and 0 deletions
|
@ -97,6 +97,11 @@ namespace PKHeX.WinForms
|
|||
CB_SkinColor.Items.Add($"{Main.gendersymbols[0]} - {c}"); // M
|
||||
CB_SkinColor.Items.Add($"{Main.gendersymbols[1]} - {c}"); // F
|
||||
}
|
||||
|
||||
L_Vivillon.Text = GameInfo.Strings.specieslist[666] + ":";
|
||||
CB_Vivillon.DisplayMember = "Text";
|
||||
CB_Vivillon.ValueMember = "Value";
|
||||
CB_Vivillon.DataSource = PKX.getFormList(666, GameInfo.Strings.types, GameInfo.Strings.forms, Main.gendersymbols).ToList();
|
||||
}
|
||||
private void getTextBoxes()
|
||||
{
|
||||
|
@ -183,6 +188,8 @@ namespace PKHeX.WinForms
|
|||
|
||||
CB_SkinColor.SelectedIndex = SAV.DressUpSkinColor;
|
||||
TB_PlazaName.Text = SAV.FestivalPlazaName;
|
||||
|
||||
CB_Vivillon.SelectedIndex = (SAV.Vivillon < CB_Vivillon.Items.Count) ? SAV.Vivillon : -1;
|
||||
}
|
||||
private void save()
|
||||
{
|
||||
|
@ -265,6 +272,9 @@ namespace PKHeX.WinForms
|
|||
SAV.DressUpSkinColor = CB_SkinColor.SelectedIndex;
|
||||
|
||||
SAV.FestivalPlazaName = TB_PlazaName.Text;
|
||||
|
||||
// Vivillon
|
||||
if (CB_Vivillon.SelectedIndex >= 0) SAV.Vivillon = CB_Vivillon.SelectedIndex;
|
||||
}
|
||||
|
||||
private void clickOT(object sender, MouseEventArgs e)
|
||||
|
|
Loading…
Reference in a new issue