diff --git a/acnhpoker/Form1.Designer.cs b/acnhpoker/Form1.Designer.cs index 92d84e0..98d21eb 100644 --- a/acnhpoker/Form1.Designer.cs +++ b/acnhpoker/Form1.Designer.cs @@ -1074,6 +1074,9 @@ private void InitializeComponent() this.Controls.Add(this.connectBtn); this.Controls.Add(this.pictureBox1); this.Controls.Add(this.inventoryPanel); + this.MaximizeBox = false; + this.MaximumSize = new System.Drawing.Size(1206, 555); + this.MinimumSize = new System.Drawing.Size(1206, 555); this.Name = "Form1"; this.Text = "ACNH Poker"; this.Load += new System.EventHandler(this.Form1_Load); diff --git a/acnhpoker/Form1.cs b/acnhpoker/Form1.cs index d965ccb..98f69ef 100644 --- a/acnhpoker/Form1.cs +++ b/acnhpoker/Form1.cs @@ -51,7 +51,7 @@ private DataTable loadItemCSV(string filePath) private void connectBtn_Click(object sender, EventArgs e) { - + string ipPattern = @"\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b"; @@ -267,7 +267,11 @@ private void updateInventory() btn.Text = ""; if (itemID == "FFFE") + { + btn.Image = null; + btn.Text = ""; continue; + } string itemPath = getImagePathFromID(itemID); @@ -532,8 +536,6 @@ private void deleteItemBtn_Click(object sender, EventArgs e) int slotId = int.Parse(owner.SourceControl.Tag.ToString()); utilities.DeleteSlot(s, slotId); - - var btnParent = (Button)owner.SourceControl; btnParent.Image = null; btnParent.Text = ""; @@ -610,9 +612,7 @@ private void spawnAllBtn_Click(object sender, EventArgs e) private void refreshBtn_Click(object sender, EventArgs e) { - updateInventory(); - } } }