mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-18 16:48:21 +00:00
Added SkinAdjustmentsEditor
-Removed ANIM Editor -Added SkinAdjustments Editor for Skin ANIM and GAME_FLAGS values -ANIM and GAME_FLAGS are now edited together across the program -Box Editor made smaller -Box Editor and SkinAdjustments Editor added to CustomSkinEditor -SkinGameFlags class created -Fixed bug where the first listed box wouldn't save changes in CustomSkinEditor
This commit is contained in:
@@ -86,9 +86,10 @@ namespace PckStudio.Core.Extensions
|
||||
string name = asset.GetParameter("DISPLAYNAME");
|
||||
Image texture = asset.GetTexture();
|
||||
SkinANIM anim = asset.GetParameter("ANIM", SkinANIM.FromString);
|
||||
SkinGameFlags gameFlags = asset.GetParameter("GAME_FLAGS", SkinGameFlags.FromString);
|
||||
IEnumerable<SkinBOX> boxes = asset.GetMultipleParameters("BOX").Select(kv => SkinBOX.FromString(kv.Value));
|
||||
IEnumerable<SkinPartOffset> offsets = asset.GetMultipleParameters("OFFSET").Select(kv => SkinPartOffset.FromString(kv.Value));
|
||||
return new Skin.Skin(name, skinId, texture, anim, boxes, offsets);
|
||||
return new Skin.Skin(name, skinId, texture, anim, gameFlags, boxes, offsets);
|
||||
}
|
||||
|
||||
public static void SetSkin(this PckAsset asset, Skin.Skin skin, LOCFile localizationFile)
|
||||
@@ -130,7 +131,7 @@ namespace PckStudio.Core.Extensions
|
||||
}
|
||||
|
||||
asset.SetParameter("ANIM", skin.Anim.ToString());
|
||||
asset.SetParameter("GAME_FLAGS", "0x18");
|
||||
asset.SetParameter("GAME_FLAGS", skin.GameFlags.ToString());
|
||||
asset.SetParameter("FREE", "1");
|
||||
|
||||
asset.RemoveParameters("BOX");
|
||||
|
||||
Reference in New Issue
Block a user