Added Create->Colours.col feature

This commit is contained in:
MattNL
2022-09-25 17:45:34 -04:00
parent 84349f281a
commit 08971ac69f
7 changed files with 694 additions and 510 deletions

View File

@@ -61,6 +61,7 @@
this.deleteFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.moveDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.viewFileInfoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.generateMipMapTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.menuStrip = new System.Windows.Forms.MenuStrip();
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@@ -130,7 +131,7 @@
this.imageList = new System.Windows.Forms.ImageList(this.components);
this.pictureBoxImagePreview = new PckStudio.PictureBoxWithInterpolationMode();
this.LittleEndianCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.generateMipMapTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.colourscolToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuPCKEntries.SuspendLayout();
this.menuStrip.SuspendLayout();
this.contextMenuMetaTree.SuspendLayout();
@@ -168,7 +169,8 @@
this.folderToolStripMenuItem,
this.skinToolStripMenuItem,
this.createAnimatedTextureToolStripMenuItem,
this.audiopckToolStripMenuItem});
this.audiopckToolStripMenuItem,
this.colourscolToolStripMenuItem});
resources.ApplyResources(this.createToolStripMenuItem, "createToolStripMenuItem");
this.createToolStripMenuItem.Name = "createToolStripMenuItem";
//
@@ -349,6 +351,12 @@
resources.ApplyResources(this.viewFileInfoToolStripMenuItem, "viewFileInfoToolStripMenuItem");
this.viewFileInfoToolStripMenuItem.Click += new System.EventHandler(this.viewFileInfoToolStripMenuItem_Click);
//
// generateMipMapTextureToolStripMenuItem
//
this.generateMipMapTextureToolStripMenuItem.Name = "generateMipMapTextureToolStripMenuItem";
resources.ApplyResources(this.generateMipMapTextureToolStripMenuItem, "generateMipMapTextureToolStripMenuItem");
this.generateMipMapTextureToolStripMenuItem.Click += new System.EventHandler(this.generateMipMapTextureToolStripMenuItem_Click);
//
// menuStrip
//
resources.ApplyResources(this.menuStrip, "menuStrip");
@@ -952,11 +960,12 @@
this.LittleEndianCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.LittleEndianCheckBox.UseSelectable = true;
//
// generateMipMapTextureToolStripMenuItem
// colourscolToolStripMenuItem
//
this.generateMipMapTextureToolStripMenuItem.Name = "generateMipMapTextureToolStripMenuItem";
resources.ApplyResources(this.generateMipMapTextureToolStripMenuItem, "generateMipMapTextureToolStripMenuItem");
this.generateMipMapTextureToolStripMenuItem.Click += new System.EventHandler(this.generateMipMapTextureToolStripMenuItem_Click);
this.colourscolToolStripMenuItem.Image = global::PckStudio.Properties.Resources.COL_ICON;
this.colourscolToolStripMenuItem.Name = "colourscolToolStripMenuItem";
resources.ApplyResources(this.colourscolToolStripMenuItem, "colourscolToolStripMenuItem");
this.colourscolToolStripMenuItem.Click += new System.EventHandler(this.colourscolToolStripMenuItem_Click);
//
// MainForm
//
@@ -1098,6 +1107,7 @@
private MetroFramework.Controls.MetroLabel labelVersion;
private System.Windows.Forms.RichTextBox ChangelogRichTextBox;
private System.Windows.Forms.ToolStripMenuItem generateMipMapTextureToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem colourscolToolStripMenuItem;
}
}

View File

@@ -2928,5 +2928,19 @@ namespace PckStudio
}
}
}
private void colourscolToolStripMenuItem_Click(object sender, EventArgs e)
{
PCKFile.FileData NewColorFile;
if (currentPCK.TryGetFile("colours.col", PCKFile.FileData.FileType.ColourTableFile, out NewColorFile))
{
MessageBox.Show("A color table file already exists in this PCK and a new one cannot be created.", "Operation aborted");
return;
}
NewColorFile = new PCKFile.FileData("colours.col", PCKFile.FileData.FileType.ColourTableFile);
NewColorFile.SetData(Resources.colours);
currentPCK.Files.Add(NewColorFile);
BuildMainTreeView();
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -17,7 +17,7 @@
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<DisableFody Condition="'$(Configuration)' == 'Debug'">true</DisableFody>
<DisableFody Condition="'$(Configuration)' == 'Debug'">true</DisableFody>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -632,6 +632,7 @@
<ItemGroup>
<None Include="Resources\apps.zip" />
<None Include="Resources\binka\binkawin.asi" />
<None Include="Resources\fileTemplates\colours.col" />
<None Include="Resources\tileData.json" />
<None Include="Resources\Del.png" />
<None Include="Resources\ExportFile.png" />

View File

@@ -141,15 +141,17 @@ namespace PckStudio.Properties {
}
/// <summary>
/// Looks up a localized string similar to 6.5
///===
///-Audio.pck Editor is now the Music Editor with plenty of new features
///-The Animation Editor now plays animations more accurately
///-Added MipMap support to the Animation Editor
///-Added some text to display the common name of the animation that you&apos;re working with
///-Fixed several incorrect internal names for the change tile list
///-Removed Barrier (Item) from the Change Tile list
///-Clicking &quot;Cancel&quot; in the Change Tile dialog will no longer overwrite the original tile&apos;s name with noth [rest of string was truncated]&quot;;.
/// Looks up a localized string similar to 7.0 (BETA)
///==========
///Some features may be completely missing or incomplete at this point in time!
///
///-Massive codebase overhaul and optimization lead by miku-666 (aka NessieHax)!!!
///-Some UI redesigned by yaboiFoxx
///-Improved the changelog!
///-New icons for each of the file types, with unique image icons for skin, texture, and cape files
///-Added the ability to create Texture and Mash-Up packs
///-Added a feature to see stats about any given file, including file type
///-Added a feature set [rest of string was truncated]&quot;;.
/// </summary>
public static string CHANGELOG {
get {
@@ -197,6 +199,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
public static byte[] colours {
get {
object obj = ResourceManager.GetObject("colours", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
@@ -511,7 +523,7 @@ namespace PckStudio.Properties {
/// Looks up a localized string similar to {
/// &quot;COMMENT_1&quot;: &quot;Tile data research by MattNL&quot;,
/// &quot;COMMENT_2&quot;: &quot;JSON conversion by PhoenixARC&quot;,
/// &quot;Blocks&quot;: [
/// &quot;blocks&quot;: [
/// { &quot;grass_top&quot;: &quot;Grass Block (Top)&quot; },
/// { &quot;stone&quot;: &quot;Stone&quot; },
/// { &quot;dirt&quot;: &quot;Dirt&quot; },

View File

@@ -274,4 +274,7 @@
<data name="SKINS_ICON" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\iconImageList\SKINS ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileTemplates\colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

Binary file not shown.