Add PCKProperties.GetPropertyValue

This commit is contained in:
miku-666
2022-09-20 18:12:58 +02:00
parent 55852a3132
commit 0fad80d787
2 changed files with 3 additions and 2 deletions

View File

@@ -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();

View File

@@ -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;