mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-13 07:34:35 +00:00
Added Create->Colours.col feature
This commit is contained in:
22
PCK-Studio/MainForm.Designer.cs
generated
22
PCK-Studio/MainForm.Designer.cs
generated
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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" />
|
||||
|
||||
32
PCK-Studio/Properties/Resources.Designer.cs
generated
32
PCK-Studio/Properties/Resources.Designer.cs
generated
@@ -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're working with
|
||||
///-Fixed several incorrect internal names for the change tile list
|
||||
///-Removed Barrier (Item) from the Change Tile list
|
||||
///-Clicking "Cancel" in the Change Tile dialog will no longer overwrite the original tile's name with noth [rest of string was truncated]";.
|
||||
/// 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]";.
|
||||
/// </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 {
|
||||
/// "COMMENT_1": "Tile data research by MattNL",
|
||||
/// "COMMENT_2": "JSON conversion by PhoenixARC",
|
||||
/// "Blocks": [
|
||||
/// "blocks": [
|
||||
/// { "grass_top": "Grass Block (Top)" },
|
||||
/// { "stone": "Stone" },
|
||||
/// { "dirt": "Dirt" },
|
||||
|
||||
@@ -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>
|
||||
BIN
PCK-Studio/Resources/fileTemplates/colours.col
Normal file
BIN
PCK-Studio/Resources/fileTemplates/colours.col
Normal file
Binary file not shown.
Reference in New Issue
Block a user