diff --git a/PKHeX/Subforms/Save Editors/SAV_Wondercard.Designer.cs b/PKHeX/Subforms/Save Editors/SAV_Wondercard.Designer.cs index 78e564620..25c38993a 100644 --- a/PKHeX/Subforms/Save Editors/SAV_Wondercard.Designer.cs +++ b/PKHeX/Subforms/Save Editors/SAV_Wondercard.Designer.cs @@ -42,71 +42,20 @@ this.L_Details = new System.Windows.Forms.Label(); this.L_QR = new System.Windows.Forms.Label(); this.PB_Preview = new System.Windows.Forms.PictureBox(); - this.PB_Card01 = new System.Windows.Forms.PictureBox(); this.mnuVSD = new System.Windows.Forms.ContextMenuStrip(this.components); this.mnuView = new System.Windows.Forms.ToolStripMenuItem(); this.mnuSet = new System.Windows.Forms.ToolStripMenuItem(); this.mnuDelete = new System.Windows.Forms.ToolStripMenuItem(); - this.PB_Card02 = new System.Windows.Forms.PictureBox(); - this.PB_Card03 = new System.Windows.Forms.PictureBox(); - this.PB_Card04 = new System.Windows.Forms.PictureBox(); - this.PB_Card05 = new System.Windows.Forms.PictureBox(); - this.PB_Card06 = new System.Windows.Forms.PictureBox(); - this.PB_Card12 = new System.Windows.Forms.PictureBox(); - this.PB_Card11 = new System.Windows.Forms.PictureBox(); - this.PB_Card10 = new System.Windows.Forms.PictureBox(); - this.PB_Card09 = new System.Windows.Forms.PictureBox(); - this.PB_Card08 = new System.Windows.Forms.PictureBox(); - this.PB_Card07 = new System.Windows.Forms.PictureBox(); - this.PB_Card18 = new System.Windows.Forms.PictureBox(); - this.PB_Card17 = new System.Windows.Forms.PictureBox(); - this.PB_Card16 = new System.Windows.Forms.PictureBox(); - this.PB_Card15 = new System.Windows.Forms.PictureBox(); - this.PB_Card14 = new System.Windows.Forms.PictureBox(); - this.PB_Card13 = new System.Windows.Forms.PictureBox(); - this.PB_Card24 = new System.Windows.Forms.PictureBox(); - this.PB_Card23 = new System.Windows.Forms.PictureBox(); - this.PB_Card22 = new System.Windows.Forms.PictureBox(); - this.PB_Card21 = new System.Windows.Forms.PictureBox(); - this.PB_Card20 = new System.Windows.Forms.PictureBox(); - this.PB_Card19 = new System.Windows.Forms.PictureBox(); - this.L_r1 = new System.Windows.Forms.Label(); - this.L_r2 = new System.Windows.Forms.Label(); - this.L_r3 = new System.Windows.Forms.Label(); - this.L_r4 = new System.Windows.Forms.Label(); + this.FLP_Gifts = new System.Windows.Forms.FlowLayoutPanel(); this.mnuDel.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.PB_Preview)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card01)).BeginInit(); this.mnuVSD.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card02)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card03)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card04)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card05)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card06)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card12)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card11)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card10)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card09)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card08)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card07)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card18)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card17)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card16)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card15)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card14)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card13)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card24)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card23)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card22)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card21)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card20)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card19)).BeginInit(); this.SuspendLayout(); // // B_Save // this.B_Save.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.B_Save.Location = new System.Drawing.Point(313, 292); + this.B_Save.Location = new System.Drawing.Point(391, 326); this.B_Save.Name = "B_Save"; this.B_Save.Size = new System.Drawing.Size(75, 23); this.B_Save.TabIndex = 0; @@ -117,7 +66,7 @@ // B_Cancel // this.B_Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.B_Cancel.Location = new System.Drawing.Point(242, 292); + this.B_Cancel.Location = new System.Drawing.Point(320, 326); this.B_Cancel.Name = "B_Cancel"; this.B_Cancel.Size = new System.Drawing.Size(71, 23); this.B_Cancel.TabIndex = 1; @@ -128,7 +77,7 @@ // B_Output // this.B_Output.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.B_Output.Location = new System.Drawing.Point(313, 12); + this.B_Output.Location = new System.Drawing.Point(391, 12); this.B_Output.Name = "B_Output"; this.B_Output.Size = new System.Drawing.Size(75, 23); this.B_Output.TabIndex = 2; @@ -139,7 +88,7 @@ // B_Import // this.B_Import.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.B_Import.Location = new System.Drawing.Point(313, 34); + this.B_Import.Location = new System.Drawing.Point(391, 34); this.B_Import.Name = "B_Import"; this.B_Import.Size = new System.Drawing.Size(75, 23); this.B_Import.TabIndex = 3; @@ -153,9 +102,9 @@ | System.Windows.Forms.AnchorStyles.Left))); this.LB_Received.ContextMenuStrip = this.mnuDel; this.LB_Received.FormattingEnabled = true; - this.LB_Received.Location = new System.Drawing.Point(12, 25); + this.LB_Received.Location = new System.Drawing.Point(12, 31); this.LB_Received.Name = "LB_Received"; - this.LB_Received.Size = new System.Drawing.Size(78, 290); + this.LB_Received.Size = new System.Drawing.Size(78, 316); this.LB_Received.Sorted = true; this.LB_Received.TabIndex = 5; // @@ -176,7 +125,7 @@ // L_Received // this.L_Received.AutoSize = true; - this.L_Received.Location = new System.Drawing.Point(12, 9); + this.L_Received.Location = new System.Drawing.Point(12, 13); this.L_Received.Name = "L_Received"; this.L_Received.Size = new System.Drawing.Size(75, 13); this.L_Received.TabIndex = 7; @@ -184,13 +133,12 @@ // // RTB // - this.RTB.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + this.RTB.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.RTB.Location = new System.Drawing.Point(111, 59); this.RTB.Name = "RTB"; this.RTB.ReadOnly = true; - this.RTB.Size = new System.Drawing.Size(277, 99); + this.RTB.Size = new System.Drawing.Size(355, 100); this.RTB.TabIndex = 10; this.RTB.Text = ""; // @@ -223,22 +171,6 @@ this.PB_Preview.TabIndex = 63; this.PB_Preview.TabStop = false; // - // PB_Card01 - // - this.PB_Card01.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card01.BackColor = System.Drawing.Color.Transparent; - this.PB_Card01.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card01.ContextMenuStrip = this.mnuVSD; - this.PB_Card01.Location = new System.Drawing.Point(138, 162); - this.PB_Card01.Name = "PB_Card01"; - this.PB_Card01.Size = new System.Drawing.Size(42, 32); - this.PB_Card01.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card01.TabIndex = 64; - this.PB_Card01.TabStop = false; - this.PB_Card01.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card01.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card01.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // // mnuVSD // this.mnuVSD.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -269,448 +201,24 @@ this.mnuDelete.Text = "Delete"; this.mnuDelete.Click += new System.EventHandler(this.clickDelete); // - // PB_Card02 + // FLP_Gifts // - this.PB_Card02.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card02.BackColor = System.Drawing.Color.Transparent; - this.PB_Card02.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card02.ContextMenuStrip = this.mnuVSD; - this.PB_Card02.Location = new System.Drawing.Point(179, 162); - this.PB_Card02.Name = "PB_Card02"; - this.PB_Card02.Size = new System.Drawing.Size(42, 32); - this.PB_Card02.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card02.TabIndex = 65; - this.PB_Card02.TabStop = false; - this.PB_Card02.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card02.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card02.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card03 - // - this.PB_Card03.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card03.BackColor = System.Drawing.Color.Transparent; - this.PB_Card03.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card03.ContextMenuStrip = this.mnuVSD; - this.PB_Card03.Location = new System.Drawing.Point(220, 162); - this.PB_Card03.Name = "PB_Card03"; - this.PB_Card03.Size = new System.Drawing.Size(42, 32); - this.PB_Card03.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card03.TabIndex = 66; - this.PB_Card03.TabStop = false; - this.PB_Card03.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card03.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card03.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card04 - // - this.PB_Card04.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card04.BackColor = System.Drawing.Color.Transparent; - this.PB_Card04.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card04.ContextMenuStrip = this.mnuVSD; - this.PB_Card04.Location = new System.Drawing.Point(261, 162); - this.PB_Card04.Name = "PB_Card04"; - this.PB_Card04.Size = new System.Drawing.Size(42, 32); - this.PB_Card04.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card04.TabIndex = 67; - this.PB_Card04.TabStop = false; - this.PB_Card04.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card04.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card04.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card05 - // - this.PB_Card05.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card05.BackColor = System.Drawing.Color.Transparent; - this.PB_Card05.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card05.ContextMenuStrip = this.mnuVSD; - this.PB_Card05.Location = new System.Drawing.Point(302, 162); - this.PB_Card05.Name = "PB_Card05"; - this.PB_Card05.Size = new System.Drawing.Size(42, 32); - this.PB_Card05.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card05.TabIndex = 68; - this.PB_Card05.TabStop = false; - this.PB_Card05.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card05.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card05.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card06 - // - this.PB_Card06.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card06.BackColor = System.Drawing.Color.Transparent; - this.PB_Card06.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card06.ContextMenuStrip = this.mnuVSD; - this.PB_Card06.Location = new System.Drawing.Point(343, 162); - this.PB_Card06.Name = "PB_Card06"; - this.PB_Card06.Size = new System.Drawing.Size(42, 32); - this.PB_Card06.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card06.TabIndex = 69; - this.PB_Card06.TabStop = false; - this.PB_Card06.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card06.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card06.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card12 - // - this.PB_Card12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card12.BackColor = System.Drawing.Color.Transparent; - this.PB_Card12.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card12.ContextMenuStrip = this.mnuVSD; - this.PB_Card12.Location = new System.Drawing.Point(343, 193); - this.PB_Card12.Name = "PB_Card12"; - this.PB_Card12.Size = new System.Drawing.Size(42, 32); - this.PB_Card12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card12.TabIndex = 75; - this.PB_Card12.TabStop = false; - this.PB_Card12.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card12.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card12.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card11 - // - this.PB_Card11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card11.BackColor = System.Drawing.Color.Transparent; - this.PB_Card11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card11.ContextMenuStrip = this.mnuVSD; - this.PB_Card11.Location = new System.Drawing.Point(302, 193); - this.PB_Card11.Name = "PB_Card11"; - this.PB_Card11.Size = new System.Drawing.Size(42, 32); - this.PB_Card11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card11.TabIndex = 74; - this.PB_Card11.TabStop = false; - this.PB_Card11.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card11.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card11.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card10 - // - this.PB_Card10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card10.BackColor = System.Drawing.Color.Transparent; - this.PB_Card10.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card10.ContextMenuStrip = this.mnuVSD; - this.PB_Card10.Location = new System.Drawing.Point(261, 193); - this.PB_Card10.Name = "PB_Card10"; - this.PB_Card10.Size = new System.Drawing.Size(42, 32); - this.PB_Card10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card10.TabIndex = 73; - this.PB_Card10.TabStop = false; - this.PB_Card10.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card10.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card10.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card09 - // - this.PB_Card09.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card09.BackColor = System.Drawing.Color.Transparent; - this.PB_Card09.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card09.ContextMenuStrip = this.mnuVSD; - this.PB_Card09.Location = new System.Drawing.Point(220, 193); - this.PB_Card09.Name = "PB_Card09"; - this.PB_Card09.Size = new System.Drawing.Size(42, 32); - this.PB_Card09.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card09.TabIndex = 72; - this.PB_Card09.TabStop = false; - this.PB_Card09.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card09.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card09.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card08 - // - this.PB_Card08.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card08.BackColor = System.Drawing.Color.Transparent; - this.PB_Card08.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card08.ContextMenuStrip = this.mnuVSD; - this.PB_Card08.Location = new System.Drawing.Point(179, 193); - this.PB_Card08.Name = "PB_Card08"; - this.PB_Card08.Size = new System.Drawing.Size(42, 32); - this.PB_Card08.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card08.TabIndex = 71; - this.PB_Card08.TabStop = false; - this.PB_Card08.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card08.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card08.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card07 - // - this.PB_Card07.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card07.BackColor = System.Drawing.Color.Transparent; - this.PB_Card07.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card07.ContextMenuStrip = this.mnuVSD; - this.PB_Card07.Location = new System.Drawing.Point(138, 193); - this.PB_Card07.Name = "PB_Card07"; - this.PB_Card07.Size = new System.Drawing.Size(42, 32); - this.PB_Card07.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card07.TabIndex = 70; - this.PB_Card07.TabStop = false; - this.PB_Card07.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card07.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card07.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card18 - // - this.PB_Card18.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card18.BackColor = System.Drawing.Color.Transparent; - this.PB_Card18.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card18.ContextMenuStrip = this.mnuVSD; - this.PB_Card18.Location = new System.Drawing.Point(343, 224); - this.PB_Card18.Name = "PB_Card18"; - this.PB_Card18.Size = new System.Drawing.Size(42, 32); - this.PB_Card18.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card18.TabIndex = 81; - this.PB_Card18.TabStop = false; - this.PB_Card18.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card18.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card18.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card17 - // - this.PB_Card17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card17.BackColor = System.Drawing.Color.Transparent; - this.PB_Card17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card17.ContextMenuStrip = this.mnuVSD; - this.PB_Card17.Location = new System.Drawing.Point(302, 224); - this.PB_Card17.Name = "PB_Card17"; - this.PB_Card17.Size = new System.Drawing.Size(42, 32); - this.PB_Card17.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card17.TabIndex = 80; - this.PB_Card17.TabStop = false; - this.PB_Card17.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card17.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card17.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card16 - // - this.PB_Card16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card16.BackColor = System.Drawing.Color.Transparent; - this.PB_Card16.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card16.ContextMenuStrip = this.mnuVSD; - this.PB_Card16.Location = new System.Drawing.Point(261, 224); - this.PB_Card16.Name = "PB_Card16"; - this.PB_Card16.Size = new System.Drawing.Size(42, 32); - this.PB_Card16.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card16.TabIndex = 79; - this.PB_Card16.TabStop = false; - this.PB_Card16.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card16.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card16.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card15 - // - this.PB_Card15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card15.BackColor = System.Drawing.Color.Transparent; - this.PB_Card15.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card15.ContextMenuStrip = this.mnuVSD; - this.PB_Card15.Location = new System.Drawing.Point(220, 224); - this.PB_Card15.Name = "PB_Card15"; - this.PB_Card15.Size = new System.Drawing.Size(42, 32); - this.PB_Card15.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card15.TabIndex = 78; - this.PB_Card15.TabStop = false; - this.PB_Card15.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card15.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card15.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card14 - // - this.PB_Card14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card14.BackColor = System.Drawing.Color.Transparent; - this.PB_Card14.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card14.ContextMenuStrip = this.mnuVSD; - this.PB_Card14.Location = new System.Drawing.Point(179, 224); - this.PB_Card14.Name = "PB_Card14"; - this.PB_Card14.Size = new System.Drawing.Size(42, 32); - this.PB_Card14.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card14.TabIndex = 77; - this.PB_Card14.TabStop = false; - this.PB_Card14.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card14.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card14.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card13 - // - this.PB_Card13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card13.BackColor = System.Drawing.Color.Transparent; - this.PB_Card13.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card13.ContextMenuStrip = this.mnuVSD; - this.PB_Card13.Location = new System.Drawing.Point(138, 224); - this.PB_Card13.Name = "PB_Card13"; - this.PB_Card13.Size = new System.Drawing.Size(42, 32); - this.PB_Card13.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card13.TabIndex = 76; - this.PB_Card13.TabStop = false; - this.PB_Card13.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card13.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card13.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card24 - // - this.PB_Card24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card24.BackColor = System.Drawing.Color.Transparent; - this.PB_Card24.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card24.ContextMenuStrip = this.mnuVSD; - this.PB_Card24.Location = new System.Drawing.Point(343, 255); - this.PB_Card24.Name = "PB_Card24"; - this.PB_Card24.Size = new System.Drawing.Size(42, 32); - this.PB_Card24.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card24.TabIndex = 87; - this.PB_Card24.TabStop = false; - this.PB_Card24.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card24.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card24.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card23 - // - this.PB_Card23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card23.BackColor = System.Drawing.Color.Transparent; - this.PB_Card23.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card23.ContextMenuStrip = this.mnuVSD; - this.PB_Card23.Location = new System.Drawing.Point(302, 255); - this.PB_Card23.Name = "PB_Card23"; - this.PB_Card23.Size = new System.Drawing.Size(42, 32); - this.PB_Card23.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card23.TabIndex = 86; - this.PB_Card23.TabStop = false; - this.PB_Card23.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card23.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card23.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card22 - // - this.PB_Card22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card22.BackColor = System.Drawing.Color.Transparent; - this.PB_Card22.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card22.ContextMenuStrip = this.mnuVSD; - this.PB_Card22.Location = new System.Drawing.Point(261, 255); - this.PB_Card22.Name = "PB_Card22"; - this.PB_Card22.Size = new System.Drawing.Size(42, 32); - this.PB_Card22.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card22.TabIndex = 85; - this.PB_Card22.TabStop = false; - this.PB_Card22.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card22.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card22.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card21 - // - this.PB_Card21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card21.BackColor = System.Drawing.Color.Transparent; - this.PB_Card21.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card21.ContextMenuStrip = this.mnuVSD; - this.PB_Card21.Location = new System.Drawing.Point(220, 255); - this.PB_Card21.Name = "PB_Card21"; - this.PB_Card21.Size = new System.Drawing.Size(42, 32); - this.PB_Card21.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card21.TabIndex = 84; - this.PB_Card21.TabStop = false; - this.PB_Card21.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card21.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card21.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card20 - // - this.PB_Card20.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card20.BackColor = System.Drawing.Color.Transparent; - this.PB_Card20.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card20.ContextMenuStrip = this.mnuVSD; - this.PB_Card20.Location = new System.Drawing.Point(179, 255); - this.PB_Card20.Name = "PB_Card20"; - this.PB_Card20.Size = new System.Drawing.Size(42, 32); - this.PB_Card20.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card20.TabIndex = 83; - this.PB_Card20.TabStop = false; - this.PB_Card20.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card20.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card20.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // PB_Card19 - // - this.PB_Card19.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.PB_Card19.BackColor = System.Drawing.Color.Transparent; - this.PB_Card19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.PB_Card19.ContextMenuStrip = this.mnuVSD; - this.PB_Card19.Location = new System.Drawing.Point(138, 255); - this.PB_Card19.Name = "PB_Card19"; - this.PB_Card19.Size = new System.Drawing.Size(42, 32); - this.PB_Card19.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; - this.PB_Card19.TabIndex = 82; - this.PB_Card19.TabStop = false; - this.PB_Card19.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragDrop); - this.PB_Card19.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbBoxSlot_DragEnter); - this.PB_Card19.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pbBoxSlot_MouseDown); - // - // L_r1 - // - this.L_r1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.L_r1.Location = new System.Drawing.Point(96, 162); - this.L_r1.Name = "L_r1"; - this.L_r1.Size = new System.Drawing.Size(40, 32); - this.L_r1.TabIndex = 88; - this.L_r1.Text = "1-6:"; - this.L_r1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // L_r2 - // - this.L_r2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.L_r2.Location = new System.Drawing.Point(96, 193); - this.L_r2.Name = "L_r2"; - this.L_r2.Size = new System.Drawing.Size(40, 32); - this.L_r2.TabIndex = 89; - this.L_r2.Text = "7-12:"; - this.L_r2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // L_r3 - // - this.L_r3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.L_r3.Location = new System.Drawing.Point(96, 225); - this.L_r3.Name = "L_r3"; - this.L_r3.Size = new System.Drawing.Size(40, 32); - this.L_r3.TabIndex = 90; - this.L_r3.Text = "13-18:"; - this.L_r3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - // - // L_r4 - // - this.L_r4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.L_r4.Location = new System.Drawing.Point(96, 255); - this.L_r4.Name = "L_r4"; - this.L_r4.Size = new System.Drawing.Size(40, 32); - this.L_r4.TabIndex = 91; - this.L_r4.Text = "19-24:"; - this.L_r4.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.FLP_Gifts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.FLP_Gifts.AutoScroll = true; + this.FLP_Gifts.Location = new System.Drawing.Point(111, 164); + this.FLP_Gifts.Name = "FLP_Gifts"; + this.FLP_Gifts.Size = new System.Drawing.Size(355, 153); + this.FLP_Gifts.TabIndex = 92; // // SAV_Wondercard // this.AllowDrop = true; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(404, 327); - this.Controls.Add(this.L_r4); - this.Controls.Add(this.L_r3); - this.Controls.Add(this.L_r2); - this.Controls.Add(this.L_r1); - this.Controls.Add(this.PB_Card24); - this.Controls.Add(this.PB_Card23); - this.Controls.Add(this.PB_Card22); - this.Controls.Add(this.PB_Card21); - this.Controls.Add(this.PB_Card20); - this.Controls.Add(this.PB_Card19); - this.Controls.Add(this.PB_Card18); - this.Controls.Add(this.PB_Card17); - this.Controls.Add(this.PB_Card16); - this.Controls.Add(this.PB_Card15); - this.Controls.Add(this.PB_Card14); - this.Controls.Add(this.PB_Card13); - this.Controls.Add(this.PB_Card12); - this.Controls.Add(this.PB_Card11); - this.Controls.Add(this.PB_Card10); - this.Controls.Add(this.PB_Card09); - this.Controls.Add(this.PB_Card08); - this.Controls.Add(this.PB_Card07); - this.Controls.Add(this.PB_Card06); - this.Controls.Add(this.PB_Card05); - this.Controls.Add(this.PB_Card04); - this.Controls.Add(this.PB_Card03); - this.Controls.Add(this.PB_Card02); - this.Controls.Add(this.PB_Card01); + this.ClientSize = new System.Drawing.Size(484, 361); + this.Controls.Add(this.FLP_Gifts); this.Controls.Add(this.PB_Preview); this.Controls.Add(this.L_QR); this.Controls.Add(this.L_Details); @@ -723,39 +231,15 @@ this.Controls.Add(this.B_Save); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; - this.MaximumSize = new System.Drawing.Size(700, 500); + this.MaximumSize = new System.Drawing.Size(700, 600); this.MinimizeBox = false; - this.MinimumSize = new System.Drawing.Size(420, 366); + this.MinimumSize = new System.Drawing.Size(500, 400); this.Name = "SAV_Wondercard"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "Wonder Card I/O"; this.mnuDel.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.PB_Preview)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card01)).EndInit(); this.mnuVSD.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card02)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card03)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card04)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card05)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card06)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card12)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card11)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card10)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card09)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card08)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card07)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card18)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card17)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card16)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card15)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card14)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card13)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card24)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card23)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card22)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card21)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card20)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.PB_Card19)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -773,39 +257,12 @@ private System.Windows.Forms.Label L_Details; private System.Windows.Forms.Label L_QR; private System.Windows.Forms.PictureBox PB_Preview; - private System.Windows.Forms.PictureBox PB_Card01; - private System.Windows.Forms.PictureBox PB_Card02; - private System.Windows.Forms.PictureBox PB_Card03; - private System.Windows.Forms.PictureBox PB_Card04; - private System.Windows.Forms.PictureBox PB_Card05; - private System.Windows.Forms.PictureBox PB_Card06; - private System.Windows.Forms.PictureBox PB_Card12; - private System.Windows.Forms.PictureBox PB_Card11; - private System.Windows.Forms.PictureBox PB_Card10; - private System.Windows.Forms.PictureBox PB_Card09; - private System.Windows.Forms.PictureBox PB_Card08; - private System.Windows.Forms.PictureBox PB_Card07; - private System.Windows.Forms.PictureBox PB_Card18; - private System.Windows.Forms.PictureBox PB_Card17; - private System.Windows.Forms.PictureBox PB_Card16; - private System.Windows.Forms.PictureBox PB_Card15; - private System.Windows.Forms.PictureBox PB_Card14; - private System.Windows.Forms.PictureBox PB_Card13; - private System.Windows.Forms.PictureBox PB_Card24; - private System.Windows.Forms.PictureBox PB_Card23; - private System.Windows.Forms.PictureBox PB_Card22; - private System.Windows.Forms.PictureBox PB_Card21; - private System.Windows.Forms.PictureBox PB_Card20; - private System.Windows.Forms.PictureBox PB_Card19; private System.Windows.Forms.ContextMenuStrip mnuVSD; private System.Windows.Forms.ToolStripMenuItem mnuView; private System.Windows.Forms.ToolStripMenuItem mnuSet; private System.Windows.Forms.ToolStripMenuItem mnuDelete; - private System.Windows.Forms.Label L_r1; - private System.Windows.Forms.Label L_r2; - private System.Windows.Forms.Label L_r3; - private System.Windows.Forms.Label L_r4; private System.Windows.Forms.ContextMenuStrip mnuDel; private System.Windows.Forms.ToolStripMenuItem flagDel; + private System.Windows.Forms.FlowLayoutPanel FLP_Gifts; } } \ No newline at end of file diff --git a/PKHeX/Subforms/Save Editors/SAV_Wondercard.cs b/PKHeX/Subforms/Save Editors/SAV_Wondercard.cs index 53a2f34ad..4fd79520b 100644 --- a/PKHeX/Subforms/Save Editors/SAV_Wondercard.cs +++ b/PKHeX/Subforms/Save Editors/SAV_Wondercard.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; @@ -13,39 +14,28 @@ namespace PKHeX InitializeComponent(); Util.TranslateInterface(this, Main.curlanguage); mga = Main.SAV.GiftAlbum; - pba = new[] + + switch (SAV.Generation) { - PB_Card01, PB_Card02, PB_Card03, PB_Card04, PB_Card05, PB_Card06, - PB_Card07, PB_Card08, PB_Card09, PB_Card10, PB_Card11, PB_Card12, - PB_Card13, PB_Card14, PB_Card15, PB_Card16, PB_Card17, PB_Card18, - PB_Card19, PB_Card20, PB_Card21, PB_Card22, PB_Card23, PB_Card24, - }; + case 4: + pba = popG4Gifts().ToArray(); + break; + case 5: + case 6: + case 7: + pba = popG567Gifts().ToArray(); + break; + default: + throw new ArgumentException("Game not supported."); + } foreach (PictureBox pb in pba) { pb.AllowDrop = true; - // The PictureBoxes have their own drag&drop event handlers. - } - - // Hide slots not present on game - for (int i = mga.Gifts.Length; i < pba.Length; i++) - pba[i].Visible = false; - if (mga.Gifts.Length < 7) - L_r2.Visible = false; - if (mga.Gifts.Length < 13) - L_r3.Visible = false; - if (mga.Gifts.Length < 19) - L_r4.Visible = false; - - if (SAV.Generation == 4) // pgt & pcd, split up - { - PB_Card09.Location = PB_Card19.Location; - PB_Card10.Location = PB_Card20.Location; - PB_Card11.Location = PB_Card21.Location; - L_r4.Visible = true; - L_r1.Text = "PGT 1-6"; - L_r2.Text = "PGT 7-8"; - L_r4.Text = "PCD 1-3"; + pb.DragDrop += pbBoxSlot_DragDrop; + pb.DragEnter += pbBoxSlot_DragEnter; + pb.MouseDown += pbBoxSlot_MouseDown; + pb.ContextMenuStrip = mnuVSD; } setGiftBoxes(); @@ -58,7 +48,7 @@ namespace PKHeX DragDrop += tabMain_DragDrop; if (g == null) - clickView(PB_Card01, null); + clickView(pba[0], null); else viewGiftData(g); } @@ -509,5 +499,97 @@ namespace PKHeX s += "Unknown Wonder Card Type!"; return s; } + + // UI Generation + private List popG4Gifts() + { + List pb = new List(); + + // Row 1 + var f1 = getFlowLayoutPanel(); + f1.Controls.Add(getLabel("PGT 1-6")); + for (int i = 0; i < 6; i++) + { + var p = getPictureBox(); + f1.Controls.Add(p); + pb.Add(p); + } + // Row 2 + var f2 = getFlowLayoutPanel(); + f2.Controls.Add(getLabel("PGT 7-8")); + for (int i = 6; i < 8; i++) + { + var p = getPictureBox(); + f2.Controls.Add(p); + pb.Add(p); + } + // Row 3 + var f3 = getFlowLayoutPanel(); + f3.Margin = new Padding(0, f3.Height, 0, 0); + f3.Controls.Add(getLabel("PCD 1-3")); + for (int i = 8; i < 11; i++) + { + var p = getPictureBox(); + f3.Controls.Add(p); + pb.Add(p); + } + + FLP_Gifts.Controls.Add(f1); + FLP_Gifts.Controls.Add(f2); + FLP_Gifts.Controls.Add(f3); + return pb; + } + private List popG567Gifts() + { + List pb = new List(); + + for (int i = 0; i < mga.Gifts.Length / 6; i++) + { + var flp = getFlowLayoutPanel(); + flp.Controls.Add(getLabel($"{i * 6 + 1}-{i * 6 + 6}")); + for (int j = 0; j < 6; j++) + { + var p = getPictureBox(); + flp.Controls.Add(p); + pb.Add(p); + } + FLP_Gifts.Controls.Add(flp); + } + return pb; + } + private static FlowLayoutPanel getFlowLayoutPanel() + { + return new FlowLayoutPanel + { + Width = 305, + Height = 34, + Padding = new Padding(0), + Margin = new Padding(0), + }; + } + private static Label getLabel(string text) + { + return new Label + { + Size = new Size(40, 34), + AutoSize = false, + TextAlign = ContentAlignment.MiddleRight, + Text = text, + Padding = new Padding(0), + Margin = new Padding(0), + }; + } + private static PictureBox getPictureBox() + { + return new PictureBox + { + Size = new Size(42, 32), + SizeMode = PictureBoxSizeMode.CenterImage, + BorderStyle = BorderStyle.FixedSingle, + BackColor = Color.Transparent, + Padding = new Padding(0), + Margin = new Padding(1), + }; + } } } \ No newline at end of file diff --git a/PKHeX/Subforms/Save Editors/SAV_Wondercard.resx b/PKHeX/Subforms/Save Editors/SAV_Wondercard.resx index 72dc18157..944c79d88 100644 --- a/PKHeX/Subforms/Save Editors/SAV_Wondercard.resx +++ b/PKHeX/Subforms/Save Editors/SAV_Wondercard.resx @@ -150,91 +150,10 @@ True - - True - 17, 17 - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - + True