mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-05 02:07:06 +00:00
POC build!
This commit is contained in:
@@ -8,7 +8,7 @@ namespace PckStudio.Classes.FileTypes
|
||||
public class PCKFile
|
||||
{
|
||||
public int type { get; } = -1;
|
||||
public Dictionary<string, int> meta_data { get; } = new Dictionary<string, int>();
|
||||
public List<string> meta_data { get; } = new List<string>();
|
||||
public List<FileData> file_entries { get; set; } = new List<FileData>();
|
||||
|
||||
public class FileData
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace PckStudio.Classes.FileTypes
|
||||
{
|
||||
public class PCKProperties : List<Tuple<string, string>> // class because `using` is file scoped :|
|
||||
public class PCKProperties : List<ValueTuple<string, string>> // class because `using` is file scoped :|
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,12 +34,13 @@ namespace PckStudio.Classes.IO
|
||||
{
|
||||
int meta_entry_count = ReadInt(stream);
|
||||
bool has_xml_tag = false;
|
||||
_file.meta_data.Capacity = meta_entry_count;
|
||||
for (; 0 < meta_entry_count; meta_entry_count--)
|
||||
{
|
||||
int index = ReadInt(stream);
|
||||
string value = ReadString(stream);
|
||||
if (value.Equals("XMLVERSION")) has_xml_tag = true;
|
||||
_file.meta_data[value] = index;
|
||||
_file.meta_data.Insert(index, value);
|
||||
ReadInt(stream); // padding ????
|
||||
}
|
||||
if (has_xml_tag)
|
||||
@@ -64,9 +65,7 @@ namespace PckStudio.Classes.IO
|
||||
for (; 0 < property_count; property_count--)
|
||||
{
|
||||
int index = ReadInt(stream);
|
||||
if (!_file.meta_data.ContainsValue(index)) // should never happen with valid pck's
|
||||
throw new Exception("Value not found");
|
||||
string key = GetKeyFromValue(_file.meta_data, index);
|
||||
string key = _file.meta_data[index];
|
||||
string value = ReadString(stream);
|
||||
file_entry.properties.Add(new ValueTuple<string, string>(key, value));
|
||||
ReadInt(stream); // padding ???
|
||||
@@ -75,13 +74,6 @@ namespace PckStudio.Classes.IO
|
||||
stream.Read(file_entry.data, 0, file_entry.size);
|
||||
}
|
||||
}
|
||||
private static T1 GetKeyFromValue<T1, T2>(Dictionary<T1, T2> dict, T2 value)
|
||||
{
|
||||
foreach (KeyValuePair<T1, T2> pair in dict)
|
||||
if (EqualityComparer<T2>.Default.Equals(pair.Value, value))
|
||||
return pair.Key;
|
||||
return default(T1); // should never return unless dict.ContainsValue(value) returns false
|
||||
}
|
||||
|
||||
internal int ReadInt(Stream stream)
|
||||
{
|
||||
|
||||
@@ -52,9 +52,9 @@ namespace PckStudio.Classes.IO
|
||||
bool has_xmlverion_tag = false;
|
||||
foreach (var metaEntry in _file.meta_data)
|
||||
{
|
||||
if (metaEntry.Key == "XMLVERION") has_xmlverion_tag = true;
|
||||
WriteInt(stream, metaEntry.Value);
|
||||
WriteString(stream, metaEntry.Key);
|
||||
if (metaEntry == "XMLVERION") has_xmlverion_tag = true;
|
||||
WriteInt(stream, _file.meta_data.IndexOf(metaEntry));
|
||||
WriteString(stream, metaEntry);
|
||||
WriteInt(stream, 0);
|
||||
}
|
||||
if (has_xmlverion_tag)
|
||||
@@ -76,9 +76,9 @@ namespace PckStudio.Classes.IO
|
||||
WriteInt(stream, entry.properties.Count);
|
||||
foreach (var property in entry.properties)
|
||||
{
|
||||
if (!_file.meta_data.ContainsKey(property.Item1))
|
||||
throw new Exception("invalid meta type" + property.Item1);
|
||||
WriteInt(stream, _file.meta_data[property.Item1]);
|
||||
if (!_file.meta_data.Contains(property.Item1))
|
||||
throw new Exception("Tag not in Meta: " + property.Item1);
|
||||
WriteInt(stream, _file.meta_data.IndexOf(property.Item1));
|
||||
WriteString(stream, property.Item2);
|
||||
WriteInt(stream, 0);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace PckStudio.Forms
|
||||
|
||||
private void buttonUnlocked_Click(object sender, EventArgs e)
|
||||
{
|
||||
file.properties.Add(new Tuple<string, string>("LOCK", MD5(textBoxPass.Text)));
|
||||
file.properties.Add(new ValueTuple<string, string>("LOCK", MD5(textBoxPass.Text)));
|
||||
Close();
|
||||
}
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
//
|
||||
resources.ApplyResources(this.textBox1, "textBox1");
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
|
||||
@@ -14,27 +14,29 @@ namespace PckStudio
|
||||
public partial class MetaADD : Form
|
||||
{
|
||||
PCKFile currentPCK;
|
||||
TreeView treeView1;
|
||||
|
||||
public MetaADD(PCKFile currentPCKIn, TreeView treeView1In)
|
||||
public MetaADD(PCKFile currentPCKIn)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
currentPCK = currentPCKIn;
|
||||
treeView1 = treeView1In;
|
||||
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (currentPCK.meta_data.ContainsKey(textBox1.Text))
|
||||
if (currentPCK.meta_data.Contains(textBox1.Text))
|
||||
{
|
||||
MessageBox.Show("This metatag already exits");
|
||||
MessageBox.Show("This meta tag already exits");
|
||||
return;
|
||||
}
|
||||
if (!currentPCK.meta_data.ContainsValue(currentPCK.meta_data.Count))
|
||||
currentPCK.meta_data.Add(textBox1.Text, currentPCK.meta_data.Count);
|
||||
currentPCK.meta_data.Add(textBox1.Text);
|
||||
Close();
|
||||
}
|
||||
|
||||
private void textBox1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyCode == Keys.Enter)
|
||||
button1_Click(sender, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,62 +117,61 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="textBox1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>12, 12</value>
|
||||
</data>
|
||||
<data name="textBox1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>259, 20</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="textBox1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>textBox1.Name" xml:space="preserve">
|
||||
<value>textBox1</value>
|
||||
</data>
|
||||
<data name=">>textBox1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>textBox1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>textBox1.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="textBox1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>259, 20</value>
|
||||
</data>
|
||||
<data name=">>textBox1.Name" xml:space="preserve">
|
||||
<value>textBox1</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="textBox1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>12, 12</value>
|
||||
</data>
|
||||
<data name="button1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>102, 36</value>
|
||||
</data>
|
||||
<data name=">>button1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>284, 62</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="button1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name=">>button1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name="button1.Text" xml:space="preserve">
|
||||
<value>Create/Add</value>
|
||||
</data>
|
||||
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>75, 23</value>
|
||||
</data>
|
||||
<data name="textBox1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
<data name="button1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name=">>button1.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>textBox1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<data name="button1.Text" xml:space="preserve">
|
||||
<value>Create/Add</value>
|
||||
</data>
|
||||
<data name=">>button1.Name" xml:space="preserve">
|
||||
<value>button1</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterParent</value>
|
||||
<data name=">>button1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>button1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>button1.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>6, 13</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>284, 62</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
@@ -2394,16 +2393,14 @@
|
||||
vbLH9tge22N7bI/tsT22x/bYHttjC+3/B71iqRn22EDpAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>6, 13</value>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterParent</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>MetaADD</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>ja</value>
|
||||
</metadata>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace PckStudio
|
||||
{
|
||||
partial class renameLoc
|
||||
partial class RenamePrompt
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@@ -28,43 +28,43 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(renameLoc));
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RenamePrompt));
|
||||
this.TextLabel = new System.Windows.Forms.Label();
|
||||
this.OKButton = new System.Windows.Forms.Button();
|
||||
this.InputTextBox = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label2
|
||||
// TextLabel
|
||||
//
|
||||
resources.ApplyResources(this.label2, "label2");
|
||||
this.label2.ForeColor = System.Drawing.Color.White;
|
||||
this.label2.Name = "label2";
|
||||
resources.ApplyResources(this.TextLabel, "TextLabel");
|
||||
this.TextLabel.ForeColor = System.Drawing.Color.White;
|
||||
this.TextLabel.Name = "TextLabel";
|
||||
//
|
||||
// button1
|
||||
// OKButton
|
||||
//
|
||||
resources.ApplyResources(this.button1, "button1");
|
||||
this.button1.ForeColor = System.Drawing.Color.White;
|
||||
this.button1.Name = "button1";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
resources.ApplyResources(this.OKButton, "OKButton");
|
||||
this.OKButton.ForeColor = System.Drawing.Color.White;
|
||||
this.OKButton.Name = "OKButton";
|
||||
this.OKButton.UseVisualStyleBackColor = true;
|
||||
this.OKButton.Click += new System.EventHandler(this.OKBtn_Click);
|
||||
//
|
||||
// textBox1
|
||||
// InputTextBox
|
||||
//
|
||||
resources.ApplyResources(this.textBox1, "textBox1");
|
||||
this.textBox1.Name = "textBox1";
|
||||
resources.ApplyResources(this.InputTextBox, "InputTextBox");
|
||||
this.InputTextBox.Name = "InputTextBox";
|
||||
//
|
||||
// renameLoc
|
||||
// RenamePrompt
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.InputTextBox);
|
||||
this.Controls.Add(this.OKButton);
|
||||
this.Controls.Add(this.TextLabel);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "renameLoc";
|
||||
this.Name = "RenamePrompt";
|
||||
this.Resizable = false;
|
||||
this.ShadowType = MetroFramework.Forms.MetroFormShadowType.DropShadow;
|
||||
this.Style = MetroFramework.MetroColorStyle.Silver;
|
||||
@@ -75,8 +75,8 @@
|
||||
}
|
||||
|
||||
#endregion
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
}
|
||||
public System.Windows.Forms.Button OKButton;
|
||||
public System.Windows.Forms.Label TextLabel;
|
||||
private System.Windows.Forms.TextBox InputTextBox;
|
||||
}
|
||||
}
|
||||
29
MinecraftUSkinEditor/Forms/Additional-Popups/RenamePrompt.cs
Normal file
29
MinecraftUSkinEditor/Forms/Additional-Popups/RenamePrompt.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using MetroFramework.Forms;
|
||||
|
||||
namespace PckStudio
|
||||
{
|
||||
public partial class RenamePrompt : MetroForm
|
||||
{
|
||||
public string NewText => InputTextBox.Text;
|
||||
|
||||
public RenamePrompt(TreeNode nodeIn)
|
||||
{
|
||||
InitializeComponent();
|
||||
InputTextBox.Text = nodeIn.Text;
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
}
|
||||
public RenamePrompt(string InitialText)
|
||||
{
|
||||
InitializeComponent();
|
||||
InputTextBox.Text = InitialText;
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
}
|
||||
|
||||
private void OKBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -118,81 +118,81 @@
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="label2.AutoSize" type="System.Boolean, mscorlib">
|
||||
<data name="TextLabel.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="label2.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<data name="TextLabel.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>19, 41</value>
|
||||
</data>
|
||||
<data name="label2.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<data name="TextLabel.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>35, 13</value>
|
||||
</data>
|
||||
<data name="label2.TabIndex" type="System.Int32, mscorlib">
|
||||
<data name="TextLabel.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>3</value>
|
||||
</data>
|
||||
<data name="label2.Text" xml:space="preserve">
|
||||
<data name="TextLabel.Text" xml:space="preserve">
|
||||
<value>Name</value>
|
||||
</data>
|
||||
<data name=">>label2.Name" xml:space="preserve">
|
||||
<value>label2</value>
|
||||
<data name=">>TextLabel.Name" xml:space="preserve">
|
||||
<value>TextLabel</value>
|
||||
</data>
|
||||
<data name=">>label2.Type" xml:space="preserve">
|
||||
<data name=">>TextLabel.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>label2.Parent" xml:space="preserve">
|
||||
<data name=">>TextLabel.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>label2.ZOrder" xml:space="preserve">
|
||||
<data name=">>TextLabel.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="button1.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
|
||||
<data name="OKButton.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
|
||||
<value>Flat</value>
|
||||
</data>
|
||||
<data name="button1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>96, 78</value>
|
||||
<data name="OKButton.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>101, 74</value>
|
||||
</data>
|
||||
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<data name="OKButton.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>75, 23</value>
|
||||
</data>
|
||||
<data name="button1.TabIndex" type="System.Int32, mscorlib">
|
||||
<data name="OKButton.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>4</value>
|
||||
</data>
|
||||
<data name="button1.Text" xml:space="preserve">
|
||||
<data name="OKButton.Text" xml:space="preserve">
|
||||
<value>Rename</value>
|
||||
</data>
|
||||
<data name=">>button1.Name" xml:space="preserve">
|
||||
<value>button1</value>
|
||||
<data name=">>OKButton.Name" xml:space="preserve">
|
||||
<value>OKButton</value>
|
||||
</data>
|
||||
<data name=">>button1.Type" xml:space="preserve">
|
||||
<data name=">>OKButton.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>button1.Parent" xml:space="preserve">
|
||||
<data name=">>OKButton.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>button1.ZOrder" xml:space="preserve">
|
||||
<data name=">>OKButton.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="textBox1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<data name="InputTextBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>60, 38</value>
|
||||
</data>
|
||||
<data name="textBox1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<data name="InputTextBox.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>181, 20</value>
|
||||
</data>
|
||||
<data name="textBox1.TabIndex" type="System.Int32, mscorlib">
|
||||
<data name="InputTextBox.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>textBox1.Name" xml:space="preserve">
|
||||
<value>textBox1</value>
|
||||
<data name=">>InputTextBox.Name" xml:space="preserve">
|
||||
<value>InputTextBox</value>
|
||||
</data>
|
||||
<data name=">>textBox1.Type" xml:space="preserve">
|
||||
<data name=">>InputTextBox.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>textBox1.Parent" xml:space="preserve">
|
||||
<data name=">>InputTextBox.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>textBox1.ZOrder" xml:space="preserve">
|
||||
<data name=">>InputTextBox.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
@@ -2428,7 +2428,7 @@
|
||||
<value>CenterParent</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>renameLoc</value>
|
||||
<value>RenamePrompt</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
|
||||
@@ -117,13 +117,56 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="webBrowser1.MinimumSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>20, 20</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="buttonOpenInBrowser.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
|
||||
<value>Flat</value>
|
||||
<data name="webBrowser1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>781, 542</value>
|
||||
</data>
|
||||
<data name=">>webBrowser1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.WebBrowser, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="buttonOpenInBrowser.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>98, 29</value>
|
||||
</data>
|
||||
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
|
||||
<value>Segoe UI Semibold, 8.25pt, style=Bold, Italic</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="buttonOpenInBrowser.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>creatorSpotlight</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>WHAT THE CREATOR HAS BEEN UP TO</value>
|
||||
</data>
|
||||
<data name=">>webBrowser1.Name" xml:space="preserve">
|
||||
<value>webBrowser1</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
|
||||
</data>
|
||||
<data name=">>buttonOpenInBrowser.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>6, 13</value>
|
||||
</data>
|
||||
<data name="buttonOpenInBrowser.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>670, 499</value>
|
||||
</data>
|
||||
<data name="buttonOpenInBrowser.Text" xml:space="preserve">
|
||||
<value>Open in Browser</value>
|
||||
</data>
|
||||
<data name=">>buttonOpenInBrowser.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="webBrowser1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>20, 60</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
@@ -2271,80 +2314,34 @@
|
||||
4T+//T/gqS4Dy6cgIMJt116T70oWKFCgQIHx8v8BnhFXNQQBmowAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name=">>webBrowser1.Name" xml:space="preserve">
|
||||
<value>webBrowser1</value>
|
||||
</data>
|
||||
<data name="buttonOpenInBrowser.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>670, 499</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>781, 542</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>creatorSpotlight</value>
|
||||
</data>
|
||||
<data name=">>webBrowser1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.WebBrowser, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="buttonOpenInBrowser.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name=">>buttonOpenInBrowser.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>buttonOpenInBrowser.Name" xml:space="preserve">
|
||||
<value>buttonOpenInBrowser</value>
|
||||
</data>
|
||||
<data name="buttonOpenInBrowser.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>98, 29</value>
|
||||
</data>
|
||||
<data name="webBrowser1.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
</data>
|
||||
<data name="webBrowser1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>buttonOpenInBrowser.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<data name=">>webBrowser1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name="webBrowser1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>741, 462</value>
|
||||
</data>
|
||||
<data name="webBrowser1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>0, 0, 0, 0</value>
|
||||
</data>
|
||||
<data name=">>buttonOpenInBrowser.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name="webBrowser1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>20, 60</value>
|
||||
<data name="webBrowser1.MinimumSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>20, 20</value>
|
||||
</data>
|
||||
<data name=">>webBrowser1.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="buttonOpenInBrowser.Text" xml:space="preserve">
|
||||
<value>Open in Browser</value>
|
||||
<data name=">>buttonOpenInBrowser.Name" xml:space="preserve">
|
||||
<value>buttonOpenInBrowser</value>
|
||||
</data>
|
||||
<data name=">>webBrowser1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
<data name="webBrowser1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="webBrowser1.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
|
||||
<value>0, 0, 0, 0</value>
|
||||
</data>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>6, 13</value>
|
||||
</data>
|
||||
<data name="$this.Font" type="System.Drawing.Font, System.Drawing">
|
||||
<value>Segoe UI Semibold, 8.25pt, style=Bold, Italic</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>WHAT THE CREATOR HAS BEEN UP TO</value>
|
||||
<data name="buttonOpenInBrowser.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
|
||||
<value>Flat</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>ja</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -39,30 +39,29 @@
|
||||
//
|
||||
// treeView1
|
||||
//
|
||||
resources.ApplyResources(this.treeView1, "treeView1");
|
||||
this.treeView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
resources.ApplyResources(this.treeView1, "treeView1");
|
||||
this.treeView1.Name = "treeView1";
|
||||
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
|
||||
this.treeView1.Click += new System.EventHandler(this.treeView1_Click);
|
||||
this.treeView1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.treeView1_KeyDown);
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.addToolStripMenuItem,
|
||||
this.deleteToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
resources.ApplyResources(this.contextMenuStrip1, "contextMenuStrip1");
|
||||
//
|
||||
// addToolStripMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.addToolStripMenuItem, "addToolStripMenuItem");
|
||||
this.addToolStripMenuItem.Name = "addToolStripMenuItem";
|
||||
resources.ApplyResources(this.addToolStripMenuItem, "addToolStripMenuItem");
|
||||
this.addToolStripMenuItem.Click += new System.EventHandler(this.addToolStripMenuItem_Click);
|
||||
//
|
||||
// deleteToolStripMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.deleteToolStripMenuItem, "deleteToolStripMenuItem");
|
||||
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
|
||||
resources.ApplyResources(this.deleteToolStripMenuItem, "deleteToolStripMenuItem");
|
||||
this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
|
||||
//
|
||||
// meta
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace PckStudio
|
||||
try
|
||||
{
|
||||
treeView1.Nodes.Clear();
|
||||
foreach (string key in currentPCK.meta_data.Keys)
|
||||
foreach (string key in currentPCK.meta_data)
|
||||
{
|
||||
treeView1.Nodes.Add(key);
|
||||
}
|
||||
@@ -47,14 +47,9 @@ namespace PckStudio
|
||||
}
|
||||
}
|
||||
|
||||
private void treeView1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void addToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
PckStudio.MetaADD add = new PckStudio.MetaADD(currentPCK, treeView1);
|
||||
PckStudio.MetaADD add = new PckStudio.MetaADD(currentPCK);
|
||||
add.TopMost = true;
|
||||
add.TopLevel = true;
|
||||
add.ShowDialog();
|
||||
@@ -64,20 +59,19 @@ namespace PckStudio
|
||||
|
||||
private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
MessageBox.Show("TODO");
|
||||
//currentPCK.meta_data.Remove();
|
||||
refresh();
|
||||
}catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
if (currentPCK.meta_data.Contains(treeView1.SelectedNode.Text))
|
||||
currentPCK.meta_data.Remove(treeView1.SelectedNode.Text);
|
||||
refresh();
|
||||
}
|
||||
|
||||
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
|
||||
private void treeView1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
|
||||
if (e.KeyCode == Keys.Delete && treeView1.SelectedNode != null &&
|
||||
currentPCK.meta_data.Contains(treeView1.SelectedNode.Text))
|
||||
{
|
||||
currentPCK.meta_data.Remove(treeView1.SelectedNode.Text);
|
||||
refresh();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -118,6 +118,21 @@
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="addToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>100, 22</value>
|
||||
</data>
|
||||
<data name="addToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>追加</value>
|
||||
</data>
|
||||
<data name="deleteToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>100, 22</value>
|
||||
</data>
|
||||
<data name="deleteToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>削除</value>
|
||||
</data>
|
||||
<data name="contextMenuStrip1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>101, 48</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAYAEBAAAAEAIABoBAAAZgAAACAgAAABACAAqBAAAM4EAAAwMAAAAQAgAKglAAB2FQAAQEAAAAEA
|
||||
@@ -2341,10 +2356,4 @@
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>メタデータベース</value>
|
||||
</data>
|
||||
<data name="addToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>追加</value>
|
||||
</data>
|
||||
<data name="deleteToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>削除</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -117,18 +117,61 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>11, 16</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="addToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>107, 22</value>
|
||||
</data>
|
||||
<data name="addToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Add</value>
|
||||
</data>
|
||||
<data name="deleteToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>107, 22</value>
|
||||
</data>
|
||||
<data name="deleteToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Delete</value>
|
||||
</data>
|
||||
<data name="contextMenuStrip1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>108, 48</value>
|
||||
</data>
|
||||
<data name=">>contextMenuStrip1.Name" xml:space="preserve">
|
||||
<value>contextMenuStrip1</value>
|
||||
</data>
|
||||
<data name=">>contextMenuStrip1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="treeView1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>7, 62</value>
|
||||
</data>
|
||||
<data name="treeView1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>238, 268</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="treeView1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>treeView1.Name" xml:space="preserve">
|
||||
<value>treeView1</value>
|
||||
</data>
|
||||
<data name=">>treeView1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.TreeView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>treeView1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name=">>treeView1.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>6, 13</value>
|
||||
</data>
|
||||
<data name="treeView1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>238, 268</value>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>252, 337</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
@@ -2350,78 +2393,32 @@
|
||||
vbLH9tge22N7bI/tsT22x/bYHttjC+3/B71iqRn22EDpAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name=">>deleteToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="deleteToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>107, 22</value>
|
||||
</data>
|
||||
<data name="contextMenuStrip1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>108, 48</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>252, 337</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>meta</value>
|
||||
</data>
|
||||
<data name=">>treeView1.Name" xml:space="preserve">
|
||||
<value>treeView1</value>
|
||||
</data>
|
||||
<data name=">>contextMenuStrip1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>addToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterParent</value>
|
||||
</data>
|
||||
<data name="addToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Add</value>
|
||||
</data>
|
||||
<data name="$this.RightToLeft" type="System.Windows.Forms.RightToLeft, System.Windows.Forms">
|
||||
<value>No</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="treeView1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name=">>treeView1.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name=">>addToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>addToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name="deleteToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Delete</value>
|
||||
</data>
|
||||
<data name="addToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>107, 22</value>
|
||||
</data>
|
||||
<data name=">>deleteToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>deleteToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name="treeView1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>7, 62</value>
|
||||
</data>
|
||||
<data name=">>treeView1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.TreeView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterParent</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>Meta Database</value>
|
||||
</data>
|
||||
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>ja</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="contextMenuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>11, 16</value>
|
||||
</metadata>
|
||||
<data name=">>addToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>addToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name=">>addToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>deleteToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>deleteToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name=">>deleteToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>meta</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -89,7 +89,7 @@ namespace PckStudio
|
||||
}
|
||||
else
|
||||
{
|
||||
file.properties.Add(new Tuple<string, string>(entryName, entryValue ));
|
||||
file.properties.Add(new ValueTuple<string, string>(entryName, entryValue ));
|
||||
entryName = "";
|
||||
entryValue = "";
|
||||
entryStart = true;
|
||||
|
||||
@@ -117,6 +117,12 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="button1.Text" xml:space="preserve">
|
||||
<value>追加</value>
|
||||
</data>
|
||||
<data name="labelSearch.Text" xml:space="preserve">
|
||||
<value>プリセットはありません</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
@@ -2341,10 +2347,4 @@
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>プリセット</value>
|
||||
</data>
|
||||
<data name="button1.Text" xml:space="preserve">
|
||||
<value>追加</value>
|
||||
</data>
|
||||
<data name="labelSearch.Text" xml:space="preserve">
|
||||
<value>プリセットはありません</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -117,13 +117,75 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="listView1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>187, 252</value>
|
||||
</data>
|
||||
<data name="button1.Text" xml:space="preserve">
|
||||
<value>Add</value>
|
||||
</data>
|
||||
<data name=">>button1.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="button1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="button1.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
|
||||
<value>Flat</value>
|
||||
</data>
|
||||
<data name="labelSearch.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="labelSearch.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>41, 110</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>Presets</value>
|
||||
</data>
|
||||
<data name=">>labelSearch.Name" xml:space="preserve">
|
||||
<value>labelSearch</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>presetMeta</value>
|
||||
</data>
|
||||
<data name=">>listView1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>75, 23</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
|
||||
</data>
|
||||
<data name="listView1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>11, 63</value>
|
||||
</data>
|
||||
<data name=">>button1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
|
||||
<value>6, 13</value>
|
||||
</data>
|
||||
<data name=">>listView1.Name" xml:space="preserve">
|
||||
<value>listView1</value>
|
||||
</data>
|
||||
<data name=">>labelSearch.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="listView1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>166, 155</value>
|
||||
</data>
|
||||
<data name="labelSearch.Text" xml:space="preserve">
|
||||
<value>You have no presets</value>
|
||||
</data>
|
||||
<data name=">>listView1.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
AAABAAYAEBAAAAEAIABoBAAAZgAAACAgAAABACAAqBAAAM4EAAAwMAAAAQAgAKglAAB2FQAAQEAAAAEA
|
||||
@@ -2344,102 +2406,37 @@
|
||||
vbLH9tge22N7bI/tsT22x/bYHttjC+3/B71iqRn22EDpAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="listView1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>166, 155</value>
|
||||
</data>
|
||||
<data name=">>labelSearch.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>labelSearch.Name" xml:space="preserve">
|
||||
<value>labelSearch</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="labelSearch.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="listView1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>0</value>
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterParent</value>
|
||||
</data>
|
||||
<data name=">>listView1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ListView, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="labelSearch.Visible" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="button1.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
|
||||
<value>Flat</value>
|
||||
</data>
|
||||
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
|
||||
<value>187, 252</value>
|
||||
</data>
|
||||
<data name="$this.StartPosition" type="System.Windows.Forms.FormStartPosition, System.Windows.Forms">
|
||||
<value>CenterParent</value>
|
||||
</data>
|
||||
<data name="button1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>75, 23</value>
|
||||
</data>
|
||||
<data name=">>listView1.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="labelSearch.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="labelSearch.Text" xml:space="preserve">
|
||||
<value>You have no presets</value>
|
||||
</data>
|
||||
<data name=">>$this.Type" xml:space="preserve">
|
||||
<value>MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a</value>
|
||||
</data>
|
||||
<data name=">>$this.Name" xml:space="preserve">
|
||||
<value>presetMeta</value>
|
||||
</data>
|
||||
<data name=">>button1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>labelSearch.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>labelSearch.ZOrder" xml:space="preserve">
|
||||
<value>0</value>
|
||||
</data>
|
||||
<data name="button1.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name=">>button1.ZOrder" xml:space="preserve">
|
||||
<value>1</value>
|
||||
</data>
|
||||
<data name="labelSearch.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>41, 110</value>
|
||||
</data>
|
||||
<data name="listView1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>11, 63</value>
|
||||
</data>
|
||||
<data name=">>listView1.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>button1.Name" xml:space="preserve">
|
||||
<value>button1</value>
|
||||
</data>
|
||||
<data name=">>button1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<data name="labelSearch.Visible" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="button1.Text" xml:space="preserve">
|
||||
<value>Add</value>
|
||||
</data>
|
||||
<data name="button1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>53, 224</value>
|
||||
<data name=">>labelSearch.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="labelSearch.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>105, 13</value>
|
||||
</data>
|
||||
<data name="$this.Text" xml:space="preserve">
|
||||
<value>Presets</value>
|
||||
<data name="labelSearch.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="button1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>53, 224</value>
|
||||
</data>
|
||||
<data name=">>labelSearch.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>ja</value>
|
||||
</metadata>
|
||||
</root>
|
||||
@@ -28,104 +28,116 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroLabel4 = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroLabel5 = new MetroFramework.Controls.MetroLabel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Image = global::PckStudio.Properties.Resources.Splash;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(14, 33);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(575, 293);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
//
|
||||
// metroLabel1
|
||||
//
|
||||
this.metroLabel1.AutoSize = true;
|
||||
this.metroLabel1.Location = new System.Drawing.Point(6, 333);
|
||||
this.metroLabel1.Name = "metroLabel1";
|
||||
this.metroLabel1.Size = new System.Drawing.Size(250, 19);
|
||||
this.metroLabel1.TabIndex = 1;
|
||||
this.metroLabel1.Text = "Restored and maintained by PhoenixARC";
|
||||
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroLabel1.Click += new System.EventHandler(this.metroLabel1_Click);
|
||||
//
|
||||
// metroLabel2
|
||||
//
|
||||
this.metroLabel2.AutoSize = true;
|
||||
this.metroLabel2.Location = new System.Drawing.Point(331, 333);
|
||||
this.metroLabel2.Name = "metroLabel2";
|
||||
this.metroLabel2.Size = new System.Drawing.Size(269, 19);
|
||||
this.metroLabel2.TabIndex = 2;
|
||||
this.metroLabel2.Text = "Utilizing the Nobledez Website by Newagent";
|
||||
this.metroLabel2.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// metroLabel3
|
||||
//
|
||||
this.metroLabel3.AutoSize = true;
|
||||
this.metroLabel3.Location = new System.Drawing.Point(4, 367);
|
||||
this.metroLabel3.Name = "metroLabel3";
|
||||
this.metroLabel3.Size = new System.Drawing.Size(212, 19);
|
||||
this.metroLabel3.TabIndex = 3;
|
||||
this.metroLabel3.Text = "3D skin renderer by Łukasz Rejman";
|
||||
this.metroLabel3.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// metroLabel4
|
||||
//
|
||||
this.metroLabel4.AutoSize = true;
|
||||
this.metroLabel4.Location = new System.Drawing.Point(331, 367);
|
||||
this.metroLabel4.Name = "metroLabel4";
|
||||
this.metroLabel4.Size = new System.Drawing.Size(199, 19);
|
||||
this.metroLabel4.TabIndex = 4;
|
||||
this.metroLabel4.Text = "3D renderer found by Newagent";
|
||||
this.metroLabel4.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// metroLabel5
|
||||
//
|
||||
this.metroLabel5.AutoSize = true;
|
||||
this.metroLabel5.Location = new System.Drawing.Point(4, 350);
|
||||
this.metroLabel5.Name = "metroLabel5";
|
||||
this.metroLabel5.Size = new System.Drawing.Size(236, 19);
|
||||
this.metroLabel5.TabIndex = 5;
|
||||
this.metroLabel5.Text = "Additional code and utilities by MattNL";
|
||||
this.metroLabel5.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// programInfo
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
|
||||
this.ClientSize = new System.Drawing.Size(602, 392);
|
||||
this.Controls.Add(this.metroLabel1);
|
||||
this.Controls.Add(this.metroLabel5);
|
||||
this.Controls.Add(this.metroLabel4);
|
||||
this.Controls.Add(this.metroLabel3);
|
||||
this.Controls.Add(this.metroLabel2);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.DisplayHeader = false;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "programInfo";
|
||||
this.Padding = new System.Windows.Forms.Padding(20, 30, 20, 20);
|
||||
this.Resizable = false;
|
||||
this.ShadowType = MetroFramework.Forms.MetroFormShadowType.DropShadow;
|
||||
this.Style = MetroFramework.MetroColorStyle.Silver;
|
||||
this.Text = "programInfo";
|
||||
this.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.Load += new System.EventHandler(this.programInfo_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroLabel2 = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroLabel3 = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroLabel4 = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroLabel5 = new MetroFramework.Controls.MetroLabel();
|
||||
this.mikuSecrect = new MetroFramework.Controls.MetroLabel();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.Image = global::PckStudio.Properties.Resources.Splash;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(14, 33);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(575, 293);
|
||||
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
this.pictureBox1.TabIndex = 0;
|
||||
this.pictureBox1.TabStop = false;
|
||||
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
//
|
||||
// metroLabel1
|
||||
//
|
||||
this.metroLabel1.AutoSize = true;
|
||||
this.metroLabel1.Location = new System.Drawing.Point(6, 333);
|
||||
this.metroLabel1.Name = "metroLabel1";
|
||||
this.metroLabel1.Size = new System.Drawing.Size(250, 19);
|
||||
this.metroLabel1.TabIndex = 1;
|
||||
this.metroLabel1.Text = "Restored and maintained by PhoenixARC";
|
||||
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroLabel1.Click += new System.EventHandler(this.metroLabel1_Click);
|
||||
//
|
||||
// metroLabel2
|
||||
//
|
||||
this.metroLabel2.AutoSize = true;
|
||||
this.metroLabel2.Location = new System.Drawing.Point(331, 333);
|
||||
this.metroLabel2.Name = "metroLabel2";
|
||||
this.metroLabel2.Size = new System.Drawing.Size(269, 19);
|
||||
this.metroLabel2.TabIndex = 2;
|
||||
this.metroLabel2.Text = "Utilizing the Nobledez Website by Newagent";
|
||||
this.metroLabel2.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// metroLabel3
|
||||
//
|
||||
this.metroLabel3.AutoSize = true;
|
||||
this.metroLabel3.Location = new System.Drawing.Point(4, 367);
|
||||
this.metroLabel3.Name = "metroLabel3";
|
||||
this.metroLabel3.Size = new System.Drawing.Size(212, 19);
|
||||
this.metroLabel3.TabIndex = 3;
|
||||
this.metroLabel3.Text = "3D skin renderer by Łukasz Rejman";
|
||||
this.metroLabel3.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// metroLabel4
|
||||
//
|
||||
this.metroLabel4.AutoSize = true;
|
||||
this.metroLabel4.Location = new System.Drawing.Point(331, 367);
|
||||
this.metroLabel4.Name = "metroLabel4";
|
||||
this.metroLabel4.Size = new System.Drawing.Size(199, 19);
|
||||
this.metroLabel4.TabIndex = 4;
|
||||
this.metroLabel4.Text = "3D renderer found by Newagent";
|
||||
this.metroLabel4.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// metroLabel5
|
||||
//
|
||||
this.metroLabel5.AutoSize = true;
|
||||
this.metroLabel5.Location = new System.Drawing.Point(4, 350);
|
||||
this.metroLabel5.Name = "metroLabel5";
|
||||
this.metroLabel5.Size = new System.Drawing.Size(236, 19);
|
||||
this.metroLabel5.TabIndex = 5;
|
||||
this.metroLabel5.Text = "Additional code and utilities by MattNL";
|
||||
this.metroLabel5.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// mikuSecrect
|
||||
//
|
||||
this.mikuSecrect.AutoSize = true;
|
||||
this.mikuSecrect.Location = new System.Drawing.Point(331, 350);
|
||||
this.mikuSecrect.Name = "mikuSecrect";
|
||||
this.mikuSecrect.Size = new System.Drawing.Size(101, 19);
|
||||
this.mikuSecrect.TabIndex = 6;
|
||||
this.mikuSecrect.Text = "Miku was here...";
|
||||
this.mikuSecrect.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// programInfo
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
|
||||
this.ClientSize = new System.Drawing.Size(602, 392);
|
||||
this.Controls.Add(this.mikuSecrect);
|
||||
this.Controls.Add(this.metroLabel1);
|
||||
this.Controls.Add(this.metroLabel5);
|
||||
this.Controls.Add(this.metroLabel4);
|
||||
this.Controls.Add(this.metroLabel3);
|
||||
this.Controls.Add(this.metroLabel2);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.DisplayHeader = false;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "programInfo";
|
||||
this.Padding = new System.Windows.Forms.Padding(20, 30, 20, 20);
|
||||
this.Resizable = false;
|
||||
this.ShadowType = MetroFramework.Forms.MetroFormShadowType.DropShadow;
|
||||
this.Style = MetroFramework.MetroColorStyle.Silver;
|
||||
this.Text = "programInfo";
|
||||
this.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.Load += new System.EventHandler(this.programInfo_Load);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
@@ -138,5 +150,6 @@
|
||||
private MetroFramework.Controls.MetroLabel metroLabel3;
|
||||
private MetroFramework.Controls.MetroLabel metroLabel4;
|
||||
private MetroFramework.Controls.MetroLabel metroLabel5;
|
||||
}
|
||||
private MetroFramework.Controls.MetroLabel mikuSecrect;
|
||||
}
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
namespace PckStudio
|
||||
{
|
||||
partial class rename
|
||||
{
|
||||
/// <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()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(rename));
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label2
|
||||
//
|
||||
resources.ApplyResources(this.label2, "label2");
|
||||
this.label2.ForeColor = System.Drawing.Color.White;
|
||||
this.label2.Name = "label2";
|
||||
//
|
||||
// button1
|
||||
//
|
||||
resources.ApplyResources(this.button1, "button1");
|
||||
this.button1.ForeColor = System.Drawing.Color.White;
|
||||
this.button1.Name = "button1";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
resources.ApplyResources(this.textBox1, "textBox1");
|
||||
this.textBox1.Name = "textBox1";
|
||||
//
|
||||
// rename
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ControlBox = false;
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.label2);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "rename";
|
||||
this.Resizable = false;
|
||||
this.ShadowType = MetroFramework.Forms.MetroFormShadowType.DropShadow;
|
||||
this.Style = MetroFramework.MetroColorStyle.Silver;
|
||||
this.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.Load += new System.EventHandler(this.addCategory_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
}
|
||||
}
|
||||
@@ -1,75 +0,0 @@
|
||||
using PckStudio.Classes.FileTypes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PckStudio
|
||||
{
|
||||
public partial class rename : MetroFramework.Forms.MetroForm
|
||||
{
|
||||
string oldName;
|
||||
string newName;
|
||||
TreeNode node;
|
||||
|
||||
public rename(TreeNode nodeIn)
|
||||
{
|
||||
Console.WriteLine("Full Node Path - " + nodeIn.FullPath.Replace("\\", "/"));
|
||||
string[] parents = nodeIn.FullPath.Split(nodeIn.TreeView.PathSeparator.ToCharArray());
|
||||
foreach (string parent in parents)
|
||||
{
|
||||
Console.WriteLine(" - " + parent);
|
||||
}
|
||||
InitializeComponent();
|
||||
node = nodeIn;
|
||||
oldName = nodeIn.Text;
|
||||
textBox1.Text = nodeIn.Text;
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
}
|
||||
|
||||
public void fixDirectoryNameForFiles(TreeNode dirN)
|
||||
{
|
||||
foreach (TreeNode n in dirN.Nodes)
|
||||
{
|
||||
if (n.Tag == null)
|
||||
{
|
||||
fixDirectoryNameForFiles(n);
|
||||
continue;
|
||||
}
|
||||
PCKFile.FileData mf = (PCKFile.FileData)n.Tag;
|
||||
string fullNew = mf.name.Replace(oldName + "/", newName + "/");
|
||||
Console.WriteLine("Full old - " + mf.name + " - Old: " + oldName + " - New: " + newName + " - " + fullNew);
|
||||
mf.name = fullNew;
|
||||
}
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
newName = textBox1.Text;
|
||||
node.Name = textBox1.Text;
|
||||
|
||||
if (node.Tag == null) fixDirectoryNameForFiles(node);
|
||||
else
|
||||
{
|
||||
PCKFile.FileData mf = (PCKFile.FileData)node.Tag;
|
||||
string path = Path.GetDirectoryName(node.FullPath.Replace("\\", "/"));
|
||||
string fullNew = path + "/" + newName;
|
||||
mf.name = fullNew;
|
||||
Console.WriteLine("Full old - " + mf.name + " - Old: " + oldName + " - New: " + fullNew);
|
||||
}
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void addCategory_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
51
MinecraftUSkinEditor/Forms/Form1.Designer.cs
generated
51
MinecraftUSkinEditor/Forms/Form1.Designer.cs
generated
@@ -36,8 +36,6 @@
|
||||
this.skinToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.createAnimatedTextureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.audiopckToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.normalAudiopckToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.vitaPS4AudiopckToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.cloneFileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.importSkinsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.importSkinToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@@ -52,6 +50,9 @@
|
||||
this.menuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.newToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.skinPackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.texturePackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mashUpPackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.extractToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@@ -180,25 +181,10 @@
|
||||
//
|
||||
// audiopckToolStripMenuItem
|
||||
//
|
||||
this.audiopckToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.normalAudiopckToolStripMenuItem,
|
||||
this.vitaPS4AudiopckToolStripMenuItem});
|
||||
resources.ApplyResources(this.audiopckToolStripMenuItem, "audiopckToolStripMenuItem");
|
||||
this.audiopckToolStripMenuItem.Name = "audiopckToolStripMenuItem";
|
||||
this.audiopckToolStripMenuItem.Click += new System.EventHandler(this.audiopckToolStripMenuItem_Click);
|
||||
//
|
||||
// normalAudiopckToolStripMenuItem
|
||||
//
|
||||
this.normalAudiopckToolStripMenuItem.Name = "normalAudiopckToolStripMenuItem";
|
||||
resources.ApplyResources(this.normalAudiopckToolStripMenuItem, "normalAudiopckToolStripMenuItem");
|
||||
this.normalAudiopckToolStripMenuItem.Click += new System.EventHandler(this.normalAudiopckToolStripMenuItem_Click);
|
||||
//
|
||||
// vitaPS4AudiopckToolStripMenuItem
|
||||
//
|
||||
this.vitaPS4AudiopckToolStripMenuItem.Name = "vitaPS4AudiopckToolStripMenuItem";
|
||||
resources.ApplyResources(this.vitaPS4AudiopckToolStripMenuItem, "vitaPS4AudiopckToolStripMenuItem");
|
||||
this.vitaPS4AudiopckToolStripMenuItem.Click += new System.EventHandler(this.vitaPS4AudiopckToolStripMenuItem_Click);
|
||||
//
|
||||
// cloneFileToolStripMenuItem
|
||||
//
|
||||
resources.ApplyResources(this.cloneFileToolStripMenuItem, "cloneFileToolStripMenuItem");
|
||||
@@ -296,9 +282,29 @@
|
||||
//
|
||||
// newToolStripMenuItem
|
||||
//
|
||||
this.newToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.skinPackToolStripMenuItem,
|
||||
this.texturePackToolStripMenuItem,
|
||||
this.mashUpPackToolStripMenuItem});
|
||||
resources.ApplyResources(this.newToolStripMenuItem, "newToolStripMenuItem");
|
||||
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
|
||||
this.newToolStripMenuItem.Click += new System.EventHandler(this.skinPackToolStripMenuItem_Click);
|
||||
//
|
||||
// skinPackToolStripMenuItem
|
||||
//
|
||||
this.skinPackToolStripMenuItem.Name = "skinPackToolStripMenuItem";
|
||||
resources.ApplyResources(this.skinPackToolStripMenuItem, "skinPackToolStripMenuItem");
|
||||
this.skinPackToolStripMenuItem.Click += new System.EventHandler(this.skinPackToolStripMenuItem_Click);
|
||||
//
|
||||
// texturePackToolStripMenuItem
|
||||
//
|
||||
this.texturePackToolStripMenuItem.Name = "texturePackToolStripMenuItem";
|
||||
resources.ApplyResources(this.texturePackToolStripMenuItem, "texturePackToolStripMenuItem");
|
||||
this.texturePackToolStripMenuItem.Click += new System.EventHandler(this.texturePackToolStripMenuItem_Click);
|
||||
//
|
||||
// mashUpPackToolStripMenuItem
|
||||
//
|
||||
this.mashUpPackToolStripMenuItem.Name = "mashUpPackToolStripMenuItem";
|
||||
resources.ApplyResources(this.mashUpPackToolStripMenuItem, "mashUpPackToolStripMenuItem");
|
||||
//
|
||||
// openToolStripMenuItem
|
||||
//
|
||||
@@ -466,7 +472,6 @@
|
||||
this.forMattNLContributorToolStripMenuItem});
|
||||
this.donateToolStripMenuItem.Name = "donateToolStripMenuItem";
|
||||
resources.ApplyResources(this.donateToolStripMenuItem, "donateToolStripMenuItem");
|
||||
this.donateToolStripMenuItem.Click += new System.EventHandler(this.donateToolStripMenuItem_Click);
|
||||
//
|
||||
// toNobledezJackToolStripMenuItem
|
||||
//
|
||||
@@ -625,7 +630,7 @@
|
||||
this.tabControl.Controls.Add(this.editorTab);
|
||||
resources.ApplyResources(this.tabControl, "tabControl");
|
||||
this.tabControl.Name = "tabControl";
|
||||
this.tabControl.SelectedIndex = 0;
|
||||
this.tabControl.SelectedIndex = 1;
|
||||
this.tabControl.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
|
||||
this.tabControl.Style = MetroFramework.MetroColorStyle.White;
|
||||
this.tabControl.TabStop = false;
|
||||
@@ -760,6 +765,7 @@
|
||||
this.textBox1.UseSelectable = true;
|
||||
this.textBox1.WaterMarkColor = System.Drawing.Color.FromArgb(((int)(((byte)(109)))), ((int)(((byte)(109)))), ((int)(((byte)(109)))));
|
||||
this.textBox1.WaterMarkFont = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Pixel);
|
||||
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
||||
//
|
||||
// metroLabel2
|
||||
//
|
||||
@@ -941,8 +947,6 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem convertPCTextrurePackToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem forMattNLContributorToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem audiopckToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem normalAudiopckToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem vitaPS4AudiopckToolStripMenuItem;
|
||||
private System.Windows.Forms.TabPage openTab;
|
||||
private System.Windows.Forms.ToolStripMenuItem videosToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem howToMakeABasicSkinPackToolStripMenuItem;
|
||||
@@ -968,6 +972,9 @@
|
||||
private PictureBoxWithInterpolationMode pictureBoxImagePreview;
|
||||
private MetroFramework.Controls.MetroLabel labelImageSize;
|
||||
private MetroFramework.Controls.MetroButton buttonEdit;
|
||||
private System.Windows.Forms.ToolStripMenuItem skinPackToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem texturePackToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem mashUpPackToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -179,18 +179,6 @@
|
||||
<data name="createAnimatedTextureToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Animated Texture</value>
|
||||
</data>
|
||||
<data name="normalAudiopckToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>175, 22</value>
|
||||
</data>
|
||||
<data name="normalAudiopckToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Normal Audio.pck</value>
|
||||
</data>
|
||||
<data name="vitaPS4AudiopckToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>175, 22</value>
|
||||
</data>
|
||||
<data name="vitaPS4AudiopckToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Vita/PS4 Audio.pck</value>
|
||||
</data>
|
||||
<data name="audiopckToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
@@ -411,6 +399,24 @@
|
||||
<data name="menuStrip.AutoSize" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name="skinPackToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>151, 22</value>
|
||||
</data>
|
||||
<data name="skinPackToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Skin Pack</value>
|
||||
</data>
|
||||
<data name="texturePackToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>151, 22</value>
|
||||
</data>
|
||||
<data name="texturePackToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Texture Pack</value>
|
||||
</data>
|
||||
<data name="mashUpPackToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>151, 22</value>
|
||||
</data>
|
||||
<data name="mashUpPackToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Mash-Up Pack</value>
|
||||
</data>
|
||||
<data name="newToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
@@ -29736,6 +29742,9 @@
|
||||
<data name="buttonEdit.Text" xml:space="preserve">
|
||||
<value>buttonEdit</value>
|
||||
</data>
|
||||
<data name="buttonEdit.Visible" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
<data name=">>buttonEdit.Name" xml:space="preserve">
|
||||
<value>buttonEdit</value>
|
||||
</data>
|
||||
@@ -29752,7 +29761,7 @@
|
||||
<value>True</value>
|
||||
</data>
|
||||
<data name="labelImageSize.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>337, 3</value>
|
||||
<value>691, 178</value>
|
||||
</data>
|
||||
<data name="labelImageSize.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>69, 19</value>
|
||||
@@ -29785,7 +29794,7 @@
|
||||
<value>195, 194</value>
|
||||
</data>
|
||||
<data name="pictureBoxImagePreview.SizeMode" type="System.Windows.Forms.PictureBoxSizeMode, System.Windows.Forms">
|
||||
<value>Zoom</value>
|
||||
<value>StretchImage</value>
|
||||
</data>
|
||||
<data name="pictureBoxImagePreview.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>18</value>
|
||||
@@ -32713,18 +32722,6 @@
|
||||
<data name=">>audiopckToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>normalAudiopckToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>normalAudiopckToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name=">>normalAudiopckToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>vitaPS4AudiopckToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>vitaPS4AudiopckToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name=">>vitaPS4AudiopckToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>cloneFileToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>cloneFileToolStripMenuItem</value>
|
||||
</data>
|
||||
@@ -32803,6 +32800,24 @@
|
||||
<data name=">>newToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>skinPackToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>skinPackToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name=">>skinPackToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>texturePackToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>texturePackToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name=">>texturePackToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>mashUpPackToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>mashUpPackToolStripMenuItem</value>
|
||||
</data>
|
||||
<data name=">>mashUpPackToolStripMenuItem.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name=">>openToolStripMenuItem.Name" xml:space="preserve">
|
||||
<value>openToolStripMenuItem</value>
|
||||
</data>
|
||||
|
||||
@@ -30,14 +30,9 @@ namespace PckStudio
|
||||
|
||||
}
|
||||
|
||||
private void addPresetToolStripMenuItem1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void addEntryToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
PckStudio.addMetaAdvanced add = new PckStudio.addMetaAdvanced(treeMeta);
|
||||
addMetaAdvanced add = new addMetaAdvanced(treeMeta);
|
||||
add.ShowDialog();
|
||||
add.Dispose();
|
||||
}
|
||||
@@ -57,7 +52,7 @@ namespace PckStudio
|
||||
{
|
||||
foreach (PCKFile.FileData mf in currentPCK.file_entries)
|
||||
{
|
||||
mf.properties.Add(new Tuple<string, string>(node.Text, node.Tag.ToString()));
|
||||
mf.properties.Add(new ValueTuple<string, string>(node.Text, node.Tag.ToString()));
|
||||
}
|
||||
}
|
||||
MessageBox.Show("Data Added to All Entries");
|
||||
@@ -75,7 +70,7 @@ namespace PckStudio
|
||||
{
|
||||
if (Image.FromStream(png).Size.Height == Image.FromStream(png).Size.Width)
|
||||
{
|
||||
mf.properties.Add(new Tuple<string, string>(treeMeta.Nodes[i].Text, treeMeta.Nodes[i].Tag.ToString()));
|
||||
mf.properties.Add(new ValueTuple<string, string>(treeMeta.Nodes[i].Text, treeMeta.Nodes[i].Tag.ToString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -98,7 +93,7 @@ namespace PckStudio
|
||||
{
|
||||
if (Image.FromStream(png).Size.Height == Image.FromStream(png).Size.Width / 2)
|
||||
{
|
||||
mf.properties.Add(new Tuple<string, string>(treeMeta.Nodes[i].Text, treeMeta.Nodes[i].Tag.ToString() ));
|
||||
mf.properties.Add(new ValueTuple<string, string>(treeMeta.Nodes[i].Text, treeMeta.Nodes[i].Tag.ToString() ));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -118,7 +113,7 @@ namespace PckStudio
|
||||
{
|
||||
if (Path.GetExtension(mf.name) == ".png")
|
||||
{
|
||||
mf.properties.Add(new Tuple<string, string>(treeMeta.Nodes[i].Text, treeMeta.Nodes[i].Tag.ToString() ));
|
||||
mf.properties.Add(new ValueTuple<string, string>(treeMeta.Nodes[i].Text, treeMeta.Nodes[i].Tag.ToString() ));
|
||||
}
|
||||
}
|
||||
i += 1;
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace PckStudio
|
||||
|
||||
private void addEntryToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
file.properties.Add(new Tuple<string, string>("Replace me", "Or it won't save"));
|
||||
file.properties.Add(new ValueTuple<string, string>("Replace me", "Or it won't save"));
|
||||
TreeNode t = new TreeNode("temp name");
|
||||
treeView1.Nodes.Add(t);
|
||||
renameProperly();
|
||||
|
||||
@@ -24,7 +24,8 @@ namespace PckStudio
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
file.properties.Add(new Tuple<string, string>(textBox1.Text, textBox2.Text ));
|
||||
file.properties.Add(new ValueTuple<string, string>(textBox1.Text, textBox2.Text ));
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,20 +51,19 @@
|
||||
this.radioLOCAL = new System.Windows.Forms.RadioButton();
|
||||
this.labelSelectTexture = new System.Windows.Forms.Label();
|
||||
this.radioSERVER = new System.Windows.Forms.RadioButton();
|
||||
this.pictureBoxWithInterpolationMode1 = new PckStudio.PictureBoxWithInterpolationMode();
|
||||
this.pictureBoxTexture = new PckStudio.PictureBoxWithInterpolationMode();
|
||||
this.capePictureBox = new PckStudio.PictureBoxWithInterpolationMode();
|
||||
this.skinPictureBoxTexture = new PckStudio.PictureBoxWithInterpolationMode();
|
||||
this.contextMenuSkin.SuspendLayout();
|
||||
this.contextMenuCape.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.displayBox)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWithInterpolationMode1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTexture)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.capePictureBox)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.skinPictureBoxTexture)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// textTheme
|
||||
//
|
||||
resources.ApplyResources(this.textTheme, "textTheme");
|
||||
this.textTheme.Name = "textTheme";
|
||||
this.textTheme.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
||||
//
|
||||
// contextMenuSkin
|
||||
//
|
||||
@@ -98,7 +97,7 @@
|
||||
this.buttonDone.ForeColor = System.Drawing.Color.White;
|
||||
this.buttonDone.Name = "buttonDone";
|
||||
this.buttonDone.UseVisualStyleBackColor = true;
|
||||
this.buttonDone.Click += new System.EventHandler(this.button1_Click_1);
|
||||
this.buttonDone.Click += new System.EventHandler(this.CreateButton_Click);
|
||||
//
|
||||
// buttonModelGen
|
||||
//
|
||||
@@ -106,7 +105,7 @@
|
||||
this.buttonModelGen.ForeColor = System.Drawing.Color.White;
|
||||
this.buttonModelGen.Name = "buttonModelGen";
|
||||
this.buttonModelGen.UseVisualStyleBackColor = true;
|
||||
this.buttonModelGen.Click += new System.EventHandler(this.button2_Click_1);
|
||||
this.buttonModelGen.Click += new System.EventHandler(this.CreateCustomModel_Click);
|
||||
//
|
||||
// comboBoxSkinType
|
||||
//
|
||||
@@ -152,7 +151,6 @@
|
||||
resources.ApplyResources(this.textThemeName, "textThemeName");
|
||||
this.textThemeName.Name = "textThemeName";
|
||||
this.textThemeName.TextChanged += new System.EventHandler(this.textThemeName_TextChanged);
|
||||
this.textThemeName.VisibleChanged += new System.EventHandler(this.textThemeName_VisibleChanged);
|
||||
//
|
||||
// label2
|
||||
//
|
||||
@@ -165,8 +163,6 @@
|
||||
this.textSkinName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
resources.ApplyResources(this.textSkinName, "textSkinName");
|
||||
this.textSkinName.Name = "textSkinName";
|
||||
this.textSkinName.TextChanged += new System.EventHandler(this.textSkinName_TextChanged);
|
||||
this.textSkinName.VisibleChanged += new System.EventHandler(this.textSkinName_VisibleChanged);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
@@ -204,7 +200,7 @@
|
||||
resources.ApplyResources(this.labelSelectTexture, "labelSelectTexture");
|
||||
this.labelSelectTexture.ForeColor = System.Drawing.Color.White;
|
||||
this.labelSelectTexture.Name = "labelSelectTexture";
|
||||
this.labelSelectTexture.Click += new System.EventHandler(this.label4_Click);
|
||||
this.labelSelectTexture.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
//
|
||||
// radioSERVER
|
||||
//
|
||||
@@ -214,27 +210,26 @@
|
||||
this.radioSERVER.UseVisualStyleBackColor = true;
|
||||
this.radioSERVER.CheckedChanged += new System.EventHandler(this.radioSERVER_CheckedChanged);
|
||||
//
|
||||
// pictureBoxWithInterpolationMode1
|
||||
// capePictureBox
|
||||
//
|
||||
resources.ApplyResources(this.pictureBoxWithInterpolationMode1, "pictureBoxWithInterpolationMode1");
|
||||
this.pictureBoxWithInterpolationMode1.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
|
||||
this.pictureBoxWithInterpolationMode1.Name = "pictureBoxWithInterpolationMode1";
|
||||
this.pictureBoxWithInterpolationMode1.TabStop = false;
|
||||
resources.ApplyResources(this.capePictureBox, "capePictureBox");
|
||||
this.capePictureBox.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
|
||||
this.capePictureBox.Name = "capePictureBox";
|
||||
this.capePictureBox.TabStop = false;
|
||||
//
|
||||
// pictureBoxTexture
|
||||
// skinPictureBoxTexture
|
||||
//
|
||||
resources.ApplyResources(this.pictureBoxTexture, "pictureBoxTexture");
|
||||
this.pictureBoxTexture.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pictureBoxTexture.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
|
||||
this.pictureBoxTexture.Name = "pictureBoxTexture";
|
||||
this.pictureBoxTexture.TabStop = false;
|
||||
this.pictureBoxTexture.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
resources.ApplyResources(this.skinPictureBoxTexture, "skinPictureBoxTexture");
|
||||
this.skinPictureBoxTexture.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.skinPictureBoxTexture.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
|
||||
this.skinPictureBoxTexture.Name = "skinPictureBoxTexture";
|
||||
this.skinPictureBoxTexture.TabStop = false;
|
||||
this.skinPictureBoxTexture.Click += new System.EventHandler(this.pictureBox1_Click);
|
||||
//
|
||||
// addnewskin
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle;
|
||||
this.Controls.Add(this.radioSERVER);
|
||||
this.Controls.Add(this.labelSelectTexture);
|
||||
this.Controls.Add(this.radioLOCAL);
|
||||
@@ -244,8 +239,8 @@
|
||||
this.Controls.Add(this.comboBoxSkinType);
|
||||
this.Controls.Add(this.buttonCape);
|
||||
this.Controls.Add(this.buttonSkin);
|
||||
this.Controls.Add(this.pictureBoxWithInterpolationMode1);
|
||||
this.Controls.Add(this.pictureBoxTexture);
|
||||
this.Controls.Add(this.capePictureBox);
|
||||
this.Controls.Add(this.skinPictureBoxTexture);
|
||||
this.Controls.Add(this.displayBox);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.textThemeName);
|
||||
@@ -263,8 +258,8 @@
|
||||
this.contextMenuSkin.ResumeLayout(false);
|
||||
this.contextMenuCape.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.displayBox)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWithInterpolationMode1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxTexture)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.capePictureBox)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.skinPictureBoxTexture)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
@@ -283,8 +278,8 @@
|
||||
private System.Windows.Forms.ComboBox comboBoxSkinType;
|
||||
private System.Windows.Forms.Button buttonCape;
|
||||
private System.Windows.Forms.Button buttonSkin;
|
||||
private PictureBoxWithInterpolationMode pictureBoxWithInterpolationMode1;
|
||||
private PictureBoxWithInterpolationMode pictureBoxTexture;
|
||||
private PictureBoxWithInterpolationMode capePictureBox;
|
||||
private PictureBoxWithInterpolationMode skinPictureBoxTexture;
|
||||
private System.Windows.Forms.PictureBox displayBox;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.TextBox textThemeName;
|
||||
|
||||
@@ -1,83 +1,53 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using System.Drawing.Drawing2D;
|
||||
using MySql.Data.MySqlClient;
|
||||
using System.Net;
|
||||
using PckStudio;
|
||||
using PckStudio.Classes.FileTypes;
|
||||
using System.Drawing.Imaging;
|
||||
|
||||
namespace PckStudio
|
||||
{
|
||||
public partial class addnewskin : MetroFramework.Forms.MetroForm
|
||||
{
|
||||
PCKFile currentPCK;
|
||||
DataTable tbl;
|
||||
LOCFile currentLoc;
|
||||
PCKFile.FileData mf = null;
|
||||
PCKFile.FileData mfc = null;
|
||||
TreeView treeView1;
|
||||
string skinId = "";
|
||||
TreeNode skin = new TreeNode();
|
||||
TreeNode cape = new TreeNode();
|
||||
TreeNode skinName = new TreeNode();
|
||||
TreeNode displayNameId = new TreeNode();
|
||||
TreeNode themeName = new TreeNode();
|
||||
TreeNode themeNameId = new TreeNode();
|
||||
TreeNode anim = new TreeNode();
|
||||
TreeNode free = new TreeNode();
|
||||
TreeNode theme = new TreeNode();
|
||||
TreeNode capePath = new TreeNode();
|
||||
string skinType = "";
|
||||
string ofd;
|
||||
bool useCape = false;
|
||||
string capeID;
|
||||
string localID;
|
||||
string serverID;
|
||||
string skinid;
|
||||
List<object[]> generatedModel = new List<object[]>();
|
||||
public PCKFile.FileData skin = new PCKFile.FileData("skin", 0);
|
||||
public PCKFile.FileData cape = new PCKFile.FileData("cape", 1);
|
||||
eSkinType skinType;
|
||||
public bool useCape = false;
|
||||
string localID = "0";
|
||||
PCKProperties generatedModel = new PCKProperties();
|
||||
|
||||
public addnewskin(PCKFile currentPCKIn, TreeView treeView1In, string tempIDIn, LOCFile loc)
|
||||
enum eSkinType : int
|
||||
{
|
||||
Invalid = -1,
|
||||
_64x64,
|
||||
_64x32,
|
||||
_64x64HD,
|
||||
_64x32HD,
|
||||
Custom,
|
||||
}
|
||||
|
||||
public addnewskin(LOCFile loc)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
mf = new PCKFile.FileData("", 0);
|
||||
mfc = new PCKFile.FileData("", 0);
|
||||
currentLoc = loc;
|
||||
tbl = new DataTable();
|
||||
tbl.Columns.Add(new DataColumn("Language") { ReadOnly = true });
|
||||
tbl.Columns.Add("Display Name");
|
||||
|
||||
currentPCK = currentPCKIn;
|
||||
treeView1 = treeView1In;
|
||||
|
||||
localID = tempIDIn;
|
||||
|
||||
textSkinID.Text = localID;
|
||||
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
|
||||
buttonDone.Enabled = false;
|
||||
}
|
||||
|
||||
private void checkImage()
|
||||
private void checkImage(Image img)
|
||||
{
|
||||
//Checks image dimensions and sets things accordingly
|
||||
var img = Image.FromFile(ofd);
|
||||
if (img.Height == 64) //If skins is 64x64
|
||||
{
|
||||
MessageBox.Show("64x64 Skin Detected");
|
||||
pictureBoxTexture.Width = pictureBoxTexture.Height;
|
||||
if (skinType != "64x64" && skinType != "64x64HD")
|
||||
skinPictureBoxTexture.Width = skinPictureBoxTexture.Height;
|
||||
if (skinType != eSkinType._64x64 && skinType != eSkinType._64x64HD)
|
||||
{
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X - pictureBoxTexture.Width, buttonSkin.Location.Y);
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X - skinPictureBoxTexture.Width, buttonSkin.Location.Y);
|
||||
}
|
||||
comboBoxSkinType.Text = "Steve (64x64)";
|
||||
comboBoxSkinType.Enabled = true;
|
||||
@@ -85,31 +55,31 @@ namespace PckStudio
|
||||
{
|
||||
comboBoxSkinType.Items.RemoveAt(0);
|
||||
}
|
||||
skinType = "64x64";
|
||||
skinType = eSkinType._64x64;
|
||||
}
|
||||
else if (img.Height == 32)//If skins is 64x32
|
||||
{
|
||||
MessageBox.Show("64x32 Skin Detected");
|
||||
pictureBoxTexture.Width = pictureBoxTexture.Height * 2;
|
||||
if (skinType == "64x64")
|
||||
skinPictureBoxTexture.Width = skinPictureBoxTexture.Height * 2;
|
||||
if (skinType == eSkinType._64x64)
|
||||
{
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X + pictureBoxTexture.Width / 2, buttonSkin.Location.Y);
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X + skinPictureBoxTexture.Width / 2, buttonSkin.Location.Y);
|
||||
}
|
||||
if (skinType == "64x64HD")
|
||||
if (skinType == eSkinType._64x64HD)
|
||||
{
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X + pictureBoxTexture.Width / 2, buttonSkin.Location.Y);
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X + skinPictureBoxTexture.Width / 2, buttonSkin.Location.Y);
|
||||
}
|
||||
comboBoxSkinType.Text = "Default (64x32)";
|
||||
comboBoxSkinType.Enabled = false;
|
||||
skinType = "64x32";
|
||||
skinType = eSkinType._64x32;
|
||||
}
|
||||
else if (img.Width == img.Height / 1)//If skins is 64x64 HD
|
||||
{
|
||||
MessageBox.Show("64x64 HD Skin Detected");
|
||||
pictureBoxTexture.Width = pictureBoxTexture.Height;
|
||||
if (skinType != "64x64" && skinType != "64x64HD")
|
||||
skinPictureBoxTexture.Width = skinPictureBoxTexture.Height;
|
||||
if (skinType != eSkinType._64x64 && skinType != eSkinType._64x64HD)
|
||||
{
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X - pictureBoxTexture.Width, buttonSkin.Location.Y);
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X - skinPictureBoxTexture.Width, buttonSkin.Location.Y);
|
||||
}
|
||||
comboBoxSkinType.Text = "Steve (64x64)";
|
||||
comboBoxSkinType.Enabled = true;
|
||||
@@ -117,118 +87,43 @@ namespace PckStudio
|
||||
{
|
||||
comboBoxSkinType.Items.RemoveAt(0);
|
||||
}
|
||||
skinType = "64x64";
|
||||
skinType = eSkinType._64x64HD;
|
||||
}
|
||||
else if (img.Width == img.Height / 2)//If skins is 64x32 HD
|
||||
{
|
||||
MessageBox.Show("64x32 HD Skin Detected");
|
||||
pictureBoxTexture.Width = pictureBoxTexture.Height * 2;
|
||||
if (skinType == "64x64")
|
||||
skinPictureBoxTexture.Width = skinPictureBoxTexture.Height * 2;
|
||||
if (skinType == eSkinType._64x64)
|
||||
{
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X + pictureBoxTexture.Width / 2, buttonSkin.Location.Y);
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X + skinPictureBoxTexture.Width / 2, buttonSkin.Location.Y);
|
||||
}
|
||||
if (skinType == "64x64HD")
|
||||
if (skinType == eSkinType._64x64HD)
|
||||
{
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X + pictureBoxTexture.Width / 2, buttonSkin.Location.Y);
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X + skinPictureBoxTexture.Width / 2, buttonSkin.Location.Y);
|
||||
}
|
||||
comboBoxSkinType.Text = "Default (64x32)";
|
||||
comboBoxSkinType.Enabled = false;
|
||||
skinType = "64x32";
|
||||
skinType = eSkinType._64x32HD;
|
||||
}
|
||||
else //If dimensions don't fit any skin type //Invalid
|
||||
{
|
||||
MessageBox.Show("Not a Valid Skin File");
|
||||
skinType = "unusable";
|
||||
skinType = eSkinType.Invalid;
|
||||
return;
|
||||
}
|
||||
|
||||
pictureBoxTexture.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
pictureBoxTexture.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
pictureBoxTexture.Image = Image.FromFile(ofd);
|
||||
skinPictureBoxTexture.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
skinPictureBoxTexture.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
skinPictureBoxTexture.Image = img;
|
||||
|
||||
buttonDone.Enabled = true;
|
||||
labelSelectTexture.Visible = false;
|
||||
|
||||
mf.SetData(File.ReadAllBytes(ofd));
|
||||
}
|
||||
|
||||
public class displayId
|
||||
{
|
||||
public string id;
|
||||
public string defaultName;
|
||||
}
|
||||
|
||||
private void textSkinName_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
skinName.Text = "DISPLAYNAME";
|
||||
skinName.Tag = textSkinName.Text;
|
||||
}
|
||||
|
||||
private void textSkinID_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
skinId = textSkinID.Text;
|
||||
|
||||
displayNameId.Text = "DISPLAYNAMEID";
|
||||
displayNameId.Tag = "IDS_dlcskin" + textSkinID.Text + "_DISPLAYNAME";
|
||||
|
||||
themeName.Text = "THEMENAME";
|
||||
themeName.Tag = "dlcskin" + textSkinID.Text;
|
||||
}
|
||||
|
||||
private void radioSteveModel_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Skin Model Set to Steve Model");
|
||||
}
|
||||
|
||||
private void radioAlexModel_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Skin Model Set to Alex Model");
|
||||
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Must be an 8 digit Number");
|
||||
}
|
||||
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("This is the Skins Name You'll See In-Game");
|
||||
//skin.SetData();
|
||||
}
|
||||
|
||||
private void addnewskin_Load(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (File.Exists(Application.StartupPath + "\\temp.png"))
|
||||
{
|
||||
File.Delete(Application.StartupPath + "\\temp.png");
|
||||
}
|
||||
}catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
if (skinType == "unusable")
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
else if (skinType == "64x64")
|
||||
{
|
||||
comboBoxSkinType.Text = "Steve (64x64)";
|
||||
}
|
||||
else if (skinType == "64x64HD")
|
||||
{
|
||||
comboBoxSkinType.Text = "Steve (64x64)";
|
||||
}
|
||||
else if (skinType == "64x32")
|
||||
{
|
||||
comboBoxSkinType.Text = "Steve (64x32)";
|
||||
}
|
||||
else if (skinType == "64x32HD")
|
||||
{
|
||||
comboBoxSkinType.Text = "Steve (64x32)";
|
||||
}
|
||||
|
||||
Bitmap bmp = new Bitmap(displayBox.Width, displayBox.Height);
|
||||
using (Graphics g = Graphics.FromImage(bmp))
|
||||
{
|
||||
@@ -254,29 +149,22 @@ namespace PckStudio
|
||||
displayBox.Image = bmp;
|
||||
}
|
||||
|
||||
private void textBox1_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
themeName.Text = "THEMENAME";
|
||||
themeName.Tag = textTheme.Text;
|
||||
}
|
||||
|
||||
private void buttonSkin_Click(object sender, EventArgs e)
|
||||
{
|
||||
contextMenuSkin.Show(System.Windows.Forms.Form.ActiveForm.Location.X + buttonSkin.Location.X + 2, System.Windows.Forms.Form.ActiveForm.Location.Y + buttonSkin.Location.Y + 23);
|
||||
contextMenuSkin.Show(ActiveForm.Location.X + buttonSkin.Location.X + 2, ActiveForm.Location.Y + buttonSkin.Location.Y + 23);
|
||||
}
|
||||
|
||||
private void buttonCape_Click(object sender, EventArgs e)
|
||||
{
|
||||
contextMenuCape.Show(System.Windows.Forms.Form.ActiveForm.Location.X + buttonCape.Location.X + 2, System.Windows.Forms.Form.ActiveForm.Location.Y + buttonCape.Location.Y + 23);
|
||||
contextMenuCape.Show(ActiveForm.Location.X + buttonCape.Location.X + 2, ActiveForm.Location.Y + buttonCape.Location.Y + 23);
|
||||
}
|
||||
|
||||
private void replaceToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenFileDialog ofD = new OpenFileDialog();
|
||||
if (ofD.ShowDialog() == DialogResult.OK)
|
||||
OpenFileDialog ofd = new OpenFileDialog();
|
||||
if (ofd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
ofd = ofD.FileName;
|
||||
checkImage();
|
||||
checkImage(Image.FromFile(ofd.FileName));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,11 +181,11 @@ namespace PckStudio
|
||||
if (img.Width == img.Height * 2)
|
||||
{
|
||||
useCape = true;
|
||||
pictureBoxWithInterpolationMode1.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
pictureBoxWithInterpolationMode1.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
pictureBoxWithInterpolationMode1.Image = Image.FromFile(ofd1.FileName);
|
||||
capePictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
capePictureBox.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
capePictureBox.Image = Image.FromFile(ofd1.FileName);
|
||||
|
||||
mfc.SetData(File.ReadAllBytes(ofd1.FileName));
|
||||
cape.SetData(File.ReadAllBytes(ofd1.FileName));
|
||||
|
||||
contextMenuCape.Items[0].Text = "Replace";
|
||||
}
|
||||
@@ -309,59 +197,25 @@ namespace PckStudio
|
||||
}
|
||||
}
|
||||
|
||||
private void button1_Click_1(object sender, EventArgs e)
|
||||
private void CreateButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (textSkinID.Text.Length / 8 == 1)
|
||||
{
|
||||
bool mashupStructure = false;
|
||||
int skinsFolder = 0;
|
||||
|
||||
foreach (TreeNode item in treeView1.Nodes)
|
||||
{
|
||||
if (item.Text == "Skins")
|
||||
{
|
||||
mashupStructure = true;
|
||||
skinsFolder = item.Index;
|
||||
}
|
||||
}
|
||||
|
||||
if (useCape == true)
|
||||
if (useCape)
|
||||
{
|
||||
try
|
||||
{
|
||||
capePath.Text = "CAPEPATH";
|
||||
capePath.Tag = "dlccape" + textSkinID.Text + ".png";
|
||||
|
||||
mf.properties.Add(new Tuple<string, string>(capePath.Text, capePath.Tag.ToString()));
|
||||
|
||||
currentPCK.file_entries.Add(mfc);
|
||||
|
||||
if (mashupStructure == true)
|
||||
cape.properties.Add(new ValueTuple<string, string>("CAPEPATH", $"dlccape{textSkinID.Text}.png"));
|
||||
if (mashupStructure)
|
||||
{
|
||||
mfc.name = "Skins/" + "dlccape" + textSkinID.Text + ".png";
|
||||
cape.name = "Skins/" + "dlccape" + textSkinID.Text + ".png";
|
||||
}
|
||||
else
|
||||
{
|
||||
mfc.name = "dlccape" + textSkinID.Text + ".png";
|
||||
}
|
||||
|
||||
//mfc.type = 1;
|
||||
|
||||
cape.Text = "dlccape" + textSkinID.Text + ".png";
|
||||
cape.Tag = mfc;
|
||||
|
||||
cape.ImageIndex = 2;
|
||||
cape.SelectedImageIndex = 2;
|
||||
|
||||
if (mashupStructure == true)
|
||||
{
|
||||
treeView1.Nodes[skinsFolder].Nodes.Add(cape);
|
||||
}
|
||||
else
|
||||
{
|
||||
treeView1.Nodes.Add(cape);
|
||||
cape.name = "dlccape" + textSkinID.Text + ".png";
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
@@ -369,102 +223,55 @@ namespace PckStudio
|
||||
MessageBox.Show("Cape Could Not be Added");
|
||||
}
|
||||
}
|
||||
|
||||
currentPCK.file_entries.Add(mf);
|
||||
free.Text = "FREE";
|
||||
free.Tag = "1";
|
||||
themeName.Text = "THEMENAME";
|
||||
themeName.Tag = textThemeName.Text;
|
||||
displayNameId.Text = "DISPLAYNAMEID";
|
||||
displayNameId.Tag = "IDS_dlcskin" + textSkinID.Text + "_DISPLAYNAME";
|
||||
skinName.Text = "DISPLAYNAME";
|
||||
skinName.Tag = textSkinName.Text;
|
||||
anim.Text = "ANIM";
|
||||
|
||||
mf.properties.Add(new Tuple<string, string>(skinName.Text, textSkinName.Text));
|
||||
|
||||
mf.properties.Add(new Tuple<string, string>(displayNameId.Text, "IDS_dlcskin" + textSkinID.Text + "_DISPLAYNAME" ));
|
||||
|
||||
|
||||
if (comboBoxSkinType.Text == "Default (64x32)")
|
||||
currentLoc.AddLocKey($"IDS_dlcskin{textSkinID.Text}_DISPLAYNAME", textSkinName.Text);
|
||||
skin.properties.Add(new ValueTuple<string, string>("DISPLAYNAME", textSkinName.Text));
|
||||
skin.properties.Add(new ValueTuple<string, string>("DISPLAYNAMEID", $"IDS_dlcskin{textSkinID.Text}_DISPLAYNAME"));
|
||||
using (var stream = new MemoryStream())
|
||||
{
|
||||
|
||||
skinPictureBoxTexture.Image.Save(stream, ImageFormat.Png);
|
||||
skin.SetData(stream.ToArray());
|
||||
}
|
||||
else if (comboBoxSkinType.Text == "Alex (64x64)" && skinType != "64x32")
|
||||
{
|
||||
anim.Tag = "0x80000";
|
||||
|
||||
object[] ANIM = { anim.Text, anim.Tag };
|
||||
mf.properties.Add(new Tuple<string, string>("ANIM", "0x80000"));
|
||||
}
|
||||
else if (comboBoxSkinType.Text == "Steve (64x64)" && skinType != "64x32")
|
||||
if (comboBoxSkinType.Text == "Alex (64x64)" && skinType != eSkinType._64x32)
|
||||
{
|
||||
mf.properties.Add(new Tuple<string, string>("ANIM", "0x40000"));
|
||||
skin.properties.Add(new ValueTuple<string, string>("ANIM", "0x80000"));
|
||||
}
|
||||
else if (comboBoxSkinType.Text == "Steve (64x64)" && skinType != eSkinType._64x32)
|
||||
{
|
||||
skin.properties.Add(new ValueTuple<string, string>("ANIM", "0x40000"));
|
||||
}
|
||||
else if (comboBoxSkinType.Text == "Custom")
|
||||
{
|
||||
//mf.entries.Add(new object[2] { (object)"BOX", new ListViewItem() { Tag = ((object)(listViewItem.Tag.ToString() + " " + listViewItem.SubItems[1].Text + " " + listViewItem.SubItems[2].Text + " " + listViewItem.SubItems[3].Text + " " + listViewItem.SubItems[4].Text + " " + listViewItem.SubItems[5].Text + " " + listViewItem.SubItems[6].Text + " " + listViewItem.SubItems[7].Text + " " + listViewItem.SubItems[8].Text)) }.Tag });
|
||||
//foreach (object[] item in generatedModel)
|
||||
//{
|
||||
// mf.properties.Add((object[])item);
|
||||
//}
|
||||
mf.properties.Add(new Tuple<string, string>("ANIM", "0x7ff5fc10"));
|
||||
//skin.properties.Add(new ValueTuple<string, string>( "BOX", listViewItem.Tag.ToString() + " " + listViewItem.SubItems[1].Text + " " + listViewItem.SubItems[2].Text + " " + listViewItem.SubItems[3].Text + " " + listViewItem.SubItems[4].Text + " " + listViewItem.SubItems[5].Text + " " + listViewItem.SubItems[6].Text + " " + listViewItem.SubItems[7].Text + " " + listViewItem.SubItems[8].Text)) }.Tag ));
|
||||
foreach (var item in generatedModel)
|
||||
{
|
||||
skin.properties.Add(item);
|
||||
}
|
||||
skin.properties.Add(new ValueTuple<string, string>("ANIM", "0x7ff5fc10"));
|
||||
}
|
||||
if (generatedModel != null)
|
||||
{
|
||||
generatedModel.Clear();
|
||||
}
|
||||
|
||||
if (themeName.Tag.ToString() != "")
|
||||
if (!string.IsNullOrEmpty(textThemeName.Text))
|
||||
{
|
||||
mf.properties.Add(new Tuple<string, string>(themeName.Text, themeName.Tag.ToString() ));
|
||||
skin.properties.Add(new ValueTuple<string, string>("THEMENAME", textThemeName.Text));
|
||||
currentLoc.AddLocKey($"IDS_dlcskin{textSkinID.Text}_THEMENAME", textThemeName.Text);
|
||||
}
|
||||
|
||||
mf.properties.Add(new Tuple<string, string>("GAME_FLAGS", "0x18"));
|
||||
mf.properties.Add(new Tuple<string, string>("FREE", "1"));
|
||||
skin.properties.Add(new ValueTuple<string, string>("GAME_FLAGS", "0x18"));
|
||||
skin.properties.Add(new ValueTuple<string, string>("FREE", "1"));
|
||||
|
||||
if (mashupStructure == true)
|
||||
if (mashupStructure)
|
||||
{
|
||||
mf.name = "Skins/" + "dlcskin" + textSkinID.Text + ".png";
|
||||
skin.name = "Skins/" + "dlcskin" + textSkinID.Text + ".png";
|
||||
}
|
||||
else
|
||||
{
|
||||
mf.name = "dlcskin" + textSkinID.Text + ".png";
|
||||
}
|
||||
//mf.type = 0;
|
||||
|
||||
skin.Text = "dlcskin" + textSkinID.Text + ".png";
|
||||
skin.Tag = mf;
|
||||
|
||||
skin.ImageIndex = 2;
|
||||
skin.SelectedImageIndex = 2;
|
||||
|
||||
if (mashupStructure == true)
|
||||
{
|
||||
treeView1.Nodes[skinsFolder].Nodes.Add(skin);
|
||||
}
|
||||
else
|
||||
{
|
||||
treeView1.Nodes.Add(skin);
|
||||
skin.name = "dlcskin" + textSkinID.Text + ".png";
|
||||
}
|
||||
|
||||
displayId d = new displayId();
|
||||
d.id = "IDS_dlcskin" + textSkinID.Text + "_DISPLAYNAME";
|
||||
d.defaultName = textSkinName.Text;
|
||||
|
||||
//currentLoc.ids.names.Add(d.id);
|
||||
|
||||
//foreach (LOC.Language l in currentLoc.langs)
|
||||
// l.names.Add(d.defaultName);
|
||||
|
||||
displayId b = new displayId();
|
||||
b.id = "IDS_dlcskin" + textSkinID.Text + "_THEMENAME";
|
||||
b.defaultName = textThemeName.Text;
|
||||
|
||||
//currentLoc.ids.names.Add(b.id);
|
||||
|
||||
//foreach (LOC.Language l in currentLoc.langs)
|
||||
// l.names.Add(b.defaultName);
|
||||
Close();
|
||||
}
|
||||
else
|
||||
@@ -474,8 +281,8 @@ namespace PckStudio
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//MessageBox.Show("The Skin ID Must be a Unique 8 Digit Number Thats Not Already in Use");
|
||||
MessageBox.Show(ex.ToString());
|
||||
MessageBox.Show("The Skin ID Must be a Unique 8 Digit Number Thats Not Already in Use");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -497,25 +304,12 @@ namespace PckStudio
|
||||
{
|
||||
valid = false;
|
||||
}
|
||||
|
||||
if (valid == false)
|
||||
{
|
||||
textSkinID.ForeColor = Color.Red;
|
||||
}
|
||||
else if (valid == true)
|
||||
if (valid)
|
||||
{
|
||||
textSkinID.ForeColor = Color.Green;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private void textSkinName_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void textThemeName_VisibleChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
textSkinID.ForeColor = Color.Red;
|
||||
}
|
||||
|
||||
private void textThemeName_TextChanged(object sender, EventArgs e)
|
||||
@@ -523,42 +317,38 @@ namespace PckStudio
|
||||
|
||||
}
|
||||
|
||||
private void button2_Click_1(object sender, EventArgs e)
|
||||
private void CreateCustomModel_Click(object sender, EventArgs e)
|
||||
{
|
||||
//Prompt for skin model generator
|
||||
if (MessageBox.Show("Create your own custom skin model?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1) != DialogResult.Yes)
|
||||
return;
|
||||
|
||||
PictureBox preview = new PictureBox();//Creates new picture for generated model preview
|
||||
PictureBox preview = new PictureBox(); //Creates new picture for generated model preview
|
||||
generateModel generate = new generateModel(generatedModel, preview);
|
||||
|
||||
if (generate.ShowDialog() == DialogResult.OK)//Opens Model Generator Dialog
|
||||
if (generate.ShowDialog() == DialogResult.OK) //Opens Model Generator Dialog
|
||||
{
|
||||
comboBoxSkinType.Items.Add((object)"Custom");//Adds skin preset to combobox
|
||||
comboBoxSkinType.Text = "Custom";//Sets combo to custom preset
|
||||
displayBox.Image = preview.Image;//Sets displayBox to created model preview
|
||||
comboBoxSkinType.Items.Add("Custom"); //Adds skin preset to combobox
|
||||
comboBoxSkinType.Text = "Custom"; //Sets combo to custom preset
|
||||
displayBox.Image = preview.Image; //Sets displayBox to created model preview
|
||||
try
|
||||
{
|
||||
using (FileStream stream = new FileStream(Application.StartupPath + "\\temp.png", FileMode.Open, FileAccess.Read))
|
||||
{
|
||||
pictureBoxTexture.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
pictureBoxTexture.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
pictureBoxTexture.Image = Image.FromStream(stream);
|
||||
skinPictureBoxTexture.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
skinPictureBoxTexture.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
skinPictureBoxTexture.Image = Image.FromStream(stream);
|
||||
stream.Close();
|
||||
stream.Dispose();
|
||||
}
|
||||
ofd = Application.StartupPath + "\\temp.png";
|
||||
//Sets texture box
|
||||
pictureBoxTexture.Width = pictureBoxTexture.Height;
|
||||
skinPictureBoxTexture.Width = skinPictureBoxTexture.Height;
|
||||
buttonDone.Enabled = true;
|
||||
labelSelectTexture.Visible = false;
|
||||
if (skinType != "64x64" && skinType != "64x64HD")
|
||||
if (skinType != eSkinType._64x64 && skinType != eSkinType._64x64HD)
|
||||
{
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X - pictureBoxTexture.Width, buttonSkin.Location.Y);
|
||||
skinType = "64x64";
|
||||
buttonSkin.Location = new Point(buttonSkin.Location.X - skinPictureBoxTexture.Width, buttonSkin.Location.Y);
|
||||
skinType = eSkinType._64x64;
|
||||
}
|
||||
|
||||
mf.SetData(File.ReadAllBytes(ofd));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -567,25 +357,20 @@ namespace PckStudio
|
||||
}
|
||||
}
|
||||
|
||||
private void button3_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("Feature not Available in Beta");
|
||||
}
|
||||
|
||||
private void radioButton1_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (radioAUTO.Checked == true)
|
||||
{
|
||||
try
|
||||
{
|
||||
Random random = new Random();
|
||||
int num = random.Next(10000000, 99999999);
|
||||
textSkinID.Text = num.ToString();
|
||||
textSkinID.Enabled = false;
|
||||
|
||||
Random random = new Random();
|
||||
int num = random.Next(10000000, 99999999);
|
||||
textSkinID.Text = num.ToString();
|
||||
textSkinID.Enabled = false;
|
||||
}
|
||||
catch
|
||||
catch(Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -607,22 +392,7 @@ namespace PckStudio
|
||||
ofdd.Title = "Select a PNG File";
|
||||
if (ofdd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
ofd = ofdd.FileName;
|
||||
checkImage();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void label4_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (var ofdd = new OpenFileDialog())
|
||||
{
|
||||
ofdd.Filter = "PNG Files | *.png";
|
||||
ofdd.Title = "Select a PNG File";
|
||||
if (ofdd.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
ofd = ofdd.FileName;
|
||||
checkImage();
|
||||
checkImage(Image.FromFile(ofdd.FileName));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -630,7 +400,7 @@ namespace PckStudio
|
||||
private void radioSERVER_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (radioSERVER.Checked == true)
|
||||
if (radioSERVER.Checked)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,19 +137,10 @@
|
||||
<metadata name="contextMenuSkin.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<data name="contextMenuSkin.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>116, 26</value>
|
||||
</data>
|
||||
<data name=">>contextMenuSkin.Name" xml:space="preserve">
|
||||
<value>contextMenuSkin</value>
|
||||
</data>
|
||||
<data name=">>contextMenuSkin.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="replaceToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wgAADsIBFShKgAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAAC/SURBVDhPlVHB
|
||||
vgAADr4B6kKxwAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAAC/SURBVDhPlVHB
|
||||
DQMhDEOIfwfoOuzFoPxhAd5c6/SMAgq0tRQFmdgXfA5IKUkBMcbHPxyJCxVCkK7rm+EwaK1dQO9dClzO
|
||||
WfpOTM7hy1oMGNvY4pucxNY2p6cAWzFw2oZuMmiJweGeHM634UdLg50YwD05vQ2fYoaoDTEMrJyIfw3R
|
||||
4qYQWUZgg6OwlDJyMH8LcwF2T8FZ5kYQb4Lde/9Et8S6Dy1z0LUGi7VpWGvl3Lw2V98ZrtwIUYktwwPn
|
||||
@@ -162,22 +153,22 @@
|
||||
<data name="replaceToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Replace</value>
|
||||
</data>
|
||||
<data name="contextMenuSkin.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>116, 26</value>
|
||||
</data>
|
||||
<data name=">>contextMenuSkin.Name" xml:space="preserve">
|
||||
<value>contextMenuSkin</value>
|
||||
</data>
|
||||
<data name=">>contextMenuSkin.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<metadata name="contextMenuCape.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>172, 17</value>
|
||||
</metadata>
|
||||
<data name="contextMenuCape.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>127, 26</value>
|
||||
</data>
|
||||
<data name=">>contextMenuCape.Name" xml:space="preserve">
|
||||
<value>contextMenuCape</value>
|
||||
</data>
|
||||
<data name=">>contextMenuCape.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="replaceToolStripMenuItem1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wAAADsABataJCQAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xOdTWsmQAAAA3SURBVDhPY/j/
|
||||
vAAADrwBlbxySQAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xOdTWsmQAAAA3SURBVDhPY/j/
|
||||
/z9FGKsgGIsCKWSMTQ0QYxUE45FmALpiYvFwMgAbxqIYG8YqCMajBhCJ/zMAAPGwpV/Xje8RAAAAAElF
|
||||
TkSuQmCC
|
||||
</value>
|
||||
@@ -188,6 +179,15 @@
|
||||
<data name="replaceToolStripMenuItem1.Text" xml:space="preserve">
|
||||
<value>Add Cape</value>
|
||||
</data>
|
||||
<data name="contextMenuCape.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>127, 26</value>
|
||||
</data>
|
||||
<data name=">>contextMenuCape.Name" xml:space="preserve">
|
||||
<value>contextMenuCape</value>
|
||||
</data>
|
||||
<data name=">>contextMenuCape.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="buttonDone.Enabled" type="System.Boolean, mscorlib">
|
||||
<value>False</value>
|
||||
</data>
|
||||
@@ -628,52 +628,52 @@
|
||||
<data name=">>radioSERVER.ZOrder" xml:space="preserve">
|
||||
<value>2</value>
|
||||
</data>
|
||||
<data name="pictureBoxWithInterpolationMode1.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<data name="capePictureBox.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="pictureBoxWithInterpolationMode1.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<data name="capePictureBox.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>387, 152</value>
|
||||
</data>
|
||||
<data name="pictureBoxWithInterpolationMode1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<data name="capePictureBox.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>208, 88</value>
|
||||
</data>
|
||||
<data name="pictureBoxWithInterpolationMode1.TabIndex" type="System.Int32, mscorlib">
|
||||
<data name="capePictureBox.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>109</value>
|
||||
</data>
|
||||
<data name=">>pictureBoxWithInterpolationMode1.Name" xml:space="preserve">
|
||||
<value>pictureBoxWithInterpolationMode1</value>
|
||||
<data name=">>capePictureBox.Name" xml:space="preserve">
|
||||
<value>capePictureBox</value>
|
||||
</data>
|
||||
<data name=">>pictureBoxWithInterpolationMode1.Type" xml:space="preserve">
|
||||
<data name=">>capePictureBox.Type" xml:space="preserve">
|
||||
<value>PckStudio.PictureBoxWithInterpolationMode, PCK Studio, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>pictureBoxWithInterpolationMode1.Parent" xml:space="preserve">
|
||||
<data name=">>capePictureBox.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pictureBoxWithInterpolationMode1.ZOrder" xml:space="preserve">
|
||||
<data name=">>capePictureBox.ZOrder" xml:space="preserve">
|
||||
<value>11</value>
|
||||
</data>
|
||||
<data name="pictureBoxTexture.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<data name="skinPictureBoxTexture.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
|
||||
<value>None</value>
|
||||
</data>
|
||||
<data name="pictureBoxTexture.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<data name="skinPictureBoxTexture.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>217, 152</value>
|
||||
</data>
|
||||
<data name="pictureBoxTexture.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<data name="skinPictureBoxTexture.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>164, 82</value>
|
||||
</data>
|
||||
<data name="pictureBoxTexture.TabIndex" type="System.Int32, mscorlib">
|
||||
<data name="skinPictureBoxTexture.TabIndex" type="System.Int32, mscorlib">
|
||||
<value>108</value>
|
||||
</data>
|
||||
<data name=">>pictureBoxTexture.Name" xml:space="preserve">
|
||||
<value>pictureBoxTexture</value>
|
||||
<data name=">>skinPictureBoxTexture.Name" xml:space="preserve">
|
||||
<value>skinPictureBoxTexture</value>
|
||||
</data>
|
||||
<data name=">>pictureBoxTexture.Type" xml:space="preserve">
|
||||
<data name=">>skinPictureBoxTexture.Type" xml:space="preserve">
|
||||
<value>PckStudio.PictureBoxWithInterpolationMode, PCK Studio, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null</value>
|
||||
</data>
|
||||
<data name=">>pictureBoxTexture.Parent" xml:space="preserve">
|
||||
<data name=">>skinPictureBoxTexture.Parent" xml:space="preserve">
|
||||
<value>$this</value>
|
||||
</data>
|
||||
<data name=">>pictureBoxTexture.ZOrder" xml:space="preserve">
|
||||
<data name=">>skinPictureBoxTexture.ZOrder" xml:space="preserve">
|
||||
<value>12</value>
|
||||
</data>
|
||||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
|
||||
@@ -106,9 +106,9 @@
|
||||
this.labelTheme = new System.Windows.Forms.Label();
|
||||
this.listViewBGs = new System.Windows.Forms.ListView();
|
||||
this.tableLayoutPanelMain = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.OpenJSONButton = new System.Windows.Forms.Button();
|
||||
this.displayBox = new System.Windows.Forms.PictureBox();
|
||||
this.texturePreview = new System.Windows.Forms.PictureBox();
|
||||
this.OpenJSONButton = new System.Windows.Forms.Button();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.tabBody.SuspendLayout();
|
||||
this.tabPage1.SuspendLayout();
|
||||
@@ -766,6 +766,14 @@
|
||||
this.tableLayoutPanelMain.Controls.Add(this.buttonDone, 8, 19);
|
||||
this.tableLayoutPanelMain.Name = "tableLayoutPanelMain";
|
||||
//
|
||||
// OpenJSONButton
|
||||
//
|
||||
resources.ApplyResources(this.OpenJSONButton, "OpenJSONButton");
|
||||
this.OpenJSONButton.ForeColor = System.Drawing.Color.White;
|
||||
this.OpenJSONButton.Name = "OpenJSONButton";
|
||||
this.OpenJSONButton.UseVisualStyleBackColor = true;
|
||||
this.OpenJSONButton.Click += new System.EventHandler(this.OpenJSONButton_Click);
|
||||
//
|
||||
// displayBox
|
||||
//
|
||||
this.displayBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
@@ -785,14 +793,6 @@
|
||||
this.tableLayoutPanelMain.SetRowSpan(this.texturePreview, 5);
|
||||
this.texturePreview.TabStop = false;
|
||||
//
|
||||
// OpenJSONButton
|
||||
//
|
||||
resources.ApplyResources(this.OpenJSONButton, "OpenJSONButton");
|
||||
this.OpenJSONButton.ForeColor = System.Drawing.Color.White;
|
||||
this.OpenJSONButton.Name = "OpenJSONButton";
|
||||
this.OpenJSONButton.UseVisualStyleBackColor = true;
|
||||
this.OpenJSONButton.Click += new System.EventHandler(this.OpenJSONButton_Click);
|
||||
//
|
||||
// generateModel
|
||||
//
|
||||
resources.ApplyResources(this, "$this");
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace PckStudio
|
||||
|
||||
string direction;
|
||||
|
||||
List<object[]> boxes;
|
||||
List<ValueTuple<string, string>> boxes;
|
||||
|
||||
ListView storeData = new ListView();
|
||||
|
||||
@@ -87,10 +87,9 @@ namespace PckStudio
|
||||
|
||||
|
||||
//Initialization
|
||||
public generateModel(List<object[]> boxesIn, PictureBox preview)
|
||||
public generateModel(List<ValueTuple<string, string>> boxesIn, PictureBox preview)
|
||||
{
|
||||
InitializeComponent();
|
||||
boxes = new List<object[]>();
|
||||
boxes = boxesIn;
|
||||
skinPreview = preview;
|
||||
direction = "front";
|
||||
@@ -125,9 +124,9 @@ namespace PckStudio
|
||||
//loads data from mode list
|
||||
private void loadData()
|
||||
{
|
||||
foreach (object[] box in boxes)
|
||||
foreach (var box in boxes)
|
||||
{
|
||||
if (box[0].ToString() == "BOX")
|
||||
if (box.Item1 == "BOX")
|
||||
{
|
||||
int space = 0;
|
||||
string modelClass = "";
|
||||
@@ -140,7 +139,7 @@ namespace PckStudio
|
||||
string xO = "";
|
||||
string yO = "";
|
||||
|
||||
foreach (char letter in box[1].ToString())
|
||||
foreach (char letter in box.Item2)
|
||||
{
|
||||
if (letter.ToString() == " ")
|
||||
{
|
||||
@@ -680,19 +679,19 @@ namespace PckStudio
|
||||
double num = (float)double.Parse(listViewItem.SubItems[6].Text) * 2;
|
||||
double x = (float)double.Parse(listViewItem.SubItems[7].Text) * 2;
|
||||
double y = (float)double.Parse(listViewItem.SubItems[8].Text) * 2;
|
||||
graphics.FillRectangle((Brush)new SolidBrush(listViewItem.ForeColor), (float)(x + num), (float)y, (float)(width), (float)(num));
|
||||
graphics.FillRectangle((Brush)new SolidBrush(listViewItem.ForeColor), (float)(x + num + width), (float)y, (float)width, (float)num);
|
||||
graphics.FillRectangle((Brush)new SolidBrush(listViewItem.ForeColor), (float)(x), (float)(y) + (float)(num), (float)(num), (float)(height));
|
||||
graphics.FillRectangle((Brush)new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num), (float)(y) + (float)(num), (float)(width), (float)(height));
|
||||
graphics.FillRectangle(new SolidBrush(listViewItem.ForeColor), (float)(x + num), (float)y, (float)(width), (float)(num));
|
||||
graphics.FillRectangle(new SolidBrush(listViewItem.ForeColor), (float)(x + num + width), (float)y, (float)width, (float)num);
|
||||
graphics.FillRectangle(new SolidBrush(listViewItem.ForeColor), (float)(x), (float)(y) + (float)(num), (float)(num), (float)(height));
|
||||
graphics.FillRectangle(new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num), (float)(y) + (float)(num), (float)(width), (float)(height));
|
||||
if (listViewItem.Tag.ToString() != "HEAD")
|
||||
{
|
||||
graphics.FillRectangle((Brush)new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num) + (float)(width), (float)(y) + (float)(num), (float)(width), (float)(height));
|
||||
graphics.FillRectangle((Brush)new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num) + (float)(width) + (float)(width), (float)(y) + (float)(num), (float)(num), (float)(height));
|
||||
graphics.FillRectangle(new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num) + (float)(width), (float)(y) + (float)(num), (float)(width), (float)(height));
|
||||
graphics.FillRectangle(new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num) + (float)(width) + (float)(width), (float)(y) + (float)(num), (float)(num), (float)(height));
|
||||
}
|
||||
else
|
||||
{
|
||||
graphics.FillRectangle((Brush)new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num) + (float)(width) + (float)(width), (float)(y) + (float)(num), (float)(num), (float)(height));
|
||||
graphics.FillRectangle((Brush)new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num) + (float)(width), (float)(y) + (float)(num), (float)(width), (float)(height));
|
||||
graphics.FillRectangle(new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num) + (float)(width) + (float)(width), (float)(y) + (float)(num), (float)(num), (float)(height));
|
||||
graphics.FillRectangle(new SolidBrush(listViewItem.ForeColor), (float)(x) + (float)(num) + (float)(width), (float)(y) + (float)(num), (float)(width), (float)(height));
|
||||
}
|
||||
}
|
||||
catch
|
||||
@@ -709,14 +708,11 @@ namespace PckStudio
|
||||
{
|
||||
try
|
||||
{
|
||||
if (listViewItem.Tag == null)
|
||||
this.buttonDone.Enabled = false;
|
||||
else
|
||||
this.buttonDone.Enabled = true;
|
||||
buttonDone.Enabled = !(listViewItem.Tag == null);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Console.WriteLine(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1558,7 +1554,8 @@ namespace PckStudio
|
||||
Bitmap bitmap1 = new Bitmap(this.displayBox.Width, this.displayBox.Height);
|
||||
foreach (ListViewItem listViewItem in listViewBoxes.Items)
|
||||
{
|
||||
boxes.Add(new object[2] { "BOX", listViewItem.Tag.ToString() + " " + listViewItem.SubItems[1].Text + " " + listViewItem.SubItems[2].Text + " " + listViewItem.SubItems[3].Text + " " + listViewItem.SubItems[4].Text + " " + listViewItem.SubItems[5].Text + " " + listViewItem.SubItems[6].Text + " " + listViewItem.SubItems[7].Text + " " + listViewItem.SubItems[8].Text });
|
||||
boxes.Add(new ValueTuple<string, string>("BOX",
|
||||
listViewItem.Tag.ToString() + " " + listViewItem.SubItems[1].Text + " " + listViewItem.SubItems[2].Text + " " + listViewItem.SubItems[3].Text + " " + listViewItem.SubItems[4].Text + " " + listViewItem.SubItems[5].Text + " " + listViewItem.SubItems[6].Text + " " + listViewItem.SubItems[7].Text + " " + listViewItem.SubItems[8].Text));
|
||||
|
||||
//mf.entries.Add(new object[2] { (object) "BOX", new ListViewItem() { Tag = ((object) (listViewItem.Tag.ToString() + " " + listViewItem.SubItems[1].Text + " " + listViewItem.SubItems[2].Text + " " + listViewItem.SubItems[3].Text + " " + listViewItem.SubItems[4].Text + " " + listViewItem.SubItems[5].Text + " " + listViewItem.SubItems[6].Text + " " + listViewItem.SubItems[7].Text + " " + listViewItem.SubItems[8].Text)) }.Tag });
|
||||
using (Graphics graphics = Graphics.FromImage((Image)bitmap1))
|
||||
@@ -1607,28 +1604,28 @@ namespace PckStudio
|
||||
}
|
||||
}
|
||||
//Body Offsets
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("HEAD Y " + this.offsetHead.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("BODY Y " + this.offsetBody.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("ARM0 Y " + this.offsetArms.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("ARM1 Y " + this.offsetArms.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("LEG0 Y " + this.offsetLegs.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("LEG1 Y " + this.offsetLegs.Text)) }.Tag });
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "HEAD Y " + offsetHead.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "BODY Y " + offsetBody.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "ARM0 Y " + offsetArms.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "ARM1 Y " + offsetArms.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "LEG0 Y " + offsetLegs.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "LEG1 Y " + offsetLegs.Text));
|
||||
//Armor Offsets
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("HELMET Y " + this.offsetHelmet.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("TOOL0 Y " + this.offsetTool.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("TOOL1 Y " + this.offsetTool.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("PANTS0 Y " + this.offsetPants.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("PANTS1 Y " + this.offsetPants.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("BOOTS0 Y " + this.offsetBoots.Text)) }.Tag });
|
||||
boxes.Add(new object[2] { (object)"OFFSET", new ListViewItem() { Tag = ((object)("BOOTS1 Y " + this.offsetBoots.Text)) }.Tag });
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "HELMET Y " + offsetHelmet.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "TOOL0 Y " + offsetTool.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "TOOL1 Y " + offsetTool.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "PANTS0 Y " + offsetPants.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "PANTS1 Y " + offsetPants.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "BOOTS0 Y " + offsetBoots.Text));
|
||||
boxes.Add(new ValueTuple<string, string>("OFFSET", "BOOTS1 Y " + offsetBoots.Text));
|
||||
|
||||
Bitmap bitmap2 = new Bitmap(64, 64);
|
||||
using (Graphics graphics = Graphics.FromImage((Image)bitmap2))
|
||||
using (Graphics graphics = Graphics.FromImage(bitmap2))
|
||||
{
|
||||
graphics.DrawImage(texturePreview.Image, 0, 0, 64, 64);
|
||||
graphics.InterpolationMode = InterpolationMode.NearestNeighbor;
|
||||
}
|
||||
texturePreview.Image = (Image)bitmap2;
|
||||
texturePreview.Image = bitmap2;
|
||||
try
|
||||
{
|
||||
using (FileStream stream = new FileStream(Application.StartupPath + "\\temp.png", FileMode.Create, FileAccess.Write))
|
||||
@@ -1656,10 +1653,7 @@ namespace PckStudio
|
||||
//Deciphers wether to auto-generate model texture or not
|
||||
private void checkTextureGenerate_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
if (this.autoTexture)
|
||||
this.autoTexture = false;
|
||||
else
|
||||
this.autoTexture = true;
|
||||
autoTexture = checkTextureGenerate.Checked;
|
||||
}
|
||||
|
||||
|
||||
@@ -1667,8 +1661,8 @@ namespace PckStudio
|
||||
private void listView1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
ColorDialog colorDialog = new ColorDialog();
|
||||
int num = (int)colorDialog.ShowDialog();
|
||||
this.selected.ForeColor = colorDialog.Color;
|
||||
if (colorDialog.ShowDialog() == DialogResult.OK)
|
||||
selected.ForeColor = colorDialog.Color;
|
||||
render();
|
||||
}
|
||||
|
||||
|
||||
@@ -456,7 +456,7 @@
|
||||
<data name="createToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wAAADsABataJCQAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAABSSURBVDhP5c0x
|
||||
vwAADr8BOAVTJAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAABSSURBVDhP5c0x
|
||||
DsAgDENRxt7/wmkNSpRGf0CCCZAegxNMM7MlGMp3dIU6dxhKf/QMNxRogeQC8ivw5Vn7C0heJlFA+kL5
|
||||
jWAohxRkde4wnGftBS90axNmphIGAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
@@ -470,7 +470,7 @@
|
||||
<data name="cloneToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
vwAADr8BOAVTJAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAAHbSURBVDhPYyjZ
|
||||
vgAADr4B6kKxwAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAAHbSURBVDhPYyjZ
|
||||
5F622bt8o1fmYpvMxdY5691T5prlrnJq2BsKFM9Z6Zix1DZruX3yAovAPrX8NS4MJZs98la7de2M/I8E
|
||||
khdZJsw3m3IwacL+hIoNPkkLDEpWumYus8tf6cTQuSc6zFZj7slckEIGBhD6/z/WUr1oq0fDvtApB1Mm
|
||||
H0uOtFaNmaKbPM8iykaTIcpGPSs3K8JWHVlDpK1q4gLDcFv1rHXOIfbq1UGmIfZqQJWVoVYgaQSAaYCD
|
||||
@@ -491,7 +491,7 @@
|
||||
<data name="deleteToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wAAADsABataJCQAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAACESURBVDhPlY0B
|
||||
vwAADr8BOAVTJAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAACESURBVDhPlY0B
|
||||
DoAgDAP3Dj7r09WTkqGUgJfUxtrOmHFEnL0U76FBqW8PZXmk/9uONEsIb3gsNRzoL/+R5hWC759mGsbQ
|
||||
DnzdZbhmiSvhLsM1S1wJdxmuWeJKuMtwzRJXwl2Ga5a4Eu4yXLPElXCX4Zol/WCl6YGdI62n2Zv2cSXV
|
||||
byIunLh7mD2ySLcAAAAASUVORK5CYII=
|
||||
@@ -506,7 +506,7 @@
|
||||
<data name="changeColorToolStripMenuItem.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wAAADsABataJCQAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAAFhSURBVFhH7ZY/
|
||||
vwAADr8BOAVTJAAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAAFhSURBVFhH7ZY/
|
||||
S8RAEMXHW23zDexFkNSSTyDYijZyYq2V4BWBmPZaK7/B1fZiK1iIrRxod4r/Gq38N+7L7B5LyFllVuF8
|
||||
8Mhm55HfZJZAaBq1Zs2yjKx5C+7OiLF223EEYM+CeVaMJlxJXdt1ONZRJuBH/mHo1sPfDY2iwcO39naj
|
||||
35CUkibBo4z+H/6n4EcdetSGzwHQ79BLHf5q6EYbvgTAmaFhHQ67zy2TaPvaAdy+5XUTHMexSHTpsq1r
|
||||
@@ -2475,9 +2475,6 @@
|
||||
<data name=">>buttonDone.ZOrder" xml:space="preserve">
|
||||
<value>45</value>
|
||||
</data>
|
||||
<data name="tableLayoutPanelMain.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
|
||||
<value>Fill</value>
|
||||
</data>
|
||||
<data name="tableLayoutPanelMain.Location" type="System.Drawing.Point, System.Drawing">
|
||||
<value>20, 60</value>
|
||||
</data>
|
||||
|
||||
@@ -28,286 +28,298 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AnimationEditor));
|
||||
this.treeView1 = new System.Windows.Forms.TreeView();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.addFrameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.removeFrameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.bulkAnimationSpeedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.importJavaAnimationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.changeTileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.metroCheckBox1 = new MetroFramework.Controls.MetroCheckBox();
|
||||
this.metroButton1 = new MetroFramework.Controls.MetroButton();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.metroButton2 = new MetroFramework.Controls.MetroButton();
|
||||
this.tileLabel = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroCheckBox2 = new MetroFramework.Controls.MetroCheckBox();
|
||||
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
|
||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||
this.pictureBoxWithInterpolationMode1 = new PckStudio.PictureBoxWithInterpolationMode();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.menuStrip.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWithInterpolationMode1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// treeView1
|
||||
//
|
||||
this.treeView1.AllowDrop = true;
|
||||
this.treeView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.treeView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.treeView1.ForeColor = System.Drawing.Color.White;
|
||||
this.treeView1.Location = new System.Drawing.Point(20, 84);
|
||||
this.treeView1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.treeView1.MaximumSize = new System.Drawing.Size(205, 350);
|
||||
this.treeView1.Name = "treeView1";
|
||||
this.treeView1.Size = new System.Drawing.Size(165, 196);
|
||||
this.treeView1.TabIndex = 15;
|
||||
this.treeView1.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.treeView1_ItemDrag);
|
||||
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
|
||||
this.treeView1.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_doubleClick);
|
||||
this.treeView1.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeView1_DragDrop);
|
||||
this.treeView1.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView1_DragEnter);
|
||||
this.treeView1.DragOver += new System.Windows.Forms.DragEventHandler(this.treeView1_DragOver);
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AnimationEditor));
|
||||
this.treeView1 = new System.Windows.Forms.TreeView();
|
||||
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.addFrameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.removeFrameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.saveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.bulkAnimationSpeedToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.importJavaAnimationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.changeTileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.metroCheckBox1 = new MetroFramework.Controls.MetroCheckBox();
|
||||
this.metroButton1 = new MetroFramework.Controls.MetroButton();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.metroButton2 = new MetroFramework.Controls.MetroButton();
|
||||
this.tileLabel = new MetroFramework.Controls.MetroLabel();
|
||||
this.metroCheckBox2 = new MetroFramework.Controls.MetroCheckBox();
|
||||
this.metroLabel1 = new MetroFramework.Controls.MetroLabel();
|
||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||
this.pictureBoxWithInterpolationMode1 = new PckStudio.PictureBoxWithInterpolationMode();
|
||||
this.contextMenuStrip1.SuspendLayout();
|
||||
this.menuStrip.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWithInterpolationMode1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// treeView1
|
||||
//
|
||||
this.treeView1.AllowDrop = true;
|
||||
this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.treeView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.treeView1.ContextMenuStrip = this.contextMenuStrip1;
|
||||
this.treeView1.ForeColor = System.Drawing.Color.White;
|
||||
this.treeView1.Location = new System.Drawing.Point(20, 84);
|
||||
this.treeView1.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.treeView1.MaximumSize = new System.Drawing.Size(205, 350);
|
||||
this.treeView1.Name = "treeView1";
|
||||
this.treeView1.Size = new System.Drawing.Size(165, 202);
|
||||
this.treeView1.TabIndex = 15;
|
||||
this.treeView1.ItemDrag += new System.Windows.Forms.ItemDragEventHandler(this.treeView1_ItemDrag);
|
||||
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
|
||||
this.treeView1.NodeMouseDoubleClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.treeView1_doubleClick);
|
||||
this.treeView1.DragDrop += new System.Windows.Forms.DragEventHandler(this.treeView1_DragDrop);
|
||||
this.treeView1.DragEnter += new System.Windows.Forms.DragEventHandler(this.treeView1_DragEnter);
|
||||
this.treeView1.DragOver += new System.Windows.Forms.DragEventHandler(this.treeView1_DragOver);
|
||||
//
|
||||
// contextMenuStrip1
|
||||
//
|
||||
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.addFrameToolStripMenuItem,
|
||||
this.removeFrameToolStripMenuItem});
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(154, 48);
|
||||
//
|
||||
// addFrameToolStripMenuItem
|
||||
//
|
||||
this.addFrameToolStripMenuItem.Image = global::PckStudio.Properties.Resources.ExportFile;
|
||||
this.addFrameToolStripMenuItem.Name = "addFrameToolStripMenuItem";
|
||||
this.addFrameToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
|
||||
this.addFrameToolStripMenuItem.Text = "Add Frame";
|
||||
this.addFrameToolStripMenuItem.Click += new System.EventHandler(this.addFrameToolStripMenuItem_Click);
|
||||
//
|
||||
// removeFrameToolStripMenuItem
|
||||
//
|
||||
this.removeFrameToolStripMenuItem.Image = global::PckStudio.Properties.Resources.Del;
|
||||
this.removeFrameToolStripMenuItem.Name = "removeFrameToolStripMenuItem";
|
||||
this.removeFrameToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
|
||||
this.removeFrameToolStripMenuItem.Text = "Remove Frame";
|
||||
this.removeFrameToolStripMenuItem.Click += new System.EventHandler(this.removeFrameToolStripMenuItem_Click);
|
||||
//
|
||||
// menuStrip
|
||||
//
|
||||
this.menuStrip.AutoSize = false;
|
||||
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.contextMenuStrip1.Name = "contextMenuStrip1";
|
||||
this.contextMenuStrip1.Size = new System.Drawing.Size(154, 48);
|
||||
//
|
||||
// addFrameToolStripMenuItem
|
||||
//
|
||||
this.addFrameToolStripMenuItem.Image = global::PckStudio.Properties.Resources.ExportFile;
|
||||
this.addFrameToolStripMenuItem.Name = "addFrameToolStripMenuItem";
|
||||
this.addFrameToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
|
||||
this.addFrameToolStripMenuItem.Text = "Add Frame";
|
||||
this.addFrameToolStripMenuItem.Click += new System.EventHandler(this.addFrameToolStripMenuItem_Click);
|
||||
//
|
||||
// removeFrameToolStripMenuItem
|
||||
//
|
||||
this.removeFrameToolStripMenuItem.Image = global::PckStudio.Properties.Resources.Del;
|
||||
this.removeFrameToolStripMenuItem.Name = "removeFrameToolStripMenuItem";
|
||||
this.removeFrameToolStripMenuItem.Size = new System.Drawing.Size(153, 22);
|
||||
this.removeFrameToolStripMenuItem.Text = "Remove Frame";
|
||||
this.removeFrameToolStripMenuItem.Click += new System.EventHandler(this.removeFrameToolStripMenuItem_Click);
|
||||
//
|
||||
// menuStrip
|
||||
//
|
||||
this.menuStrip.AutoSize = false;
|
||||
this.menuStrip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
|
||||
this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.fileToolStripMenuItem,
|
||||
this.editToolStripMenuItem,
|
||||
this.helpToolStripMenuItem});
|
||||
this.menuStrip.Location = new System.Drawing.Point(20, 60);
|
||||
this.menuStrip.Name = "menuStrip";
|
||||
this.menuStrip.Size = new System.Drawing.Size(360, 24);
|
||||
this.menuStrip.TabIndex = 14;
|
||||
this.menuStrip.Text = "menuStrip1";
|
||||
//
|
||||
// fileToolStripMenuItem
|
||||
//
|
||||
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.menuStrip.Location = new System.Drawing.Point(20, 60);
|
||||
this.menuStrip.Name = "menuStrip";
|
||||
this.menuStrip.Size = new System.Drawing.Size(372, 24);
|
||||
this.menuStrip.TabIndex = 14;
|
||||
this.menuStrip.Text = "menuStrip1";
|
||||
//
|
||||
// fileToolStripMenuItem
|
||||
//
|
||||
this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.saveToolStripMenuItem1});
|
||||
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
|
||||
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
|
||||
this.fileToolStripMenuItem.Text = "File";
|
||||
//
|
||||
// saveToolStripMenuItem1
|
||||
//
|
||||
this.saveToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem1.Image")));
|
||||
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
|
||||
this.saveToolStripMenuItem1.Size = new System.Drawing.Size(98, 22);
|
||||
this.saveToolStripMenuItem1.Text = "Save";
|
||||
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
|
||||
//
|
||||
// editToolStripMenuItem
|
||||
//
|
||||
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.fileToolStripMenuItem.ForeColor = System.Drawing.Color.White;
|
||||
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
|
||||
this.fileToolStripMenuItem.Text = "File";
|
||||
//
|
||||
// saveToolStripMenuItem1
|
||||
//
|
||||
this.saveToolStripMenuItem1.Image = ((System.Drawing.Image)(resources.GetObject("saveToolStripMenuItem1.Image")));
|
||||
this.saveToolStripMenuItem1.Name = "saveToolStripMenuItem1";
|
||||
this.saveToolStripMenuItem1.Size = new System.Drawing.Size(98, 22);
|
||||
this.saveToolStripMenuItem1.Text = "Save";
|
||||
this.saveToolStripMenuItem1.Click += new System.EventHandler(this.saveToolStripMenuItem1_Click);
|
||||
//
|
||||
// editToolStripMenuItem
|
||||
//
|
||||
this.editToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.bulkAnimationSpeedToolStripMenuItem,
|
||||
this.importJavaAnimationToolStripMenuItem,
|
||||
this.changeTileToolStripMenuItem});
|
||||
this.editToolStripMenuItem.ForeColor = System.Drawing.Color.White;
|
||||
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
||||
this.editToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
|
||||
this.editToolStripMenuItem.Text = "Tools";
|
||||
//
|
||||
// bulkAnimationSpeedToolStripMenuItem
|
||||
//
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Image = global::PckStudio.Properties.Resources.clock;
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Name = "bulkAnimationSpeedToolStripMenuItem";
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Text = "Set Bulk Animation Speed";
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Click += new System.EventHandler(this.bulkAnimationSpeedToolStripMenuItem_Click);
|
||||
//
|
||||
// importJavaAnimationToolStripMenuItem
|
||||
//
|
||||
this.importJavaAnimationToolStripMenuItem.Image = global::PckStudio.Properties.Resources.ExportFile;
|
||||
this.importJavaAnimationToolStripMenuItem.Name = "importJavaAnimationToolStripMenuItem";
|
||||
this.importJavaAnimationToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
|
||||
this.importJavaAnimationToolStripMenuItem.Text = "Import Java Animation";
|
||||
this.importJavaAnimationToolStripMenuItem.Click += new System.EventHandler(this.importJavaAnimationToolStripMenuItem_Click);
|
||||
//
|
||||
// changeTileToolStripMenuItem
|
||||
//
|
||||
this.changeTileToolStripMenuItem.Image = global::PckStudio.Properties.Resources.changeTile;
|
||||
this.changeTileToolStripMenuItem.Name = "changeTileToolStripMenuItem";
|
||||
this.changeTileToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
|
||||
this.changeTileToolStripMenuItem.Text = "Change Tile";
|
||||
this.changeTileToolStripMenuItem.Click += new System.EventHandler(this.changeTileToolStripMenuItem_Click);
|
||||
//
|
||||
// helpToolStripMenuItem
|
||||
//
|
||||
this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.White;
|
||||
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
||||
this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
|
||||
this.helpToolStripMenuItem.Text = "Help";
|
||||
this.helpToolStripMenuItem.Click += new System.EventHandler(this.helpToolStripMenuItem_Click);
|
||||
//
|
||||
// metroCheckBox1
|
||||
//
|
||||
this.metroCheckBox1.AutoSize = true;
|
||||
this.metroCheckBox1.Location = new System.Drawing.Point(182, 312);
|
||||
this.metroCheckBox1.Name = "metroCheckBox1";
|
||||
this.metroCheckBox1.Size = new System.Drawing.Size(204, 15);
|
||||
this.metroCheckBox1.TabIndex = 17;
|
||||
this.metroCheckBox1.Text = "Interpolates (not simulated above)";
|
||||
this.metroCheckBox1.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroCheckBox1.UseSelectable = true;
|
||||
//
|
||||
// metroButton1
|
||||
//
|
||||
this.metroButton1.Location = new System.Drawing.Point(182, 286);
|
||||
this.metroButton1.Name = "metroButton1";
|
||||
this.metroButton1.Size = new System.Drawing.Size(99, 24);
|
||||
this.metroButton1.TabIndex = 18;
|
||||
this.metroButton1.Text = "Play Animation";
|
||||
this.metroButton1.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroButton1.UseSelectable = true;
|
||||
this.metroButton1.Click += new System.EventHandler(this.metroButton1_Click);
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Interval = 1;
|
||||
this.timer1.Tick += new System.EventHandler(this.animate);
|
||||
//
|
||||
// metroButton2
|
||||
//
|
||||
this.metroButton2.Enabled = false;
|
||||
this.metroButton2.Location = new System.Drawing.Point(287, 286);
|
||||
this.metroButton2.Name = "metroButton2";
|
||||
this.metroButton2.Size = new System.Drawing.Size(99, 24);
|
||||
this.metroButton2.TabIndex = 19;
|
||||
this.metroButton2.Text = "Stop Animation";
|
||||
this.metroButton2.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroButton2.UseSelectable = true;
|
||||
this.metroButton2.Click += new System.EventHandler(this.metroButton2_Click);
|
||||
//
|
||||
// tileLabel
|
||||
//
|
||||
this.tileLabel.AutoSize = true;
|
||||
this.tileLabel.Location = new System.Drawing.Point(6, 286);
|
||||
this.tileLabel.MinimumSize = new System.Drawing.Size(170, 19);
|
||||
this.tileLabel.Name = "tileLabel";
|
||||
this.tileLabel.Size = new System.Drawing.Size(57, 19);
|
||||
this.tileLabel.TabIndex = 20;
|
||||
this.tileLabel.Text = "tileLabel";
|
||||
this.tileLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// metroCheckBox2
|
||||
//
|
||||
this.metroCheckBox2.AutoSize = true;
|
||||
this.metroCheckBox2.Location = new System.Drawing.Point(6, 308);
|
||||
this.metroCheckBox2.Name = "metroCheckBox2";
|
||||
this.metroCheckBox2.Size = new System.Drawing.Size(128, 15);
|
||||
this.metroCheckBox2.TabIndex = 21;
|
||||
this.metroCheckBox2.Text = "Is Mip Map Texture?";
|
||||
this.metroCheckBox2.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroCheckBox2.UseSelectable = true;
|
||||
this.metroCheckBox2.CheckedChanged += new System.EventHandler(this.metroCheckBox2_CheckedChanged);
|
||||
//
|
||||
// metroLabel1
|
||||
//
|
||||
this.metroLabel1.AutoSize = true;
|
||||
this.metroLabel1.Location = new System.Drawing.Point(7, 326);
|
||||
this.metroLabel1.Name = "metroLabel1";
|
||||
this.metroLabel1.Size = new System.Drawing.Size(99, 19);
|
||||
this.metroLabel1.TabIndex = 22;
|
||||
this.metroLabel1.Text = "Mip Map Level:";
|
||||
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroLabel1.Visible = false;
|
||||
//
|
||||
// numericUpDown1
|
||||
//
|
||||
this.numericUpDown1.BackColor = System.Drawing.Color.Black;
|
||||
this.numericUpDown1.ForeColor = System.Drawing.SystemColors.Window;
|
||||
this.numericUpDown1.Location = new System.Drawing.Point(113, 326);
|
||||
this.numericUpDown1.Maximum = new decimal(new int[] {
|
||||
this.editToolStripMenuItem.ForeColor = System.Drawing.Color.White;
|
||||
this.editToolStripMenuItem.Name = "editToolStripMenuItem";
|
||||
this.editToolStripMenuItem.Size = new System.Drawing.Size(46, 20);
|
||||
this.editToolStripMenuItem.Text = "Tools";
|
||||
//
|
||||
// bulkAnimationSpeedToolStripMenuItem
|
||||
//
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Image = global::PckStudio.Properties.Resources.clock;
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Name = "bulkAnimationSpeedToolStripMenuItem";
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Text = "Set Bulk Animation Speed";
|
||||
this.bulkAnimationSpeedToolStripMenuItem.Click += new System.EventHandler(this.bulkAnimationSpeedToolStripMenuItem_Click);
|
||||
//
|
||||
// importJavaAnimationToolStripMenuItem
|
||||
//
|
||||
this.importJavaAnimationToolStripMenuItem.Image = global::PckStudio.Properties.Resources.ExportFile;
|
||||
this.importJavaAnimationToolStripMenuItem.Name = "importJavaAnimationToolStripMenuItem";
|
||||
this.importJavaAnimationToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
|
||||
this.importJavaAnimationToolStripMenuItem.Text = "Import Java Animation";
|
||||
this.importJavaAnimationToolStripMenuItem.Click += new System.EventHandler(this.importJavaAnimationToolStripMenuItem_Click);
|
||||
//
|
||||
// changeTileToolStripMenuItem
|
||||
//
|
||||
this.changeTileToolStripMenuItem.Image = global::PckStudio.Properties.Resources.changeTile;
|
||||
this.changeTileToolStripMenuItem.Name = "changeTileToolStripMenuItem";
|
||||
this.changeTileToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
|
||||
this.changeTileToolStripMenuItem.Text = "Change Tile";
|
||||
this.changeTileToolStripMenuItem.Click += new System.EventHandler(this.changeTileToolStripMenuItem_Click);
|
||||
//
|
||||
// helpToolStripMenuItem
|
||||
//
|
||||
this.helpToolStripMenuItem.ForeColor = System.Drawing.Color.White;
|
||||
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
||||
this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
|
||||
this.helpToolStripMenuItem.Text = "Help";
|
||||
this.helpToolStripMenuItem.Click += new System.EventHandler(this.helpToolStripMenuItem_Click);
|
||||
//
|
||||
// metroCheckBox1
|
||||
//
|
||||
this.metroCheckBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.metroCheckBox1.AutoSize = true;
|
||||
this.metroCheckBox1.Location = new System.Drawing.Point(188, 317);
|
||||
this.metroCheckBox1.Name = "metroCheckBox1";
|
||||
this.metroCheckBox1.Size = new System.Drawing.Size(204, 15);
|
||||
this.metroCheckBox1.TabIndex = 17;
|
||||
this.metroCheckBox1.Text = "Interpolates (not simulated above)";
|
||||
this.metroCheckBox1.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroCheckBox1.UseSelectable = true;
|
||||
//
|
||||
// metroButton1
|
||||
//
|
||||
this.metroButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.metroButton1.Location = new System.Drawing.Point(188, 291);
|
||||
this.metroButton1.Name = "metroButton1";
|
||||
this.metroButton1.Size = new System.Drawing.Size(99, 24);
|
||||
this.metroButton1.TabIndex = 18;
|
||||
this.metroButton1.Text = "Play Animation";
|
||||
this.metroButton1.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroButton1.UseSelectable = true;
|
||||
this.metroButton1.Click += new System.EventHandler(this.metroButton1_Click);
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Interval = 1;
|
||||
this.timer1.Tick += new System.EventHandler(this.animate);
|
||||
//
|
||||
// metroButton2
|
||||
//
|
||||
this.metroButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.metroButton2.Enabled = false;
|
||||
this.metroButton2.Location = new System.Drawing.Point(293, 291);
|
||||
this.metroButton2.Name = "metroButton2";
|
||||
this.metroButton2.Size = new System.Drawing.Size(99, 24);
|
||||
this.metroButton2.TabIndex = 19;
|
||||
this.metroButton2.Text = "Stop Animation";
|
||||
this.metroButton2.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroButton2.UseSelectable = true;
|
||||
this.metroButton2.Click += new System.EventHandler(this.metroButton2_Click);
|
||||
//
|
||||
// tileLabel
|
||||
//
|
||||
this.tileLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.tileLabel.AutoSize = true;
|
||||
this.tileLabel.Location = new System.Drawing.Point(20, 290);
|
||||
this.tileLabel.MinimumSize = new System.Drawing.Size(170, 19);
|
||||
this.tileLabel.Name = "tileLabel";
|
||||
this.tileLabel.Size = new System.Drawing.Size(57, 19);
|
||||
this.tileLabel.TabIndex = 20;
|
||||
this.tileLabel.Text = "tileLabel";
|
||||
this.tileLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
//
|
||||
// metroCheckBox2
|
||||
//
|
||||
this.metroCheckBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.metroCheckBox2.AutoSize = true;
|
||||
this.metroCheckBox2.Location = new System.Drawing.Point(20, 312);
|
||||
this.metroCheckBox2.Name = "metroCheckBox2";
|
||||
this.metroCheckBox2.Size = new System.Drawing.Size(128, 15);
|
||||
this.metroCheckBox2.TabIndex = 21;
|
||||
this.metroCheckBox2.Text = "Is Mip Map Texture?";
|
||||
this.metroCheckBox2.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroCheckBox2.UseSelectable = true;
|
||||
this.metroCheckBox2.CheckedChanged += new System.EventHandler(this.metroCheckBox2_CheckedChanged);
|
||||
//
|
||||
// metroLabel1
|
||||
//
|
||||
this.metroLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.metroLabel1.AutoSize = true;
|
||||
this.metroLabel1.Location = new System.Drawing.Point(21, 330);
|
||||
this.metroLabel1.Name = "metroLabel1";
|
||||
this.metroLabel1.Size = new System.Drawing.Size(99, 19);
|
||||
this.metroLabel1.TabIndex = 22;
|
||||
this.metroLabel1.Text = "Mip Map Level:";
|
||||
this.metroLabel1.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.metroLabel1.Visible = false;
|
||||
//
|
||||
// numericUpDown1
|
||||
//
|
||||
this.numericUpDown1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.numericUpDown1.BackColor = System.Drawing.Color.Black;
|
||||
this.numericUpDown1.ForeColor = System.Drawing.SystemColors.Window;
|
||||
this.numericUpDown1.Location = new System.Drawing.Point(127, 330);
|
||||
this.numericUpDown1.Maximum = new decimal(new int[] {
|
||||
3,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown1.Minimum = new decimal(new int[] {
|
||||
this.numericUpDown1.Minimum = new decimal(new int[] {
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new System.Drawing.Size(44, 20);
|
||||
this.numericUpDown1.TabIndex = 23;
|
||||
this.numericUpDown1.Value = new decimal(new int[] {
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new System.Drawing.Size(44, 20);
|
||||
this.numericUpDown1.TabIndex = 23;
|
||||
this.numericUpDown1.Value = new decimal(new int[] {
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown1.Visible = false;
|
||||
//
|
||||
// pictureBoxWithInterpolationMode1
|
||||
//
|
||||
this.pictureBoxWithInterpolationMode1.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
|
||||
this.pictureBoxWithInterpolationMode1.Location = new System.Drawing.Point(188, 88);
|
||||
this.pictureBoxWithInterpolationMode1.Name = "pictureBoxWithInterpolationMode1";
|
||||
this.pictureBoxWithInterpolationMode1.Size = new System.Drawing.Size(192, 192);
|
||||
this.pictureBoxWithInterpolationMode1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.pictureBoxWithInterpolationMode1.TabIndex = 16;
|
||||
this.pictureBoxWithInterpolationMode1.TabStop = false;
|
||||
//
|
||||
// AnimationEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(400, 356);
|
||||
this.Controls.Add(this.metroButton2);
|
||||
this.Controls.Add(this.metroButton1);
|
||||
this.Controls.Add(this.numericUpDown1);
|
||||
this.Controls.Add(this.metroLabel1);
|
||||
this.Controls.Add(this.metroCheckBox2);
|
||||
this.Controls.Add(this.tileLabel);
|
||||
this.Controls.Add(this.metroCheckBox1);
|
||||
this.Controls.Add(this.pictureBoxWithInterpolationMode1);
|
||||
this.Controls.Add(this.treeView1);
|
||||
this.Controls.Add(this.menuStrip);
|
||||
this.Name = "AnimationEditor";
|
||||
this.Style = MetroFramework.MetroColorStyle.Silver;
|
||||
this.Text = "Animation Editor";
|
||||
this.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.menuStrip.ResumeLayout(false);
|
||||
this.menuStrip.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWithInterpolationMode1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
this.numericUpDown1.Visible = false;
|
||||
//
|
||||
// pictureBoxWithInterpolationMode1
|
||||
//
|
||||
this.pictureBoxWithInterpolationMode1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.pictureBoxWithInterpolationMode1.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
|
||||
this.pictureBoxWithInterpolationMode1.Location = new System.Drawing.Point(188, 88);
|
||||
this.pictureBoxWithInterpolationMode1.Name = "pictureBoxWithInterpolationMode1";
|
||||
this.pictureBoxWithInterpolationMode1.Size = new System.Drawing.Size(204, 198);
|
||||
this.pictureBoxWithInterpolationMode1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
||||
this.pictureBoxWithInterpolationMode1.TabIndex = 16;
|
||||
this.pictureBoxWithInterpolationMode1.TabStop = false;
|
||||
//
|
||||
// AnimationEditor
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(412, 362);
|
||||
this.Controls.Add(this.metroButton2);
|
||||
this.Controls.Add(this.metroButton1);
|
||||
this.Controls.Add(this.numericUpDown1);
|
||||
this.Controls.Add(this.metroLabel1);
|
||||
this.Controls.Add(this.metroCheckBox2);
|
||||
this.Controls.Add(this.tileLabel);
|
||||
this.Controls.Add(this.metroCheckBox1);
|
||||
this.Controls.Add(this.pictureBoxWithInterpolationMode1);
|
||||
this.Controls.Add(this.treeView1);
|
||||
this.Controls.Add(this.menuStrip);
|
||||
this.Name = "AnimationEditor";
|
||||
this.Style = MetroFramework.MetroColorStyle.Silver;
|
||||
this.Text = "Animation Editor";
|
||||
this.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.menuStrip.ResumeLayout(false);
|
||||
this.menuStrip.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWithInterpolationMode1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ namespace PckStudio
|
||||
{
|
||||
create = true;
|
||||
PCKFile.FileData newMf = new PCKFile.FileData("", 2);
|
||||
newMf.properties.Add(new Tuple<string, string>("ANIM", ""));
|
||||
newMf.properties.Add(new ValueTuple<string, string>("ANIM", ""));
|
||||
newMf.SetData(File.ReadAllBytes(createdFileName));
|
||||
mf = newMf;
|
||||
Forms.Utilities.AnimationEditor.ChangeTile diag = new Forms.Utilities.AnimationEditor.ChangeTile();
|
||||
@@ -71,15 +71,14 @@ namespace PckStudio
|
||||
List<string> strEntries = new List<string>();
|
||||
List<string> strEntryData = new List<string>();
|
||||
|
||||
foreach (var entry in mf.properties) //object = metadata entry(name:value)
|
||||
bool has_anim_tag = false;
|
||||
foreach (var entry in mf.properties)
|
||||
{
|
||||
//TreeNode meta = new TreeNode(entry.Item1);
|
||||
if (entry.Item1 == "ANIM") has_anim_tag = true;
|
||||
strEntries.Add(entry.Item2);
|
||||
strEntryData.Add(entry.Item2);
|
||||
}
|
||||
|
||||
//if (strEntries.Find(entry => entry == "ANIM") == null) throw new System.Exception("ANIM tag is missing. No animation code is present.");
|
||||
|
||||
MemoryStream textureMem = new MemoryStream(mf.data);
|
||||
texture = Image.FromStream(textureMem);
|
||||
createFrameList();
|
||||
@@ -88,7 +87,7 @@ namespace PckStudio
|
||||
|
||||
foreach (Newtonsoft.Json.Linq.JObject content in tileData[isItem ? "Items" : "Blocks"].Children())
|
||||
{
|
||||
foreach (Newtonsoft.Json.Linq.JProperty prop in content.Properties())
|
||||
foreach (JProperty prop in content.Properties())
|
||||
{
|
||||
if (prop.Name == newTileName) tileLabel.Text = (string)prop.Value;
|
||||
}
|
||||
@@ -329,49 +328,49 @@ namespace PckStudio
|
||||
if (e.KeyData == Keys.Delete) treeView1.Nodes.Remove(treeView1.SelectedNode);
|
||||
}
|
||||
|
||||
private TreeNode FindNode(TreeNode treeNode, string name)
|
||||
private TreeNode FindNodeByName(TreeNode treeNode, string name)
|
||||
{
|
||||
foreach (TreeNode node in treeNode.Nodes)
|
||||
{
|
||||
if (node.Text.ToLower() == name.ToLower()) return node;
|
||||
else
|
||||
{
|
||||
TreeNode nodeChild = FindNode(node, name);
|
||||
TreeNode nodeChild = FindNodeByName(node, name);
|
||||
if (nodeChild != null)
|
||||
{
|
||||
return nodeChild;
|
||||
}
|
||||
}
|
||||
}
|
||||
return (TreeNode)null;
|
||||
return null;
|
||||
}
|
||||
|
||||
private TreeNode FindNode(TreeView treeView, string name)
|
||||
private TreeNode FindNodeByName(TreeView treeView, string name)
|
||||
{
|
||||
foreach (TreeNode node in treeView.Nodes)
|
||||
{
|
||||
if (node.Text.ToLower() == name.ToLower()) return node;
|
||||
else
|
||||
{
|
||||
TreeNode nodeChild = FindNode(node, name);
|
||||
TreeNode nodeChild = FindNodeByName(node, name);
|
||||
if (nodeChild != null) return nodeChild;
|
||||
}
|
||||
}
|
||||
return (TreeNode)null;
|
||||
return null;
|
||||
}
|
||||
|
||||
private void addNodeToAnimationsFolder(TreeNode newNode)
|
||||
{
|
||||
TreeNode parent = FindNode(treeViewMain, isItem ? "items" : "blocks");
|
||||
TreeNode parent = FindNodeByName(treeViewMain, isItem ? "items" : "blocks");
|
||||
if (parent != null)
|
||||
{
|
||||
Console.WriteLine("ParentNotNULL");
|
||||
TreeNode check = FindNode(treeViewMain, newNode.Text);
|
||||
TreeNode check = FindNodeByName(treeViewMain, newNode.Text);
|
||||
parent.Nodes.Add(newNode);
|
||||
}
|
||||
else
|
||||
{
|
||||
TreeNode texturesParent = FindNode(treeViewMain, "textures");
|
||||
TreeNode texturesParent = FindNodeByName(treeViewMain, "textures");
|
||||
if (texturesParent != null)
|
||||
{
|
||||
Console.WriteLine("TextureNotNULL");
|
||||
@@ -381,7 +380,7 @@ namespace PckStudio
|
||||
}
|
||||
else
|
||||
{
|
||||
TreeNode resParent = FindNode(treeViewMain, "res");
|
||||
TreeNode resParent = FindNodeByName(treeViewMain, "res");
|
||||
if (resParent != null)
|
||||
{
|
||||
Console.WriteLine("ResNotNULL");
|
||||
@@ -438,7 +437,7 @@ namespace PckStudio
|
||||
}
|
||||
else
|
||||
{
|
||||
mf.properties.Add(new Tuple<string, string>("ANIM", animationData));
|
||||
mf.properties.Add(new ValueTuple<string, string>("ANIM", animationData));
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace PckStudio.Forms.Utilities
|
||||
{
|
||||
audioPCK = PCKFileReader.Read(stream, isLittleEndian);
|
||||
}
|
||||
if (!audioPCK.meta_data.ContainsKey("CUENAME") || audioPCK.type != 1)
|
||||
if (!audioPCK.meta_data.Contains("CUENAME") || audioPCK.type != 1)
|
||||
{
|
||||
throw new Exception("This is not a valid audio.pck file");
|
||||
}
|
||||
@@ -132,7 +132,7 @@ namespace PckStudio.Forms.Utilities
|
||||
textBox1.Text = strings.Item2;
|
||||
|
||||
foreach (var metaType in audioPCK.meta_data)
|
||||
comboBox1.Items.Add(metaType.Key);
|
||||
comboBox1.Items.Add(metaType);
|
||||
}
|
||||
|
||||
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
|
||||
|
||||
@@ -91,6 +91,8 @@
|
||||
//
|
||||
// dataGridViewLocEntryData
|
||||
//
|
||||
this.dataGridViewLocEntryData.AllowUserToAddRows = false;
|
||||
this.dataGridViewLocEntryData.AllowUserToDeleteRows = false;
|
||||
this.dataGridViewLocEntryData.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
this.locSort.SetColumnSpan(this.dataGridViewLocEntryData, 2);
|
||||
resources.ApplyResources(this.dataGridViewLocEntryData, "dataGridViewLocEntryData");
|
||||
@@ -121,6 +123,7 @@
|
||||
this.Style = MetroFramework.MetroColorStyle.Silver;
|
||||
this.Theme = MetroFramework.MetroThemeStyle.Dark;
|
||||
this.Load += new System.EventHandler(this.LOCEditor_Load);
|
||||
this.Resize += new System.EventHandler(this.LOCEditor_Resize);
|
||||
this.contextMenuStrip1.ResumeLayout(false);
|
||||
this.locSort.ResumeLayout(false);
|
||||
this.locSort.PerformLayout();
|
||||
|
||||
@@ -8,42 +8,46 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using MetroFramework.Forms;
|
||||
|
||||
namespace PckStudio
|
||||
{
|
||||
public partial class LOCEditor : MetroFramework.Forms.MetroForm
|
||||
{
|
||||
DataTable tbl = new DataTable();
|
||||
public partial class LOCEditor : MetroForm
|
||||
{
|
||||
DataTable tbl;
|
||||
LOCFile currentLoc;
|
||||
public bool wasModified { get; private set; } = true;
|
||||
|
||||
public LOCEditor(LOCFile loc)
|
||||
{
|
||||
InitializeComponent();
|
||||
currentLoc = loc;
|
||||
tbl = new DataTable();
|
||||
tbl.Columns.Add(new DataColumn("Language") { ReadOnly = true });
|
||||
tbl.Columns.Add("Display Name");
|
||||
dataGridViewLocEntryData.DataSource = tbl;
|
||||
DataGridViewColumn column = dataGridViewLocEntryData.Columns[1];
|
||||
column.Width = 600;
|
||||
}
|
||||
DataGridViewColumn column = dataGridViewLocEntryData.Columns[1];
|
||||
column.Width = dataGridViewLocEntryData.Width;
|
||||
}
|
||||
|
||||
private void LOCEditor_Load(object sender, EventArgs e)
|
||||
{
|
||||
foreach(string id in currentLoc.languages.Keys)
|
||||
treeViewLocEntries.Nodes.Add(id);
|
||||
foreach(string locKey in currentLoc.keys.Keys)
|
||||
treeViewLocEntries.Nodes.Add(locKey);
|
||||
}
|
||||
|
||||
private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
|
||||
{
|
||||
tbl.Rows.Clear();
|
||||
if (treeViewLocEntries.SelectedNode == null ||
|
||||
!currentLoc.languages.ContainsKey(treeViewLocEntries.SelectedNode.Text))
|
||||
var node = e.Node;
|
||||
if (node == null ||
|
||||
!currentLoc.keys.ContainsKey(node.Text))
|
||||
{
|
||||
MessageBox.Show("Selected Node does not seem to be in the loc file");
|
||||
return;
|
||||
}
|
||||
tbl.Rows.Clear();
|
||||
buttonReplaceAll.Enabled = true;
|
||||
foreach (var l in currentLoc.languages[treeViewLocEntries.SelectedNode.Text])
|
||||
foreach (var l in currentLoc.keys[node.Text])
|
||||
{
|
||||
tbl.Rows.Add(l.Key, l.Value);
|
||||
}
|
||||
@@ -52,90 +56,65 @@ namespace PckStudio
|
||||
private void renameDisplayIDToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
TreeNode node = treeViewLocEntries.SelectedNode;
|
||||
renameLoc diag = new renameLoc(node.Text);
|
||||
RenamePrompt diag = new RenamePrompt(node.Text);
|
||||
diag.ShowDialog(this);
|
||||
if (diag.DialogResult == DialogResult.OK)
|
||||
currentLoc.ChangeEntry("TODO", diag.NewText);
|
||||
diag.Dispose(); //diposes generated metadata adding dialog data
|
||||
currentLoc.ChangeEntry(node.Text, diag.NewText);
|
||||
diag.Dispose();
|
||||
}
|
||||
|
||||
private void addDisplayIDToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("TODO");
|
||||
//int index = treeViewLocEntries.SelectedNode.Index;
|
||||
//foreach (LOCFile.Language l in currentLoc.langs)
|
||||
// l.names.Insert(index, "NewString");
|
||||
|
||||
//if(index == -1) index = currentLoc.ids.names.Count;
|
||||
//treeViewLocEntries.Nodes.Insert(index, "NewItem");
|
||||
}
|
||||
|
||||
//currentLoc.ids.names.Insert(index, "NewItem");
|
||||
|
||||
//foreach (LOCFile.Language l in currentLoc.langs)
|
||||
// l.names.Insert(index, "NewString");
|
||||
|
||||
//treeViewLocEntries.Nodes.Insert(index, "NewItem");
|
||||
}
|
||||
|
||||
private void deleteDisplayIDToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
private void deleteDisplayIDToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
if(treeViewLocEntries.SelectedNode != null)
|
||||
if(treeViewLocEntries.SelectedNode != null && currentLoc.keys.ContainsKey(treeViewLocEntries.SelectedNode.Text))
|
||||
{
|
||||
MessageBox.Show("TODO");
|
||||
//int index = treeViewLocEntries.SelectedNode.Index;
|
||||
|
||||
//currentLoc.ids.names.RemoveAt(index);
|
||||
|
||||
//foreach (LOCFile.Language l in currentLoc.langs)
|
||||
// l.names.RemoveAt(index);
|
||||
|
||||
//treeViewLocEntries.Nodes.RemoveAt(index);
|
||||
}
|
||||
currentLoc.keys.Remove(treeViewLocEntries.SelectedNode.Text);
|
||||
treeViewLocEntries.SelectedNode.Remove();
|
||||
}
|
||||
}
|
||||
|
||||
private void dataGridView1_CellEndEdit(object sender, DataGridViewCellEventArgs e)
|
||||
{
|
||||
MessageBox.Show("TODO");
|
||||
//for (int i = 0; i < tbl.Rows.Count; i++)
|
||||
//{
|
||||
// byte[] data = Encoding.UTF8.GetBytes((string)tbl.Rows[i][1]);
|
||||
if (e.ColumnIndex != 1)
|
||||
{
|
||||
MessageBox.Show("something went wrong");
|
||||
return;
|
||||
}
|
||||
currentLoc.ChangeSingleEntry(treeViewLocEntries.SelectedNode.Text, tbl.Rows[e.RowIndex][0].ToString(), tbl.Rows[e.RowIndex][1].ToString());
|
||||
wasModified = true;
|
||||
}
|
||||
|
||||
// string final = string.Empty;
|
||||
|
||||
// foreach (byte b in data)
|
||||
// final += (char)b;
|
||||
|
||||
// currentLoc.langs[i].names[treeViewLocEntries.SelectedNode.Index] = final;
|
||||
//}
|
||||
}
|
||||
|
||||
private void treeView1_KeyDown(object sender, KeyEventArgs e)
|
||||
private void treeView1_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.KeyData == Keys.Delete && treeViewLocEntries.SelectedNode != null) //checks to make sure pressed key was del
|
||||
{
|
||||
int index = treeViewLocEntries.SelectedNode.Index;
|
||||
MessageBox.Show("TODO");
|
||||
//currentLoc.languages..RemoveAt(index);
|
||||
|
||||
//foreach (var l in currentLoc.languages)
|
||||
// l.names.RemoveAt(index);
|
||||
//treeViewLocEntries.Nodes.RemoveAt(index);
|
||||
currentLoc.keys.Remove(treeViewLocEntries.SelectedNode.Text);
|
||||
treeViewLocEntries.SelectedNode.Remove();
|
||||
wasModified = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonReplaceAll_Click(object sender, EventArgs e)
|
||||
{
|
||||
MessageBox.Show("TODO");
|
||||
//for (int i = 0; i < tbl.Rows.Count; i++)
|
||||
//{
|
||||
// tbl.Rows[i][1] = ;
|
||||
//}
|
||||
//for (int i = 0; i < tbl.Rows.Count; i++)
|
||||
//{
|
||||
// currentLoc.langs[i].names[treeViewLocEntries.SelectedNode.Index] = (string)tbl.Rows[i][1];
|
||||
//}
|
||||
for (int i = 0; i < tbl.Rows.Count; i++)
|
||||
{
|
||||
tbl.Rows[i][1] = textBoxReplaceAll.Text;
|
||||
}
|
||||
currentLoc.ChangeEntry(treeViewLocEntries.SelectedNode.Text, textBoxReplaceAll.Text);
|
||||
wasModified = true;
|
||||
}
|
||||
|
||||
private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
|
||||
{
|
||||
|
||||
private void LOCEditor_Resize(object sender, EventArgs e)
|
||||
{
|
||||
DataGridViewColumn column = dataGridViewLocEntryData.Columns[1];
|
||||
column.Width = dataGridViewLocEntryData.Width - dataGridViewLocEntryData.Columns[0].Width;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,6 +121,15 @@
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="contextMenuStrip1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>173, 70</value>
|
||||
</data>
|
||||
<data name=">>contextMenuStrip1.Name" xml:space="preserve">
|
||||
<value>contextMenuStrip1</value>
|
||||
</data>
|
||||
<data name=">>contextMenuStrip1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<data name="addDisplayIDToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>172, 22</value>
|
||||
</data>
|
||||
@@ -139,15 +148,6 @@
|
||||
<data name="deleteDisplayIDToolStripMenuItem.Text" xml:space="preserve">
|
||||
<value>Delete Display ID</value>
|
||||
</data>
|
||||
<data name="contextMenuStrip1.Size" type="System.Drawing.Size, System.Drawing">
|
||||
<value>173, 70</value>
|
||||
</data>
|
||||
<data name=">>contextMenuStrip1.Name" xml:space="preserve">
|
||||
<value>contextMenuStrip1</value>
|
||||
</data>
|
||||
<data name=">>contextMenuStrip1.Type" xml:space="preserve">
|
||||
<value>System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</data>
|
||||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="locSort.ColumnCount" type="System.Int32, mscorlib">
|
||||
<value>3</value>
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace PckStudio
|
||||
{
|
||||
public partial class renameLoc : MetroFramework.Forms.MetroForm
|
||||
{
|
||||
public string NewText = string.Empty;
|
||||
|
||||
public renameLoc(string initialText)
|
||||
{
|
||||
InitializeComponent();
|
||||
textBox1.Text = initialText;
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
NewText = textBox1.Text;
|
||||
DialogResult = DialogResult.OK;
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -182,11 +182,11 @@
|
||||
<Compile Include="Forms\Additional-Popups\FakeProgressBar.Designer.cs">
|
||||
<DependentUpon>FakeProgressBar.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\Additional-Popups\rename.cs">
|
||||
<Compile Include="Forms\Additional-Popups\RenamePrompt.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Forms\Additional-Popups\rename.Designer.cs">
|
||||
<DependentUpon>rename.cs</DependentUpon>
|
||||
<Compile Include="Forms\Additional-Popups\RenamePrompt.Designer.cs">
|
||||
<DependentUpon>RenamePrompt.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\Utilities\Animation\ChangeTile.cs">
|
||||
<SubType>Form</SubType>
|
||||
@@ -362,12 +362,6 @@
|
||||
<Compile Include="Forms\Additional-Popups\Promo.Designer.cs">
|
||||
<DependentUpon>Promo.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\Utilities\renameLoc.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Forms\Utilities\renameLoc.Designer.cs">
|
||||
<DependentUpon>renameLoc.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Forms\Utilities\TextureConverterUtility.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -421,8 +415,8 @@
|
||||
<EmbeddedResource Include="Forms\Additional-Popups\FakeProgressBar.resx">
|
||||
<DependentUpon>FakeProgressBar.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\Additional-Popups\rename.resx">
|
||||
<DependentUpon>rename.cs</DependentUpon>
|
||||
<EmbeddedResource Include="Forms\Additional-Popups\RenamePrompt.resx">
|
||||
<DependentUpon>RenamePrompt.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\Utilities\Animation\ChangeTile.resx">
|
||||
<DependentUpon>ChangeTile.cs</DependentUpon>
|
||||
@@ -574,9 +568,6 @@
|
||||
<EmbeddedResource Include="Forms\Additional-Popups\Promo.resx">
|
||||
<DependentUpon>Promo.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\Utilities\renameLoc.resx">
|
||||
<DependentUpon>renameLoc.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\Utilities\TextureConverterUtility.resx">
|
||||
<DependentUpon>TextureConverterUtility.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
@@ -687,6 +678,9 @@
|
||||
<PackageReference Include="Newtonsoft.Json">
|
||||
<Version>12.0.1</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="System.ValueTuple">
|
||||
<Version>4.5.0</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.6.1">
|
||||
|
||||
Reference in New Issue
Block a user