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)
87 lines
No EOL
3.4 KiB
C#
87 lines
No EOL
3.4 KiB
C#
namespace PKHeX.WinForms
|
|
{
|
|
sealed partial class SAV_BoxViewer
|
|
{
|
|
/// <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 Windows Form 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.PB_BoxSwap = new System.Windows.Forms.PictureBox();
|
|
this.Box = new PKHeX.WinForms.Controls.BoxEditor();
|
|
((System.ComponentModel.ISupportInitialize)(this.PB_BoxSwap)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// PB_BoxSwap
|
|
//
|
|
this.PB_BoxSwap.Image = global::PKHeX.WinForms.Properties.Resources.swapBox;
|
|
this.PB_BoxSwap.Location = new System.Drawing.Point(0, 0);
|
|
this.PB_BoxSwap.Name = "PB_BoxSwap";
|
|
this.PB_BoxSwap.Size = new System.Drawing.Size(24, 24);
|
|
this.PB_BoxSwap.TabIndex = 67;
|
|
this.PB_BoxSwap.TabStop = false;
|
|
this.PB_BoxSwap.Click += new System.EventHandler(this.PB_BoxSwap_Click);
|
|
//
|
|
// Box
|
|
//
|
|
this.Box.AllowDrop = true;
|
|
this.Box.CanSetCurrentBox = false;
|
|
this.Box.ControlsEnabled = true;
|
|
this.Box.ControlsVisible = true;
|
|
this.Box.CurrentBox = -1;
|
|
this.Box.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.Box.Editor = null;
|
|
this.Box.FlagIllegal = false;
|
|
this.Box.Location = new System.Drawing.Point(0, 0);
|
|
this.Box.M = null;
|
|
this.Box.Name = "Box";
|
|
this.Box.Size = new System.Drawing.Size(249, 183);
|
|
this.Box.TabIndex = 68;
|
|
//
|
|
// SAV_BoxViewer
|
|
//
|
|
this.AllowDrop = true;
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(249, 183);
|
|
this.Controls.Add(this.PB_BoxSwap);
|
|
this.Controls.Add(this.Box);
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
|
this.Icon = global::PKHeX.WinForms.Properties.Resources.Icon;
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "SAV_BoxViewer";
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "Box Viewer";
|
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.SAV_BoxViewer_FormClosing);
|
|
((System.ComponentModel.ISupportInitialize)(this.PB_BoxSwap)).EndInit();
|
|
this.ResumeLayout(false);
|
|
|
|
}
|
|
|
|
#endregion
|
|
private System.Windows.Forms.PictureBox PB_BoxSwap;
|
|
public Controls.BoxEditor Box;
|
|
}
|
|
} |