mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-02 10:08:38 -05:00
Aggressively hide formarg label on format change
This commit is contained in:
@@ -198,8 +198,7 @@ private void LoadMisc2(PKM pk)
|
||||
CHK_IsEgg.Checked = pk.IsEgg;
|
||||
CB_HeldItem.SelectedValue = pk.HeldItem;
|
||||
LoadClamp(CB_Form, pk.Form);
|
||||
if (pk is IFormArgument f)
|
||||
L_FormArgument.Visible = FA_Form.LoadArgument(f, pk.Species, pk.Form, pk.Format);
|
||||
L_FormArgument.Visible = pk is IFormArgument f && FA_Form.LoadArgument(f, pk.Species, pk.Form, pk.Format);
|
||||
|
||||
ReloadToFriendshipTextBox(pk);
|
||||
|
||||
|
||||
@@ -983,7 +983,10 @@ private void UpdateForm(object sender, EventArgs e)
|
||||
private void RefreshFormArguments()
|
||||
{
|
||||
if (Entity is not IFormArgument f)
|
||||
{
|
||||
L_FormArgument.Visible = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (FieldsLoaded)
|
||||
FA_Form.SaveArgument(f);
|
||||
@@ -1841,6 +1844,8 @@ private void ToggleInterface(PKM t)
|
||||
L_AlphaMastered.Visible = CB_AlphaMastered.Visible = t is PA8;
|
||||
FLP_ObedienceLevel.Visible = t is IObedienceLevel;
|
||||
Contest.ToggleInterface(Entity, Entity.Context);
|
||||
if (t is not IFormArgument)
|
||||
L_FormArgument.Visible = false;
|
||||
|
||||
ToggleInterface(Entity.Format);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user