mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 05:46:47 -05:00
Minor fixes
This commit is contained in:
2
pk3DS/Subforms/Gifts.Designer.cs
generated
2
pk3DS/Subforms/Gifts.Designer.cs
generated
@@ -488,7 +488,7 @@ private void InitializeComponent()
|
||||
this.Controls.Add(this.NUD_Ability);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimumSize = new System.Drawing.Size(310, 290);
|
||||
this.MinimumSize = new System.Drawing.Size(380, 343);
|
||||
this.Name = "Gifts";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Gift Editor";
|
||||
|
||||
@@ -106,15 +106,17 @@ private void changeIndex(object sender, EventArgs e)
|
||||
{
|
||||
if (LB_Gifts.SelectedIndex < 0)
|
||||
return;
|
||||
if (entry != -1)
|
||||
saveEntry();
|
||||
if (!loaded)
|
||||
return;
|
||||
if (entry != -1)
|
||||
saveEntry();
|
||||
entry = LB_Gifts.SelectedIndex;
|
||||
loadEntry();
|
||||
}
|
||||
private void loadEntry()
|
||||
{
|
||||
bool oldloaded = loaded;
|
||||
loaded = false;
|
||||
CB_Species.SelectedIndex = GiftData[entry].Species;
|
||||
CB_HeldItem.SelectedIndex = GiftData[entry].HeldItem;
|
||||
NUD_Level.Value = GiftData[entry].Level;
|
||||
@@ -129,6 +131,7 @@ private void loadEntry()
|
||||
NUD_IV3.Value = GiftData[entry].IVs[3];
|
||||
NUD_IV4.Value = GiftData[entry].IVs[4];
|
||||
NUD_IV5.Value = GiftData[entry].IVs[5];
|
||||
loaded |= oldloaded;
|
||||
}
|
||||
private void saveEntry()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user