Compat. for other devices

This commit is contained in:
Felix Miller
2021-08-30 14:28:40 -04:00
parent 9848f0efe2
commit a5671a0967
77 changed files with 2224 additions and 1710 deletions

View File

@@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MinecraftUSkinEditor.Models;
using PckStudio.Models;
namespace PckStudio.Classes
{

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public enum Endianness
{

View File

@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public class FileData
{

View File

@@ -3,7 +3,7 @@ using System.IO;
using System.Collections.Generic;
using System.Linq;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public class FileOutput
{

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
internal class KeyValuePair<T>
{

View File

@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public class LOC
{

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public enum BackgroundTypes
{

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public enum Backgrounds
{

View File

@@ -1,8 +1,8 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public class Box : global::MinecraftUSkinEditor.Models.Object3D
public class Box : global::PckStudio.Models.Object3D
{
public override global::System.Drawing.Image Image
{
@@ -12,7 +12,7 @@ namespace MinecraftUSkinEditor.Models
}
}
internal override global::MinecraftUSkinEditor.Models.MinecraftModelView Viewport
internal override global::PckStudio.Models.MinecraftModelView Viewport
{
set
{
@@ -29,7 +29,7 @@ namespace MinecraftUSkinEditor.Models
internal override void Update()
{
global::MinecraftUSkinEditor.Models.Matrix3D a = this.globalTransformation * this.localTransformation;
global::PckStudio.Models.Matrix3D a = this.globalTransformation * this.localTransformation;
this.top.LocalTransformation = a * this.topLocalTransformation;
this.bottom.LocalTransformation = a * this.bottomLocalTransformation;
this.front.LocalTransformation = a * this.frontLocalTransformation;
@@ -38,7 +38,7 @@ namespace MinecraftUSkinEditor.Models
this.right.LocalTransformation = a * this.rightLocalTransformation;
}
public Box(global::System.Drawing.Image image, global::System.Drawing.Rectangle srcTopBottom, global::System.Drawing.Rectangle srcSides, global::MinecraftUSkinEditor.Models.Point3D origin, global::MinecraftUSkinEditor.Models.Effects effects)
public Box(global::System.Drawing.Image image, global::System.Drawing.Rectangle srcTopBottom, global::System.Drawing.Rectangle srcSides, global::PckStudio.Models.Point3D origin, global::PckStudio.Models.Effects effects)
{
this.effects = effects;
base.Origin = origin;
@@ -61,17 +61,17 @@ namespace MinecraftUSkinEditor.Models
private void SetImage(global::System.Drawing.Image image)
{
bool flag = (byte)(this.effects & global::MinecraftUSkinEditor.Models.Effects.FlipHorizontally) == 1;
bool flag2 = (byte)(this.effects & global::MinecraftUSkinEditor.Models.Effects.FlipVertically) == 2;
bool flag = (byte)(this.effects & global::PckStudio.Models.Effects.FlipHorizontally) == 1;
bool flag2 = (byte)(this.effects & global::PckStudio.Models.Effects.FlipVertically) == 2;
int width = this.srcFront.Width;
int height = this.srcFront.Height;
int width2 = this.srcLeft.Width;
this.top = new global::MinecraftUSkinEditor.Models.TexturePlane(image, flag2 ? this.srcBottom : this.srcTop, new global::MinecraftUSkinEditor.Models.Point3D((float)width * 0.5f, (float)width2 * 0.5f, (float)(-(float)height) * 0.5f), new global::MinecraftUSkinEditor.Models.Point3D(0f, 1f, 0f), this.effects & global::MinecraftUSkinEditor.Models.Effects.FlipHorizontally);
this.bottom = new global::MinecraftUSkinEditor.Models.TexturePlane(image, flag2 ? this.srcTop : this.srcBottom, new global::MinecraftUSkinEditor.Models.Point3D((float)width / 2f, (float)width2 / 2f, (float)height / 2f), new global::MinecraftUSkinEditor.Models.Point3D(0f, -1f, 0f), this.effects & global::MinecraftUSkinEditor.Models.Effects.FlipHorizontally);
this.front = new global::MinecraftUSkinEditor.Models.TexturePlane(image, this.srcFront, new global::MinecraftUSkinEditor.Models.Point3D((float)width * 0.5f, (float)height * 0.5f, (float)(-(float)width2) * 0.5f), new global::MinecraftUSkinEditor.Models.Point3D(0f, 0f, 1f), this.effects);
this.back = new global::MinecraftUSkinEditor.Models.TexturePlane(image, this.srcBack, new global::MinecraftUSkinEditor.Models.Point3D((float)width * 0.5f, (float)height * 0.5f, (float)(-(float)width2) * 0.5f), new global::MinecraftUSkinEditor.Models.Point3D(0f, 0f, -1f), this.effects);
this.left = new global::MinecraftUSkinEditor.Models.TexturePlane(image, flag ? this.srcRight : this.srcLeft, new global::MinecraftUSkinEditor.Models.Point3D((float)width2 * 0.5f, (float)height * 0.5f, (float)(-(float)width) * 0.5f), new global::MinecraftUSkinEditor.Models.Point3D(-1f, 0f, 0f), this.effects);
this.right = new global::MinecraftUSkinEditor.Models.TexturePlane(image, flag ? this.srcLeft : this.srcRight, new global::MinecraftUSkinEditor.Models.Point3D((float)width2 * 0.5f, (float)height * 0.5f, (float)(-(float)width) * 0.5f), new global::MinecraftUSkinEditor.Models.Point3D(1f, 0f, 0f), this.effects);
this.top = new global::PckStudio.Models.TexturePlane(image, flag2 ? this.srcBottom : this.srcTop, new global::PckStudio.Models.Point3D((float)width * 0.5f, (float)width2 * 0.5f, (float)(-(float)height) * 0.5f), new global::PckStudio.Models.Point3D(0f, 1f, 0f), this.effects & global::PckStudio.Models.Effects.FlipHorizontally);
this.bottom = new global::PckStudio.Models.TexturePlane(image, flag2 ? this.srcTop : this.srcBottom, new global::PckStudio.Models.Point3D((float)width / 2f, (float)width2 / 2f, (float)height / 2f), new global::PckStudio.Models.Point3D(0f, -1f, 0f), this.effects & global::PckStudio.Models.Effects.FlipHorizontally);
this.front = new global::PckStudio.Models.TexturePlane(image, this.srcFront, new global::PckStudio.Models.Point3D((float)width * 0.5f, (float)height * 0.5f, (float)(-(float)width2) * 0.5f), new global::PckStudio.Models.Point3D(0f, 0f, 1f), this.effects);
this.back = new global::PckStudio.Models.TexturePlane(image, this.srcBack, new global::PckStudio.Models.Point3D((float)width * 0.5f, (float)height * 0.5f, (float)(-(float)width2) * 0.5f), new global::PckStudio.Models.Point3D(0f, 0f, -1f), this.effects);
this.left = new global::PckStudio.Models.TexturePlane(image, flag ? this.srcRight : this.srcLeft, new global::PckStudio.Models.Point3D((float)width2 * 0.5f, (float)height * 0.5f, (float)(-(float)width) * 0.5f), new global::PckStudio.Models.Point3D(-1f, 0f, 0f), this.effects);
this.right = new global::PckStudio.Models.TexturePlane(image, flag ? this.srcLeft : this.srcRight, new global::PckStudio.Models.Point3D((float)width2 * 0.5f, (float)height * 0.5f, (float)(-(float)width) * 0.5f), new global::PckStudio.Models.Point3D(1f, 0f, 0f), this.effects);
this.top.Viewport = this.viewport;
this.bottom.Viewport = this.viewport;
this.front.Viewport = this.viewport;
@@ -116,17 +116,17 @@ namespace MinecraftUSkinEditor.Models
return num;
}
private global::MinecraftUSkinEditor.Models.TexturePlane top;
private global::PckStudio.Models.TexturePlane top;
private global::MinecraftUSkinEditor.Models.TexturePlane bottom;
private global::PckStudio.Models.TexturePlane bottom;
private global::MinecraftUSkinEditor.Models.TexturePlane front;
private global::PckStudio.Models.TexturePlane front;
private global::MinecraftUSkinEditor.Models.TexturePlane back;
private global::PckStudio.Models.TexturePlane back;
private global::MinecraftUSkinEditor.Models.TexturePlane left;
private global::PckStudio.Models.TexturePlane left;
private global::MinecraftUSkinEditor.Models.TexturePlane right;
private global::PckStudio.Models.TexturePlane right;
private global::System.Drawing.Rectangle srcTop;
@@ -140,18 +140,18 @@ namespace MinecraftUSkinEditor.Models
private global::System.Drawing.Rectangle srcRight;
private global::MinecraftUSkinEditor.Models.Matrix3D topLocalTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationX(-1.57079637f);
private global::PckStudio.Models.Matrix3D topLocalTransformation = global::PckStudio.Models.Matrix3D.CreateRotationX(-1.57079637f);
private global::MinecraftUSkinEditor.Models.Matrix3D bottomLocalTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationX(-1.57079637f);
private global::PckStudio.Models.Matrix3D bottomLocalTransformation = global::PckStudio.Models.Matrix3D.CreateRotationX(-1.57079637f);
private global::MinecraftUSkinEditor.Models.Matrix3D frontLocalTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.Identity;
private global::PckStudio.Models.Matrix3D frontLocalTransformation = global::PckStudio.Models.Matrix3D.Identity;
private global::MinecraftUSkinEditor.Models.Matrix3D backLocalTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationY(3.14159274f);
private global::PckStudio.Models.Matrix3D backLocalTransformation = global::PckStudio.Models.Matrix3D.CreateRotationY(3.14159274f);
private global::MinecraftUSkinEditor.Models.Matrix3D leftLocalTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationY(-1.57079637f);
private global::PckStudio.Models.Matrix3D leftLocalTransformation = global::PckStudio.Models.Matrix3D.CreateRotationY(-1.57079637f);
private global::MinecraftUSkinEditor.Models.Matrix3D rightLocalTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationY(1.57079637f);
private global::PckStudio.Models.Matrix3D rightLocalTransformation = global::PckStudio.Models.Matrix3D.CreateRotationY(1.57079637f);
private global::MinecraftUSkinEditor.Models.Effects effects;
private global::PckStudio.Models.Effects effects;
}
}

View File

@@ -1,10 +1,10 @@
using System;
using System.IO;
using System.Drawing;
using MinecraftUSkinEditor.Models;
using PckStudio.Models;
using PckStudio.Properties;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
internal class CharacterModel : ModelBase
{

View File

@@ -1,9 +1,9 @@
using System;
using MinecraftUSkinEditor.Models;
using PckStudio.Models;
using System.Runtime.CompilerServices;
using System.Threading;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public abstract class ModelBase
{

View File

@@ -4,7 +4,7 @@ using System.IO;
using System.Runtime.CompilerServices;
using System.Threading;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public class Texture
{

View File

@@ -65,7 +65,7 @@ namespace MinecraftUSkinEditor.Models
base.PerformLayout();
}
public global::MinecraftUSkinEditor.Models.Texture Texture
public global::PckStudio.Models.Texture Texture
{
get
{
@@ -190,6 +190,6 @@ namespace MinecraftUSkinEditor.Models
private global::System.Windows.Forms.Button reloadButton;
private global::MinecraftUSkinEditor.Models.Texture texture;
private global::PckStudio.Models.Texture texture;
}
}

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
[global::System.Flags]
public enum Effects : byte

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public struct Matrix3D
{
@@ -24,55 +24,55 @@ namespace MinecraftUSkinEditor.Models
this.M44 = m44;
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateRotationX(float radians)
public static global::PckStudio.Models.Matrix3D CreateRotationX(float radians)
{
float num = (float)global::System.Math.Sin((double)radians);
float num2 = (float)global::System.Math.Cos((double)radians);
return new global::MinecraftUSkinEditor.Models.Matrix3D(1f, 0f, 0f, 0f, 0f, num2, -num, 0f, 0f, num, num2, 0f, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(1f, 0f, 0f, 0f, 0f, num2, -num, 0f, 0f, num, num2, 0f, 0f, 0f, 0f, 1f);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateRotationX(float sin, float cos)
public static global::PckStudio.Models.Matrix3D CreateRotationX(float sin, float cos)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(1f, 0f, 0f, 0f, 0f, cos, -sin, 0f, 0f, sin, cos, 0f, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(1f, 0f, 0f, 0f, 0f, cos, -sin, 0f, 0f, sin, cos, 0f, 0f, 0f, 0f, 1f);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateRotationY(float radians)
public static global::PckStudio.Models.Matrix3D CreateRotationY(float radians)
{
float num = (float)global::System.Math.Sin((double)radians);
float num2 = (float)global::System.Math.Cos((double)radians);
return new global::MinecraftUSkinEditor.Models.Matrix3D(num2, 0f, num, 0f, 0f, 1f, 0f, 0f, -num, 0f, num2, 0f, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(num2, 0f, num, 0f, 0f, 1f, 0f, 0f, -num, 0f, num2, 0f, 0f, 0f, 0f, 1f);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateRotationY(float sin, float cos)
public static global::PckStudio.Models.Matrix3D CreateRotationY(float sin, float cos)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(cos, 0f, sin, 0f, 0f, 1f, 0f, 0f, -sin, 0f, cos, 0f, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(cos, 0f, sin, 0f, 0f, 1f, 0f, 0f, -sin, 0f, cos, 0f, 0f, 0f, 0f, 1f);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateRotationZ(float radians)
public static global::PckStudio.Models.Matrix3D CreateRotationZ(float radians)
{
float num = (float)global::System.Math.Sin((double)radians);
float num2 = (float)global::System.Math.Cos((double)radians);
return new global::MinecraftUSkinEditor.Models.Matrix3D(num2, -num, 0f, 0f, num, num2, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(num2, -num, 0f, 0f, num, num2, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateRotationZ(float sin, float cos)
public static global::PckStudio.Models.Matrix3D CreateRotationZ(float sin, float cos)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(cos, -sin, 0f, 0f, sin, cos, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(cos, -sin, 0f, 0f, sin, cos, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateTranslation(float x, float y, float z)
public static global::PckStudio.Models.Matrix3D CreateTranslation(float x, float y, float z)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(1f, 0f, 0f, x, 0f, 1f, 0f, y, 0f, 0f, 1f, z, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(1f, 0f, 0f, x, 0f, 1f, 0f, y, 0f, 0f, 1f, z, 0f, 0f, 0f, 1f);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateTranslation(global::MinecraftUSkinEditor.Models.Point3D point)
public static global::PckStudio.Models.Matrix3D CreateTranslation(global::PckStudio.Models.Point3D point)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(1f, 0f, 0f, point.X, 0f, 1f, 0f, point.Y, 0f, 0f, 1f, point.Z, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(1f, 0f, 0f, point.X, 0f, 1f, 0f, point.Y, 0f, 0f, 1f, point.Z, 0f, 0f, 0f, 1f);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D CreateScale(float s)
public static global::PckStudio.Models.Matrix3D CreateScale(float s)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(s, 0f, 0f, 0f, 0f, s, 0f, 0f, 0f, 0f, s, 0f, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(s, 0f, 0f, 0f, 0f, s, 0f, 0f, 0f, 0f, s, 0f, 0f, 0f, 0f, 1f);
}
public float Determinant
@@ -83,63 +83,63 @@ namespace MinecraftUSkinEditor.Models
}
}
public static global::MinecraftUSkinEditor.Models.Matrix3D Identity
public static global::PckStudio.Models.Matrix3D Identity
{
get
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(1f, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f);
return new global::PckStudio.Models.Matrix3D(1f, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f);
}
}
public static global::MinecraftUSkinEditor.Models.Matrix3D Transpose(global::MinecraftUSkinEditor.Models.Matrix3D m)
public static global::PckStudio.Models.Matrix3D Transpose(global::PckStudio.Models.Matrix3D m)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(m.M11, m.M21, m.M31, m.M41, m.M12, m.M22, m.M32, m.M42, m.M13, m.M23, m.M33, m.M43, m.M14, m.M24, m.M34, m.M44);
return new global::PckStudio.Models.Matrix3D(m.M11, m.M21, m.M31, m.M41, m.M12, m.M22, m.M32, m.M42, m.M13, m.M23, m.M33, m.M43, m.M14, m.M24, m.M34, m.M44);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D Invert(global::MinecraftUSkinEditor.Models.Matrix3D m)
public static global::PckStudio.Models.Matrix3D Invert(global::PckStudio.Models.Matrix3D m)
{
float determinant = m.Determinant;
return new global::MinecraftUSkinEditor.Models.Matrix3D((m.M22 * m.M33 * m.M44 + m.M32 * m.M43 * m.M24 + m.M42 * m.M23 * m.M34 - m.M24 * m.M33 * m.M42 - m.M34 * m.M43 * m.M22 - m.M44 * m.M23 * m.M32) / determinant, -(m.M12 * m.M33 * m.M44 + m.M32 * m.M43 * m.M14 + m.M42 * m.M13 * m.M34 - m.M14 * m.M33 * m.M42 - m.M34 * m.M43 * m.M12 - m.M44 * m.M13 * m.M32) / determinant, (m.M12 * m.M23 * m.M44 + m.M22 * m.M43 * m.M14 + m.M42 * m.M13 * m.M24 - m.M14 * m.M23 * m.M42 - m.M24 * m.M43 * m.M12 - m.M44 * m.M13 * m.M22) / determinant, -(m.M12 * m.M23 * m.M34 + m.M22 * m.M33 * m.M14 + m.M32 * m.M13 * m.M24 - m.M14 * m.M23 * m.M32 - m.M24 * m.M33 * m.M12 - m.M34 * m.M13 * m.M22) / determinant, -(m.M21 * m.M33 * m.M44 + m.M31 * m.M43 * m.M24 + m.M41 * m.M23 * m.M34 - m.M24 * m.M33 * m.M41 - m.M34 * m.M43 * m.M21 - m.M44 * m.M23 * m.M31) / determinant, (m.M11 * m.M33 * m.M44 + m.M31 * m.M43 * m.M14 + m.M41 * m.M13 * m.M34 - m.M14 * m.M33 * m.M41 - m.M34 * m.M43 * m.M11 - m.M44 * m.M13 * m.M31) / determinant, -(m.M11 * m.M23 * m.M44 + m.M21 * m.M43 * m.M14 + m.M41 * m.M13 * m.M24 - m.M14 * m.M23 * m.M41 - m.M24 * m.M43 * m.M11 - m.M44 * m.M13 * m.M21) / determinant, (m.M11 * m.M23 * m.M34 + m.M21 * m.M33 * m.M14 + m.M31 * m.M13 * m.M24 - m.M14 * m.M23 * m.M31 - m.M24 * m.M33 * m.M11 - m.M34 * m.M13 * m.M21) / determinant, (m.M21 * m.M32 * m.M44 + m.M31 * m.M42 * m.M24 + m.M41 * m.M22 * m.M34 - m.M24 * m.M32 * m.M41 - m.M34 * m.M42 * m.M21 - m.M44 * m.M22 * m.M31) / determinant, -(m.M11 * m.M32 * m.M44 + m.M31 * m.M42 * m.M14 + m.M41 * m.M12 * m.M34 - m.M14 * m.M32 * m.M41 - m.M34 * m.M42 * m.M11 - m.M44 * m.M12 * m.M31) / determinant, (m.M11 * m.M32 * m.M44 + m.M21 * m.M42 * m.M14 + m.M41 * m.M12 * m.M24 - m.M14 * m.M22 * m.M41 - m.M24 * m.M42 * m.M11 - m.M44 * m.M12 * m.M21) / determinant, -(m.M11 * m.M22 * m.M34 + m.M21 * m.M32 * m.M14 + m.M31 * m.M12 * m.M24 - m.M14 * m.M22 * m.M31 - m.M24 * m.M32 * m.M11 - m.M34 * m.M12 * m.M21) / determinant, -(m.M21 * m.M32 * m.M43 + m.M31 * m.M42 * m.M23 + m.M41 * m.M22 * m.M33 - m.M23 * m.M32 * m.M41 - m.M33 * m.M42 * m.M21 - m.M43 * m.M22 * m.M31) / determinant, (m.M11 * m.M32 * m.M43 + m.M31 * m.M42 * m.M13 + m.M41 * m.M12 * m.M33 - m.M13 * m.M32 * m.M41 - m.M33 * m.M42 * m.M11 - m.M43 * m.M12 * m.M31) / determinant, -(m.M11 * m.M22 * m.M43 + m.M21 * m.M42 * m.M13 + m.M41 * m.M12 * m.M23 - m.M13 * m.M22 * m.M41 - m.M23 * m.M42 * m.M11 - m.M43 * m.M12 * m.M21) / determinant, (m.M11 * m.M22 * m.M33 + m.M21 * m.M32 * m.M13 + m.M31 * m.M12 * m.M23 - m.M13 * m.M22 * m.M31 - m.M23 * m.M32 * m.M11 - m.M33 * m.M12 * m.M21) / determinant);
return new global::PckStudio.Models.Matrix3D((m.M22 * m.M33 * m.M44 + m.M32 * m.M43 * m.M24 + m.M42 * m.M23 * m.M34 - m.M24 * m.M33 * m.M42 - m.M34 * m.M43 * m.M22 - m.M44 * m.M23 * m.M32) / determinant, -(m.M12 * m.M33 * m.M44 + m.M32 * m.M43 * m.M14 + m.M42 * m.M13 * m.M34 - m.M14 * m.M33 * m.M42 - m.M34 * m.M43 * m.M12 - m.M44 * m.M13 * m.M32) / determinant, (m.M12 * m.M23 * m.M44 + m.M22 * m.M43 * m.M14 + m.M42 * m.M13 * m.M24 - m.M14 * m.M23 * m.M42 - m.M24 * m.M43 * m.M12 - m.M44 * m.M13 * m.M22) / determinant, -(m.M12 * m.M23 * m.M34 + m.M22 * m.M33 * m.M14 + m.M32 * m.M13 * m.M24 - m.M14 * m.M23 * m.M32 - m.M24 * m.M33 * m.M12 - m.M34 * m.M13 * m.M22) / determinant, -(m.M21 * m.M33 * m.M44 + m.M31 * m.M43 * m.M24 + m.M41 * m.M23 * m.M34 - m.M24 * m.M33 * m.M41 - m.M34 * m.M43 * m.M21 - m.M44 * m.M23 * m.M31) / determinant, (m.M11 * m.M33 * m.M44 + m.M31 * m.M43 * m.M14 + m.M41 * m.M13 * m.M34 - m.M14 * m.M33 * m.M41 - m.M34 * m.M43 * m.M11 - m.M44 * m.M13 * m.M31) / determinant, -(m.M11 * m.M23 * m.M44 + m.M21 * m.M43 * m.M14 + m.M41 * m.M13 * m.M24 - m.M14 * m.M23 * m.M41 - m.M24 * m.M43 * m.M11 - m.M44 * m.M13 * m.M21) / determinant, (m.M11 * m.M23 * m.M34 + m.M21 * m.M33 * m.M14 + m.M31 * m.M13 * m.M24 - m.M14 * m.M23 * m.M31 - m.M24 * m.M33 * m.M11 - m.M34 * m.M13 * m.M21) / determinant, (m.M21 * m.M32 * m.M44 + m.M31 * m.M42 * m.M24 + m.M41 * m.M22 * m.M34 - m.M24 * m.M32 * m.M41 - m.M34 * m.M42 * m.M21 - m.M44 * m.M22 * m.M31) / determinant, -(m.M11 * m.M32 * m.M44 + m.M31 * m.M42 * m.M14 + m.M41 * m.M12 * m.M34 - m.M14 * m.M32 * m.M41 - m.M34 * m.M42 * m.M11 - m.M44 * m.M12 * m.M31) / determinant, (m.M11 * m.M32 * m.M44 + m.M21 * m.M42 * m.M14 + m.M41 * m.M12 * m.M24 - m.M14 * m.M22 * m.M41 - m.M24 * m.M42 * m.M11 - m.M44 * m.M12 * m.M21) / determinant, -(m.M11 * m.M22 * m.M34 + m.M21 * m.M32 * m.M14 + m.M31 * m.M12 * m.M24 - m.M14 * m.M22 * m.M31 - m.M24 * m.M32 * m.M11 - m.M34 * m.M12 * m.M21) / determinant, -(m.M21 * m.M32 * m.M43 + m.M31 * m.M42 * m.M23 + m.M41 * m.M22 * m.M33 - m.M23 * m.M32 * m.M41 - m.M33 * m.M42 * m.M21 - m.M43 * m.M22 * m.M31) / determinant, (m.M11 * m.M32 * m.M43 + m.M31 * m.M42 * m.M13 + m.M41 * m.M12 * m.M33 - m.M13 * m.M32 * m.M41 - m.M33 * m.M42 * m.M11 - m.M43 * m.M12 * m.M31) / determinant, -(m.M11 * m.M22 * m.M43 + m.M21 * m.M42 * m.M13 + m.M41 * m.M12 * m.M23 - m.M13 * m.M22 * m.M41 - m.M23 * m.M42 * m.M11 - m.M43 * m.M12 * m.M21) / determinant, (m.M11 * m.M22 * m.M33 + m.M21 * m.M32 * m.M13 + m.M31 * m.M12 * m.M23 - m.M13 * m.M22 * m.M31 - m.M23 * m.M32 * m.M11 - m.M33 * m.M12 * m.M21) / determinant);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D operator +(global::MinecraftUSkinEditor.Models.Matrix3D a, global::MinecraftUSkinEditor.Models.Matrix3D b)
public static global::PckStudio.Models.Matrix3D operator +(global::PckStudio.Models.Matrix3D a, global::PckStudio.Models.Matrix3D b)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(a.M11 + b.M11, a.M12 + b.M12, a.M13 + b.M13, a.M14 + b.M14, a.M21 + b.M21, a.M22 + b.M22, a.M23 + b.M23, a.M24 + b.M24, a.M31 + b.M31, a.M32 + b.M32, a.M33 + b.M33, a.M34 + b.M34, a.M41 + b.M41, a.M42 + b.M42, a.M43 + b.M43, a.M44 + b.M44);
return new global::PckStudio.Models.Matrix3D(a.M11 + b.M11, a.M12 + b.M12, a.M13 + b.M13, a.M14 + b.M14, a.M21 + b.M21, a.M22 + b.M22, a.M23 + b.M23, a.M24 + b.M24, a.M31 + b.M31, a.M32 + b.M32, a.M33 + b.M33, a.M34 + b.M34, a.M41 + b.M41, a.M42 + b.M42, a.M43 + b.M43, a.M44 + b.M44);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D operator -(global::MinecraftUSkinEditor.Models.Matrix3D a, global::MinecraftUSkinEditor.Models.Matrix3D b)
public static global::PckStudio.Models.Matrix3D operator -(global::PckStudio.Models.Matrix3D a, global::PckStudio.Models.Matrix3D b)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(a.M11 - b.M11, a.M12 - b.M12, a.M13 - b.M13, a.M14 - b.M14, a.M21 - b.M21, a.M22 - b.M22, a.M23 - b.M23, a.M24 - b.M24, a.M31 - b.M31, a.M32 - b.M32, a.M33 - b.M33, a.M34 - b.M34, a.M41 - b.M41, a.M42 - b.M42, a.M43 - b.M43, a.M44 - b.M44);
return new global::PckStudio.Models.Matrix3D(a.M11 - b.M11, a.M12 - b.M12, a.M13 - b.M13, a.M14 - b.M14, a.M21 - b.M21, a.M22 - b.M22, a.M23 - b.M23, a.M24 - b.M24, a.M31 - b.M31, a.M32 - b.M32, a.M33 - b.M33, a.M34 - b.M34, a.M41 - b.M41, a.M42 - b.M42, a.M43 - b.M43, a.M44 - b.M44);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D operator *(global::MinecraftUSkinEditor.Models.Matrix3D a, global::MinecraftUSkinEditor.Models.Matrix3D b)
public static global::PckStudio.Models.Matrix3D operator *(global::PckStudio.Models.Matrix3D a, global::PckStudio.Models.Matrix3D b)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(a.M11 * b.M11 + a.M12 * b.M21 + a.M13 * b.M31 + a.M14 * b.M41, a.M11 * b.M12 + a.M12 * b.M22 + a.M13 * b.M32 + a.M14 * b.M42, a.M11 * b.M13 + a.M12 * b.M23 + a.M13 * b.M33 + a.M14 * b.M43, a.M11 * b.M14 + a.M12 * b.M24 + a.M13 * b.M34 + a.M14 * b.M44, a.M21 * b.M11 + a.M22 * b.M21 + a.M23 * b.M31 + a.M24 * b.M41, a.M21 * b.M12 + a.M22 * b.M22 + a.M23 * b.M32 + a.M24 * b.M42, a.M21 * b.M13 + a.M22 * b.M23 + a.M23 * b.M33 + a.M24 * b.M43, a.M21 * b.M14 + a.M22 * b.M24 + a.M23 * b.M34 + a.M24 * b.M44, a.M31 * b.M11 + a.M32 * b.M21 + a.M33 * b.M31 + a.M34 * b.M41, a.M31 * b.M12 + a.M32 * b.M22 + a.M33 * b.M32 + a.M34 * b.M42, a.M31 * b.M13 + a.M32 * b.M23 + a.M33 * b.M33 + a.M34 * b.M43, a.M31 * b.M14 + a.M32 * b.M24 + a.M33 * b.M34 + a.M34 * b.M44, a.M41 * b.M11 + a.M42 * b.M21 + a.M43 * b.M31 + a.M44 * b.M41, a.M41 * b.M12 + a.M42 * b.M22 + a.M43 * b.M32 + a.M44 * b.M42, a.M41 * b.M13 + a.M42 * b.M23 + a.M43 * b.M33 + a.M44 * b.M43, a.M41 * b.M14 + a.M42 * b.M24 + a.M43 * b.M34 + a.M44 * b.M44);
return new global::PckStudio.Models.Matrix3D(a.M11 * b.M11 + a.M12 * b.M21 + a.M13 * b.M31 + a.M14 * b.M41, a.M11 * b.M12 + a.M12 * b.M22 + a.M13 * b.M32 + a.M14 * b.M42, a.M11 * b.M13 + a.M12 * b.M23 + a.M13 * b.M33 + a.M14 * b.M43, a.M11 * b.M14 + a.M12 * b.M24 + a.M13 * b.M34 + a.M14 * b.M44, a.M21 * b.M11 + a.M22 * b.M21 + a.M23 * b.M31 + a.M24 * b.M41, a.M21 * b.M12 + a.M22 * b.M22 + a.M23 * b.M32 + a.M24 * b.M42, a.M21 * b.M13 + a.M22 * b.M23 + a.M23 * b.M33 + a.M24 * b.M43, a.M21 * b.M14 + a.M22 * b.M24 + a.M23 * b.M34 + a.M24 * b.M44, a.M31 * b.M11 + a.M32 * b.M21 + a.M33 * b.M31 + a.M34 * b.M41, a.M31 * b.M12 + a.M32 * b.M22 + a.M33 * b.M32 + a.M34 * b.M42, a.M31 * b.M13 + a.M32 * b.M23 + a.M33 * b.M33 + a.M34 * b.M43, a.M31 * b.M14 + a.M32 * b.M24 + a.M33 * b.M34 + a.M34 * b.M44, a.M41 * b.M11 + a.M42 * b.M21 + a.M43 * b.M31 + a.M44 * b.M41, a.M41 * b.M12 + a.M42 * b.M22 + a.M43 * b.M32 + a.M44 * b.M42, a.M41 * b.M13 + a.M42 * b.M23 + a.M43 * b.M33 + a.M44 * b.M43, a.M41 * b.M14 + a.M42 * b.M24 + a.M43 * b.M34 + a.M44 * b.M44);
}
public static global::MinecraftUSkinEditor.Models.Point3D operator *(global::MinecraftUSkinEditor.Models.Matrix3D m, global::MinecraftUSkinEditor.Models.Point3D p)
public static global::PckStudio.Models.Point3D operator *(global::PckStudio.Models.Matrix3D m, global::PckStudio.Models.Point3D p)
{
return new global::MinecraftUSkinEditor.Models.Point3D(p.X * m.M11 + p.Y * m.M12 + p.Z * m.M13 + m.M14, p.X * m.M21 + p.Y * m.M22 + p.Z * m.M23 + m.M24, p.X * m.M31 + p.Y * m.M32 + p.Z * m.M33 + m.M34);
return new global::PckStudio.Models.Point3D(p.X * m.M11 + p.Y * m.M12 + p.Z * m.M13 + m.M14, p.X * m.M21 + p.Y * m.M22 + p.Z * m.M23 + m.M24, p.X * m.M31 + p.Y * m.M32 + p.Z * m.M33 + m.M34);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D operator +(global::MinecraftUSkinEditor.Models.Matrix3D m, float n)
public static global::PckStudio.Models.Matrix3D operator +(global::PckStudio.Models.Matrix3D m, float n)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(m.M11 + n, m.M12 + n, m.M13 + n, m.M14 + n, m.M21 + n, m.M22 + n, m.M23 + n, m.M24 + n, m.M31 + n, m.M32 + n, m.M33 + n, m.M34 + n, m.M41 + n, m.M42 + n, m.M43 + n, m.M44 + n);
return new global::PckStudio.Models.Matrix3D(m.M11 + n, m.M12 + n, m.M13 + n, m.M14 + n, m.M21 + n, m.M22 + n, m.M23 + n, m.M24 + n, m.M31 + n, m.M32 + n, m.M33 + n, m.M34 + n, m.M41 + n, m.M42 + n, m.M43 + n, m.M44 + n);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D operator -(global::MinecraftUSkinEditor.Models.Matrix3D m, float n)
public static global::PckStudio.Models.Matrix3D operator -(global::PckStudio.Models.Matrix3D m, float n)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(m.M11 - n, m.M12 - n, m.M13 - n, m.M14 - n, m.M21 - n, m.M22 - n, m.M23 - n, m.M24 - n, m.M31 - n, m.M32 - n, m.M33 - n, m.M34 - n, m.M41 - n, m.M42 - n, m.M43 - n, m.M44 - n);
return new global::PckStudio.Models.Matrix3D(m.M11 - n, m.M12 - n, m.M13 - n, m.M14 - n, m.M21 - n, m.M22 - n, m.M23 - n, m.M24 - n, m.M31 - n, m.M32 - n, m.M33 - n, m.M34 - n, m.M41 - n, m.M42 - n, m.M43 - n, m.M44 - n);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D operator *(global::MinecraftUSkinEditor.Models.Matrix3D m, float n)
public static global::PckStudio.Models.Matrix3D operator *(global::PckStudio.Models.Matrix3D m, float n)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(m.M11 * n, m.M12 * n, m.M13 * n, m.M14 * n, m.M21 * n, m.M22 * n, m.M23 * n, m.M24 * n, m.M31 * n, m.M32 * n, m.M33 * n, m.M34 * n, m.M41 * n, m.M42 * n, m.M43 * n, m.M44 * n);
return new global::PckStudio.Models.Matrix3D(m.M11 * n, m.M12 * n, m.M13 * n, m.M14 * n, m.M21 * n, m.M22 * n, m.M23 * n, m.M24 * n, m.M31 * n, m.M32 * n, m.M33 * n, m.M34 * n, m.M41 * n, m.M42 * n, m.M43 * n, m.M44 * n);
}
public static global::MinecraftUSkinEditor.Models.Matrix3D operator /(global::MinecraftUSkinEditor.Models.Matrix3D m, float n)
public static global::PckStudio.Models.Matrix3D operator /(global::PckStudio.Models.Matrix3D m, float n)
{
return new global::MinecraftUSkinEditor.Models.Matrix3D(m.M11 / n, m.M12 / n, m.M13 / n, m.M14 / n, m.M21 / n, m.M22 / n, m.M23 / n, m.M24 / n, m.M31 / n, m.M32 / n, m.M33 / n, m.M34 / n, m.M41 / n, m.M42 / n, m.M43 / n, m.M44 / n);
return new global::PckStudio.Models.Matrix3D(m.M11 / n, m.M12 / n, m.M13 / n, m.M14 / n, m.M21 / n, m.M22 / n, m.M23 / n, m.M24 / n, m.M31 / n, m.M32 / n, m.M33 / n, m.M34 / n, m.M41 / n, m.M42 / n, m.M43 / n, m.M44 / n);
}
public float M11;

View File

@@ -1,5 +1,5 @@

namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
partial class MinecraftModelView
{
@@ -37,7 +37,7 @@ namespace MinecraftUSkinEditor.Models
}
private MinecraftUSkinEditor.Models.BackgroundTypes backgroundType;
private PckStudio.Models.BackgroundTypes backgroundType;
private System.Drawing.Brush backgroundBrush = new System.Drawing.SolidBrush(System.Drawing.Color.SkyBlue);
@@ -49,7 +49,7 @@ namespace MinecraftUSkinEditor.Models
private System.Drawing.Point mouseLastLocation;
private MinecraftUSkinEditor.Models.Object3D rotatingObject3D;
private PckStudio.Models.Object3D rotatingObject3D;
private System.Drawing.Color backgroundColor = System.Drawing.Color.Transparent;
@@ -65,15 +65,15 @@ namespace MinecraftUSkinEditor.Models
private System.Drawing.Image versionImage;
internal MinecraftUSkinEditor.Models.Matrix3D GlobalTransformation = MinecraftUSkinEditor.Models.Matrix3D.Identity;
internal PckStudio.Models.Matrix3D GlobalTransformation = PckStudio.Models.Matrix3D.Identity;
private System.Collections.Generic.List<MinecraftUSkinEditor.Models.Texel> texelList = new System.Collections.Generic.List<MinecraftUSkinEditor.Models.Texel>();
private System.Collections.Generic.List<PckStudio.Models.Texel> texelList = new System.Collections.Generic.List<PckStudio.Models.Texel>();
private MinecraftUSkinEditor.Models.TexelComparer texelComparer = new MinecraftUSkinEditor.Models.TexelComparer();
private PckStudio.Models.TexelComparer texelComparer = new PckStudio.Models.TexelComparer();
private System.Collections.Generic.List<MinecraftUSkinEditor.Models.Object3D> object3DList = new System.Collections.Generic.List<MinecraftUSkinEditor.Models.Object3D>();
private System.Collections.Generic.List<PckStudio.Models.Object3D> object3DList = new System.Collections.Generic.List<PckStudio.Models.Object3D>();
private System.Collections.Generic.List<MinecraftUSkinEditor.Models.Object3D> dynamicObject3DtList = new System.Collections.Generic.List<MinecraftUSkinEditor.Models.Object3D>();
private System.Collections.Generic.List<PckStudio.Models.Object3D> dynamicObject3DtList = new System.Collections.Generic.List<PckStudio.Models.Object3D>();
#endregion
}
}

View File

@@ -9,7 +9,7 @@ using System.Net;
using System.Threading;
using System.Windows.Forms;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public partial class MinecraftModelView : Control
{

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public abstract class Object3D
{
@@ -186,12 +186,12 @@ namespace MinecraftUSkinEditor.Models
}
set
{
this.scaleTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateScale(value);
this.scaleTransformation = global::PckStudio.Models.Matrix3D.CreateScale(value);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
}
}
public global::MinecraftUSkinEditor.Models.RotationOrders RotationOrder
public global::PckStudio.Models.RotationOrders RotationOrder
{
get
{
@@ -202,29 +202,29 @@ namespace MinecraftUSkinEditor.Models
this.order = value;
switch (this.order)
{
case global::MinecraftUSkinEditor.Models.RotationOrders.XY:
this.Rotate = new global::MinecraftUSkinEditor.Models.Object3D.RotateMethod(this.RotateXY);
this.UpdateRotation = new global::MinecraftUSkinEditor.Models.Object3D.UpdateRotationMethod(this.UpdateRotationXY);
case global::PckStudio.Models.RotationOrders.XY:
this.Rotate = new global::PckStudio.Models.Object3D.RotateMethod(this.RotateXY);
this.UpdateRotation = new global::PckStudio.Models.Object3D.UpdateRotationMethod(this.UpdateRotationXY);
return;
case global::MinecraftUSkinEditor.Models.RotationOrders.YX:
this.Rotate = new global::MinecraftUSkinEditor.Models.Object3D.RotateMethod(this.RotateYX);
this.UpdateRotation = new global::MinecraftUSkinEditor.Models.Object3D.UpdateRotationMethod(this.UpdateRotationYX);
case global::PckStudio.Models.RotationOrders.YX:
this.Rotate = new global::PckStudio.Models.Object3D.RotateMethod(this.RotateYX);
this.UpdateRotation = new global::PckStudio.Models.Object3D.UpdateRotationMethod(this.UpdateRotationYX);
return;
case global::MinecraftUSkinEditor.Models.RotationOrders.XZ:
this.Rotate = new global::MinecraftUSkinEditor.Models.Object3D.RotateMethod(this.RotateXZ);
this.UpdateRotation = new global::MinecraftUSkinEditor.Models.Object3D.UpdateRotationMethod(this.UpdateRotationXZ);
case global::PckStudio.Models.RotationOrders.XZ:
this.Rotate = new global::PckStudio.Models.Object3D.RotateMethod(this.RotateXZ);
this.UpdateRotation = new global::PckStudio.Models.Object3D.UpdateRotationMethod(this.UpdateRotationXZ);
return;
case global::MinecraftUSkinEditor.Models.RotationOrders.ZX:
this.Rotate = new global::MinecraftUSkinEditor.Models.Object3D.RotateMethod(this.RotateZX);
this.UpdateRotation = new global::MinecraftUSkinEditor.Models.Object3D.UpdateRotationMethod(this.UpdateRotationZX);
case global::PckStudio.Models.RotationOrders.ZX:
this.Rotate = new global::PckStudio.Models.Object3D.RotateMethod(this.RotateZX);
this.UpdateRotation = new global::PckStudio.Models.Object3D.UpdateRotationMethod(this.UpdateRotationZX);
return;
case global::MinecraftUSkinEditor.Models.RotationOrders.YZ:
this.Rotate = new global::MinecraftUSkinEditor.Models.Object3D.RotateMethod(this.RotateYZ);
this.UpdateRotation = new global::MinecraftUSkinEditor.Models.Object3D.UpdateRotationMethod(this.UpdateRotationYZ);
case global::PckStudio.Models.RotationOrders.YZ:
this.Rotate = new global::PckStudio.Models.Object3D.RotateMethod(this.RotateYZ);
this.UpdateRotation = new global::PckStudio.Models.Object3D.UpdateRotationMethod(this.UpdateRotationYZ);
return;
case global::MinecraftUSkinEditor.Models.RotationOrders.ZY:
this.Rotate = new global::MinecraftUSkinEditor.Models.Object3D.RotateMethod(this.RotateZY);
this.UpdateRotation = new global::MinecraftUSkinEditor.Models.Object3D.UpdateRotationMethod(this.UpdateRotationZY);
case global::PckStudio.Models.RotationOrders.ZY:
this.Rotate = new global::PckStudio.Models.Object3D.RotateMethod(this.RotateZY);
this.UpdateRotation = new global::PckStudio.Models.Object3D.UpdateRotationMethod(this.UpdateRotationZY);
return;
default:
return;
@@ -232,7 +232,7 @@ namespace MinecraftUSkinEditor.Models
}
}
internal virtual global::MinecraftUSkinEditor.Models.MinecraftModelView Viewport
internal virtual global::PckStudio.Models.MinecraftModelView Viewport
{
set
{
@@ -240,28 +240,28 @@ namespace MinecraftUSkinEditor.Models
}
}
public global::MinecraftUSkinEditor.Models.Point3D Origin
public global::PckStudio.Models.Point3D Origin
{
get
{
return new global::MinecraftUSkinEditor.Models.Point3D(-this.originTranslation.M14, -this.originTranslation.M24, -this.originTranslation.M34);
return new global::PckStudio.Models.Point3D(-this.originTranslation.M14, -this.originTranslation.M24, -this.originTranslation.M34);
}
set
{
this.originTranslation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateTranslation(-value.X, -value.Y, -value.Z);
this.originTranslation = global::PckStudio.Models.Matrix3D.CreateTranslation(-value.X, -value.Y, -value.Z);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
}
}
public global::MinecraftUSkinEditor.Models.Point3D Position
public global::PckStudio.Models.Point3D Position
{
get
{
return new global::MinecraftUSkinEditor.Models.Point3D(this.positionTranslation.M14, this.positionTranslation.M24, this.positionTranslation.M34);
return new global::PckStudio.Models.Point3D(this.positionTranslation.M14, this.positionTranslation.M24, this.positionTranslation.M34);
}
set
{
this.positionTranslation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateTranslation(value);
this.positionTranslation = global::PckStudio.Models.Matrix3D.CreateTranslation(value);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
this.Update();
}
@@ -269,7 +269,7 @@ namespace MinecraftUSkinEditor.Models
internal abstract void Update();
public global::MinecraftUSkinEditor.Models.Matrix3D GlobalTransformation
public global::PckStudio.Models.Matrix3D GlobalTransformation
{
get
{
@@ -282,7 +282,7 @@ namespace MinecraftUSkinEditor.Models
}
}
public global::MinecraftUSkinEditor.Models.Matrix3D LocalTransformation
public global::PckStudio.Models.Matrix3D LocalTransformation
{
get
{
@@ -379,42 +379,42 @@ namespace MinecraftUSkinEditor.Models
private void UpdateRotationXY()
{
this.CorrectAngles();
this.localRotation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationY(this.angle1) * global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationX(this.angle2);
this.localRotation = global::PckStudio.Models.Matrix3D.CreateRotationY(this.angle1) * global::PckStudio.Models.Matrix3D.CreateRotationX(this.angle2);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
}
private void UpdateRotationYX()
{
this.CorrectAngles();
this.localRotation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationX(this.angle2) * global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationY(this.angle1);
this.localRotation = global::PckStudio.Models.Matrix3D.CreateRotationX(this.angle2) * global::PckStudio.Models.Matrix3D.CreateRotationY(this.angle1);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
}
private void UpdateRotationXZ()
{
this.CorrectAngles();
this.localRotation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationZ(this.angle1) * global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationX(this.angle2);
this.localRotation = global::PckStudio.Models.Matrix3D.CreateRotationZ(this.angle1) * global::PckStudio.Models.Matrix3D.CreateRotationX(this.angle2);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
}
private void UpdateRotationZX()
{
this.CorrectAngles();
this.localRotation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationX(this.angle2) * global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationZ(this.angle1);
this.localRotation = global::PckStudio.Models.Matrix3D.CreateRotationX(this.angle2) * global::PckStudio.Models.Matrix3D.CreateRotationZ(this.angle1);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
}
private void UpdateRotationZY()
{
this.CorrectAngles();
this.localRotation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationY(this.angle2) * global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationZ(this.angle1);
this.localRotation = global::PckStudio.Models.Matrix3D.CreateRotationY(this.angle2) * global::PckStudio.Models.Matrix3D.CreateRotationZ(this.angle1);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
}
private void UpdateRotationYZ()
{
this.CorrectAngles();
this.localRotation = global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationZ(this.angle2) * global::MinecraftUSkinEditor.Models.Matrix3D.CreateRotationY(this.angle1);
this.localRotation = global::PckStudio.Models.Matrix3D.CreateRotationZ(this.angle2) * global::PckStudio.Models.Matrix3D.CreateRotationY(this.angle1);
this.localTransformation = this.positionTranslation * this.localRotation * this.originTranslation * this.scaleTransformation;
}
@@ -424,17 +424,17 @@ namespace MinecraftUSkinEditor.Models
public const float PIby180 = 0.0174532924f;
protected global::MinecraftUSkinEditor.Models.Matrix3D originTranslation = global::MinecraftUSkinEditor.Models.Matrix3D.Identity;
protected global::PckStudio.Models.Matrix3D originTranslation = global::PckStudio.Models.Matrix3D.Identity;
protected global::MinecraftUSkinEditor.Models.Matrix3D positionTranslation = global::MinecraftUSkinEditor.Models.Matrix3D.Identity;
protected global::PckStudio.Models.Matrix3D positionTranslation = global::PckStudio.Models.Matrix3D.Identity;
protected global::MinecraftUSkinEditor.Models.Matrix3D scaleTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.Identity;
protected global::PckStudio.Models.Matrix3D scaleTransformation = global::PckStudio.Models.Matrix3D.Identity;
protected global::MinecraftUSkinEditor.Models.Matrix3D localRotation = global::MinecraftUSkinEditor.Models.Matrix3D.Identity;
protected global::PckStudio.Models.Matrix3D localRotation = global::PckStudio.Models.Matrix3D.Identity;
protected global::MinecraftUSkinEditor.Models.Matrix3D localTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.Identity;
protected global::PckStudio.Models.Matrix3D localTransformation = global::PckStudio.Models.Matrix3D.Identity;
protected global::MinecraftUSkinEditor.Models.Matrix3D globalTransformation = global::MinecraftUSkinEditor.Models.Matrix3D.Identity;
protected global::PckStudio.Models.Matrix3D globalTransformation = global::PckStudio.Models.Matrix3D.Identity;
private float angle1;
@@ -448,13 +448,13 @@ namespace MinecraftUSkinEditor.Models
private float minAngle2 = -3.14159274f;
private global::MinecraftUSkinEditor.Models.RotationOrders order;
private global::PckStudio.Models.RotationOrders order;
protected global::MinecraftUSkinEditor.Models.MinecraftModelView viewport;
protected global::PckStudio.Models.MinecraftModelView viewport;
private global::MinecraftUSkinEditor.Models.Object3D.RotateMethod Rotate;
private global::PckStudio.Models.Object3D.RotateMethod Rotate;
private global::MinecraftUSkinEditor.Models.Object3D.UpdateRotationMethod UpdateRotation;
private global::PckStudio.Models.Object3D.UpdateRotationMethod UpdateRotation;
private delegate void RotateMethod(float deltaX, float deltaY);

View File

@@ -1,16 +1,16 @@
using System;
using System.Collections.Generic;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public class Object3DGroup : global::MinecraftUSkinEditor.Models.Object3D
public class Object3DGroup : global::PckStudio.Models.Object3D
{
internal override global::MinecraftUSkinEditor.Models.MinecraftModelView Viewport
internal override global::PckStudio.Models.MinecraftModelView Viewport
{
set
{
base.Viewport = value;
foreach (global::MinecraftUSkinEditor.Models.Object3D object3D in this.object3DList)
foreach (global::PckStudio.Models.Object3D object3D in this.object3DList)
{
object3D.Viewport = value;
}
@@ -21,7 +21,7 @@ namespace MinecraftUSkinEditor.Models
{
set
{
foreach (global::MinecraftUSkinEditor.Models.Object3D object3D in this.object3DList)
foreach (global::PckStudio.Models.Object3D object3D in this.object3DList)
{
object3D.Image = value;
}
@@ -30,7 +30,7 @@ namespace MinecraftUSkinEditor.Models
internal override void Update()
{
global::MinecraftUSkinEditor.Models.Matrix3D globalTransformation = this.globalTransformation * this.localTransformation;
global::PckStudio.Models.Matrix3D globalTransformation = this.globalTransformation * this.localTransformation;
for (int i = 0; i < this.object3DList.Count; i++)
{
this.object3DList[i].GlobalTransformation = globalTransformation;
@@ -40,7 +40,7 @@ namespace MinecraftUSkinEditor.Models
public override float HitTest(global::System.Drawing.PointF location)
{
float num = -1000f;
foreach (global::MinecraftUSkinEditor.Models.Object3D object3D in this.object3DList)
foreach (global::PckStudio.Models.Object3D object3D in this.object3DList)
{
float num2 = object3D.HitTest(location);
if (num2 > num)
@@ -51,7 +51,7 @@ namespace MinecraftUSkinEditor.Models
return num;
}
public void Add(global::MinecraftUSkinEditor.Models.Object3D object3D)
public void Add(global::PckStudio.Models.Object3D object3D)
{
if (object3D == this)
{
@@ -64,6 +64,6 @@ namespace MinecraftUSkinEditor.Models
{
}
private global::System.Collections.Generic.List<global::MinecraftUSkinEditor.Models.Object3D> object3DList = new global::System.Collections.Generic.List<global::MinecraftUSkinEditor.Models.Object3D>();
private global::System.Collections.Generic.List<global::PckStudio.Models.Object3D> object3DList = new global::System.Collections.Generic.List<global::PckStudio.Models.Object3D>();
}
}

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public struct Point3D
{
@@ -11,11 +11,11 @@ namespace MinecraftUSkinEditor.Models
this.Z = z;
}
public static global::MinecraftUSkinEditor.Models.Point3D Zero
public static global::PckStudio.Models.Point3D Zero
{
get
{
return default(global::MinecraftUSkinEditor.Models.Point3D);
return default(global::PckStudio.Models.Point3D);
}
}
@@ -33,24 +33,24 @@ namespace MinecraftUSkinEditor.Models
});
}
public static global::MinecraftUSkinEditor.Models.Point3D operator +(global::MinecraftUSkinEditor.Models.Point3D a, global::MinecraftUSkinEditor.Models.Point3D b)
public static global::PckStudio.Models.Point3D operator +(global::PckStudio.Models.Point3D a, global::PckStudio.Models.Point3D b)
{
return new global::MinecraftUSkinEditor.Models.Point3D(a.X + b.X, a.Y + b.Y, a.Z + b.Z);
return new global::PckStudio.Models.Point3D(a.X + b.X, a.Y + b.Y, a.Z + b.Z);
}
public static global::MinecraftUSkinEditor.Models.Point3D operator -(global::MinecraftUSkinEditor.Models.Point3D a, global::MinecraftUSkinEditor.Models.Point3D b)
public static global::PckStudio.Models.Point3D operator -(global::PckStudio.Models.Point3D a, global::PckStudio.Models.Point3D b)
{
return new global::MinecraftUSkinEditor.Models.Point3D(a.X - b.X, a.Y - b.Y, a.Z - b.Z);
return new global::PckStudio.Models.Point3D(a.X - b.X, a.Y - b.Y, a.Z - b.Z);
}
public static global::MinecraftUSkinEditor.Models.Point3D operator *(global::MinecraftUSkinEditor.Models.Point3D p, float s)
public static global::PckStudio.Models.Point3D operator *(global::PckStudio.Models.Point3D p, float s)
{
return new global::MinecraftUSkinEditor.Models.Point3D(p.X * s, p.Y * s, p.Z * s);
return new global::PckStudio.Models.Point3D(p.X * s, p.Y * s, p.Z * s);
}
public static global::MinecraftUSkinEditor.Models.Point3D operator /(global::MinecraftUSkinEditor.Models.Point3D p, float s)
public static global::PckStudio.Models.Point3D operator /(global::PckStudio.Models.Point3D p, float s)
{
return new global::MinecraftUSkinEditor.Models.Point3D(p.X / s, p.Y / s, p.Z / s);
return new global::PckStudio.Models.Point3D(p.X / s, p.Y / s, p.Z / s);
}
public float X;

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public enum Positions
{

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public enum ProjectionTypes : byte
{

View File

@@ -1,6 +1,6 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public enum RotationOrders : byte
{

View File

@@ -1,10 +1,10 @@
using System;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
internal struct Texel
{
internal Texel(global::MinecraftUSkinEditor.Models.TexturePlane texturePlane, int x, int y, global::System.Drawing.Color color)
internal Texel(global::PckStudio.Models.TexturePlane texturePlane, int x, int y, global::System.Drawing.Color color)
{
this.TexturePlane = texturePlane;
this.X = x;
@@ -34,7 +34,7 @@ namespace MinecraftUSkinEditor.Models
g.FillPolygon(this.brush, points);
}
internal global::MinecraftUSkinEditor.Models.TexturePlane TexturePlane;
internal global::PckStudio.Models.TexturePlane TexturePlane;
internal int X;

View File

@@ -1,11 +1,11 @@
using System;
using System.Collections.Generic;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
internal class TexelComparer : global::System.Collections.Generic.IComparer<global::MinecraftUSkinEditor.Models.Texel>
internal class TexelComparer : global::System.Collections.Generic.IComparer<global::PckStudio.Models.Texel>
{
public int Compare(global::MinecraftUSkinEditor.Models.Texel x, global::MinecraftUSkinEditor.Models.Texel y)
public int Compare(global::PckStudio.Models.Texel x, global::PckStudio.Models.Texel y)
{
return -x.Z.CompareTo(y.Z);
}

View File

@@ -4,7 +4,7 @@ using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Drawing;
namespace MinecraftUSkinEditor.Models
namespace PckStudio.Models
{
public class TexturePlane : Object3D
{

View File

@@ -4,44 +4,11 @@ using System.Text;
using System.IO;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public class PCK
{
public PCK(string filename)
{
try
{
IsLittleEndian = !(Read(File.ReadAllBytes(filename)));
if(IsLittleEndian)
ReadVita(File.ReadAllBytes(filename));
}
catch
{
}
}
private static byte[] endianReverseUnicode(byte[] str)
{
List<byte> NewBte = new List<byte>();
NewBte.AddRange(str);
NewBte.Reverse();
return NewBte.ToArray();
/* Old Endian Reverse Code
byte[] newStr = new byte[str.Length];
for (int i = 0; i < str.Length; i += 2)
{
newStr[i] = str[i + 1];
newStr[i + 1] = str[i];
}
return newStr;
*/
}
#region Variables
public class MineFile
{
@@ -51,23 +18,49 @@ namespace MinecraftUSkinEditor
public byte[] data;
public List<object[]> entries = new List<object[]>();
}
public bool IsLittleEndian;
public int pckType = 0;
public Dictionary<int, string> types = new Dictionary<int, string>();
public Dictionary<string, int> typeCodes = new Dictionary<string, int>();
public List<MineFile> mineFiles = new List<MineFile>();
public bool IsLittleEndian = false;
public int pckType = 0;
#endregion
public PCK()
{
}
public PCK(string filename)
{
try
{
IsLittleEndian = !(Read(File.ReadAllBytes(filename)));
if (IsLittleEndian)
ReadVita(File.ReadAllBytes(filename));
}
catch (Exception err)
{
Console.WriteLine(err.Message);
}
}
#region NormalPCK
public static string readMineString(FileData f)
private static byte[] endianReverseUnicode(byte[] str)
{
byte[] newStr = new byte[str.Length];
for (int i = 0; i < str.Length; i += 2)
{
newStr[i] = str[i + 1];
newStr[i + 1] = str[i];
}
return newStr;
}
static string readMineString(FileData f)
{
int length = f.readInt() * 2;
Console.WriteLine(length.ToString());
return Encoding.Unicode.GetString(endianReverseUnicode(f.readBytes(length)));
}
public bool Read(byte[] data)
@@ -81,9 +74,9 @@ namespace MinecraftUSkinEditor
FileData fileData = new FileData(data);
fileData.Endian = Endianness.Big;
fileData.readInt();
int entryTypeCount = fileData.readInt();
//int a = 0;
for (int i = 0; i < entryTypeCount; i++)
{
int unk = fileData.readInt();
@@ -91,8 +84,6 @@ namespace MinecraftUSkinEditor
try
{
text = readMineString(fileData);
//File.WriteAllText(Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + "\\exp\\PCKDump" + a + ".bin", text);
//a++;
}
catch
{
@@ -129,31 +120,31 @@ namespace MinecraftUSkinEditor
Console.WriteLine("NormalPCK");
}
for (int j = 0; j < itemCount; j++)
for (int i = 0; i < itemCount; i++)
{
MineFile mineFile = new MineFile();
mineFile.filesize = fileData.readInt();
mineFile.type = fileData.readInt();
MineFile mf = new MineFile();
mf.filesize = fileData.readInt();
mf.type = fileData.readInt();
int length = fileData.readInt() * 2;
mineFile.name = Encoding.Unicode.GetString(endianReverseUnicode(fileData.readBytes(length)));
mf.name = Encoding.Unicode.GetString(endianReverseUnicode(fileData.readBytes(length)));
fileData.skip(4);
mineFiles.Add(mineFile);
mineFiles.Add(mf);
}
foreach (MineFile mineFile2 in mineFiles)
foreach (MineFile mf in mineFiles)
{
int num4 = fileData.readInt();
for (int k = 0; k < num4; k++)
int entryCount = fileData.readInt();
for (int i = 0; i < entryCount; i++)
{
object[] array = new object[2];
int key = fileData.readInt();
array[0] = types[key];
array[1] = readMineString(fileData);
object[] temp = new object[2];
int entryTypeInt = fileData.readInt();
temp[0] = types[entryTypeInt]; //Entry type
temp[1] = readMineString(fileData); //Entry data
fileData.skip(4);
mineFile2.entries.Add(array);
mf.entries.Add(temp);
}
mineFile2.data = fileData.readBytes(mineFile2.filesize);
mf.data = fileData.readBytes(mf.filesize);
}
return true;
}
@@ -165,63 +156,68 @@ namespace MinecraftUSkinEditor
private static void writeMinecraftString(FileOutput f, string str)
{
byte[] bytes = Encoding.Unicode.GetBytes(str);
f.writeInt(bytes.Length / 2);
f.writeBytes(PCK.endianReverseUnicode(bytes));
byte[] d = Encoding.Unicode.GetBytes(str);
f.writeInt(d.Length / 2);
f.writeBytes(endianReverseUnicode(d));
f.writeInt(0);
}
public byte[] Rebuild()
{
FileOutput fileOutput = new FileOutput();
fileOutput.Endian = Endianness.Big;
fileOutput.writeInt(3);
fileOutput.writeInt(this.types.Count);
foreach (int num in this.types.Keys)
FileOutput f = new FileOutput();
f.Endian = Endianness.Big;
f.writeInt(3);
f.writeInt(types.Count);
foreach (int type in types.Keys)
{
fileOutput.writeInt(num);
PCK.writeMinecraftString(fileOutput, this.types[num]);
f.writeInt(type);
writeMinecraftString(f, types[type]);
}
fileOutput.writeInt(this.mineFiles.Count);
foreach (PCK.MineFile mineFile in this.mineFiles)
f.writeInt(mineFiles.Count);
foreach (MineFile mf in mineFiles)
{
fileOutput.writeInt(mineFile.data.Length);
fileOutput.writeInt(mineFile.type);
PCK.writeMinecraftString(fileOutput, mineFile.name);
f.writeInt(mf.data.Length);
f.writeInt(mf.type);
writeMinecraftString(f, mf.name);
}
foreach (PCK.MineFile mineFile2 in this.mineFiles)
foreach (MineFile mf in mineFiles)
{
string str = "";
string missing = "";
try
{
fileOutput.writeInt(mineFile2.entries.Count);
foreach (object[] array in mineFile2.entries)
f.writeInt(mf.entries.Count);
foreach (object[] entry in mf.entries)
{
str = array[0].ToString();
fileOutput.writeInt(this.typeCodes[(string)array[0]]);
PCK.writeMinecraftString(fileOutput, (string)array[1]);
missing = entry[0].ToString();
f.writeInt(typeCodes[(string)entry[0]]);
writeMinecraftString(f, (string)entry[1]);
}
fileOutput.writeBytes(mineFile2.data);
f.writeBytes(mf.data);
}
catch (Exception)
{
MessageBox.Show(str + " is not in the main metadatabase");
MessageBox.Show(missing + " is not in the main metadatabase");
break;
}
}
return fileOutput.getBytes();
return f.getBytes();
}
#endregion
#region VitaPCK
#region Vita/PS4 PCK
public static string readMineStringVita(FileData f)
static string readMineStringVita(FileData f)
{
int length = f.readIntVita() * 2;
Console.WriteLine(length.ToString());
return Encoding.Unicode.GetString((f.readBytes(length)));
}
public void ReadVita(byte[] data)
@@ -361,4 +357,4 @@ namespace MinecraftUSkinEditor
#endregion
}
}
}

View File

@@ -7,7 +7,7 @@ using System.Threading;
using System.Windows.Forms;
using PckStudio.Classes;
namespace MinecraftUSkinEditor
namespace PckStudio
{

Binary file not shown.

View File

@@ -13,9 +13,9 @@ namespace PckStudio.Forms
{
public partial class AddPCKPassword : MetroForm
{
MinecraftUSkinEditor.PCK currentPCK;
MinecraftUSkinEditor.PCK.MineFile file;
public AddPCKPassword(MinecraftUSkinEditor.PCK.MineFile fileIn, MinecraftUSkinEditor.PCK currentPCKIn)
PckStudio.PCK currentPCK;
PckStudio.PCK.MineFile file;
public AddPCKPassword(PckStudio.PCK.MineFile fileIn, PckStudio.PCK currentPCKIn)
{
InitializeComponent();

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class MetaADD
{

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class MetaADD : Form
{

View File

@@ -26,7 +26,7 @@ namespace PckStudio.Forms
{
using (WebClient getData = new WebClient())
{
data = getData.DownloadString(MinecraftUSkinEditor.Program.baseurl + "Promo/PromoFC");
data = getData.DownloadString(PckStudio.Program.baseurl + "Promo/PromoFC");
//data = "k_EPynYjxmc";
webBrowser1.ScrollBarsEnabled = false;

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class meta
{

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class meta : MetroFramework.Forms.MetroForm
{
@@ -53,7 +53,7 @@ namespace MinecraftUSkinEditor
private void addToolStripMenuItem_Click(object sender, EventArgs e)
{
MinecraftUSkinEditor.MetaADD add = new MinecraftUSkinEditor.MetaADD(currentPCK, treeView1);
PckStudio.MetaADD add = new PckStudio.MetaADD(currentPCK, treeView1);
add.TopMost = true;
add.TopLevel = true;
add.ShowDialog();

View File

@@ -7,7 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MinecraftUSkinEditor;
using PckStudio;
namespace PckStudio.Forms
{

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class presetMeta
{

View File

@@ -9,7 +9,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class presetMeta : MetroFramework.Forms.MetroForm
{

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class FormMain
{
@@ -28,6 +28,7 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain));
this.contextMenuPCKEntries = new System.Windows.Forms.ContextMenuStrip(this.components);
@@ -94,29 +95,23 @@
this.directorySearcher1 = new System.DirectoryServices.DirectorySearcher();
this.openedPCKS = new MetroFramework.Controls.MetroTabControl();
this.tabPage1 = new MetroFramework.Controls.MetroTabPage();
this.myTablePanelPckEdit = new PckStudio.Forms.MyTablePanel();
this.treeViewMain = new System.Windows.Forms.TreeView();
this.pictureBoxImagePreview = new MinecraftUSkinEditor.PictureBoxWithInterpolationMode();
this.labelAmount = new MetroFramework.Controls.MetroLabel();
this.tabDataDisplay = new System.Windows.Forms.TabControl();
this.tabMetaDisplay = new System.Windows.Forms.TabPage();
this.myTablePanel1 = new PckStudio.Forms.MyTablePanel();
this.treeMeta = new System.Windows.Forms.TreeView();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label2 = new MetroFramework.Controls.MetroLabel();
this.textBox1 = new System.Windows.Forms.TextBox();
this.labelEntryType = new MetroFramework.Controls.MetroLabel();
this.label3 = new MetroFramework.Controls.MetroLabel();
this.labelEntryData = new MetroFramework.Controls.MetroLabel();
this.buttonEdit = new System.Windows.Forms.Button();
this.labelImageSize = new MetroFramework.Controls.MetroLabel();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.DBGLabel = new MetroFramework.Controls.MetroLabel();
this.metroTabControl1 = new MetroFramework.Controls.MetroTabControl();
this.metroTabPage1 = new MetroFramework.Controls.MetroTabPage();
this.label10 = new MetroFramework.Controls.MetroLabel();
this.label11 = new MetroFramework.Controls.MetroLabel();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.ChangeURL = new MetroFramework.Controls.MetroLabel();
this.LittleEndianCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.myTablePanelStartScreen = new PckStudio.Forms.MyTablePanel();
this.richTextBoxChangelog = new System.Windows.Forms.RichTextBox();
this.label5 = new MetroFramework.Controls.MetroLabel();
this.pckOpen = new System.Windows.Forms.PictureBox();
this.myTablePanel2 = new PckStudio.Forms.MyTablePanel();
this.treeView1 = new System.Windows.Forms.TreeView();
this.pictureBoxWithInterpolationMode1 = new MinecraftUSkinEditor.PictureBoxWithInterpolationMode();
this.pictureBoxWithInterpolationMode1 = new PckStudio.PictureBoxWithInterpolationMode();
this.label4 = new MetroFramework.Controls.MetroLabel();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage2 = new System.Windows.Forms.TabPage();
@@ -129,35 +124,41 @@
this.label8 = new MetroFramework.Controls.MetroLabel();
this.label9 = new MetroFramework.Controls.MetroLabel();
this.button1 = new System.Windows.Forms.Button();
this.label10 = new MetroFramework.Controls.MetroLabel();
this.label11 = new MetroFramework.Controls.MetroLabel();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.ChangeURL = new MetroFramework.Controls.MetroLabel();
this.LittleEndianCheckBox = new MetroFramework.Controls.MetroCheckBox();
this.myTablePanelStartScreen = new PckStudio.Forms.MyTablePanel();
this.richTextBoxChangelog = new System.Windows.Forms.RichTextBox();
this.label5 = new MetroFramework.Controls.MetroLabel();
this.pckOpen = new System.Windows.Forms.PictureBox();
this.myTablePanelPckEdit = new PckStudio.Forms.MyTablePanel();
this.treeViewMain = new System.Windows.Forms.TreeView();
this.pictureBoxImagePreview = new PckStudio.PictureBoxWithInterpolationMode();
this.labelAmount = new MetroFramework.Controls.MetroLabel();
this.tabDataDisplay = new System.Windows.Forms.TabControl();
this.tabMetaDisplay = new System.Windows.Forms.TabPage();
this.myTablePanel1 = new PckStudio.Forms.MyTablePanel();
this.treeMeta = new System.Windows.Forms.TreeView();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label2 = new MetroFramework.Controls.MetroLabel();
this.textBox1 = new System.Windows.Forms.TextBox();
this.labelEntryType = new MetroFramework.Controls.MetroLabel();
this.label3 = new MetroFramework.Controls.MetroLabel();
this.labelEntryData = new MetroFramework.Controls.MetroLabel();
this.buttonEdit = new System.Windows.Forms.Button();
this.contextMenuPCKEntries.SuspendLayout();
this.menuStrip.SuspendLayout();
this.contextMenuMetaTree.SuspendLayout();
this.openedPCKS.SuspendLayout();
this.tabPage1.SuspendLayout();
this.myTablePanelPckEdit.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxImagePreview)).BeginInit();
this.tabDataDisplay.SuspendLayout();
this.tabMetaDisplay.SuspendLayout();
this.myTablePanel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.metroTabControl1.SuspendLayout();
this.metroTabPage1.SuspendLayout();
this.myTablePanelStartScreen.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pckOpen)).BeginInit();
this.myTablePanel2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWithInterpolationMode1)).BeginInit();
this.tabControl1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.myTablePanel3.SuspendLayout();
this.myTablePanelStartScreen.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pckOpen)).BeginInit();
this.myTablePanelPckEdit.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxImagePreview)).BeginInit();
this.tabDataDisplay.SuspendLayout();
this.tabMetaDisplay.SuspendLayout();
this.myTablePanel1.SuspendLayout();
this.SuspendLayout();
//
// contextMenuPCKEntries
@@ -634,6 +635,236 @@
this.tabPage1.VerticalScrollbarHighlightOnWheel = false;
this.tabPage1.VerticalScrollbarSize = 0;
//
// labelImageSize
//
resources.ApplyResources(this.labelImageSize, "labelImageSize");
this.labelImageSize.Name = "labelImageSize";
//
// pictureBox2
//
resources.ApplyResources(this.pictureBox2, "pictureBox2");
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.TabStop = false;
//
// DBGLabel
//
resources.ApplyResources(this.DBGLabel, "DBGLabel");
this.DBGLabel.FontWeight = MetroFramework.MetroLabelWeight.Bold;
this.DBGLabel.ForeColor = System.Drawing.Color.Red;
this.DBGLabel.Name = "DBGLabel";
this.DBGLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// metroTabControl1
//
this.metroTabControl1.Controls.Add(this.metroTabPage1);
resources.ApplyResources(this.metroTabControl1, "metroTabControl1");
this.metroTabControl1.Name = "metroTabControl1";
this.metroTabControl1.SelectedIndex = 0;
this.metroTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.metroTabControl1.Style = MetroFramework.MetroColorStyle.White;
this.metroTabControl1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroTabControl1.UseSelectable = true;
//
// metroTabPage1
//
this.metroTabPage1.BackColor = System.Drawing.Color.Transparent;
this.metroTabPage1.Controls.Add(this.myTablePanel2);
this.metroTabPage1.Controls.Add(this.label10);
this.metroTabPage1.Controls.Add(this.label11);
this.metroTabPage1.HorizontalScrollbarBarColor = true;
this.metroTabPage1.HorizontalScrollbarHighlightOnWheel = false;
this.metroTabPage1.HorizontalScrollbarSize = 0;
resources.ApplyResources(this.metroTabPage1, "metroTabPage1");
this.metroTabPage1.Name = "metroTabPage1";
this.metroTabPage1.Style = MetroFramework.MetroColorStyle.White;
this.metroTabPage1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroTabPage1.VerticalScrollbarBarColor = true;
this.metroTabPage1.VerticalScrollbarHighlightOnWheel = false;
this.metroTabPage1.VerticalScrollbarSize = 0;
//
// label10
//
resources.ApplyResources(this.label10, "label10");
this.label10.Name = "label10";
//
// label11
//
resources.ApplyResources(this.label11, "label11");
this.label11.Name = "label11";
//
// timer1
//
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// ChangeURL
//
resources.ApplyResources(this.ChangeURL, "ChangeURL");
this.ChangeURL.Name = "ChangeURL";
this.ChangeURL.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// LittleEndianCheckBox
//
resources.ApplyResources(this.LittleEndianCheckBox, "LittleEndianCheckBox");
this.LittleEndianCheckBox.Name = "LittleEndianCheckBox";
this.LittleEndianCheckBox.Style = MetroFramework.MetroColorStyle.White;
this.LittleEndianCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.LittleEndianCheckBox.UseSelectable = true;
//
// myTablePanelStartScreen
//
resources.ApplyResources(this.myTablePanelStartScreen, "myTablePanelStartScreen");
this.myTablePanelStartScreen.Controls.Add(this.richTextBoxChangelog, 1, 1);
this.myTablePanelStartScreen.Controls.Add(this.label5, 1, 0);
this.myTablePanelStartScreen.Controls.Add(this.pckOpen, 0, 0);
this.myTablePanelStartScreen.Name = "myTablePanelStartScreen";
//
// richTextBoxChangelog
//
this.richTextBoxChangelog.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28)))));
this.richTextBoxChangelog.BorderStyle = System.Windows.Forms.BorderStyle.None;
resources.ApplyResources(this.richTextBoxChangelog, "richTextBoxChangelog");
this.richTextBoxChangelog.ForeColor = System.Drawing.Color.White;
this.richTextBoxChangelog.Name = "richTextBoxChangelog";
this.richTextBoxChangelog.ReadOnly = true;
//
// label5
//
resources.ApplyResources(this.label5, "label5");
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Name = "label5";
this.label5.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// pckOpen
//
resources.ApplyResources(this.pckOpen, "pckOpen");
this.pckOpen.Image = global::PckStudio.Properties.Resources.pckClosed;
this.pckOpen.Name = "pckOpen";
this.myTablePanelStartScreen.SetRowSpan(this.pckOpen, 2);
this.pckOpen.TabStop = false;
this.pckOpen.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
this.pckOpen.DragDrop += new System.Windows.Forms.DragEventHandler(this.OpenPck_DragDrop);
this.pckOpen.DragEnter += new System.Windows.Forms.DragEventHandler(this.OpenPck_DragEnter);
this.pckOpen.DragLeave += new System.EventHandler(this.OpenPck_DragLeave);
this.pckOpen.MouseEnter += new System.EventHandler(this.OpenPck_MouseEnter);
this.pckOpen.MouseLeave += new System.EventHandler(this.OpenPck_MouseLeave);
//
// myTablePanel2
//
resources.ApplyResources(this.myTablePanel2, "myTablePanel2");
this.myTablePanel2.Controls.Add(this.treeView1, 0, 0);
this.myTablePanel2.Controls.Add(this.pictureBoxWithInterpolationMode1, 1, 0);
this.myTablePanel2.Controls.Add(this.label4, 2, 0);
this.myTablePanel2.Controls.Add(this.tabControl1, 1, 4);
this.myTablePanel2.Name = "myTablePanel2";
//
// treeView1
//
this.treeView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView1.ContextMenuStrip = this.contextMenuPCKEntries;
resources.ApplyResources(this.treeView1, "treeView1");
this.treeView1.ForeColor = System.Drawing.Color.White;
this.treeView1.LabelEdit = true;
this.treeView1.Name = "treeView1";
this.myTablePanel2.SetRowSpan(this.treeView1, 6);
//
// pictureBoxWithInterpolationMode1
//
resources.ApplyResources(this.pictureBoxWithInterpolationMode1, "pictureBoxWithInterpolationMode1");
this.pictureBoxWithInterpolationMode1.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
this.pictureBoxWithInterpolationMode1.Name = "pictureBoxWithInterpolationMode1";
this.myTablePanel2.SetRowSpan(this.pictureBoxWithInterpolationMode1, 4);
this.pictureBoxWithInterpolationMode1.TabStop = false;
//
// label4
//
resources.ApplyResources(this.label4, "label4");
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Name = "label4";
//
// tabControl1
//
this.myTablePanel2.SetColumnSpan(this.tabControl1, 2);
this.tabControl1.Controls.Add(this.tabPage2);
resources.ApplyResources(this.tabControl1, "tabControl1");
this.tabControl1.Name = "tabControl1";
this.myTablePanel2.SetRowSpan(this.tabControl1, 2);
this.tabControl1.SelectedIndex = 0;
//
// tabPage2
//
this.tabPage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.tabPage2.Controls.Add(this.myTablePanel3);
resources.ApplyResources(this.tabPage2, "tabPage2");
this.tabPage2.Name = "tabPage2";
//
// myTablePanel3
//
resources.ApplyResources(this.myTablePanel3, "myTablePanel3");
this.myTablePanel3.Controls.Add(this.treeView2, 0, 0);
this.myTablePanel3.Controls.Add(this.comboBox2, 1, 1);
this.myTablePanel3.Controls.Add(this.label6, 1, 4);
this.myTablePanel3.Controls.Add(this.textBox2, 1, 3);
this.myTablePanel3.Controls.Add(this.label7, 1, 0);
this.myTablePanel3.Controls.Add(this.label8, 1, 5);
this.myTablePanel3.Controls.Add(this.label9, 1, 2);
this.myTablePanel3.Controls.Add(this.button1, 0, 6);
this.myTablePanel3.Name = "myTablePanel3";
//
// treeView2
//
this.treeView2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView2.ContextMenuStrip = this.contextMenuMetaTree;
resources.ApplyResources(this.treeView2, "treeView2");
this.treeView2.ForeColor = System.Drawing.Color.White;
this.treeView2.Name = "treeView2";
this.myTablePanel3.SetRowSpan(this.treeView2, 6);
//
// comboBox2
//
resources.ApplyResources(this.comboBox2, "comboBox2");
this.comboBox2.BackColor = System.Drawing.Color.White;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Name = "comboBox2";
//
// label6
//
resources.ApplyResources(this.label6, "label6");
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Name = "label6";
//
// textBox2
//
resources.ApplyResources(this.textBox2, "textBox2");
this.textBox2.BackColor = System.Drawing.Color.White;
this.textBox2.Name = "textBox2";
//
// label7
//
resources.ApplyResources(this.label7, "label7");
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Name = "label7";
//
// label8
//
resources.ApplyResources(this.label8, "label8");
this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Name = "label8";
//
// label9
//
resources.ApplyResources(this.label9, "label9");
this.label9.ForeColor = System.Drawing.Color.White;
this.label9.Name = "label9";
//
// button1
//
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.myTablePanel3.SetColumnSpan(this.button1, 2);
resources.ApplyResources(this.button1, "button1");
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Name = "button1";
this.button1.UseVisualStyleBackColor = false;
//
// myTablePanelPckEdit
//
resources.ApplyResources(this.myTablePanelPckEdit, "myTablePanelPckEdit");
@@ -759,235 +990,6 @@
this.buttonEdit.UseVisualStyleBackColor = false;
this.buttonEdit.Click += new System.EventHandler(this.buttonEditModel_Click);
//
// labelImageSize
//
resources.ApplyResources(this.labelImageSize, "labelImageSize");
this.labelImageSize.Name = "labelImageSize";
//
// pictureBox2
//
resources.ApplyResources(this.pictureBox2, "pictureBox2");
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.TabStop = false;
//
// DBGLabel
//
resources.ApplyResources(this.DBGLabel, "DBGLabel");
this.DBGLabel.ForeColor = System.Drawing.Color.Red;
this.DBGLabel.Name = "DBGLabel";
this.DBGLabel.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// metroTabControl1
//
this.metroTabControl1.Controls.Add(this.metroTabPage1);
resources.ApplyResources(this.metroTabControl1, "metroTabControl1");
this.metroTabControl1.Name = "metroTabControl1";
this.metroTabControl1.SelectedIndex = 0;
this.metroTabControl1.SizeMode = System.Windows.Forms.TabSizeMode.Fixed;
this.metroTabControl1.Style = MetroFramework.MetroColorStyle.White;
this.metroTabControl1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroTabControl1.UseSelectable = true;
//
// metroTabPage1
//
this.metroTabPage1.BackColor = System.Drawing.Color.Transparent;
this.metroTabPage1.Controls.Add(this.myTablePanel2);
this.metroTabPage1.Controls.Add(this.label10);
this.metroTabPage1.Controls.Add(this.label11);
this.metroTabPage1.HorizontalScrollbarBarColor = true;
this.metroTabPage1.HorizontalScrollbarHighlightOnWheel = false;
this.metroTabPage1.HorizontalScrollbarSize = 0;
resources.ApplyResources(this.metroTabPage1, "metroTabPage1");
this.metroTabPage1.Name = "metroTabPage1";
this.metroTabPage1.Style = MetroFramework.MetroColorStyle.White;
this.metroTabPage1.Theme = MetroFramework.MetroThemeStyle.Dark;
this.metroTabPage1.VerticalScrollbarBarColor = true;
this.metroTabPage1.VerticalScrollbarHighlightOnWheel = false;
this.metroTabPage1.VerticalScrollbarSize = 0;
//
// myTablePanel2
//
resources.ApplyResources(this.myTablePanel2, "myTablePanel2");
this.myTablePanel2.Controls.Add(this.treeView1, 0, 0);
this.myTablePanel2.Controls.Add(this.pictureBoxWithInterpolationMode1, 1, 0);
this.myTablePanel2.Controls.Add(this.label4, 2, 0);
this.myTablePanel2.Controls.Add(this.tabControl1, 1, 4);
this.myTablePanel2.Name = "myTablePanel2";
//
// treeView1
//
this.treeView1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView1.ContextMenuStrip = this.contextMenuPCKEntries;
resources.ApplyResources(this.treeView1, "treeView1");
this.treeView1.ForeColor = System.Drawing.Color.White;
this.treeView1.LabelEdit = true;
this.treeView1.Name = "treeView1";
this.myTablePanel2.SetRowSpan(this.treeView1, 6);
//
// pictureBoxWithInterpolationMode1
//
resources.ApplyResources(this.pictureBoxWithInterpolationMode1, "pictureBoxWithInterpolationMode1");
this.pictureBoxWithInterpolationMode1.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
this.pictureBoxWithInterpolationMode1.Name = "pictureBoxWithInterpolationMode1";
this.myTablePanel2.SetRowSpan(this.pictureBoxWithInterpolationMode1, 4);
this.pictureBoxWithInterpolationMode1.TabStop = false;
//
// label4
//
resources.ApplyResources(this.label4, "label4");
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Name = "label4";
//
// tabControl1
//
this.myTablePanel2.SetColumnSpan(this.tabControl1, 2);
this.tabControl1.Controls.Add(this.tabPage2);
resources.ApplyResources(this.tabControl1, "tabControl1");
this.tabControl1.Name = "tabControl1";
this.myTablePanel2.SetRowSpan(this.tabControl1, 2);
this.tabControl1.SelectedIndex = 0;
//
// tabPage2
//
this.tabPage2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(20)))), ((int)(((byte)(20)))));
this.tabPage2.Controls.Add(this.myTablePanel3);
resources.ApplyResources(this.tabPage2, "tabPage2");
this.tabPage2.Name = "tabPage2";
//
// myTablePanel3
//
resources.ApplyResources(this.myTablePanel3, "myTablePanel3");
this.myTablePanel3.Controls.Add(this.treeView2, 0, 0);
this.myTablePanel3.Controls.Add(this.comboBox2, 1, 1);
this.myTablePanel3.Controls.Add(this.label6, 1, 4);
this.myTablePanel3.Controls.Add(this.textBox2, 1, 3);
this.myTablePanel3.Controls.Add(this.label7, 1, 0);
this.myTablePanel3.Controls.Add(this.label8, 1, 5);
this.myTablePanel3.Controls.Add(this.label9, 1, 2);
this.myTablePanel3.Controls.Add(this.button1, 0, 6);
this.myTablePanel3.Name = "myTablePanel3";
//
// treeView2
//
this.treeView2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.treeView2.ContextMenuStrip = this.contextMenuMetaTree;
resources.ApplyResources(this.treeView2, "treeView2");
this.treeView2.ForeColor = System.Drawing.Color.White;
this.treeView2.Name = "treeView2";
this.myTablePanel3.SetRowSpan(this.treeView2, 6);
//
// comboBox2
//
resources.ApplyResources(this.comboBox2, "comboBox2");
this.comboBox2.BackColor = System.Drawing.Color.White;
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Name = "comboBox2";
//
// label6
//
resources.ApplyResources(this.label6, "label6");
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Name = "label6";
//
// textBox2
//
resources.ApplyResources(this.textBox2, "textBox2");
this.textBox2.BackColor = System.Drawing.Color.White;
this.textBox2.Name = "textBox2";
//
// label7
//
resources.ApplyResources(this.label7, "label7");
this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Name = "label7";
//
// label8
//
resources.ApplyResources(this.label8, "label8");
this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Name = "label8";
//
// label9
//
resources.ApplyResources(this.label9, "label9");
this.label9.ForeColor = System.Drawing.Color.White;
this.label9.Name = "label9";
//
// button1
//
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.myTablePanel3.SetColumnSpan(this.button1, 2);
resources.ApplyResources(this.button1, "button1");
this.button1.ForeColor = System.Drawing.Color.White;
this.button1.Name = "button1";
this.button1.UseVisualStyleBackColor = false;
//
// label10
//
resources.ApplyResources(this.label10, "label10");
this.label10.Name = "label10";
//
// label11
//
resources.ApplyResources(this.label11, "label11");
this.label11.Name = "label11";
//
// timer1
//
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// ChangeURL
//
resources.ApplyResources(this.ChangeURL, "ChangeURL");
this.ChangeURL.Name = "ChangeURL";
this.ChangeURL.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// LittleEndianCheckBox
//
resources.ApplyResources(this.LittleEndianCheckBox, "LittleEndianCheckBox");
this.LittleEndianCheckBox.Name = "LittleEndianCheckBox";
this.LittleEndianCheckBox.Style = MetroFramework.MetroColorStyle.White;
this.LittleEndianCheckBox.Theme = MetroFramework.MetroThemeStyle.Dark;
this.LittleEndianCheckBox.UseSelectable = true;
//
// myTablePanelStartScreen
//
resources.ApplyResources(this.myTablePanelStartScreen, "myTablePanelStartScreen");
this.myTablePanelStartScreen.Controls.Add(this.richTextBoxChangelog, 1, 1);
this.myTablePanelStartScreen.Controls.Add(this.label5, 1, 0);
this.myTablePanelStartScreen.Controls.Add(this.pckOpen, 0, 0);
this.myTablePanelStartScreen.Name = "myTablePanelStartScreen";
//
// richTextBoxChangelog
//
this.richTextBoxChangelog.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(28)))), ((int)(((byte)(28)))), ((int)(((byte)(28)))));
this.richTextBoxChangelog.BorderStyle = System.Windows.Forms.BorderStyle.None;
resources.ApplyResources(this.richTextBoxChangelog, "richTextBoxChangelog");
this.richTextBoxChangelog.ForeColor = System.Drawing.Color.White;
this.richTextBoxChangelog.Name = "richTextBoxChangelog";
this.richTextBoxChangelog.ReadOnly = true;
//
// label5
//
resources.ApplyResources(this.label5, "label5");
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Name = "label5";
this.label5.Theme = MetroFramework.MetroThemeStyle.Dark;
//
// pckOpen
//
resources.ApplyResources(this.pckOpen, "pckOpen");
this.pckOpen.Image = global::PckStudio.Properties.Resources.pckClosed;
this.pckOpen.Name = "pckOpen";
this.myTablePanelStartScreen.SetRowSpan(this.pckOpen, 2);
this.pckOpen.TabStop = false;
this.pckOpen.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
this.pckOpen.DragDrop += new System.Windows.Forms.DragEventHandler(this.OpenPck_DragDrop);
this.pckOpen.DragEnter += new System.Windows.Forms.DragEventHandler(this.OpenPck_DragEnter);
this.pckOpen.DragLeave += new System.EventHandler(this.OpenPck_DragLeave);
this.pckOpen.MouseEnter += new System.EventHandler(this.OpenPck_MouseEnter);
this.pckOpen.MouseLeave += new System.EventHandler(this.OpenPck_MouseLeave);
//
// FormMain
//
this.ApplyImageInvert = true;
@@ -1017,17 +1019,13 @@
this.openedPCKS.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.myTablePanelPckEdit.ResumeLayout(false);
this.myTablePanelPckEdit.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxImagePreview)).EndInit();
this.tabDataDisplay.ResumeLayout(false);
this.tabMetaDisplay.ResumeLayout(false);
this.myTablePanel1.ResumeLayout(false);
this.myTablePanel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.metroTabControl1.ResumeLayout(false);
this.metroTabPage1.ResumeLayout(false);
this.metroTabPage1.PerformLayout();
this.myTablePanelStartScreen.ResumeLayout(false);
this.myTablePanelStartScreen.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pckOpen)).EndInit();
this.myTablePanel2.ResumeLayout(false);
this.myTablePanel2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxWithInterpolationMode1)).EndInit();
@@ -1035,9 +1033,13 @@
this.tabPage2.ResumeLayout(false);
this.myTablePanel3.ResumeLayout(false);
this.myTablePanel3.PerformLayout();
this.myTablePanelStartScreen.ResumeLayout(false);
this.myTablePanelStartScreen.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pckOpen)).EndInit();
this.myTablePanelPckEdit.ResumeLayout(false);
this.myTablePanelPckEdit.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBoxImagePreview)).EndInit();
this.tabDataDisplay.ResumeLayout(false);
this.tabMetaDisplay.ResumeLayout(false);
this.myTablePanel1.ResumeLayout(false);
this.myTablePanel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();

View File

@@ -16,7 +16,7 @@ using PckStudio.Forms;
using System.Drawing.Imaging;
using RichPresenceClient;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class FormMain : MetroFramework.Forms.MetroForm
{
@@ -24,7 +24,7 @@ namespace MinecraftUSkinEditor
string saveLocation;//Save location for pck file
int fileCount = 0;//variable for number of minefiles
string Version = "5.7";//template for program version
string hosturl = File.ReadAllText(Environment.CurrentDirectory + "\\settings.ini").Split(new[] { "\r\n", "\n" }, StringSplitOptions.None)[0];
string hosturl = "";
string basurl = "";
string PCKFile = "";
string PCKFileBCKUP = "x";
@@ -41,7 +41,7 @@ namespace MinecraftUSkinEditor
bool saved = true;
string appData = System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + "/PCK Studio/";
public static bool correct = false;
bool isdebug = false;
bool isdebug = true;
public class displayId
{
@@ -53,8 +53,16 @@ namespace MinecraftUSkinEditor
#region form startup page
public FormMain()
{
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("ja");
Thread.CurrentThread.CurrentCulture = ci;
Directory.CreateDirectory(Environment.CurrentDirectory + "\\template");
if (!File.Exists(Environment.CurrentDirectory + "\\template\\UntitledSkinPCK.pck"))
File.WriteAllBytes(Environment.CurrentDirectory + "\\template\\UntitledSkinPCK.pck", Resources.UntitledSkinPCK);
if (!File.Exists(Environment.CurrentDirectory + "\\settings.ini"))
File.WriteAllText(Environment.CurrentDirectory + "\\settings.ini", Resources.settings);
hosturl = File.ReadAllText(Environment.CurrentDirectory + "\\settings.ini").Split(new[] { "\r\n", "\n" }, StringSplitOptions.None)[0];
InitializeComponent();
if (Program.IsDev)
@@ -915,7 +923,7 @@ namespace MinecraftUSkinEditor
MessageBox.Show("No localization data found.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
MinecraftUSkinEditor.addnewskin add = new MinecraftUSkinEditor.addnewskin(currentPCK, treeViewMain, tempIDD.ToString(), l);//Sets dialog data for skin creator
PckStudio.addnewskin add = new PckStudio.addnewskin(currentPCK, treeViewMain, tempIDD.ToString(), l);//Sets dialog data for skin creator
add.ShowDialog();//opens skin creator
mf.data = l.Rebuild();//rebuilds loc data
add.Dispose();//disposes generated skin creator data
@@ -933,7 +941,7 @@ namespace MinecraftUSkinEditor
if (ofd.ShowDialog() == DialogResult.OK)
{
MinecraftUSkinEditor.addAnimatedTexture add = new MinecraftUSkinEditor.addAnimatedTexture(currentPCK, treeViewMain, ofd.FileName, Path.GetFileName(ofd.FileName).Remove(Path.GetFileName(ofd.FileName).Length - 4, 4));//presets texture generator dialog with needed data including selected picture
PckStudio.addAnimatedTexture add = new PckStudio.addAnimatedTexture(currentPCK, treeViewMain, ofd.FileName, Path.GetFileName(ofd.FileName).Remove(Path.GetFileName(ofd.FileName).Length - 4, 4));//presets texture generator dialog with needed data including selected picture
add.ShowDialog();//Shows dialog
add.Dispose();//Diposes generated dialog data
}
@@ -1062,7 +1070,7 @@ namespace MinecraftUSkinEditor
private void addEntryToolStripMenuItem_Click_1(object sender, EventArgs e)
{
mf = (PCK.MineFile)treeViewMain.SelectedNode.Tag;//Sets minefile to selected node
MinecraftUSkinEditor.addMeta add = new MinecraftUSkinEditor.addMeta(mf, currentPCK);//sets metadata adding dialog
PckStudio.addMeta add = new PckStudio.addMeta(mf, currentPCK);//sets metadata adding dialog
add.ShowDialog();//displays metadata adding dialog
add.Dispose();//diposes generated metadata adding dialog data
@@ -1138,7 +1146,7 @@ namespace MinecraftUSkinEditor
{
try
{
MinecraftUSkinEditor.meta edit = new MinecraftUSkinEditor.meta(currentPCK);
PckStudio.meta edit = new PckStudio.meta(currentPCK);
edit.TopMost = true;
edit.TopLevel = true;
edit.Show();
@@ -1155,7 +1163,7 @@ namespace MinecraftUSkinEditor
private void addPresetToolStripMenuItem1_Click(object sender, EventArgs e)
{
mf = (PCK.MineFile)treeViewMain.SelectedNode.Tag;//Sets selected minefile from node
MinecraftUSkinEditor.presetMeta add = new MinecraftUSkinEditor.presetMeta(mf, currentPCK);//sets data for preset adding dialog
PckStudio.presetMeta add = new PckStudio.presetMeta(mf, currentPCK);//sets data for preset adding dialog
add.ShowDialog();//displays preset adding dialog
add.Dispose();//disposes generated preset adding data
@@ -1215,7 +1223,7 @@ namespace MinecraftUSkinEditor
if (openedPCKS.Visible == true)
{
//opens dialog for bulk minefile editing
MinecraftUSkinEditor.AdvancedOptions advanced = new MinecraftUSkinEditor.AdvancedOptions(currentPCK);
PckStudio.AdvancedOptions advanced = new PckStudio.AdvancedOptions(currentPCK);
advanced.ShowDialog();
advanced.Dispose();
saved = false;
@@ -3448,7 +3456,11 @@ namespace MinecraftUSkinEditor
private void FormMain_FormClosing(object sender, FormClosingEventArgs e)
{
RPC.CloseRPC();
try
{
RPC.CloseRPC();
}
catch { }
}
private void convertPCTextrurePackToolStripMenuItem_Click(object sender, EventArgs e)

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class AdvancedOptions
{

View File

@@ -9,7 +9,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class AdvancedOptions : MetroFramework.Forms.MetroForm
{
@@ -36,7 +36,7 @@ namespace MinecraftUSkinEditor
private void addEntryToolStripMenuItem_Click(object sender, EventArgs e)
{
MinecraftUSkinEditor.addMetaAdvanced add = new MinecraftUSkinEditor.addMetaAdvanced(treeMeta);
PckStudio.addMetaAdvanced add = new PckStudio.addMetaAdvanced(treeMeta);
add.ShowDialog();
add.Dispose();
}

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class EntryEditor
{

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class EntryEditor : Form
{

View File

@@ -30,7 +30,7 @@ namespace PckStudio.Forms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.minecraftModelView1 = new MinecraftUSkinEditor.Models.MinecraftModelView(this.components);
this.minecraftModelView1 = new PckStudio.Models.MinecraftModelView(this.components);
this.SuspendLayout();
//
// minecraftModelView1
@@ -38,7 +38,7 @@ namespace PckStudio.Forms
this.minecraftModelView1.BackColor = System.Drawing.Color.DarkGray;
this.minecraftModelView1.BackGradientColor1 = System.Drawing.SystemColors.ActiveCaptionText;
this.minecraftModelView1.BackGradientColor2 = System.Drawing.SystemColors.ActiveCaptionText;
this.minecraftModelView1.BackgroundType = MinecraftUSkinEditor.Models.BackgroundTypes.Color;
this.minecraftModelView1.BackgroundType = PckStudio.Models.BackgroundTypes.Color;
this.minecraftModelView1.DegreesX = 0;
this.minecraftModelView1.DegreesY = 0;
this.minecraftModelView1.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -47,7 +47,7 @@ namespace PckStudio.Forms
this.minecraftModelView1.FOV = 70;
this.minecraftModelView1.Location = new System.Drawing.Point(0, 0);
this.minecraftModelView1.Name = "minecraftModelView1";
this.minecraftModelView1.Projection = MinecraftUSkinEditor.Models.ProjectionTypes.Perspective;
this.minecraftModelView1.Projection = PckStudio.Models.ProjectionTypes.Perspective;
this.minecraftModelView1.ShowUsername = false;
this.minecraftModelView1.Size = new System.Drawing.Size(418, 568);
this.minecraftModelView1.TabIndex = 1;
@@ -69,6 +69,6 @@ namespace PckStudio.Forms
#endregion
private MinecraftUSkinEditor.Models.MinecraftModelView minecraftModelView1;
private PckStudio.Models.MinecraftModelView minecraftModelView1;
}
}

View File

@@ -7,7 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MinecraftUSkinEditor.Models;
using PckStudio.Models;
namespace PckStudio.Forms
{

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class addAnimatedTexture
{
@@ -29,7 +29,7 @@
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(addAnimatedTexture));
this.pictureBox1 = new MinecraftUSkinEditor.PictureBoxWithInterpolationMode();
this.pictureBox1 = new PckStudio.PictureBoxWithInterpolationMode();
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();

View File

@@ -11,7 +11,7 @@ using System.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Linq.Expressions;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class addAnimatedTexture : MetroFramework.Forms.MetroForm
{

View File

@@ -2122,7 +2122,7 @@
<value>3, 4, 3, 4</value>
</data>
<data name="&gt;&gt;pictureBox1.Type" xml:space="preserve">
<value>MinecraftUSkinEditor.PictureBoxWithInterpolationMode, PCK Studio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.PictureBoxWithInterpolationMode, PCK Studio, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;label3.ZOrder" xml:space="preserve">
<value>3</value>

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class addMeta
{

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class addMeta : MetroFramework.Forms.MetroForm
{

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class addMetaAdvanced
{

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class addMetaAdvanced : MetroFramework.Forms.MetroForm
{

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class addnewskin
{
@@ -51,8 +51,8 @@
this.radioLOCAL = new System.Windows.Forms.RadioButton();
this.labelSelectTexture = new System.Windows.Forms.Label();
this.radioSERVER = new System.Windows.Forms.RadioButton();
this.pictureBoxWithInterpolationMode1 = new MinecraftUSkinEditor.PictureBoxWithInterpolationMode();
this.pictureBoxTexture = new MinecraftUSkinEditor.PictureBoxWithInterpolationMode();
this.pictureBoxWithInterpolationMode1 = new PckStudio.PictureBoxWithInterpolationMode();
this.pictureBoxTexture = new PckStudio.PictureBoxWithInterpolationMode();
this.contextMenuSkin.SuspendLayout();
this.contextMenuCape.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.displayBox)).BeginInit();

View File

@@ -13,7 +13,7 @@ using MySql.Data.MySqlClient;
using System.Net;
using PckStudio;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class addnewskin : MetroFramework.Forms.MetroForm
{

View File

@@ -644,7 +644,7 @@
<value>pictureBoxWithInterpolationMode1</value>
</data>
<data name="&gt;&gt;pictureBoxWithInterpolationMode1.Type" xml:space="preserve">
<value>MinecraftUSkinEditor.PictureBoxWithInterpolationMode, PCK Studio, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.PictureBoxWithInterpolationMode, PCK Studio, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;pictureBoxWithInterpolationMode1.Parent" xml:space="preserve">
<value>$this</value>
@@ -668,7 +668,7 @@
<value>pictureBoxTexture</value>
</data>
<data name="&gt;&gt;pictureBoxTexture.Type" xml:space="preserve">
<value>MinecraftUSkinEditor.PictureBoxWithInterpolationMode, PCK Studio, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.PictureBoxWithInterpolationMode, PCK Studio, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;pictureBoxTexture.Parent" xml:space="preserve">
<value>$this</value>

View File

@@ -84,7 +84,7 @@
this.listViewBGs = new System.Windows.Forms.ListView();
this.tableLayoutPanelMain = new System.Windows.Forms.TableLayoutPanel();
this.texturePreview = new System.Windows.Forms.PictureBox();
this.minecraftModelView1 = new MinecraftUSkinEditor.Models.MinecraftModelView(this.components);
this.minecraftModelView1 = new PckStudio.Models.MinecraftModelView(this.components);
this.myTablePanel2 = new PckStudio.Forms.MyTablePanel();
this.offsetArms = new System.Windows.Forms.TextBox();
this.label14 = new System.Windows.Forms.Label();
@@ -620,7 +620,7 @@
this.minecraftModelView1.BackColor = System.Drawing.Color.Black;
this.minecraftModelView1.BackGradientColor1 = System.Drawing.SystemColors.ActiveCaptionText;
this.minecraftModelView1.BackGradientColor2 = System.Drawing.SystemColors.ActiveCaptionText;
this.minecraftModelView1.BackgroundType = MinecraftUSkinEditor.Models.BackgroundTypes.Color;
this.minecraftModelView1.BackgroundType = PckStudio.Models.BackgroundTypes.Color;
this.tableLayoutPanelMain.SetColumnSpan(this.minecraftModelView1, 3);
this.minecraftModelView1.DegreesX = 0;
this.minecraftModelView1.DegreesY = 0;
@@ -628,7 +628,7 @@
this.minecraftModelView1.ForeColor = System.Drawing.Color.Black;
this.minecraftModelView1.FOV = 70;
this.minecraftModelView1.Name = "minecraftModelView1";
this.minecraftModelView1.Projection = MinecraftUSkinEditor.Models.ProjectionTypes.Perspective;
this.minecraftModelView1.Projection = PckStudio.Models.ProjectionTypes.Perspective;
this.tableLayoutPanelMain.SetRowSpan(this.minecraftModelView1, 17);
this.minecraftModelView1.ShowUsername = false;
this.minecraftModelView1.Username = "";
@@ -869,7 +869,7 @@
private System.Windows.Forms.TableLayoutPanel tableLayoutPanelMain;
private Forms.MyTablePanel myTablePanel2;
private Forms.MyTablePanel myTablePanel1;
private MinecraftUSkinEditor.Models.MinecraftModelView minecraftModelView1;
private PckStudio.Models.MinecraftModelView minecraftModelView1;
private System.Windows.Forms.PictureBox displayBox;
}
}

View File

@@ -7,7 +7,7 @@ using System.Linq;
using System.Windows.Forms;
using System.Collections;
using System.IO;
using MinecraftUSkinEditor.Models;
using PckStudio.Models;
using Brush = System.Drawing.Brush;
using Color = System.Drawing.Color;

View File

@@ -439,7 +439,7 @@
<value>minecraftModelView1</value>
</data>
<data name="&gt;&gt;minecraftModelView1.Type" xml:space="preserve">
<value>MinecraftUSkinEditor.Models.MinecraftModelView, PCK Studio, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null</value>
<value>PckStudio.Models.MinecraftModelView, PCK Studio, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null</value>
</data>
<data name="&gt;&gt;minecraftModelView1.Parent" xml:space="preserve">
<value>tableLayoutPanelMain</value>

View File

@@ -30,7 +30,7 @@ namespace PckStudio.Forms
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.minecraftModelView1 = new MinecraftUSkinEditor.Models.MinecraftModelView(this.components);
this.minecraftModelView1 = new PckStudio.Models.MinecraftModelView(this.components);
this.SuspendLayout();
//
// minecraftModelView1
@@ -38,7 +38,7 @@ namespace PckStudio.Forms
this.minecraftModelView1.BackColor = System.Drawing.Color.Black;
this.minecraftModelView1.BackGradientColor1 = System.Drawing.SystemColors.ActiveCaptionText;
this.minecraftModelView1.BackGradientColor2 = System.Drawing.SystemColors.ActiveCaptionText;
this.minecraftModelView1.BackgroundType = MinecraftUSkinEditor.Models.BackgroundTypes.Color;
this.minecraftModelView1.BackgroundType = PckStudio.Models.BackgroundTypes.Color;
this.minecraftModelView1.DegreesX = 0;
this.minecraftModelView1.DegreesY = 0;
this.minecraftModelView1.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -47,7 +47,7 @@ namespace PckStudio.Forms
this.minecraftModelView1.FOV = 70;
this.minecraftModelView1.Location = new System.Drawing.Point(0, 0);
this.minecraftModelView1.Name = "minecraftModelView1";
this.minecraftModelView1.Projection = MinecraftUSkinEditor.Models.ProjectionTypes.Perspective;
this.minecraftModelView1.Projection = PckStudio.Models.ProjectionTypes.Perspective;
this.minecraftModelView1.ShowUsername = false;
this.minecraftModelView1.Size = new System.Drawing.Size(323, 375);
this.minecraftModelView1.TabIndex = 0;
@@ -69,6 +69,6 @@ namespace PckStudio.Forms
#endregion
private MinecraftUSkinEditor.Models.MinecraftModelView minecraftModelView1;
private PckStudio.Models.MinecraftModelView minecraftModelView1;
}
}

View File

@@ -8,7 +8,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MinecraftUSkinEditor.Models;
using PckStudio.Models;
namespace PckStudio.Forms
{

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using MetroFramework.Forms;
using MinecraftUSkinEditor;
using PckStudio;
namespace PckStudio.Forms.Utilities
{

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
partial class LOCEditor
{

View File

@@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
public partial class LOCEditor : MetroFramework.Forms.MetroForm
{

View File

@@ -28,7 +28,7 @@ namespace PckStudio.Forms.Utilities
{
public partial class TextureConverterUtility : MetroForm
{
public TextureConverterUtility(TreeView tv0, MinecraftUSkinEditor.PCK pck)
public TextureConverterUtility(TreeView tv0, PckStudio.PCK pck)
{
InitializeComponent();
TView = tv0;
@@ -43,7 +43,7 @@ namespace PckStudio.Forms.Utilities
bool ToPC = true;
MinecraftUSkinEditor.PCK Pck;
PckStudio.PCK Pck;
TreeView TView;
@@ -329,13 +329,13 @@ namespace PckStudio.Forms.Utilities
switch (tn.Text)
{
case ("terrain.png"):
Terrain = Image.FromStream(new MemoryStream(((MinecraftUSkinEditor.PCK.MineFile)(tn.Tag)).data));
Terrain = Image.FromStream(new MemoryStream(((PckStudio.PCK.MineFile)(tn.Tag)).data));
break;
case ("items.png"):
Items = Image.FromStream(new MemoryStream(((MinecraftUSkinEditor.PCK.MineFile)(tn.Tag)).data));
Items = Image.FromStream(new MemoryStream(((PckStudio.PCK.MineFile)(tn.Tag)).data));
break;
case ("art"):
painting = Image.FromStream(new MemoryStream(((MinecraftUSkinEditor.PCK.MineFile)(tn.Nodes[0].Tag)).data));
painting = Image.FromStream(new MemoryStream(((PckStudio.PCK.MineFile)(tn.Nodes[0].Tag)).data));
break;
case ("mob"):
EntityNode = tn;
@@ -448,7 +448,7 @@ namespace PckStudio.Forms.Utilities
string Outpath = "assets\\minecraft\\textures\\";
foreach (MinecraftUSkinEditor.PCK.MineFile mf in Pck.mineFiles)
foreach (PckStudio.PCK.MineFile mf in Pck.mineFiles)
{
System.IO.FileInfo file = new System.IO.FileInfo(Environment.CurrentDirectory + "\\Temp\\" + @"\" + mf.name);
file.Directory.Create(); // If the directory already exists, this method does nothing.
@@ -473,7 +473,7 @@ namespace PckStudio.Forms.Utilities
string Outpath = "assets\\minecraft\\textures\\";
foreach (MinecraftUSkinEditor.PCK.MineFile mf in Pck.mineFiles)
foreach (PckStudio.PCK.MineFile mf in Pck.mineFiles)
{
System.IO.FileInfo file = new System.IO.FileInfo(Environment.CurrentDirectory + "\\Temp\\" + @"\" + mf.name);
file.Directory.Create(); // If the directory already exists, this method does nothing.
@@ -498,7 +498,7 @@ namespace PckStudio.Forms.Utilities
string Outpath = "assets\\minecraft\\textures\\";
foreach (MinecraftUSkinEditor.PCK.MineFile mf in Pck.mineFiles)
foreach (PckStudio.PCK.MineFile mf in Pck.mineFiles)
{
System.IO.FileInfo file = new System.IO.FileInfo(Environment.CurrentDirectory + "\\Temp\\" + @"\" + mf.name);
file.Directory.Create(); // If the directory already exists, this method does nothing.

View File

@@ -13,9 +13,9 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using System.Windows.Media.Imaging;
using System.IO.Packaging;
using MinecraftUSkinEditor;
using PckStudio;
using System.IO.Compression;
using static MinecraftUSkinEditor.FormMain;
using static PckStudio.FormMain;
namespace PckStudio.Forms
{

View File

@@ -1,4 +1,4 @@
namespace MinecraftUSkinEditor
namespace PckStudio
{
internal class ZipArchive
{

View File

@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace MinecraftUSkinEditor
namespace PckStudio
{
/// <summary>
/// Inherits from PictureBox; adds Interpolation Mode Setting

View File

@@ -60,13 +60,13 @@
<ApplicationIcon>Sin_titulo991.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>PCKStudio.pfx</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>CommunityKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<SignManifests>true</SignManifests>
<SignManifests>false</SignManifests>
</PropertyGroup>
<PropertyGroup>
<TargetZone>LocalIntranet</TargetZone>
@@ -76,11 +76,21 @@
</PropertyGroup>
<PropertyGroup />
<PropertyGroup>
<StartupObject>MinecraftUSkinEditor.Program</StartupObject>
<StartupObject>PckStudio.Program</StartupObject>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup>
<DelaySign>false</DelaySign>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>1A350BCC742C98A4A39065C40B7D81A6F94CE8C1</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>
</ManifestKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Costura, Version=5.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.5.0.0-alpha0281\lib\netstandard1.0\Costura.dll</HintPath>
@@ -96,8 +106,8 @@
<HintPath>..\packages\ExpandablePanel.2.0.0\lib\4.0\ExpandablePanel.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FileTransferProtocolLib">
<HintPath>..\..\..\..\Desktop\Desktop Files\PCK\Costura\FileTransferProtocolLib.dll</HintPath>
<Reference Include="filetransferprotocollib">
<HintPath>..\filetransferprotocollib.dll</HintPath>
</Reference>
<Reference Include="GeoAPI, Version=1.7.4.0, Culture=neutral, PublicKeyToken=a1a0da7def465678, processorArchitecture=MSIL">
<HintPath>..\packages\MapSuiteDependency-GeoAPI.10.2.0\lib\net45\GeoAPI.dll</HintPath>
@@ -143,8 +153,9 @@
<Private>True</Private>
<Private>True</Private>
</Reference>
<Reference Include="MySql.Data">
<HintPath>..\..\..\..\Desktop\Desktop Files\pckStudio\MySql.Data.dll</HintPath>
<Reference Include="MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\MySql.Data.dll</HintPath>
</Reference>
<Reference Include="NetTopologySuite, Version=1.14.0.0, Culture=neutral, PublicKeyToken=f580a05016ebada1, processorArchitecture=MSIL">
<HintPath>..\packages\MapSuiteDependency-NetTopologySuite.10.2.0\lib\net45\NetTopologySuite.dll</HintPath>
@@ -329,6 +340,7 @@
<Compile Include="Classes\Models\Texel.cs" />
<Compile Include="Classes\Models\TexelComparer.cs" />
<Compile Include="Classes\Models\TexturePlane.cs" />
<Compile Include="Classes\PCK.cs" />
<Compile Include="Classes\RichPresenceClient.cs" />
<Compile Include="Classes\StoneVOX\brush\BrushAdd.cs" />
<Compile Include="Classes\StoneVOX\brush\BrushColorSelection.cs" />
@@ -649,7 +661,6 @@
<Compile Include="Forms\Additional-Popups\MetaADD.Designer.cs">
<DependentUpon>MetaADD.cs</DependentUpon>
</Compile>
<Compile Include="Classes\PCK.cs" />
<Compile Include="Forms\Additional-Popups\presetMeta.cs">
<SubType>Form</SubType>
</Compile>
@@ -664,11 +675,6 @@
<DependentUpon>programInfo.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Classes\RenderBase.cs" />
<Compile Include="Classes\TextureCodec.cs" />
<Compile Include="Classes\TextureUtils.cs" />
@@ -843,6 +849,7 @@
<SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="bin\Release\settings.ini" />
<None Include="bin\Release\templates\UntitledSkinPCK.pck" />
<Content Include="Classes\StoneVOX\data\fonts\Bigfish.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
@@ -866,6 +873,7 @@
<Content Include="Classes\StoneVOX\data\shaders\wireframe.vs">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="CommunityKey.snk" />
<None Include="OpenTK.dll.config" />
<None Include="packages.config" />
<None Include="PCKStudio.pfx" />
@@ -874,6 +882,11 @@
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
@@ -886,6 +899,8 @@
<ItemGroup>
<None Include="Resources\apps.zip" />
<None Include="Resources\binkawin.asi" />
<None Include="Resources\settings.ini" />
<None Include="Resources\UntitledSkinPCK.pck" />
<None Include="xbox.png" />
<None Include="youtube_PNG15.png" />
<None Include="Resources\Del.png" />

View File

@@ -310,6 +310,16 @@ namespace PckStudio.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to http://nobledez.ga/
///http://www.pckstudio.tk/.
/// </summary>
internal static string settings {
get {
return ResourceManager.GetString("settings", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View File

@@ -137,7 +137,7 @@
<value>..\Resources\Replace.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ARROW" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\fileIcons\ARROW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\iconImageList\ARROW.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="wiiu" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\wiiu.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -152,7 +152,7 @@
<value>..\pckCenterHeader.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="IMAGE_ICON" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\fileIcons\IMAGE ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\iconImageList\IMAGE ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ExportFile" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ExportFile.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -176,7 +176,7 @@
<value>..\Resources\NoImageFound.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="LOC_ICON" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\fileIcons\LOC ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\iconImageList\LOC ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="sdDownload" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\sdDownload.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -185,22 +185,19 @@
<value>..\youtube_PNG15.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="PCK_ICON" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\fileIcons\PCK ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\iconImageList\PCK ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="pckClosed" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\pckClosed.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="UntitledSkinPCK" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\templates\UntitledSkinPCK.pck;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="ZUnknown" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\fileIcons\ZUnknown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\iconImageList\ZUnknown.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="youtube_PNG151" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\youtube_PNG15.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="BINKA_ICON" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\fileIcons\BINKA ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\iconImageList\BINKA ICON.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bg1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bg1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -212,7 +209,7 @@
<value>..\xbox.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ZZFolder" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\bin\Release\fileIcons\ZZFolder.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\iconImageList\ZZFolder.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="discord" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\discord.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
@@ -226,4 +223,10 @@
<data name="pack" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\pack.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="settings" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\settings.ini;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="UntitledSkinPCK" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\UntitledSkinPCK.pck;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 B

View File

@@ -0,0 +1,2 @@
http://nobledez.ga/
http://www.pckstudio.tk/

View File

@@ -1,4 +1,5 @@
# MineKampf
# PCK Studio
_previously MinecraftUSkinEditor_
A minecraft for Wii U editor
Modify .PCK archives as you please!
@@ -20,6 +21,10 @@ Modify .PCK archives as you please!
### To compile:
Just download, open the solution in visual studio and hit build.
* download
[Latest build](https://github.com/jam1garner/MineKamf/releases)
* run `UnblockAllFiles.ps1`
* Open `MinecraftUSkinEditor.sln`
* hit run *or* hit **Shift+b**

1
UnblockAllFiles.ps1 Normal file
View File

@@ -0,0 +1 @@
dir -Path .\ -Recurse | Unblock-File