Prepicked plants editor

This commit is contained in:
Rendo 2025-07-29 04:08:05 +05:00
commit 56f75a5d06
43 changed files with 532 additions and 50 deletions

View file

@ -12,7 +12,17 @@ public partial class EntityResource : Resource
[Export] public Texture2D Preview;
[Export] public CustomSeedpacketFrame CustomFrame;
[Export] public int Order = 0;
public string internal_id;
public string parsedDescription;
public bool isDescriptionParsed;
private string internal_id = "";
public string GetInternalID()
{
if (internal_id == "")
{
string[] splitstr = ResourcePath.Split('/');
string file = splitstr[splitstr.Length - 1].ToLower();
internal_id = file.TrimSuffix(".tres");
}
return internal_id;
}
}