diff --git a/PCK-Studio/Classes/FileTypes/PCKProperties.cs b/PCK-Studio/Classes/FileTypes/PCKProperties.cs index a049dc8b..3cb54bcf 100644 --- a/PCK-Studio/Classes/FileTypes/PCKProperties.cs +++ b/PCK-Studio/Classes/FileTypes/PCKProperties.cs @@ -23,6 +23,7 @@ namespace PckStudio.Classes.FileTypes return this.FirstOrDefault(p => p.property.Equals(property)); } + public string GetPropertyValue(string property) public (string, string)[] GetProperties(string property) { return FindAll(p => p.property == property).ToArray(); diff --git a/PCK-Studio/MainForm.cs b/PCK-Studio/MainForm.cs index 813a8eff..ddcfdc41 100644 --- a/PCK-Studio/MainForm.cs +++ b/PCK-Studio/MainForm.cs @@ -403,8 +403,8 @@ namespace PckStudio buttonEdit.Visible = true; } else if (file.properties.HasProperty("ANIM") && - (file.properties.GetProperty("ANIM").Item2 == "0x40000" || - file.properties.GetProperty("ANIM").Item2 == "0x80000")) + (file.properties.GetPropertyValue("ANIM") == "0x40000" || + file.properties.GetPropertyValue("ANIM") == "0x80000")) { buttonEdit.Text = "View Skin"; buttonEdit.Visible = true;