Added Current PCK File label to Editor Tab

This commit is contained in:
MattNL
2023-03-01 06:28:16 -05:00
parent 092742d94a
commit cf42fa6efc
3 changed files with 568 additions and 315 deletions

View File

@@ -137,8 +137,9 @@
this.label11 = new MetroFramework.Controls.MetroLabel();
this.treeViewMain = new System.Windows.Forms.TreeView();
this.imageList = new System.Windows.Forms.ImageList(this.components);
this.pictureBoxImagePreview = new PckStudio.PictureBoxWithInterpolationMode();
this.LittleEndianCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
this.pictureBoxImagePreview = new PckStudio.PictureBoxWithInterpolationMode();
this.contextMenuPCKEntries.SuspendLayout();
this.menuStrip.SuspendLayout();
this.contextMenuMetaTree.SuspendLayout();
@@ -828,6 +829,7 @@
//
this.editorTab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(18)))), ((int)(((byte)(18)))), ((int)(((byte)(18)))));
resources.ApplyResources(this.editorTab, "editorTab");
this.editorTab.Controls.Add(this.metroLabel3);
this.editorTab.Controls.Add(this.labelImageSize);
this.editorTab.Controls.Add(this.fileEntryCountLabel);
this.editorTab.Controls.Add(this.PropertiesTabControl);
@@ -1008,14 +1010,6 @@
resources.ApplyResources(this.imageList, "imageList");
this.imageList.TransparentColor = System.Drawing.Color.Transparent;
//
// pictureBoxImagePreview
//
resources.ApplyResources(this.pictureBoxImagePreview, "pictureBoxImagePreview");
this.pictureBoxImagePreview.BackColor = System.Drawing.Color.Transparent;
this.pictureBoxImagePreview.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
this.pictureBoxImagePreview.Name = "pictureBoxImagePreview";
this.pictureBoxImagePreview.TabStop = false;
//
// LittleEndianCheckBox
//
resources.ApplyResources(this.LittleEndianCheckBox, "LittleEndianCheckBox");
@@ -1025,6 +1019,20 @@
this.LittleEndianCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.LittleEndianCheckBox.UseSelectable = true;
//
// metroLabel3
//
resources.ApplyResources(this.metroLabel3, "metroLabel3");
this.metroLabel3.Name = "metroLabel3";
this.metroLabel3.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// pictureBoxImagePreview
//
resources.ApplyResources(this.pictureBoxImagePreview, "pictureBoxImagePreview");
this.pictureBoxImagePreview.BackColor = System.Drawing.Color.Transparent;
this.pictureBoxImagePreview.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
this.pictureBoxImagePreview.Name = "pictureBoxImagePreview";
this.pictureBoxImagePreview.TabStop = false;
//
// MainForm
//
this.ApplyImageInvert = true;
@@ -1173,6 +1181,7 @@
private System.Windows.Forms.ToolStripMenuItem CreateSkinsPCKToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem editAllEntriesToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem addFileToolStripMenuItem;
private MetroFramework.Controls.MetroLabel metroLabel3;
}
}

View File

@@ -168,6 +168,7 @@ namespace PckStudio
try
{
pck = PCKFileReader.Read(fileStream, LittleEndianCheckBox.Checked);
metroLabel3.Text = "Current PCK File: " + Path.GetFileName(filePath);
}
catch (OverflowException ex)
{
@@ -208,7 +209,7 @@ namespace PckStudio
advancedMetaAddingToolStripMenuItem.Enabled = true;
convertToBedrockToolStripMenuItem.Enabled = true;
addCustomPackImageToolStripMenuItem.Enabled = true;
BuildMainTreeView();
BuildMainTreeView();
isSelectingTab = true;
tabControl.SelectTab(1);
isSelectingTab = false;

File diff suppressed because it is too large Load Diff