mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-27 14:30:56 +00:00
43e8b08ba8
Gen1/2 INT: 20 slots => 4 wide x 5 high Gen7lgpe: 25 slots => 5x5 otherwise: 6x5 (maintain 5 rows) Database(s): 6x11 Could probably wrap the initialization logic (grabbing savefile, etc) but works for now This is all in prep for box sprite resizing (56x68 as evident by lgpe sprites); figured I'd add some display flexibility to handle prior games with non-30/box layouts. shave off a couple pixels for popup box view to make the edges of the box directly at the edge (-2 bot, -1 right side)
127 lines
4.5 KiB
C#
127 lines
4.5 KiB
C#
namespace PKHeX.WinForms.Controls
|
|
{
|
|
partial class BoxEditor
|
|
{
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Component Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.B_BoxRight = new System.Windows.Forms.Button();
|
|
this.B_BoxLeft = new System.Windows.Forms.Button();
|
|
this.CB_BoxSelect = new System.Windows.Forms.ComboBox();
|
|
this.pokeGrid1 = new PKHeX.WinForms.Controls.PokeGrid();
|
|
this.SuspendLayout();
|
|
//
|
|
// B_BoxRight
|
|
//
|
|
this.B_BoxRight.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
|
this.B_BoxRight.Location = new System.Drawing.Point(193, -1);
|
|
this.B_BoxRight.Name = "B_BoxRight";
|
|
this.B_BoxRight.Size = new System.Drawing.Size(27, 23);
|
|
this.B_BoxRight.TabIndex = 65;
|
|
this.B_BoxRight.Text = ">>";
|
|
this.B_BoxRight.UseVisualStyleBackColor = true;
|
|
this.B_BoxRight.Click += new System.EventHandler(this.ClickBoxRight);
|
|
//
|
|
// B_BoxLeft
|
|
//
|
|
this.B_BoxLeft.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
|
this.B_BoxLeft.Location = new System.Drawing.Point(31, -1);
|
|
this.B_BoxLeft.Name = "B_BoxLeft";
|
|
this.B_BoxLeft.Size = new System.Drawing.Size(27, 23);
|
|
this.B_BoxLeft.TabIndex = 64;
|
|
this.B_BoxLeft.Text = "<<";
|
|
this.B_BoxLeft.UseVisualStyleBackColor = true;
|
|
this.B_BoxLeft.Click += new System.EventHandler(this.ClickBoxLeft);
|
|
//
|
|
// CB_BoxSelect
|
|
//
|
|
this.CB_BoxSelect.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.CB_BoxSelect.FormattingEnabled = true;
|
|
this.CB_BoxSelect.Items.AddRange(new object[] {
|
|
"Box 1",
|
|
"Box 2",
|
|
"Box 3",
|
|
"Box 4",
|
|
"Box 5",
|
|
"Box 6",
|
|
"Box 7",
|
|
"Box 8",
|
|
"Box 9",
|
|
"Box 10",
|
|
"Box 11",
|
|
"Box 12",
|
|
"Box 13",
|
|
"Box 14",
|
|
"Box 15",
|
|
"Box 16",
|
|
"Box 17",
|
|
"Box 18",
|
|
"Box 19",
|
|
"Box 20",
|
|
"Box 21",
|
|
"Box 22",
|
|
"Box 23",
|
|
"Box 24",
|
|
"Box 25",
|
|
"Box 26",
|
|
"Box 27",
|
|
"Box 28",
|
|
"Box 29",
|
|
"Box 30",
|
|
"Box 31"});
|
|
this.CB_BoxSelect.Location = new System.Drawing.Point(62, 0);
|
|
this.CB_BoxSelect.Name = "CB_BoxSelect";
|
|
this.CB_BoxSelect.Size = new System.Drawing.Size(127, 21);
|
|
this.CB_BoxSelect.TabIndex = 63;
|
|
this.CB_BoxSelect.SelectedIndexChanged += new System.EventHandler(this.GetBox);
|
|
//
|
|
// pokeGrid1
|
|
//
|
|
this.pokeGrid1.Location = new System.Drawing.Point(0, 25);
|
|
this.pokeGrid1.Name = "pokeGrid1";
|
|
this.pokeGrid1.Size = new System.Drawing.Size(251, 160);
|
|
this.pokeGrid1.TabIndex = 66;
|
|
//
|
|
// BoxEditor
|
|
//
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
|
this.Controls.Add(this.pokeGrid1);
|
|
this.Controls.Add(this.B_BoxRight);
|
|
this.Controls.Add(this.B_BoxLeft);
|
|
this.Controls.Add(this.CB_BoxSelect);
|
|
this.Name = "BoxEditor";
|
|
this.Size = new System.Drawing.Size(251, 185);
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
public System.Windows.Forms.Button B_BoxRight;
|
|
public System.Windows.Forms.Button B_BoxLeft;
|
|
public System.Windows.Forms.ComboBox CB_BoxSelect;
|
|
private PokeGrid pokeGrid1;
|
|
}
|
|
}
|