mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-06-10 04:22:53 +00:00
Add PCKProperties.GetPropertyValue
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user