mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-09-28 02:30:46 +00:00
Added Previous versions of colours.col to Resources
This commit is contained in:
@@ -36,17 +36,24 @@ namespace PckStudio.Forms.Editor
|
||||
colourfile = COLFileReader.Read(stream);
|
||||
}
|
||||
|
||||
using (var stream = new MemoryStream(Properties.Resources.colours))
|
||||
using (var stream = new MemoryStream(Properties.Resources.tu69colours))
|
||||
{
|
||||
default_colourfile = COLFileReader.Read(stream);
|
||||
}
|
||||
|
||||
SetUpDefaultTable();
|
||||
SetUpTable(false);
|
||||
}
|
||||
|
||||
void SetUpDefaultTable()
|
||||
void SetUpTable(bool targetVersion)
|
||||
{
|
||||
foreach (var obj in default_colourfile.entries)
|
||||
colorTreeView.Nodes.Clear();
|
||||
waterTreeView.Nodes.Clear();
|
||||
underwaterTreeView.Nodes.Clear();
|
||||
fogTreeView.Nodes.Clear();
|
||||
|
||||
COLFile temp = targetVersion ? default_colourfile : colourfile;
|
||||
|
||||
foreach (var obj in temp.entries)
|
||||
{
|
||||
COLFile.ColorEntry entry = colourfile.entries.Find(color => color.name == obj.name);
|
||||
TreeNode tn = new TreeNode(obj.name);
|
||||
@@ -54,7 +61,7 @@ namespace PckStudio.Forms.Editor
|
||||
colorTreeView.Nodes.Add(tn);
|
||||
colorCache.Add(tn);
|
||||
}
|
||||
foreach (var obj in default_colourfile.waterEntries)
|
||||
foreach (var obj in temp.waterEntries)
|
||||
{
|
||||
COLFile.ExtendedColorEntry entry = colourfile.waterEntries.Find(color => color.name == obj.name);
|
||||
TreeNode tn = new TreeNode(obj.name);
|
||||
|
||||
@@ -2763,7 +2763,7 @@ namespace PckStudio
|
||||
return;
|
||||
}
|
||||
NewColorFile = new PCKFile.FileData("colours.col", PCKFile.FileData.FileType.ColourTableFile);
|
||||
NewColorFile.SetData(Resources.colours);
|
||||
NewColorFile.SetData(Resources.tu69colours);
|
||||
currentPCK.Files.Add(NewColorFile);
|
||||
BuildMainTreeView();
|
||||
}
|
||||
|
||||
+130
-10
@@ -60,6 +60,16 @@ namespace PckStudio.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] _1_91_colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("_1_91_colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
@@ -209,16 +219,6 @@ 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>
|
||||
@@ -553,6 +553,126 @@ namespace PckStudio.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu12colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu12colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu13colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu13colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu14colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu14colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu19colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu19colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu31colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu31colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu32colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu32colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu43colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu43colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu46colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu46colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu51colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu51colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu53colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu53colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu54colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu54colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Byte[].
|
||||
/// </summary>
|
||||
public static byte[] tu69colours {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("tu69colours", resourceCulture);
|
||||
return ((byte[])(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
||||
@@ -271,13 +271,49 @@
|
||||
<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>
|
||||
<data name="BEHAVIOURS_ICON" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\iconImageList\BEHAVIOURS ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="AddTexture" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\AddTexture.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="tu12colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu12colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu13colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu13colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu14colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu14colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu19colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu19colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu31colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu31colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu32colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu32colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu43colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu43colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu46colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu46colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu51colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu51colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu53colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu53colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu54colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu54colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="tu69colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\tu69colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="_1_91_colours" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\fileTemplates\1.91_colours.col;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
</root>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user