mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-07-31 08:36:56 -05:00
Remove showdown import button clicks
Button not visible -> onClick method not called; just call the method directly. (import a set on the Met tab via the tools dropdown, with shiny. won't import a shiny pkm).
This commit is contained in:
parent
38e173a36f
commit
b87f1fc8db
|
|
@ -596,13 +596,13 @@ private void clickShowdownImportPKM(object sender, EventArgs e)
|
|||
TB_Friendship.Text = Set.Friendship.ToString();
|
||||
|
||||
// Reset IV/EVs
|
||||
BTN_RerollPID.PerformClick();
|
||||
BTN_RerollEC.PerformClick();
|
||||
updateRandomPID(sender, e);
|
||||
updateRandomEC(sender, e);
|
||||
ComboBox[] p = {CB_PPu1, CB_PPu2, CB_PPu3, CB_PPu4};
|
||||
for (int i = 0; i < 4; i++)
|
||||
p[i].SelectedIndex = m[i].SelectedIndex != 0 ? 3 : 0; // max PP
|
||||
|
||||
if (Set.Shiny) BTN_Shinytize.PerformClick();
|
||||
if (Set.Shiny) updateShinyPID(sender, e);
|
||||
pkm = preparePKM();
|
||||
updateLegality();
|
||||
}
|
||||
|
|
@ -2211,6 +2211,8 @@ private void updateRandomEVs(object sender, EventArgs e)
|
|||
}
|
||||
private void updateRandomPID(object sender, EventArgs e)
|
||||
{
|
||||
if (pkm.Format < 3)
|
||||
return;
|
||||
if (fieldsLoaded)
|
||||
pkm.PID = Util.getHEXval(TB_PID.Text);
|
||||
|
||||
|
|
@ -2230,6 +2232,8 @@ private void updateRandomPID(object sender, EventArgs e)
|
|||
}
|
||||
private void updateRandomEC(object sender, EventArgs e)
|
||||
{
|
||||
if (pkm.Format < 6)
|
||||
return;
|
||||
pkm.Version = WinFormsUtil.getIndex(CB_GameOrigin);
|
||||
if (pkm.GenNumber < 6)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user