mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-28 10:08:28 +00:00
Rename 'modelTextureLocations' to 'modelMetaData'
This commit is contained in:
@@ -19,7 +19,7 @@ namespace PckStudio.Internal
|
||||
{
|
||||
public static GameModelImporter Default { get; } = new GameModelImporter();
|
||||
|
||||
internal static ReadOnlyDictionary<string, JsonModelMetaData> ModelTextureLocations { get; } = JsonConvert.DeserializeObject<ReadOnlyDictionary<string, JsonModelMetaData>>(Resources.modelTextureLocations);
|
||||
internal static ReadOnlyDictionary<string, JsonModelMetaData> ModelTextureLocations { get; } = JsonConvert.DeserializeObject<ReadOnlyDictionary<string, JsonModelMetaData>>(Resources.modelMetaData);
|
||||
|
||||
private GameModelImporter()
|
||||
{
|
||||
|
||||
@@ -41,7 +41,6 @@ namespace PckStudio.Internal
|
||||
|
||||
private SkinModelImporter()
|
||||
{
|
||||
|
||||
InternalAddProvider(new("Pck skin model(*.psm)", "*.psm"), ImportPsm, ExportPsm);
|
||||
InternalAddProvider(new("Block bench model(*.bbmodel)", "*.bbmodel"), ImportBlockBenchModel, ExportBlockBenchModel);
|
||||
InternalAddProvider(new("Bedrock (Legacy) Model(*.geo.json;*.json)", "*.geo.json;*.json"), ImportBedrockJson, ExportBedrockJson);
|
||||
|
||||
@@ -633,7 +633,7 @@
|
||||
<None Include="Resources\atlases\moonPhaseData.json" />
|
||||
<None Include="Resources\atlases\paintingData.json" />
|
||||
<None Include="Resources\atlases\particleData.json" />
|
||||
<None Include="Resources\model\modelTextureLocations.json" />
|
||||
<None Include="Resources\model\modelMetaData.json" />
|
||||
<None Include="Resources\shader\framebufferFragmentShader.glsl" />
|
||||
<None Include="Resources\shader\framebufferVertexShader.glsl" />
|
||||
<None Include="Resources\shader\plainColorFragmentShader.glsl" />
|
||||
|
||||
62
PCK-Studio/Properties/Resources.Designer.cs
generated
62
PCK-Studio/Properties/Resources.Designer.cs
generated
@@ -814,6 +814,43 @@ namespace PckStudio.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to // TODO: Add parent detection
|
||||
///
|
||||
///{
|
||||
/// "bat": {
|
||||
/// "textureLocations": [
|
||||
/// "res/mob/bat"
|
||||
/// ],
|
||||
/// "parents": {
|
||||
/// "rightEar": "head",
|
||||
/// "leftEar": "head"
|
||||
/// }
|
||||
/// },
|
||||
/// "bed": {
|
||||
/// "textureLocations": [
|
||||
/// "res/item/bed"
|
||||
/// ]
|
||||
/// },
|
||||
/// "blaze": {
|
||||
/// "textureLocations": [
|
||||
/// "res/mob/fire"
|
||||
/// ]
|
||||
///
|
||||
/// },
|
||||
/// "boat": {
|
||||
/// "textureLocations": [
|
||||
/// "res/item/boat/boat_acacia",
|
||||
/// "res/item/boat/boat_birch",
|
||||
/// "res/item/boat/boat_darkoak",
|
||||
/// "res/item/boat/boat [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
public static string modelMetaData {
|
||||
get {
|
||||
return ResourceManager.GetString("modelMetaData", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
@@ -824,26 +861,6 @@ namespace PckStudio.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to {
|
||||
/// "bat": [ "res/mob/bat" ],
|
||||
/// "bed": [ "res/item/bed" ],
|
||||
/// "blaze": [ "res/mob/fire" ],
|
||||
/// "boat": [ "res/item/boat/boat_acacia", "res/item/boat/boat_birch", "res/item/boat/boat_darkoak", "res/item/boat/boat_jungle", "res/item/boat/boat_oak", "res/item/boat/boat_spruce" ],
|
||||
/// "chicken": [ "res/mob/chicken" ],
|
||||
/// "cow": [ "res/mob/cow" ],
|
||||
/// "creeper": [ "res/mob/creeper" ],
|
||||
/// "creeper_head": [ "res/mob/creeper" ],
|
||||
/// "dolphin": [ "res/mob/dolphin" ],
|
||||
/// "dragon": [ "res/mob/enderdragon/ender" ],
|
||||
/// "d [rest of string was truncated]";.
|
||||
/// </summary>
|
||||
public static string modelTextureLocations {
|
||||
get {
|
||||
return ResourceManager.GetString("modelTextureLocations", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
@@ -1085,7 +1102,7 @@ namespace PckStudio.Properties {
|
||||
///void main()
|
||||
///{
|
||||
/// color = a_Color;
|
||||
/// gl_Position = ViewProjection * Transform * vec4(a_Pos.x, a_Pos.yz * -1.0, 1.0);
|
||||
/// gl_Position = ViewProjection * Transform * vec4(a_Pos.xyz, 1.0);
|
||||
///};.
|
||||
/// </summary>
|
||||
public static string plainColorVertexShader {
|
||||
@@ -1226,8 +1243,7 @@ namespace PckStudio.Properties {
|
||||
///void main()
|
||||
///{
|
||||
/// dataOut.TexCoord = texCoord;
|
||||
/// vec4 invertedVertex = vec4(vertexPosition.x, vertexPosition.yz * -1.0, 1.0);
|
||||
/// gl_Position = u_ViewProjection * u_Transform * invertedVertex;
|
||||
/// gl_Position = u_ViewProjection * u_Transform * vec4(vertexPosition, 1.0);
|
||||
///};.
|
||||
/// </summary>
|
||||
public static string skinVertexShader {
|
||||
|
||||
@@ -421,7 +421,7 @@
|
||||
<data name="file_restore" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\icons\file_restore.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="modelTextureLocations" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\model\modelTextureLocations.json;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
<data name="modelMetaData" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\model\modelMetaData.json;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
|
||||
</data>
|
||||
</root>
|
||||
Reference in New Issue
Block a user