mirror of
https://github.com/kwsch/pkNX.git
synced 2026-09-09 19:15:26 -05:00
Fix arg visibility toggling
This commit is contained in:
1
pkNX.WinForms/Controls/EvolutionRow.Designer.cs
generated
1
pkNX.WinForms/Controls/EvolutionRow.Designer.cs
generated
@@ -100,6 +100,7 @@ private void InitializeComponent()
|
||||
this.CB_Arg.Name = "CB_Arg";
|
||||
this.CB_Arg.Size = new System.Drawing.Size(82, 21);
|
||||
this.CB_Arg.TabIndex = 69;
|
||||
this.CB_Arg.Visible = false;
|
||||
//
|
||||
// CB_Species
|
||||
//
|
||||
|
||||
@@ -23,14 +23,12 @@ public EvolutionRow()
|
||||
{
|
||||
var index = (EvolutionType)CB_Method.SelectedIndex;
|
||||
var type = index.GetArgType();
|
||||
CB_Arg.Visible = type >= EvolutionTypeArgumentType.Items;
|
||||
if (type == oldMethod)
|
||||
return;
|
||||
|
||||
if (type < EvolutionTypeArgumentType.Items)
|
||||
{
|
||||
CB_Arg.Visible = false;
|
||||
return;
|
||||
}
|
||||
|
||||
CB_Arg.Visible = true;
|
||||
oldMethod = type;
|
||||
|
||||
Reference in New Issue
Block a user